Scope

io.joern.php2cpg.utils.Scope
class Scope(implicit nextClosureName: () => String) extends Scope[String, NewNode, PhpScopeElement]

Attributes

Graph
Supertypes
class Scope[String, NewNode, PhpScopeElement]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def addAnonymousMethod(methodAst: Ast): Unit
def addConstOrStaticInitToScope(ast: Ast): Unit
def addFieldInitToScope(ast: Ast): Unit
override def addToScope(identifier: String, variable: NewNode): PhpScopeElement

Attributes

Definition Classes
Scope
def getConstAndStaticInits: List[Ast]
def getEnclosingNamespaceNames: List[String]
def getEnclosingTypeDeclTypeFullName: Option[String]
def getEnclosingTypeDeclTypeName: Option[String]
def getFieldInits: List[Ast]
def getScopedClosureName: String
override def popScope(): Option[PhpScopeElement]

Attributes

Definition Classes
Scope
def pushNewScope(scopeNode: NewNode): Unit

Inherited methods

def isEmpty: Boolean

Attributes

Inherited from:
Scope
def lookupVariable(identifier: String): Option[V]

Attributes

Inherited from:
Scope
def pushNewScope(scopeNode: PhpScopeElement): Unit

Attributes

Inherited from:
Scope