mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Allow trailing comments in imports decl
This commit is contained in:
parent
c10f403c94
commit
23c75d2699
5 changed files with 27 additions and 25 deletions
|
@ -2609,7 +2609,7 @@ fn parse_header<'a>(
|
|||
header_src,
|
||||
packages: &[],
|
||||
exposes: header.exposes.into_bump_slice(),
|
||||
imports: header.imports.into_bump_slice(),
|
||||
imports: header.imports.items,
|
||||
to_platform: None,
|
||||
};
|
||||
|
||||
|
@ -2643,7 +2643,7 @@ fn parse_header<'a>(
|
|||
header_src,
|
||||
packages,
|
||||
exposes: header.provides.into_bump_slice(),
|
||||
imports: header.imports.into_bump_slice(),
|
||||
imports: header.imports.items,
|
||||
to_platform: Some(header.to.value.clone()),
|
||||
};
|
||||
|
||||
|
@ -3421,7 +3421,7 @@ fn fabricate_pkg_config_module<'a>(
|
|||
packages: &[],
|
||||
provides,
|
||||
requires: arena.alloc([header.requires.signature.clone()]),
|
||||
imports: header.imports.clone().into_bump_slice(),
|
||||
imports: header.imports.items,
|
||||
};
|
||||
|
||||
send_header_two(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue