Skip to content

Commit de9dab9

Browse files
committed
JS: Move some predicates into NameResolution
1 parent 93c891a commit de9dab9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

javascript/ql/lib/semmle/javascript/internal/NameResolution.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,10 @@ module NameResolution {
408408
*/
409409
predicate trackModule = ValueFlow::TrackNode<ModuleLike>::track/1;
410410

411+
predicate trackClassValue = ValueFlow::TrackNode<ClassDefinition>::track/1;
412+
413+
predicate trackFunctionValue = ValueFlow::TrackNode<Function>::track/1;
414+
411415
/**
412416
* Holds if `moduleName` appears to start with a package name, as opposed to a relative file import.
413417
*/

javascript/ql/lib/semmle/javascript/internal/TypeResolution.qll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ private import semmle.javascript.internal.UnderlyingTypes
44
private import semmle.javascript.dataflow.internal.sharedlib.SummaryTypeTracker as SummaryTypeTracker
55

66
module TypeResolution {
7-
predicate trackClassValue = ValueFlow::TrackNode<ClassDefinition>::track/1;
8-
97
predicate trackType = TypeFlow::TrackNode<TypeDefinition>::track/1;
108

119
/**
@@ -24,8 +22,6 @@ module TypeResolution {
2422
)
2523
}
2624

27-
predicate trackFunctionValue = ValueFlow::TrackNode<Function>::track/1;
28-
2925
/**
3026
* Gets the representative for the type containing the given member.
3127
*

0 commit comments

Comments
 (0)