lookForPluralOrGender method

void lookForPluralOrGender(
  1. InterpolationExpression node
)

Implementation

void lookForPluralOrGender(InterpolationExpression node) {
  var visitor = new PluralAndGenderVisitor(
      pieces, message as ComplexMessage?, extraction);
  node.accept(visitor);
  if (!visitor.foundPluralOrGender) {
    throw new IntlMessageExtractionException(
        "Only simple identifiers and Intl.plural/gender/select expressions "
        "are allowed in message "
        "interpolation expressions.\nError at $node");
  }
}