mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
d41eedcbf6
Based on the feedbacks from our early adopters, separating syntax tree analysis with transformation is a common pattern. Thus, we introduce a read-only syntax tree visitor to help the analysis phase. This visitor never alters the content of a tree being visited, in contrast to SyntaxRewriter which always does.