Class SSA::Ssa::SourceVariable

A variable that can be SSA converted.

Either a local scope variable (SourceVariables::LocalScopeSourceVariable) or a fully qualified field or property (SourceVariables::FieldOrPropSourceVariable), q.fp1.fp2....fpn, where the base qualifier q is either this, a local scope variable, or a type in case fp1 is static.

Direct supertypes

Known direct subtypes

Predicates

getADefinition

Gets a definition of this source variable.

getAnAccess

Gets an access to this source variable.

getAnSsaDefinition

Gets an SSA definition that has this variable as its underlying source variable.

getAssignable

Gets the assignable corresponding to this source variable. Either a local scope variable, a field, or a property.

getEnclosingCallable

Gets the callable in which this source variable is defined.

getLocation

Gets the location of this source variable.

getQualifier

Gets the qualifier of this source variable, if any.

getType

Gets the type of this source variable.

isCaptured

Holds if this variable is captured by a nested callable.

toString

Gets a textual representation of this source variable.