Esempio n. 1
0
        public override Func <Context, IBinding> VisitTybinder_type([NotNull] FullSimpleParser.Tybinder_typeContext context)
        {
            if (context.type() != null)
            {
                var type = _typeVisitor.Visit(context.type());

                return(ctx => new TypeAbbBind(type(ctx)));
            }

            return(_ => new TypeVarBind());
        }
 /// <summary>
 /// Visit a parse tree produced by the <c>tybinder_type</c>
 /// labeled alternative in <see cref="FullSimpleParser.tybinder"/>.
 /// <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 VisitTybinder_type([NotNull] FullSimpleParser.Tybinder_typeContext context)
 {
     return(VisitChildren(context));
 }