Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
psteinroe committed Oct 12, 2023
1 parent f6cc9b0 commit e65f8de
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/parser/src/estimate_node_range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,9 @@ pub fn estimate_node_range(

let mut ranged_nodes: Vec<RangedNode> = Vec::new();

// we get an estimated range by searching for tokens that match the node property values
// and, if available, the `location` of the node itself
nodes.iter().enumerate().for_each(|(idx, n)| {
let child_token_range = child_token_ranges[idx];

println!("node: {:#?}, child_token_range: {:?}", n, child_token_range);

let child_node_ranges = ranged_nodes
.iter()
.filter(|x| x.inner.path.starts_with(n.path.as_str()))
Expand Down

0 comments on commit e65f8de

Please sign in to comment.