typeAnnotation()

in backend/src/tools/AgtypeParser.js [377:398]


    typeAnnotation() {
        let localctx = new TypeAnnotationContext(this, this._ctx, this.state);
        this.enterRule(localctx, 12, AgtypeParser.RULE_typeAnnotation);
        try {
            this.enterOuterAlt(localctx, 1);
            this.state = 67;
            this.match(AgtypeParser.T__9);
            this.state = 68;
            this.match(AgtypeParser.IDENT);
        } 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;
    }