Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterate code snippet includes transformation code #41762

Open
BillWagner opened this issue Jul 15, 2024 · 0 comments
Open

Iterate code snippet includes transformation code #41762

BillWagner opened this issue Jul 15, 2024 · 0 comments
Labels
doc-enhancement Improve the current content [org][type][category] dotnet-csharp/svc Pri2 roslyn-sdk/subsvc

Comments

@BillWagner
Copy link
Member

Type of issue

Other (describe below)

Description

The code that shows how to iterate a syntax tree includes code that transforms the tree, which is described in the next paragraph.

For the sample, we should likely just duplicate the outer foreach loop so the snippet can be rendered correctly. Maybe even consider a #if DEBUG around it so it doesn't execute the loop twice when people download and try the sample.

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/get-started/syntax-transformation

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/roslyn-sdk/get-started/syntax-transformation.md

Document Version Independent Id

5f1f64a1-9d23-0010-b505-d3874041f8f2

Article author

@BillWagner

Metadata

  • ID: 442d453e-38dd-ed79-741c-813429a41822
  • Service: dotnet-csharp
  • Sub-service: roslyn-sdk
@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label Jul 15, 2024
@BillWagner BillWagner added the doc-enhancement Improve the current content [org][type][category] label Jul 15, 2024
@dotnet-bot dotnet-bot removed the ⌚ Not Triaged Not triaged label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-enhancement Improve the current content [org][type][category] dotnet-csharp/svc Pri2 roslyn-sdk/subsvc
Projects
None yet
Development

No branches or pull requests

2 participants