Quality improvement: add explicit this in QL

Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com>
This commit is contained in:
Tamás Vajk
2022-03-29 16:06:19 +02:00
committed by Ian Lynagh
parent e0afaa462e
commit 48b6c61fdb

View File

@@ -1994,7 +1994,7 @@ class ExtensionMethodAccess extends MethodAccess {
// whereas the actual arguments begin at index 1.
override Expr getQualifier() { result.isNthChildOf(this, 0) }
override Expr getAnArgument() { result = getArgument(_) }
override Expr getAnArgument() { result = this.getArgument(_) }
override Expr getArgument(int index) { result = super.getArgument(index + 1) and index >= 0 }
}