Scope

io.joern.jssrc2cpg.datastructures.Scope
See theScope companion object
class Scope

Handles the scope stack for tracking identifier to variable relation.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def addVariable(variableName: String, variableNode: NewNode, scopeType: ScopeType): Unit
def addVariableReference(variableName: String, referenceNode: NewNode): Unit
def isEmpty: Boolean
def popScope(): Unit
def pushNewBlockScope(scopeNode: NewNode): Unit
def pushNewMethodScope(methodFullName: String, name: String, scopeNode: NewNode, capturingRefId: Option[NewNode]): Unit
def resolve(unresolvedHandler: (NewNode, String) => (NewNode, ScopeType)): Iterator[ResolvedReference]