Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

follows: properly log removing follow nodes #123

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions src/walk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -765,26 +765,31 @@ impl<'a> Walker {
if let Some(change) =
self.walk_input(&attr, &Some(context), change)
{
println!("Adjust !!! {}", child.index());
println!("Nested change: {change}");
println!(
"Child Node: {}",
tracing::debug!("Adjusted change: {change}");
tracing::debug!(
"Adjusted change is_empty: {}",
change.to_string().is_empty()
);
tracing::debug!(
"Child index: {}",
child.index()
);
tracing::debug!(
"Child node: {}",
child.as_node().unwrap()
);
println!("Nested Attr : {}", nested_attr);
println!("Attr : {}", attr);
println!("Node : {}", node);
// panic!("Matched nested");
// TODO: adjust whitespace
// return changed node
// return Some(change);
tracing::debug!("Nested Attr: {}", nested_attr);
tracing::debug!("Node: {}", node);
tracing::debug!("Attr: {}", attr);
// TODO: adjust node correctly if the change is
// not empty
let replacement =
Self::remove_child_with_whitespace(
&nested_attr,
&attr,
attr.index(),
);
println!("Replacement: {}", replacement);
tracing::debug!("Replacement: {}", replacement);
return Some(replacement);
}
}
Expand Down
Loading