handleSimpleInterpolation method

void handleSimpleInterpolation(
  1. InterpolationExpression node
)

Implementation

void handleSimpleInterpolation(InterpolationExpression node) {
  var index = arguments.indexOf(node.expression.toString());
  if (index == -1) {
    throw new IntlMessageExtractionException(
        "Cannot find argument ${node.expression}");
  }
  pieces.add(index);
}