mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
JavaScript: Add utility predicate SSA::implicitInit.
This commit is contained in:
@@ -737,6 +737,9 @@ class SsaRefinementNode extends SsaPseudoDefinition, TRefinement {
|
||||
}
|
||||
|
||||
module SSA {
|
||||
/** Gets the SSA definition corresponding to the implicit initialization of `v`. */
|
||||
SsaImplicitInit implicitInit(SsaSourceVariable v) { result.getSourceVariable() = v }
|
||||
|
||||
/** Gets the SSA definition corresponding to `d`. */
|
||||
SsaExplicitDefinition definition(VarDef d) { result.getDef() = d }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user