mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
JS: Add ClassNode.getAReceiverNode
This commit is contained in:
@@ -650,6 +650,15 @@ class ClassNode extends DataFlow::SourceNode {
|
||||
.(AbstractCallable)
|
||||
.getFunction()
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the receiver of an instance member or constructor of this class.
|
||||
*/
|
||||
DataFlow::SourceNode getAReceiverNode() {
|
||||
result = getConstructor().getReceiver()
|
||||
or
|
||||
result = getAnInstanceMember().getReceiver()
|
||||
}
|
||||
}
|
||||
|
||||
module ClassNode {
|
||||
|
||||
Reference in New Issue
Block a user