mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
16 lines
285 B
Plaintext
16 lines
285 B
Plaintext
/**
|
|
* @id js/examples/methodcall
|
|
* @name Method calls
|
|
* @description Finds calls of the form `this.isMounted(...)`
|
|
* @tags call
|
|
* method
|
|
*/
|
|
|
|
import javascript
|
|
|
|
from MethodCallExpr c
|
|
where
|
|
c.getReceiver() instanceof ThisExpr and
|
|
c.getMethodName() = "isMounted"
|
|
select c
|