public void Accept(ITokenVisitor visitor) { LineStart.Token start = new LineStart.Token(1); LineEnd.Token end = new LineEnd.Token(1); foreach(Line line in lines) { visitor.Visit(start); start++; line.Accept(visitor); visitor.Visit(end); end++; } }
public void Accept(ITokenVisitor visitor) { LineStart.Token start = new LineStart.Token(1); LineEnd.Token end = new LineEnd.Token(1); foreach (Line line in lines) { visitor.Visit(start); start++; line.Accept(visitor); visitor.Visit(end); end++; } }
public override void Accept(ITokenVisitor visitor) { visitor.Visit(this); }
public void Accept(ITokenVisitor visitor) { visitor.Visit(this); }
internal override void Accept(ITokenVisitor visitor) { visitor.Visit(this); }
public virtual TVisistorReturnType Accept <TVisistorReturnType>(ITokenVisitor <TVisistorReturnType> visitor) => visitor.Visit <TToken>(this as TToken);