@@ -12,7 +12,6 @@ private import semmle.code.csharp.dataflow.internal.FlowSummaryImpl as FlowSumma
1212private import semmle.code.csharp.dataflow.internal.TaintTrackingPrivate
1313private import semmle.code.csharp.frameworks.Test
1414private import semmle.code.csharp.security.dataflow.flowsources.Remote
15-
1615private import Telemetry.TestLibrary
1716
1817/** Holds if the given callable is not worth supporting. */
@@ -25,8 +24,8 @@ private predicate isUninteresting(DotNet::Callable c) {
2524/**
2625 * An callable method from either the C# Standard Library, a 3rd party library, or from the source.
2726 */
28- class CallableMethod extends DotNet:: Callable {
29- CallableMethod ( ) {
27+ class Endpoint extends DotNet:: Callable {
28+ Endpoint ( ) {
3029 [ this .( Modifiable ) , this .( Accessor ) .getDeclaration ( ) ] .isEffectivelyPublic ( ) and
3130 not isUninteresting ( this )
3231 }
@@ -121,23 +120,23 @@ class CallableMethod extends DotNet::Callable {
121120 }
122121}
123122
124- boolean isSupported ( CallableMethod callableMethod ) {
125- callableMethod .isSupported ( ) and result = true
123+ boolean isSupported ( Endpoint endpoint ) {
124+ endpoint .isSupported ( ) and result = true
126125 or
127- not callableMethod .isSupported ( ) and
126+ not endpoint .isSupported ( ) and
128127 result = false
129128}
130129
131- string supportedType ( CallableMethod method ) {
132- method .isSink ( ) and result = "sink"
130+ string supportedType ( Endpoint endpoint ) {
131+ endpoint .isSink ( ) and result = "sink"
133132 or
134- method .isSource ( ) and result = "source"
133+ endpoint .isSource ( ) and result = "source"
135134 or
136- method .hasSummary ( ) and result = "summary"
135+ endpoint .hasSummary ( ) and result = "summary"
137136 or
138- method .isNeutral ( ) and result = "neutral"
137+ endpoint .isNeutral ( ) and result = "neutral"
139138 or
140- not method .isSupported ( ) and result = ""
139+ not endpoint .isSupported ( ) and result = ""
141140}
142141
143142string methodClassification ( Call method ) {
0 commit comments