public override void WriteToken(Role role, string token)
        {
            AlTokenNode t = new AlTokenNode(locationProvider.Location, (TokenRole)role);

            t.Role = role;
            EmptyStatement node = nodes.Peek().LastOrDefault() as EmptyStatement;

            if (node == null)
            {
                currentList.Add(t);
            }
            else
            {
                node.Location = locationProvider.Location;
            }
            base.WriteToken(role, token);
        }
Exemple #2
0
 void IAstVisitor.VisitEmptyStatement(EmptyStatement emptyStatement)
 {
     Visit(EnterEmptyStatement, LeaveEmptyStatement, emptyStatement);
 }
 public override void VisitEmptyStatement(EmptyStatement emptyStatement)
 {
     // Empty
 }