-
Notifications
You must be signed in to change notification settings - Fork 43
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
Conversation
} | ||
|
||
#[derive(Debug, Clone)] | ||
pub struct SymbolMember { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
#[derive(Clone, Copy)] | ||
pub struct CapturingModuleParser<'a> { | ||
parser: Option<&'a dyn ModuleParser>, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Waiting on #317This 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.