packageStatement method

PackageStatementContext packageStatement()

Implementation

PackageStatementContext packageStatement() {
  dynamic _localctx = PackageStatementContext(context, state);
  enterRule(_localctx, 8, RULE_packageStatement);
  int _la;
  try {
    enterOuterAlt(_localctx, 1);
    state = 149;
    errorHandler.sync(this);
    _la = tokenStream.LA(1)!;
    while ((((_la) & ~0x3f) == 0 && ((BigInt.one << _la) & ((BigInt.one << TOKEN_DOC_LINE_COMMENT) | (BigInt.one << TOKEN_LINE_COMMENT) | (BigInt.one << TOKEN_DOC_MULTI_COMMENT) | (BigInt.one << TOKEN_MULTI_COMMENT))) != BigInt.zero)) {
      state = 146;
      comment();
      state = 151;
      errorHandler.sync(this);
      _la = tokenStream.LA(1)!;
    }
    state = 152;
    match(TOKEN_PACKAGE);
    state = 153;
    fullIdent();
    state = 154;
    match(TOKEN_SEMI);
  } on RecognitionException catch (re) {
    _localctx.exception = re;
    errorHandler.reportError(this, re);
    errorHandler.recover(this, re);
  } finally {
    exitRule();
  }
  return _localctx;
}