Esempio n. 1
0
 // If you need to visit all SyntaxNodes of a particular (derived) type that appears directly
 // in a syntax tree, you can override the Visit* mehtod corresponding to this type.
 // For example, you can override VisitIfStatement to visit all SyntaxNodes of type IfStatementSyntax.
 public override void VisitIfStatement(IfStatementSyntax node)
 {
     Results.AppendLine();
     Results.Append("Visiting ");
     Results.Append(node.GetType().Name);
     Results.Append(" (Kind = ");
     Results.Append(node.CSharpKind().ToString());
     Results.Append("): ");
     Results.Append(node.ToString());
     base.VisitIfStatement(node);
 }