exprType method

ExprTypeContext exprType()

Implementation

ExprTypeContext exprType() {
  dynamic _localctx = ExprTypeContext(context, state);
  enterRule(_localctx, 38, RULE_exprType);
  try {
    state = 158;
    errorHandler.sync(this);
    switch (interpreter!.adaptivePredict(tokenStream, 6, context)) {
    case 1:
      enterOuterAlt(_localctx, 1);
      state = 151;
      pairType();
      break;
    case 2:
      enterOuterAlt(_localctx, 2);
      state = 152;
      idType();
      break;
    case 3:
      enterOuterAlt(_localctx, 3);
      state = 153;
      vecType();
      break;
    case 4:
      enterOuterAlt(_localctx, 4);
      state = 154;
      optType();
      break;
    case 5:
      enterOuterAlt(_localctx, 5);
      state = 155;
      variantType();
      break;
    case 6:
      enterOuterAlt(_localctx, 6);
      state = 156;
      recordType();
      break;
    case 7:
      enterOuterAlt(_localctx, 7);
      state = 157;
      refType();
      break;
    }
  } on RecognitionException catch (re) {
    _localctx.exception = re;
    errorHandler.reportError(this, re);
    errorHandler.recover(this, re);
  } finally {
    exitRule();
  }
  return _localctx;
}