We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
DataFlow::Node.getTopLevel()
1 parent 3e56e9e commit 7e7899fCopy full SHA for 7e7899f
1 file changed
javascript/ql/src/semmle/javascript/dataflow/DataFlow.qll
@@ -88,6 +88,9 @@ module DataFlow {
88
/** Gets the container in which this node occurs. */
89
StmtContainer getContainer() { result = getBasicBlock().getContainer() }
90
91
+ /** Gets the toplevel in which this node occurs. */
92
+ TopLevel getTopLevel() { result = getContainer().getTopLevel() }
93
+
94
/**
95
* Holds if this data flow node accesses the global variable `g`, either directly
96
* or through the `window` object.
0 commit comments