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

feat(symbols): symbol members #318

Merged
merged 11 commits into from
Nov 6, 2023
Merged

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Nov 3, 2023

Waiting on #317

This is actually going to be mostly rewritten in #322 , but it's easier to land this one first because I have a draft PR inbetween these two.

}

#[derive(Debug, Clone)]
pub struct SymbolMember {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SymbolMember could probably be generalized into Symbol, but it's a little bit challenging with the borrow checker in Rust. I will open a separate PR for that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is actually superceeded by #322 , but this one needs to merge first because it's starting to get very complicated with all these branches I have.

@dsherret dsherret marked this pull request as ready for review November 6, 2023 14:29
@dsherret dsherret requested a review from bartlomieju November 6, 2023 14:29
Comment on lines +145 to 147
#[derive(Clone, Copy)]
pub struct CapturingModuleParser<'a> {
parser: Option<&'a dyn ModuleParser>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these fields internally ref-counted or are these copies/clones expensive?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. This is just clones of some references so very cheap.

@dsherret dsherret merged commit e78db9f into denoland:main Nov 6, 2023
3 checks passed
@dsherret dsherret deleted the symbol_members branch November 6, 2023 16:07
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