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

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

Open
dabrahams opened this issue Jan 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@dabrahams
Copy link
Contributor

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.

@dabrahams dabrahams added the enhancement New feature or request label Jan 30, 2024
@ahoppen
Copy link
Member

ahoppen commented Jan 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants