public ExprListExpression(LuaParser.ExplistContext tree, ScriptLoadingContext lcontext) : base(tree, lcontext) { expressions = tree.children .Select(t => NodeFactory.CreateExpression(t, lcontext)) .Where(e => e != null) .ToArray(); }
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()); } }
public void EnterExplist([NotNull] LuaParser.ExplistContext context) { throw new NotImplementedException(); }
public virtual void ExitExplist([NotNull] LuaParser.ExplistContext context) { }
public virtual Result VisitExplist([NotNull] LuaParser.ExplistContext context) { return(VisitChildren(context)); }
public void EnterExplist([NotNull] LuaParser.ExplistContext context) => DefaultEnter(context);
public void ExitExplist([NotNull] LuaParser.ExplistContext context) => DefaultExit(context);