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

Remove redundant id check on function call #164

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

Lai-YT
Copy link
Collaborator

@Lai-YT Lai-YT commented Jun 20, 2024

This PR addressed the redundant id check issue mentioned in #163, as whether the id is declared or not is already checked by the visit function of IdExprNode.

Additionally, I renamed a parameter that had confused me. We use abbreviations of AST node types for parameters in the visit function. However, the parameter for RecordVarDeclNode violates this convention, which caused confusion and made it seem like I was looking at the visit function for RecordDeclNode.

This check is redundant because it is already performed by the visit
function of `IdExprNode`.
We use abbreviations of AST node types for parameters in the visit
function. However, the parameter for `RecordVarDeclNode` violates this
convention, which caused confusion and made it seem like I was looking
at the visit function for `RecordDeclNode`.
@Lai-YT Lai-YT requested a review from leewei05 June 20, 2024 01:35
@Lai-YT Lai-YT self-assigned this Jun 20, 2024
Copy link
Contributor

@leewei05 leewei05 left a comment

Choose a reason for hiding this comment

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

🚀

@leewei05 leewei05 merged commit 228b28b into fruits-lab:main Jun 20, 2024
4 checks passed
@Lai-YT Lai-YT deleted the remove-redundant-id-check branch June 20, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants