mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Upgrade header imports when formatting through lang server
This commit is contained in:
parent
010aed88f9
commit
5ccd15faec
1 changed files with 3 additions and 1 deletions
|
@ -26,7 +26,9 @@ impl<'a> Ast<'a> {
|
|||
let (module, state) = parse_header(arena, State::new(src.as_bytes()))
|
||||
.map_err(|e| SyntaxError::Header(e.problem))?;
|
||||
|
||||
let defs = parse_module_defs(arena, state, Defs::default())?;
|
||||
let (module, defs) = module.upgrade_header_imports(arena);
|
||||
|
||||
let defs = parse_module_defs(arena, state, defs)?;
|
||||
|
||||
Ok(Ast {
|
||||
module,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue