File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
ruby/ql/lib/codeql/ruby/ast Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -125,11 +125,7 @@ class MethodCall extends Call instanceof MethodCallImpl {
125
125
*/
126
126
final predicate isSafeNavigation ( ) { super .isSafeNavigationImpl ( ) }
127
127
128
- override string toString ( ) {
129
- if this instanceof SuperCall
130
- then result = "super call to " + this .getMethodName ( )
131
- else result = "call to " + this .getMethodName ( )
132
- }
128
+ override string toString ( ) { result = "call to " + this .getMethodName ( ) }
133
129
134
130
override AstNode getAChild ( string pred ) {
135
131
result = Call .super .getAChild ( pred )
@@ -214,6 +210,8 @@ class YieldCall extends Call instanceof YieldCallImpl {
214
210
*/
215
211
class SuperCall extends MethodCall instanceof SuperCallImpl {
216
212
final override string getAPrimaryQlClass ( ) { result = "SuperCall" }
213
+
214
+ override string toString ( ) { result = "super call to " + this .getMethodName ( ) }
217
215
}
218
216
219
217
/**
You can’t perform that action at this time.
0 commit comments