visitInterpolationExpression method
dynamic
visitInterpolationExpression(
- InterpolationExpression node
override
Implementation
visitInterpolationExpression(InterpolationExpression node) {
// TODO(alanknight): Provide better errors for malformed expressions.
if (!looksLikePluralOrGender(node.expression)) return;
var reason = checkValidity(node.expression as MethodInvocation?);
if (reason != null) throw reason;
var message =
messageFromMethodInvocation(node.expression as MethodInvocation);
foundPluralOrGender = true;
pieces.add(message);
super.visitInterpolationExpression(node);
}