SimpleSelector replacement = interpolateEscapedSelector((EscapedSelector) node, expressionEvaluator);
manipulator.replaceAndSynchronizeSilentness(node, replacement);
return true;
}
case FIXED_NAME_PART: {
FixedNamePart part = (FixedNamePart) node;
FixedNamePart replacement = interpolateFixedNamePart(part, expressionEvaluator);
manipulator.replaceMemberAndSynchronizeSilentness(part, replacement);
return true;
}
case VARIABLE_NAME_PART: {
VariableNamePart part = (VariableNamePart) node;
Expression value = expressionEvaluator.evaluate(part.getVariable());
FixedNamePart fixedName = toFixedName(value, node.getUnderlyingStructure(), part);
FixedNamePart replacement = interpolateFixedNamePart(fixedName, expressionEvaluator);
manipulator.replaceMemberAndSynchronizeSilentness(part, replacement);
return true;
}
default: // nothing
}