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++; } }