Skip to content

Implement support for synthetic paths#414

Merged
mcy merged 5 commits intomainfrom
mcy/synth-path
Apr 22, 2025
Merged

Implement support for synthetic paths#414
mcy merged 5 commits intomainfrom
mcy/synth-path

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
@mcy mcy requested a review from emcfarlane February 3, 2025 20:32
@mcy mcy requested a review from emcfarlane February 28, 2025 19:38
@mcy mcy force-pushed the mcy/synth-path branch from d5e0bdc to 746b88a Compare April 22, 2025 20:03
@mcy mcy enabled auto-merge (squash) April 22, 2025 20:04
@mcy mcy merged commit 5500784 into main Apr 22, 2025
6 checks passed
@mcy mcy deleted the mcy/synth-path branch April 22, 2025 20:06
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