in backend/src/tools/AgtypeParser.js [133:161]
agValue() {
let localctx = new AgValueContext(this, this._ctx, this.state);
this.enterRule(localctx, 2, AgtypeParser.RULE_agValue);
var _la = 0; // Token type
try {
this.enterOuterAlt(localctx, 1);
this.state = 19;
this.value();
this.state = 21;
this._errHandler.sync(this);
_la = this._input.LA(1);
if (_la === AgtypeParser.T__9) {
this.state = 20;
this.typeAnnotation();
}
} catch (re) {
if (re instanceof antlr4.error.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
} finally {
this.exitRule();
}
return localctx;
}