Variable
- When calling `replace(Statement, Statement)`, if we hit the `variableAssignment` replacement check, first check and ensure it is not null`, try
This commit is contained in:
parent
220e4789c4
commit
239832a74a
|
@ -508,11 +508,16 @@ public class Variable : TypedEntity, MStatementSearchable, MStatementReplaceable
|
||||||
assignment = cast(VariableAssignment)that;
|
assignment = cast(VariableAssignment)that;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
/* Recurse on the variable assignment */
|
/* Recurse on the variable assignment (if there is one) */
|
||||||
else
|
else if(assignment !is null)
|
||||||
{
|
{
|
||||||
return assignment.replace(thiz, that);
|
return assignment.replace(thiz, that);
|
||||||
}
|
}
|
||||||
|
/* Exhausted all possibilities */
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue