mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
feat(editor): pass ast by reference to render
This commit is contained in:
parent
60007f2a51
commit
6abeea00d3
1 changed files with 2 additions and 2 deletions
|
@ -298,7 +298,7 @@ fn run_event_loop(file_path_opt: Option<&Path>) -> Result<(), Box<dyn Error>> {
|
|||
crate::lang::expr::str_to_expr2(&arena, "1", &mut env, &mut scope, region)
|
||||
.unwrap();
|
||||
|
||||
render_node(&size, ast, CODE_TXT_XY.into(), &mut glyph_brush);
|
||||
render_node(&size, &ast, CODE_TXT_XY.into(), &mut glyph_brush);
|
||||
}
|
||||
|
||||
match draw_all_rects(
|
||||
|
@ -399,7 +399,7 @@ fn begin_render_pass<'a>(
|
|||
|
||||
fn render_node(
|
||||
size: &PhysicalSize<u32>,
|
||||
ast: Expr2,
|
||||
ast: &Expr2,
|
||||
position: Vector2<f32>,
|
||||
glyph_brush: &mut GlyphBrush<()>,
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue