mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
cleanup the implementation of toString() for `SuperCall
This commit is contained in:
@@ -125,11 +125,7 @@ class MethodCall extends Call instanceof MethodCallImpl {
|
||||
*/
|
||||
final predicate isSafeNavigation() { super.isSafeNavigationImpl() }
|
||||
|
||||
override string toString() {
|
||||
if this instanceof SuperCall
|
||||
then result = "super call to " + this.getMethodName()
|
||||
else result = "call to " + this.getMethodName()
|
||||
}
|
||||
override string toString() { result = "call to " + this.getMethodName() }
|
||||
|
||||
override AstNode getAChild(string pred) {
|
||||
result = Call.super.getAChild(pred)
|
||||
@@ -214,6 +210,8 @@ class YieldCall extends Call instanceof YieldCallImpl {
|
||||
*/
|
||||
class SuperCall extends MethodCall instanceof SuperCallImpl {
|
||||
final override string getAPrimaryQlClass() { result = "SuperCall" }
|
||||
|
||||
override string toString() { result = "super call to " + this.getMethodName() }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user