swiftlang / swiftlang/swift-syntax
All syntax nodes should have a `.text` property exposing the corresponding program text (sans trivia)
Open
enhancement
- Dominant language
- Swift
- Stars
- 3.7k
- Forks
- 553
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 16
Description
### Description
Apparently you can use `.description` to the the program text, but in general, one is not supposed to rely on the string representations of things being meaningful. There should be a dedicated API for getting the program text that is documented as such.
Contributor guide
Assessment
This issue has not been assessed yet.