Skip to content

how can we pass double quote in the java tree sitter query language #31

@eankit

Description

@eankit

how can we pass double quote in the java tree sitter query language
currently its giving following errror to me -
upon passing (#eq? @argument ""FG_CODE_CLEAN_FEATURE_FLAG"")
Error - Could not parse the query : "((\n (method_invocation \n name : () @name\n arguments: ((argument_list \n ([\n (field_access field: ()@argument)\n (_) @argument\n ])) )\n \n ) @method_invocation\n)\n(#eq? @name "flagEnabled")\n(#eq? @argument ""FG_CODE_CLEAN_FEATURE_FLAG"")\n)" Some(QueryError { row: 0, column: 0, offset: 0, message: "Wrong number of arguments to #eq? predicate. Expected 2, got 4.", kind: Predicate }

upon passing - (#eq? @argument '"FG_CODE_CLEAN_FEATURE_FLAG"')
'Incorrect Rule Graph - Cannot parse the tree-sitter query - ((
(method_invocation
name : () @name
arguments: ((argument_list
([
(field_access field: (
)@argument)
(_) @argument
])) )

) @method_invocation

)
(#eq? @name "flagEnabled")
(#eq? @argument '"FG_CODE_CLEAN_FEATURE_FLAG"')

Request you guide me to the right path!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions