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

Represent toplevel comments in the AST #406

Open
BinderDavid opened this issue Dec 4, 2024 · 0 comments
Open

Represent toplevel comments in the AST #406

BinderDavid opened this issue Dec 4, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@BinderDavid
Copy link
Collaborator

Comments which are not doc comments are currently discarded during the lexing phase and not represented in the AST. This choice has one important downside: The comments are deleted if we perform de/-refunctionalization or use the code formatter. But toplevel comments are important in tutorials and examples, and we should guarantee that they are preserved during xfunc.

@BinderDavid BinderDavid added enhancement New feature or request good first issue Good for newcomers labels Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant