-
Notifications
You must be signed in to change notification settings - Fork 623
refactor(semantic): Made enum more encapsulated. #8390
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
refactor(semantic): Made enum more encapsulated. #8390
Conversation
cb8148c
to
e3d6aba
Compare
aa54911
to
911e08d
Compare
911e08d
to
73fed59
Compare
e3d6aba
to
2b9c280
Compare
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.
When you remove the sub-queries you change the calculations of "Has my input changed" (mostly affects LSP performance I assume). It might be better to make EnumDeclerationData / EnumDefinitionData tracked structs
@eytan-starkware reviewed 2 of 3 files at r1, all commit messages.
Reviewable status: 2 of 3 files reviewed, all discussions resolved (waiting on @TomerStarkware)
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.
can't unfortunately - as it requires implementing Hash
for basic elements that probably can't really implement hash.
Reviewable status: 2 of 3 files reviewed, all discussions resolved (waiting on @TomerStarkware)
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.
@eytan-starkware reviewed 1 of 3 files at r1.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @TomerStarkware)
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.
@TomerStarkware reviewed all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @orizi)
crates/cairo-lang-semantic/src/items/enm.rs
line 43 at r1 (raw file):
/// Returns the declaration data of an enum. #[salsa::tracked(returns(ref))]
consider add a wrapper helper function to return as ref once
Code quote:
#[salsa::tracked(returns(ref))]
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @TomerStarkware)
crates/cairo-lang-semantic/src/items/enm.rs
line 43 at r1 (raw file):
Previously, TomerStarkware wrote…
consider add a wrapper helper function to return as ref once
Rather not - too much function multiplicity as it is.
No description provided.