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

Implement support for synthetic paths #414

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Implement support for synthetic paths #414

wants to merge 7 commits into from

Conversation

mcy
Copy link
Member

@mcy mcy commented Jan 6, 2025

This PR adds functions to ast.Nodes for creating synthetic paths, which are backed by a synthetic token tree containing (<the path>).

The implementation is somewhat more complicated than I had originally planned, mostly because of a need to support Path.Split on synthetic paths (panicking in this case felt very rude).

@mcy mcy requested a review from jhump January 6, 2025 21:46
experimental/ast/path.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants