Node.brace constructor

Node.brace(
  1. int positionInMessage,
  2. String value
)

Implementation

Node.brace(this.positionInMessage, String this.value) {
  if (value == '{') {
    type = ST.openBrace;
  } else if (value == '}') {
    type = ST.closeBrace;
  } else {
    // We should never arrive here.
    throw L10nException('Provided value $value is not a brace.');
  }
}