Scope

class Scope

Handles the scope stack for tracking identifier to variable relation.

Companion:
object
class Object
trait Matchable
class Any

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]