// This test relies on the type optimizer having replaced add commands
// with numeric add commands.
if (expression instanceof AAddExpression) {
// Replace: <?cs var:a + b ?>
// with: <?cs var:a ?><?cs var:b ?>
AAddExpression addExpression = (AAddExpression) expression;
AMultipleCommand multiCommand = new AMultipleCommand();
addToContents(multiCommand, optimizedVarCommandOf(position, addExpression.getLeft()));
addToContents(multiCommand, optimizedVarCommandOf(position, addExpression.getRight()));
return optimizeEscapeSequences(multiCommand);
}
// This test relies on the sequence optimizer removing single element
// sequence commands.