public override Expression Scan(ParseEngine engine) { var start = engine.Pointer; var kw = new ReturnKeyword(engine.CurrentLine, engine.CurrentColumn, engine.Query); engine.Advance(Token.Length); kw.Body = engine.ParseStatement(); kw.Body.IsMuted = false; kw.Length = engine.Pointer - start; return kw; }
public override Expression Scan(ParseEngine engine) { var start = engine.Pointer; var kw = new ReturnKeyword(engine.CurrentLine, engine.CurrentColumn, engine.Query); engine.Advance(Token.Length); kw.Body = engine.ParseStatement(); kw.Body.IsMuted = false; kw.Length = engine.Pointer - start; return(kw); }