mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
JS: Move some predicates into NameResolution
This commit is contained in:
@@ -408,6 +408,10 @@ module NameResolution {
|
|||||||
*/
|
*/
|
||||||
predicate trackModule = ValueFlow::TrackNode<ModuleLike>::track/1;
|
predicate trackModule = ValueFlow::TrackNode<ModuleLike>::track/1;
|
||||||
|
|
||||||
|
predicate trackClassValue = ValueFlow::TrackNode<ClassDefinition>::track/1;
|
||||||
|
|
||||||
|
predicate trackFunctionValue = ValueFlow::TrackNode<Function>::track/1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds if `moduleName` appears to start with a package name, as opposed to a relative file import.
|
* Holds if `moduleName` appears to start with a package name, as opposed to a relative file import.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -4,8 +4,6 @@ private import semmle.javascript.internal.UnderlyingTypes
|
|||||||
private import semmle.javascript.dataflow.internal.sharedlib.SummaryTypeTracker as SummaryTypeTracker
|
private import semmle.javascript.dataflow.internal.sharedlib.SummaryTypeTracker as SummaryTypeTracker
|
||||||
|
|
||||||
module TypeResolution {
|
module TypeResolution {
|
||||||
predicate trackClassValue = ValueFlow::TrackNode<ClassDefinition>::track/1;
|
|
||||||
|
|
||||||
predicate trackType = TypeFlow::TrackNode<TypeDefinition>::track/1;
|
predicate trackType = TypeFlow::TrackNode<TypeDefinition>::track/1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -24,8 +22,6 @@ module TypeResolution {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
predicate trackFunctionValue = ValueFlow::TrackNode<Function>::track/1;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the representative for the type containing the given member.
|
* Gets the representative for the type containing the given member.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user