Skip to content

Implement Copy trait on AstNode#70

Open
WindSoilder wants to merge 7 commits intonushell:mainfrom
WindSoilder:push-srrsqossvquk
Open

Implement Copy trait on AstNode#70
WindSoilder wants to merge 7 commits intonushell:mainfrom
WindSoilder:push-srrsqossvquk

Conversation

@WindSoilder
Copy link
Copy Markdown
Contributor

@WindSoilder WindSoilder commented May 6, 2026

I noted there is a to do comment about AstNode:

// TODO: All nodes with Vec<...> should be moved to their own ID (like BlockId) to allow Copy trait

This pr is going to implement it.

To be honest I'm not really sure if it's intended, because it introduces some indirection. But I think it addresses comment from #68 (comment) to introduce some helper functions to Compiler, so we can use it in a better way.

@WindSoilder WindSoilder requested a review from kubouch May 6, 2026 08:17
@WindSoilder WindSoilder force-pushed the push-srrsqossvquk branch from bbf664c to 91f758c Compare May 6, 2026 08:18
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.

1 participant