Indented seq parsing for imports

This commit is contained in:
Joshua Warner 2024-12-02 18:56:34 -08:00
parent 2163b28390
commit 5c387857ff
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
5 changed files with 77 additions and 2 deletions

View file

@ -0,0 +1,68 @@
SpaceAfter(
Closure(
[
@1-2 Tag(
"L",
),
],
@6-19 SpaceBefore(
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@6-14,
],
space_before: [
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
],
space_after: [
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
],
spaces: [],
type_defs: [],
value_defs: [
ModuleImport(
ModuleImport {
before_name: [],
name: @13-14 ImportedModuleName {
package: None,
name: ModuleName(
"U",
),
},
params: None,
alias: None,
exposed: None,
},
),
],
},
@16-19 SpaceBefore(
Apply(
@16-18 Record(
[],
),
[
@18-19 Var {
module_name: "",
ident: "e",
},
],
Space,
),
[
Newline,
],
),
),
[
Newline,
],
),
),
[
Newline,
],
)