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

Consider unused parameters with mix of predicate & action #1

Open
hildjj opened this issue Jul 14, 2022 · 0 comments
Open

Consider unused parameters with mix of predicate & action #1

hildjj opened this issue Jul 14, 2022 · 0 comments
Assignees

Comments

@hildjj
Copy link
Collaborator

hildjj commented Jul 14, 2022

With this grammar:

{{
const ONE = Symbol("one");
}}
{
const NUM_T = options.numT ?? 2;
}
foo
  = o:$"o"+ t:$"t"+ &{ return t.length > NUM_T; } !{ return o.length > NUM_T; } {
    return ONE;
  }

o and t show up as unused, because they're not used in the action.

@hildjj hildjj self-assigned this Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant