mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
Update VariableCapture.qll
This commit is contained in:
@@ -185,7 +185,7 @@ module VariableCaptureConfig implements InputSig<js::Location> {
|
|||||||
|
|
||||||
string toString() { none() } // Overridden in subclass
|
string toString() { none() } // Overridden in subclass
|
||||||
|
|
||||||
Location getLocation() { none() } // Overridden in subclass
|
js::Location getLocation() { none() } // Overridden in subclass
|
||||||
|
|
||||||
predicate hasCfgNode(BasicBlock bb, int i) { none() } // Overridden in subclass
|
predicate hasCfgNode(BasicBlock bb, int i) { none() } // Overridden in subclass
|
||||||
|
|
||||||
@@ -203,7 +203,7 @@ module VariableCaptureConfig implements InputSig<js::Location> {
|
|||||||
override string toString() { result = pattern.toString() }
|
override string toString() { result = pattern.toString() }
|
||||||
|
|
||||||
/** Gets the location of this write. */
|
/** Gets the location of this write. */
|
||||||
override Location getLocation() { result = pattern.getLocation() }
|
override js::Location getLocation() { result = pattern.getLocation() }
|
||||||
|
|
||||||
override js::DataFlow::Node getSource() {
|
override js::DataFlow::Node getSource() {
|
||||||
// Note: there is not always an expression corresponding to the RHS of the assignment.
|
// Note: there is not always an expression corresponding to the RHS of the assignment.
|
||||||
@@ -239,7 +239,7 @@ module VariableCaptureConfig implements InputSig<js::Location> {
|
|||||||
|
|
||||||
override string toString() { result = "[implicit init] " + variable }
|
override string toString() { result = "[implicit init] " + variable }
|
||||||
|
|
||||||
override Location getLocation() { result = variable.getLocation() }
|
override js::Location getLocation() { result = variable.getLocation() }
|
||||||
|
|
||||||
override CapturedVariable getVariable() { result = variable }
|
override CapturedVariable getVariable() { result = variable }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user