ILocalVariableExpression Interface |
Expression that represents a local variable.
Namespace: PostSharp.Reflection.MethodBody
Assembly: PostSharp (in PostSharp.dll) Version: 6.9.11.0 (6.9.11.0)
C#
public interface ILocalVariableExpression : IExpression, IMethodBodyElement
The ILocalVariableExpression type exposes the following members.
Name | Description | |
---|---|---|
LocalVariable |
Gets the local variable.
| |
MethodBodyElementKind |
Gets the kind of syntax element.
(Inherited from IMethodBodyElement.) | |
ParentElement |
Gets the parent element in the tree.
(Inherited from IMethodBodyElement.) | |
ParentMethodBody |
Gets the parent method body.
(Inherited from IMethodBodyElement.) | |
ReturnType |
Gets the type of the return value of the current expression,
or Void if the expression does not return anything (i.e. for pure instructions, for instance a goto
or throw instruction).
(Inherited from IExpression.) | |
TrivialValue |
Gets the value of the ILocalVariable at this specific point of the program execution, in case this value
can be determined trivially.
|
Name | Description | |
---|---|---|
GetPossibleAssignments |
Returns an array of all possible assignments of the ILocalVariable at this specific point of the program execution.
|