private bool ApplyAssignmentLine(AssignmentExpression expression, CodeContext codeContext)
{
bool succeeded = false;
string leftOfEquals = expression.Left.GetText();
string rightOfEquals = expression.Right.GetText();
// Eventually we'll want to get rid of this, but a lot of the code parsing
// expects there to be no "this.", so let's get rid of this.:
if (leftOfEquals.StartsWith("this."))
{
leftOfEquals = leftOfEquals.Substring("this.".Length);
}
string newVariableDeclarationType = null;
// I don't know if this if statement can possibly evaluate to true anymore...
if (leftOfEquals.Contains(' '))
{
newVariableDeclarationType = leftOfEquals.Substring(0, leftOfEquals.IndexOf(' '));
leftOfEquals = leftOfEquals.Substring(leftOfEquals.IndexOf(' ') + 1, leftOfEquals.Length - (leftOfEquals.IndexOf(' ') + 1));
}
succeeded = ApplyAssignment(codeContext, leftOfEquals, rightOfEquals, newVariableDeclarationType, expression.Operator);
return succeeded;
}