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

Multiple predicates #92

Closed

Conversation

DavidSeptimus-Klotho
Copy link

This PR is an initial attempt at resolving an issue where multiple predicates an a query results in a panic.

In Klotho, we see the following error:

 error [err 0] Error constructing query for (class_declaration body:
  (declaration_list (
                      (method_declaration
                        name : (_) @method_name (#eq? @method_name "Configure")
                        parameters: (parameter_list (
                                                      (parameter
                                                        type: (_) @param_type (#eq? @param_type "IApplicationBuilder")
                                                        name: (_) @param_name
                                                        )
                                                      )
                                      )
                        ) @method_declaration
                      )
    )) @class_declaration: wrong number of arguments to `#eq?` predicate. Expected 2, got 6
 error Klotho compilation failed     

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

Successfully merging this pull request may close these issues.

None yet

3 participants