swiftlang/swift-syntax

All syntax nodes should have a `.text` property exposing the corresponding program text (sans trivia)

dabrahams opened this issue · 1 comments

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.

Tracked in Apple’s issue tracker as rdar://121941021