Scope

io.joern.x2cpg.datastructures.Scope
class Scope[I, V, S]

Handles the scope stack for tracking identifier to variable relation.

Type parameters

I

Identifier type.

S

Scope type.

V

Variable type.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def addToScope(identifier: I, variable: V): S
def isEmpty: Boolean
def lookupVariable(identifier: I): Option[V]
def popScope(): Option[S]
def pushNewScope(scopeNode: S): Unit

Concrete fields

protected var stack: List[ScopeElement[I, V, S]]