scanName method

Token scanName(
  1. int x
)

Implementation

Token scanName(int x) {
  while (true) {
    if (x == char.BACKSLASH) return scanComplexName(x);
    if (!isNamePart(x)) {
      Token tok = emitValueToken(Token.NAME);
      tok.value = tok.text;
      return tok..binaryPrecedence = Precedence.RELATIONAL;
    }
    x = next();
  }
}