-
Notifications
You must be signed in to change notification settings - Fork 72
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(diagnostics): unused expression result detector #622
Conversation
3919db5
to
25ebe98
Compare
df95222
to
bbaa68c
Compare
6a258b3
to
d865972
Compare
impl AstVisitor<'_> { | ||
fn visit_node(&self, node: &Node<Expr>, state: &mut VisitorState) { | ||
let expression = node.inner(); | ||
// println!("\n{} visit_node: {expression:#?}", state.level); |
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.
Reminder: All // println!(...
lines should be be deleted before merging.
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 looks reasonable from a high level. I'm glad the unused_expression_checker
was kept separate from the main compiler, that should hopefully keep it more maintainable.
https://datadoghq.atlassian.net/browse/OPW-92
Summary
Testing plan