mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Quality improvement: add explicit this in QL
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com>
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user