Пример #1
0
 public ExprListExpression(LuaParser.ExplistContext tree, ScriptLoadingContext lcontext)
     : base(tree, lcontext)
 {
     expressions = tree.children
                   .Select(t => NodeFactory.CreateExpression(t, lcontext))
                   .Where(e => e != null)
                   .ToArray();
 }
Пример #2
0
        public ReturnStatement(LuaParser.RetstatContext context, ScriptLoadingContext lcontext)
            : base(context, lcontext)
        {
            LuaParser.ExplistContext expr = context.children.FirstOrDefault(t => t is LuaParser.ExplistContext) as LuaParser.ExplistContext;

            if (expr != null)
            {
                m_Expression = NodeFactory.CreateExpression(expr, lcontext);
                m_Ref        = BuildSourceRef(context.Start, expr.Stop);
            }
            else
            {
                m_Ref = BuildSourceRef(context.Start, context.RETURN());
            }
        }
Пример #3
0
 public void EnterExplist([NotNull] LuaParser.ExplistContext context)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 public virtual void ExitExplist([NotNull] LuaParser.ExplistContext context)
 {
 }
Пример #5
0
 public virtual Result VisitExplist([NotNull] LuaParser.ExplistContext context)
 {
     return(VisitChildren(context));
 }
Пример #6
0
 public void EnterExplist([NotNull] LuaParser.ExplistContext context) => DefaultEnter(context);
Пример #7
0
 public void ExitExplist([NotNull] LuaParser.ExplistContext context) => DefaultExit(context);