This commit is contained in:
Anton-4 2021-10-19 17:51:47 +02:00
parent c7c421b2f5
commit bb715e0f84
5 changed files with 5 additions and 11 deletions

View file

@ -5,7 +5,7 @@ use roc_ast::{
mem_pool::pool::Pool,
};
use roc_code_markup::{
markup::{convert::from_def2::def2_to_markup, nodes::tree_as_string},
markup::{convert::from_def2::def2_to_markup},
slow_pool::SlowPool,
};
use roc_module::symbol::{IdentIds, Interns, ModuleId};
@ -46,7 +46,6 @@ pub fn defs_to_html<'a>(
let region = Region::new(0, 0, 0, 0);
for def in defs.iter() {
dbg!("defs.iter def: {}", def);
write_def_to_bump_str_html(&def_arena, &mut env, &mut scope, region, def, interns, buf)?;
}
@ -76,11 +75,6 @@ fn write_def_to_bump_str_html<'a, 'b>(
interns,
)?;
println!(
"MARKUP_TREE {}",
tree_as_string(def2_markup_id, &mark_node_pool)
);
let def2_markup_node = mark_node_pool.get(def2_markup_id);
mark_node_to_html(def2_markup_node, &mark_node_pool, buf);