Skip to content

Commit 3bc5e3b

Browse files
committed
JS: Replace some uses AnalyzedValueNode with AnalyzedNode
1 parent e354694 commit 3bc5e3b

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

javascript/ql/src/semmle/javascript/StandardLibrary.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ class JsonParseCall extends MethodCallExpr {
6262
* However, since the function could be invoked in another way, we additionally
6363
* still infer the ordinary abstract value.
6464
*/
65-
private class AnalyzedThisInArrayIterationFunction extends AnalyzedValueNode, DataFlow::ThisNode {
65+
private class AnalyzedThisInArrayIterationFunction extends AnalyzedNode, DataFlow::ThisNode {
6666

67-
AnalyzedValueNode thisSource;
67+
AnalyzedNode thisSource;
6868

6969
AnalyzedThisInArrayIterationFunction() {
7070
exists(DataFlow::MethodCallNode bindingCall, string name |
@@ -82,7 +82,7 @@ private class AnalyzedThisInArrayIterationFunction extends AnalyzedValueNode, Da
8282

8383
override AbstractValue getALocalValue() {
8484
result = thisSource.getALocalValue() or
85-
result = AnalyzedValueNode.super.getALocalValue()
85+
result = AnalyzedNode.super.getALocalValue()
8686
}
8787

8888
}

javascript/ql/src/semmle/javascript/dataflow/internal/InterProceduralTypeInference.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import AbstractValuesImpl
1010
/**
1111
* Flow analysis for `this` expressions inside functions.
1212
*/
13-
private abstract class AnalyzedThisExpr extends DataFlow::AnalyzedValueNode, DataFlow::ThisNode {
13+
private abstract class AnalyzedThisExpr extends DataFlow::AnalyzedNode, DataFlow::ThisNode {
1414
DataFlow::FunctionNode binder;
1515

1616
AnalyzedThisExpr() {
@@ -29,7 +29,7 @@ private abstract class AnalyzedThisExpr extends DataFlow::AnalyzedValueNode, Dat
2929
*/
3030
private class AnalyzedThisInBoundFunction extends AnalyzedThisExpr {
3131

32-
AnalyzedValueNode thisSource;
32+
AnalyzedNode thisSource;
3333

3434
AnalyzedThisInBoundFunction() {
3535
exists(string name |

javascript/ql/src/semmle/javascript/frameworks/LodashUnderscore.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ module LodashUnderscore {
2727
* However, since the function could be invoked in another way, we additionally
2828
* still infer the ordinary abstract value.
2929
*/
30-
private class AnalyzedThisInBoundCallback extends AnalyzedValueNode, DataFlow::ThisNode {
30+
private class AnalyzedThisInBoundCallback extends AnalyzedNode, DataFlow::ThisNode {
3131

32-
AnalyzedValueNode thisSource;
32+
AnalyzedNode thisSource;
3333

3434
AnalyzedThisInBoundCallback() {
3535
exists(DataFlow::CallNode bindingCall, string binderName, int callbackIndex, int contextIndex, int argumentCount |
@@ -128,7 +128,7 @@ private class AnalyzedThisInBoundCallback extends AnalyzedValueNode, DataFlow::T
128128

129129
override AbstractValue getALocalValue() {
130130
result = thisSource.getALocalValue() or
131-
result = AnalyzedValueNode.super.getALocalValue()
131+
result = AnalyzedNode.super.getALocalValue()
132132
}
133133

134134
}

javascript/ql/src/semmle/javascript/frameworks/React.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,9 +515,9 @@ private class FactoryDefinition extends ReactElementDefinition {
515515
* However, since the function could be invoked in another way, we additionally
516516
* still infer the ordinary abstract value.
517517
*/
518-
private class AnalyzedThisInBoundCallback extends AnalyzedValueNode, DataFlow::ThisNode {
518+
private class AnalyzedThisInBoundCallback extends AnalyzedNode, DataFlow::ThisNode {
519519

520-
AnalyzedValueNode thisSource;
520+
AnalyzedNode thisSource;
521521

522522
AnalyzedThisInBoundCallback() {
523523
exists(DataFlow::CallNode bindingCall, string binderName |
@@ -533,7 +533,7 @@ private class AnalyzedThisInBoundCallback extends AnalyzedValueNode, DataFlow::T
533533

534534
override AbstractValue getALocalValue() {
535535
result = thisSource.getALocalValue() or
536-
result = AnalyzedValueNode.super.getALocalValue()
536+
result = AnalyzedNode.super.getALocalValue()
537537
}
538538

539539
}

0 commit comments

Comments
 (0)