File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
ruby/ql/src/utils/modeleditor Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -61,15 +61,15 @@ abstract class Endpoint instanceof DataFlow::Node {
61
61
/**
62
62
* A callable method or accessor from source code.
63
63
*/
64
- class MethodEndpoint extends Endpoint {
64
+ class MethodEndpoint extends Endpoint instanceof DataFlow :: MethodNode {
65
65
MethodEndpoint ( ) {
66
- this .( DataFlow :: MethodNode ) . isPublic ( ) and
66
+ this .isPublic ( ) and
67
67
not isUninteresting ( this )
68
68
}
69
69
70
70
DataFlow:: MethodNode getNode ( ) { result = this }
71
71
72
- override string getName ( ) { result = this . ( DataFlow :: MethodNode ) .getMethodName ( ) }
72
+ override string getName ( ) { result = super .getMethodName ( ) }
73
73
74
74
/**
75
75
* Gets the unbound type name of this endpoint.
@@ -91,15 +91,10 @@ class MethodEndpoint extends Endpoint {
91
91
result =
92
92
"(" +
93
93
concat ( string key , string value |
94
- value =
95
- any ( int i |
96
- i .toString ( ) = key
97
- |
98
- this .( DataFlow:: MethodNode ) .asCallable ( ) .getParameter ( i )
99
- ) .getName ( )
94
+ value = any ( int i | i .toString ( ) = key | super .asCallable ( ) .getParameter ( i ) ) .getName ( )
100
95
or
101
96
exists ( DataFlow:: ParameterNode param |
102
- param = this . ( DataFlow :: MethodNode ) .asCallable ( ) .getKeywordParameter ( key )
97
+ param = super .asCallable ( ) .getKeywordParameter ( key )
103
98
|
104
99
value = key + ":"
105
100
)
You can’t perform that action at this time.
0 commit comments