ContextStack

io.joern.pysrc2cpg.ContextStack
See theContextStack companion object
class ContextStack

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def addGlobalVariable(name: String): Unit
def addNonLocalVariable(name: String): Unit
def addParameter(parameter: NewMethodParameterIn): Unit
def addSpecialVariable(local: NewLocal): Unit
def addVariableReference(identifier: NewIdentifier, memOp: MemoryOperation): Unit
def astParent: NewNode
def considerAsGlobalVariable(lhs: NewNode): Unit

Assignments to variables on the module-level may be exported to other modules and behave as inter-procedurally global variables.

Assignments to variables on the module-level may be exported to other modules and behave as inter-procedurally global variables.

Value parameters

lhs

the LHS node of an assignment

Attributes

def findEnclosingTypeDecl(): Option[NewNode]
def isClassContext: Boolean
def pop(): Unit
def pushClass(scopeName: Option[String], classNode: NewTypeDecl): Unit
def pushMethod(scopeName: Option[String], methodNode: NewMethod, methodBlockNode: NewBlock, methodRefNode: Option[NewMethodRef]): Unit
def pushSpecialContext(): Unit
def qualName: String
def setFileNamespaceBlock(namespaceBlock: NewNamespaceBlock): Unit