Scope

io.shiftleft.js2cpg.datastructures.scope.Scope
class Scope

Handles the scope stack for tracking identifier to variable relation.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def addVariable(variableName: String, variableNode: NewNode, scopeType: ScopeType): Unit
def addVariableReference(variableName: String, referenceNode: NewNode): Unit
def getScopeHead: Option[ScopeElement]
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]