Scope

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

Handles the scope stack for tracking identifier to variable relation.

Attributes

I

Identifier type.

S

Scope type.

V

Variable type.

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

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]]