public override Func <Context, ITerm> VisitTerm_llcid([NotNull] FullSimpleParser.Term_llcidContext context) { var v = context.LCID().GetText(); var info = context.GetFileInfo(); var type = _typeVisitor.Visit(context.type()); var term = Visit(context.term()); return(ctx => { var ctx1 = ctx.AddName(v); return new Abs(info, v, type(ctx), term(ctx1)); }); }
/// <summary> /// Visit a parse tree produced by the <c>term_llcid</c> /// labeled alternative in <see cref="FullSimpleParser.term"/>. /// <para> /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> /// on <paramref name="context"/>. /// </para> /// </summary> /// <param name="context">The parse tree.</param> /// <return>The visitor result.</return> public virtual Result VisitTerm_llcid([NotNull] FullSimpleParser.Term_llcidContext context) { return(VisitChildren(context)); }