зеркало из https://github.com/github/codeql.git
JavaScript: Add predicate `DataFlow::Node.getTopLevel()`.
This commit is contained in:
Родитель
3e56e9eaf9
Коммит
7e7899faba
|
@ -88,6 +88,9 @@ module DataFlow {
|
|||
/** Gets the container in which this node occurs. */
|
||||
StmtContainer getContainer() { result = getBasicBlock().getContainer() }
|
||||
|
||||
/** Gets the toplevel in which this node occurs. */
|
||||
TopLevel getTopLevel() { result = getContainer().getTopLevel() }
|
||||
|
||||
/**
|
||||
* Holds if this data flow node accesses the global variable `g`, either directly
|
||||
* or through the `window` object.
|
||||
|
|
Загрузка…
Ссылка в новой задаче