Open sandboxFocus

Method GetPossibleAssignments

GetPossibleAssignments()

Returns an array of all possible assignments of the ILocalVariable at this specific point of the program execution.

Declaration
IList<IExpression> GetPossibleAssignments()
Returns
Type Description
IList<IExpression>

List of possible assignments.

Remarks

The result list contains either assignment expressions (IBinaryExpression) or IAddressOfExpression when the address of the variable is passed to a method through a reference argument.

Result of this method is cached.