Handle aliased parent nodes in query analysis
This commit is contained in:
parent
456b1f6771
commit
2eb04094f8
5 changed files with 225 additions and 112 deletions
|
|
@ -2553,6 +2553,14 @@ fn test_query_step_is_definite() {
|
|||
("arguments:", true),
|
||||
],
|
||||
},
|
||||
Row {
|
||||
description: "aliased parent node",
|
||||
language: get_language("ruby"),
|
||||
pattern: r#"
|
||||
(method_parameters "(" (identifier) @id")")
|
||||
"#,
|
||||
results_by_substring: &[("\"(\"", false), ("(identifier)", false), ("\")\"", true)],
|
||||
},
|
||||
];
|
||||
|
||||
allocations::record(|| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue