Example #1
0
        private Function CreateAnonFunction(PParser.NoParamAnonEventHandlerContext context)
        {
            var fun = new Function(context)
            {
                Owner = CurrentMachine,
                Scope = CurrentScope.MakeChildScope()
            };

            nodesToDeclarations.Put(context, fun);
            return(fun);
        }
Example #2
0
 public override object VisitNoParamAnonEventHandler(PParser.NoParamAnonEventHandlerContext context)
 {
     return(Visit(context.functionBody()));
 }