CSharpScope

io.joern.csharpsrc2cpg.datastructures.CSharpScope
class CSharpScope extends Scope[String, DeclarationNew, ScopeType]

Attributes

Graph
Supertypes
class Scope[String, DeclarationNew, ScopeType]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def isTopLevel: Boolean

Attributes

Returns

true if the scope is currently on the top-level, false if the scope is within some nested scope.

def surroundingScopeFullName: Option[String]

Attributes

Returns

the full name of the surrounding scope.

def surroundingTypeDeclFullName: Option[String]

Attributes

Returns

the surrounding type declaration if one exists.

def tryResolveMethodInvocation(typeFullName: String, callName: String): Option[String]
def tryResolveTypeReference(typeName: String): Option[String]

Inherited methods

def addToScope(identifier: String, variable: DeclarationNew): S

Attributes

Inherited from:
Scope
def isEmpty: Boolean

Attributes

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

Attributes

Inherited from:
Scope
def popScope(): Option[S]

Attributes

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

Attributes

Inherited from:
Scope
def size: Int

Attributes

Inherited from:
Scope