id method
Implementation
IdContext id() {
dynamic _localctx = IdContext(context, state);
enterRule(_localctx, 60, RULE_id);
try {
state = 299;
errorHandler.sync(this);
switch (tokenStream.LA(1)!) {
case TOKEN_IDENTIFIER:
enterOuterAlt(_localctx, 1);
state = 295;
match(TOKEN_IDENTIFIER);
break;
case TOKEN_T__26:
enterOuterAlt(_localctx, 2);
state = 296;
match(TOKEN_T__26);
state = 297;
match(TOKEN_IDENTIFIER);
state = 298;
match(TOKEN_T__26);
break;
default:
throw NoViableAltException(this);
}
} on RecognitionException catch (re) {
_localctx.exception = re;
errorHandler.reportError(this, re);
errorHandler.recover(this, re);
} finally {
exitRule();
}
return _localctx;
}