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 ExitRetstat([NotNull] LuaParser.RetstatContext context) { throw new NotImplementedException(); }
public virtual void EnterRetstat([NotNull] LuaParser.RetstatContext context) { }
public virtual Result VisitRetstat([NotNull] LuaParser.RetstatContext context) { return(VisitChildren(context)); }
public void EnterRetstat([NotNull] LuaParser.RetstatContext context) => DefaultEnter(context);
public void ExitRetstat([NotNull] LuaParser.RetstatContext context) => DefaultExit(context);