swiftlang / swiftlang/swift-syntax

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

Open
#2,448 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.