Пример #1
0
        public FunctionNode(LeafParser.Function_implContext ctx)
        {
            Line        = ctx.Start.Line;
            _returnType = TypeNode.Create(ctx.type());
            Parameters  = ctx.parameter_def().ArraySelect(p
                                                          => new ParameterNode(p.Id().GetText(), TypeNode.Create(p.type())));

            Scope = new ScopeNode(ctx.function_scope());
        }
Пример #2
0
		public OperatorNode(LeafParser.Function_implContext ctx) : base(ctx) {}
Пример #3
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="LeafParser.function_impl"/>.
 /// <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 VisitFunction_impl([NotNull] LeafParser.Function_implContext context)
 {
     return(VisitChildren(context));
 }