line method
Implementation
LineContext line() {
dynamic _localctx = LineContext(context, state);
enterRule(_localctx, 2, RULE_line);
int _la;
try {
state = 35;
errorHandler.sync(this);
switch (tokenStream.LA(1)!) {
case TOKEN_KEY:
case TOKEN_COMMENT:
enterOuterAlt(_localctx, 1);
state = 23;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
while (_la == TOKEN_COMMENT) {
state = 18;
comment();
state = 19;
match(TOKEN_NEWLINE);
state = 25;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
}
state = 26;
key();
state = 27;
match(TOKEN_T__0);
state = 29;
errorHandler.sync(this);
switch (interpreter!.adaptivePredict(tokenStream, 2, context)) {
case 1:
state = 28;
value();
break;
}
state = 32;
errorHandler.sync(this);
switch (interpreter!.adaptivePredict(tokenStream, 3, context)) {
case 1:
state = 31;
comment();
break;
}
break;
case TOKEN_NEWLINE:
enterOuterAlt(_localctx, 2);
state = 34;
match(TOKEN_NEWLINE);
break;
default:
throw NoViableAltException(this);
}
} on RecognitionException catch (re) {
_localctx.exception = re;
errorHandler.reportError(this, re);
errorHandler.recover(this, re);
} finally {
exitRule();
}
return _localctx;
}