actor method
Implementation
ActorContext actor() {
dynamic _localctx = ActorContext(context, state);
enterRule(_localctx, 58, RULE_actor);
int _la;
try {
state = 293;
errorHandler.sync(this);
switch (interpreter!.adaptivePredict(tokenStream, 28, context)) {
case 1:
enterOuterAlt(_localctx, 1);
state = 259;
match(TOKEN_T__36);
state = 261;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
if ((((_la) & ~0x3f) == 0 && ((1 << _la) & 2199158521854) != 0)) {
state = 260;
idType();
}
state = 263;
match(TOKEN_T__23);
state = 267;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
if (_la == TOKEN_T__32) {
state = 264;
tupleType();
state = 265;
match(TOKEN_T__22);
}
state = 269;
actorType();
state = 273;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
while (_la == TOKEN_T__29) {
state = 270;
match(TOKEN_T__29);
state = 275;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
}
break;
case 2:
enterOuterAlt(_localctx, 2);
state = 276;
match(TOKEN_T__36);
state = 278;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
if ((((_la) & ~0x3f) == 0 && ((1 << _la) & 2199158521854) != 0)) {
state = 277;
idType();
}
state = 280;
match(TOKEN_T__23);
state = 284;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
if (_la == TOKEN_T__32) {
state = 281;
tupleType();
state = 282;
match(TOKEN_T__22);
}
state = 286;
idType();
state = 290;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
while (_la == TOKEN_T__29) {
state = 287;
match(TOKEN_T__29);
state = 292;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
}
break;
}
} on RecognitionException catch (re) {
_localctx.exception = re;
errorHandler.reportError(this, re);
errorHandler.recover(this, re);
} finally {
exitRule();
}
return _localctx;
}