addes test to docs for function

This commit is contained in:
Anton-4 2021-10-15 15:02:37 +02:00
parent 428b4574ae
commit d3f2b95f7a
17 changed files with 136 additions and 578 deletions

View file

@ -5,7 +5,7 @@ use roc_ast::{
lang::{self, core::expr::expr_to_expr2::expr_to_expr2},
mem_pool::pool::Pool,
};
use roc_code_markup::{markup::nodes::expr2_to_markup, slow_pool::SlowPool};
use roc_code_markup::{markup::convert::from_expr2::expr2_to_markup, slow_pool::SlowPool};
use roc_module::symbol::{IdentIds, Interns, ModuleId, ModuleIds};
use roc_parse::ast::Expr;
use roc_region::all::Region;
@ -17,6 +17,7 @@ pub fn expr_to_html<'a>(
expr: Expr<'a>,
env_module_id: ModuleId,
env_module_ids: &'a ModuleIds,
all_ident_ids: IdentIds,
interns: &Interns,
) {
let mut env_pool = Pool::with_capacity(1024);
@ -33,6 +34,7 @@ pub fn expr_to_html<'a>(
&mut var_store,
dep_idents,
env_module_ids,
all_ident_ids,
exposed_ident_ids,
);
@ -63,6 +65,7 @@ fn write_expr_to_bump_str_html<'a, 'b>(
expr2_id,
&mut mark_node_pool,
interns,
0,
)?;
let expr2_markup_node = mark_node_pool.get(expr2_markup_id);