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

Create proper code mappings for procedural macro results #1647

Open
wawel37 opened this issue Oct 15, 2024 · 0 comments · May be fixed by #1756
Open

Create proper code mappings for procedural macro results #1647

wawel37 opened this issue Oct 15, 2024 · 0 comments · May be fixed by #1756
Assignees
Labels
syn/quote New proc macro API

Comments

@wawel37
Copy link
Contributor

wawel37 commented Oct 15, 2024

After expanding Cairo code with procedural macros, construct code_mappings for new PluginGeneratedFile, between original code span saved in each token of expanded TokenStream and new position in outputted file.

@wawel37 wawel37 added this to Scarb Oct 15, 2024
@wawel37 wawel37 converted this from a draft issue Oct 15, 2024
@wawel37 wawel37 self-assigned this Oct 15, 2024
@maciektr maciektr added this to the Procedural macros milestone Oct 23, 2024
@maciektr maciektr changed the title Calculate proper code mappings for procedural macro results Create proper code mappings for procedural macro results Oct 23, 2024
@maciektr maciektr added the syn/quote New proc macro API label Oct 23, 2024
@maciektr maciektr assigned DelevoXDG and unassigned wawel37 Oct 23, 2024
@DelevoXDG DelevoXDG linked a pull request Nov 20, 2024 that will close this issue
DelevoXDG added a commit that referenced this issue Nov 25, 2024
Tests to be updated when #1647 is merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
syn/quote New proc macro API
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

3 participants