@@ -20,8 +20,8 @@ private predicate isUninteresting(Callable c) {
2020/**
2121 * A callable method from either the Standard Library, a 3rd party library or from the source.
2222 */
23- class CallableMethod extends Callable {
24- CallableMethod ( ) { not isUninteresting ( this ) }
23+ class Endpoint extends Callable {
24+ Endpoint ( ) { not isUninteresting ( this ) }
2525
2626 /**
2727 * Gets information about the external API in the form expected by the MaD modeling framework.
@@ -108,30 +108,30 @@ class CallableMethod extends Callable {
108108 }
109109}
110110
111- boolean isSupported ( CallableMethod method ) {
112- method .isSupported ( ) and result = true
111+ boolean isSupported ( Endpoint endpoint ) {
112+ endpoint .isSupported ( ) and result = true
113113 or
114- not method .isSupported ( ) and result = false
114+ not endpoint .isSupported ( ) and result = false
115115}
116116
117- string supportedType ( CallableMethod method ) {
118- method .isSink ( ) and result = "sink"
117+ string supportedType ( Endpoint endpoint ) {
118+ endpoint .isSink ( ) and result = "sink"
119119 or
120- method .isSource ( ) and result = "source"
120+ endpoint .isSource ( ) and result = "source"
121121 or
122- method .hasSummary ( ) and result = "summary"
122+ endpoint .hasSummary ( ) and result = "summary"
123123 or
124- method .isNeutral ( ) and result = "neutral"
124+ endpoint .isNeutral ( ) and result = "neutral"
125125 or
126- not method .isSupported ( ) and result = ""
126+ not endpoint .isSupported ( ) and result = ""
127127}
128128
129- string methodClassification ( Call method ) {
130- isInTestFile ( method .getLocation ( ) .getFile ( ) ) and result = "test"
129+ string usageClassification ( Call usage ) {
130+ isInTestFile ( usage .getLocation ( ) .getFile ( ) ) and result = "test"
131131 or
132- method .getFile ( ) instanceof GeneratedFile and result = "generated"
132+ usage .getFile ( ) instanceof GeneratedFile and result = "generated"
133133 or
134- not isInTestFile ( method .getLocation ( ) .getFile ( ) ) and
135- not method .getFile ( ) instanceof GeneratedFile and
134+ not isInTestFile ( usage .getLocation ( ) .getFile ( ) ) and
135+ not usage .getFile ( ) instanceof GeneratedFile and
136136 result = "source"
137137}
0 commit comments