Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4eb1e3a

Browse files
atorralbaigfoo
authored andcommitted
Update ExtensionMethodAccess QLDoc
1 parent fcb3341 commit 4eb1e3a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

java/ql/lib/semmle/code/java/Expr.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1959,13 +1959,12 @@ class MethodAccess extends Expr, Call, @methodaccess {
19591959

19601960
/**
19611961
* An invocation of a Kotlin `ExtensionMethod`.
1962-
*
1963-
* The syntactical qualifier of an extension method is its receiver (arg 0),
1964-
* whereas the actual arguments begin at index 1.
19651962
*/
19661963
class ExtensionMethodAccess extends MethodAccess {
19671964
ExtensionMethodAccess() { this.getMethod() instanceof ExtensionMethod }
19681965

1966+
// The syntactic qualifier of an extension method is its receiver (arg 0),
1967+
// whereas the actual arguments begin at index 1.
19691968
override Expr getQualifier() { result.isNthChildOf(this, 0) }
19701969

19711970
override Expr getAnArgument() { result.getIndex() >= 1 and result.getParent() = this }

0 commit comments

Comments
 (0)