Skip to content

Commit e87eb38

Browse files
cool
1 parent 05555a1 commit e87eb38

File tree

1 file changed

+0
-23
lines changed
  • crates/pgt_treesitter/src/context

1 file changed

+0
-23
lines changed

crates/pgt_treesitter/src/context/mod.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,27 +1277,4 @@ mod tests {
12771277

12781278
assert!(ctx.node_under_cursor_is_within_field_name("custom_type"));
12791279
}
1280-
1281-
#[test]
1282-
fn parses_custom_type_accesses_correctly() {
1283-
let query = format!(
1284-
r#"select (com{}pfoo).f1 from with_comp where (compfoo).f1 = 24;"#,
1285-
QueryWithCursorPosition::cursor_marker()
1286-
);
1287-
1288-
let (position, text) = QueryWithCursorPosition::from(query).get_text_and_position();
1289-
1290-
let tree = get_tree(text.as_str());
1291-
1292-
let params = TreeSitterContextParams {
1293-
position: (position as u32).into(),
1294-
text: &text,
1295-
tree: &tree,
1296-
};
1297-
1298-
let ctx = TreesitterContext::new(params);
1299-
1300-
println!("{:#?}", ctx);
1301-
println!("{:#?}", ctx.get_node_under_cursor_content())
1302-
}
13031280
}

0 commit comments

Comments
 (0)