code: private LiteralToken nextRegularExpressionLiteralToken() {
      LiteralToken token = scanner.nextRegularExpressionLiteralToken();
      lastSourcePosition = token.location.end;
      return token;
    }
docs: Consumes a regular expression literal token and returns it.