Exemple #1
0
        public override Func <Context, IBinding> VisitBinder_type([NotNull] FullSimpleParser.Binder_typeContext context)
        {
            var type = _typeVisitor.Visit(context.type());

            return(ctx => new VarBind(type(ctx)));
        }
 /// <summary>
 /// Visit a parse tree produced by the <c>binder_type</c>
 /// labeled alternative in <see cref="FullSimpleParser.binder"/>.
 /// <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 VisitBinder_type([NotNull] FullSimpleParser.Binder_typeContext context)
 {
     return(VisitChildren(context));
 }