@@ -38,14 +38,14 @@ string getNamespace(File file) {
38
38
)
39
39
}
40
40
41
- abstract class Endpoint instanceof AstNode {
42
- string getNamespace ( ) { result = getNamespace ( this . ( AstNode ) .getLocation ( ) .getFile ( ) ) }
41
+ abstract class Endpoint instanceof DataFlow :: Node {
42
+ string getNamespace ( ) { result = getNamespace ( super .getLocation ( ) .getFile ( ) ) }
43
43
44
- string getFileName ( ) { result = this . ( AstNode ) .getLocation ( ) .getFile ( ) .getBaseName ( ) }
44
+ string getFileName ( ) { result = super .getLocation ( ) .getFile ( ) .getBaseName ( ) }
45
45
46
- string toString ( ) { result = this . ( AstNode ) .toString ( ) }
46
+ string toString ( ) { result = super .toString ( ) }
47
47
48
- Location getLocation ( ) { result = this . ( AstNode ) .getLocation ( ) }
48
+ Location getLocation ( ) { result = super .getLocation ( ) }
49
49
50
50
abstract string getType ( ) ;
51
51
@@ -65,7 +65,7 @@ class MethodEndpoint extends Endpoint {
65
65
private DataFlow:: MethodNode methodNode ;
66
66
67
67
MethodEndpoint ( ) {
68
- this = methodNode . asExpr ( ) . getExpr ( ) and
68
+ this = methodNode and
69
69
methodNode .isPublic ( ) and
70
70
not isUninteresting ( methodNode )
71
71
}
@@ -197,8 +197,8 @@ class ModuleEndpoint extends Endpoint {
197
197
198
198
ModuleEndpoint ( ) {
199
199
this =
200
- min ( AstNode n , Location loc |
201
- n = moduleNode .getADeclaration ( ) and
200
+ min ( DataFlow :: Node n , Location loc |
201
+ n . asExpr ( ) . getExpr ( ) = moduleNode .getADeclaration ( ) and
202
202
loc = n .getLocation ( )
203
203
|
204
204
n order by loc .getFile ( ) .getAbsolutePath ( ) , loc .getStartLine ( ) , loc .getStartColumn ( )
0 commit comments