File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
library-tests/dataflow/library Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 11import shared.FlowSummaries
2+ private import semmle.code.csharp.dataflow.internal.FlowSummaryImpl as FlowSummaryImpl
23
34private class IncludeAllSummarizedCallable extends IncludeSummarizedCallable {
4- IncludeAllSummarizedCallable ( ) { this instanceof SummarizedCallable }
5+ IncludeAllSummarizedCallable ( ) { this instanceof FlowSummaryImpl :: Public :: SummarizedCallable }
56}
Original file line number Diff line number Diff line change 11import shared.FlowSummaries
2+ private import semmle.code.csharp.dataflow.internal.FlowSummaryImpl as FlowSummaryImpl
23private import semmle.code.csharp.dataflow.internal.DataFlowPrivate:: Csv
34private import semmle.code.csharp.dataflow.ExternalFlow
45
56class IncludeFilteredSummarizedCallable extends IncludeSummarizedCallable {
6- IncludeFilteredSummarizedCallable ( ) { this instanceof SummarizedCallable }
7+ IncludeFilteredSummarizedCallable ( ) {
8+ this instanceof FlowSummaryImpl:: Public:: SummarizedCallable
9+ }
710
811 /**
912 * Holds if flow is propagated between `input` and `output` and
@@ -15,9 +18,9 @@ class IncludeFilteredSummarizedCallable extends IncludeSummarizedCallable {
1518 ) {
1619 this .propagatesFlow ( input , output , preservesValue ) and
1720 not exists ( IncludeSummarizedCallable rsc |
18- isBaseCallableOrPrototype ( rsc ) and
21+ isBaseCallableOrPrototype ( rsc . asCallable ( ) ) and
1922 rsc .propagatesFlow ( input , output , preservesValue ) and
20- this .( UnboundCallable ) .overridesOrImplementsUnbound ( rsc )
23+ this .asCallable ( ) . ( UnboundCallable ) .overridesOrImplementsUnbound ( rsc . asCallable ( ) )
2124 )
2225 }
2326}
Original file line number Diff line number Diff line change @@ -4,9 +4,10 @@ private import semmle.code.csharp.dataflow.internal.DataFlowPrivate
44
55abstract class IncludeSummarizedCallable extends RelevantSummarizedCallable {
66 IncludeSummarizedCallable ( ) {
7- [ this .( Modifiable ) , this .( Accessor ) .getDeclaration ( ) ] .isEffectivelyPublic ( )
7+ [ this .asCallable ( ) .( Modifiable ) , this .asCallable ( ) .( Accessor ) .getDeclaration ( ) ]
8+ .isEffectivelyPublic ( )
89 }
910
1011 /** Gets a string representing the callable in semi-colon separated format for use in flow summaries. */
11- final override string getCallableCsv ( ) { result = Csv:: asPartialModel ( this ) }
12+ final override string getCallableCsv ( ) { result = Csv:: asPartialModel ( this . asCallable ( ) ) }
1213}
You can’t perform that action at this time.
0 commit comments