Skip to content

Update for statement tests #224

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

Merged
merged 2 commits into from
Mar 17, 2023
Merged

Update for statement tests #224

merged 2 commits into from
Mar 17, 2023

Conversation

rnkaufman
Copy link
Contributor

Updates for statement rules + tests.

Fixes #221.

Thank you @robrix for showing me the way with this one 💪🏻

@rnkaufman rnkaufman requested a review from a team as a code owner March 15, 2023 19:45
@rnkaufman rnkaufman added the java label Mar 15, 2023
Copy link
Collaborator

@hendrikvanantwerpen hendrikvanantwerpen left a comment

Choose a reason for hiding this comment

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

Minor comment, but otherwise :shipit:

@@ -570,27 +570,56 @@ attribute node_symbol = node => symbol = (source-text node), source_n
type: (_) @type
declarator: (variable_declarator
name: (_) @name
Copy link
Collaborator

Choose a reason for hiding this comment

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

You could remove name here, I think.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just checked - yup, the tests still pass, thanks for catching that we don't need this one anymore 😄 Pushed an update.

@rnkaufman rnkaufman merged commit ba57851 into main Mar 17, 2023
@rnkaufman rnkaufman deleted the java-comma-for-loop branch March 17, 2023 18:37
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.

Java TSG: Comma operator in for loop breaks TSG rule
2 participants