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

Add support for UnusedMethodCall #18

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

aandresen-slack
Copy link
Contributor

@aandresen-slack aandresen-slack commented Apr 26, 2024

Add support for UnusedMethodCall to the Hakana MustUse attribute.

This required moving over get_methodlike_id_from_call that we implemented for the user migration.

src/analyzer/expr/expression_identifier.rs Outdated Show resolved Hide resolved
src/analyzer/expr/expression_identifier.rs Outdated Show resolved Hide resolved
src/analyzer/expr/expression_identifier.rs Outdated Show resolved Hide resolved
src/analyzer/expr/expression_identifier.rs Outdated Show resolved Hide resolved
src/analyzer/expr/expression_identifier.rs Outdated Show resolved Hide resolved
@@ -213,6 +219,62 @@ pub fn get_functionlike_id_from_call(
}
}

pub fn get_id_from_call(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd prefer making this get_functionlike_id_from_call and then migrating the existing get_functionlike_id_from_call to get_static_functionlike_id_from_call

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok updated all these. I wasn't sure what callers to move over but let me know what you think

@muglug muglug merged commit 604afab into slackhq:main Apr 26, 2024
2 checks passed
@muglug
Copy link
Collaborator

muglug commented Apr 26, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants