Skip to main content

IMPL_QUERY

Constant IMPL_QUERY 

Source
pub const IMPL_QUERY: &str = r#"
(impl_item
  type: (type_identifier) @impl_type
  body: (declaration_list
    (function_item
      name: (identifier) @method_name
      parameters: (parameters) @method_params) @method))
"#;
Expand description

Tree-sitter query for extracting impl blocks and methods.