[fine] Parent pointers in trees

This commit is contained in:
John Doty 2024-01-05 11:10:38 -08:00
parent 4f3536ea50
commit 7abb8eafc2
3 changed files with 132 additions and 55 deletions

View file

@ -1,4 +1,4 @@
use fine::parser::concrete::Tree;
use fine::parser::concrete::ConcreteTree;
use pretty_assertions::assert_eq;
fn rebase_concrete(source_path: &str, dump: &str) {
@ -68,7 +68,7 @@ fn rebase_concrete(source_path: &str, dump: &str) {
std::fs::write(source_path, result).expect("unable to write the new file!");
}
fn assert_concrete(tree: &Tree, expected: &str, source_path: &str) {
fn assert_concrete(tree: &ConcreteTree, expected: &str, source_path: &str) {
let dump = tree.dump();
let rebase = std::env::var("FINE_TEST_REBASE")
.unwrap_or(String::new())