mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Update ExtensionMethodAccess QLDoc
This commit is contained in:
committed by
Ian Lynagh
parent
fcb334180d
commit
4eb1e3a47b
@@ -1959,13 +1959,12 @@ class MethodAccess extends Expr, Call, @methodaccess {
|
||||
|
||||
/**
|
||||
* An invocation of a Kotlin `ExtensionMethod`.
|
||||
*
|
||||
* The syntactical qualifier of an extension method is its receiver (arg 0),
|
||||
* whereas the actual arguments begin at index 1.
|
||||
*/
|
||||
class ExtensionMethodAccess extends MethodAccess {
|
||||
ExtensionMethodAccess() { this.getMethod() instanceof ExtensionMethod }
|
||||
|
||||
// The syntactic qualifier of an extension method is its receiver (arg 0),
|
||||
// whereas the actual arguments begin at index 1.
|
||||
override Expr getQualifier() { result.isNthChildOf(this, 0) }
|
||||
|
||||
override Expr getAnArgument() { result.getIndex() >= 1 and result.getParent() = this }
|
||||
|
||||
Reference in New Issue
Block a user