parseRawName method

StreamChar parseRawName()

Implementation

StreamChar parseRawName() {
  String lexeme = '';
  int offset = 0;
  StreamChar start = peek();
  String next = start.lexeme;
  while (alphanum.hasMatch(next)) {
    lexeme = next;
    next += peek(offset: ++offset).lexeme;

    // At EOF [parse] is the empty char ('').
    if (lexeme == next) {
      break;
    }
  }

  if (lexeme.isNotEmpty) {
    curr += lexeme.length;
  }

  return start.copy(lexeme: lexeme);
}