mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Add missing indent call in import
This commit is contained in:
parent
2dd4fe03f8
commit
d52595738f
5 changed files with 60 additions and 0 deletions
|
@ -0,0 +1,3 @@
|
|||
import "" as
|
||||
das
|
||||
A
|
|
@ -0,0 +1,52 @@
|
|||
@0-17 SpaceAfter(
|
||||
Defs(
|
||||
Defs {
|
||||
tags: [
|
||||
EitherIndex(2147483648),
|
||||
],
|
||||
regions: [
|
||||
@0-15,
|
||||
],
|
||||
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: [
|
||||
IngestedFileImport(
|
||||
IngestedFileImport {
|
||||
before_path: [],
|
||||
path: @6-8 PlainLine(
|
||||
"",
|
||||
),
|
||||
name: KeywordItem {
|
||||
keyword: Spaces {
|
||||
before: [],
|
||||
item: ImportAsKeyword,
|
||||
after: [
|
||||
Newline,
|
||||
],
|
||||
},
|
||||
item: @12-15 "das",
|
||||
},
|
||||
annotation: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
},
|
||||
@16-17 SpaceBefore(
|
||||
Tag(
|
||||
"A",
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
|
@ -0,0 +1,3 @@
|
|||
import""as
|
||||
das
|
||||
A
|
|
@ -510,6 +510,7 @@ mod test_snapshots {
|
|||
pass/nested_parens_in_pattern.expr,
|
||||
pass/nested_when_comment_in_pat.expr,
|
||||
pass/newline_after_equals.expr, // Regression test for https://github.com/roc-lang/roc/issues/51
|
||||
pass/newline_after_import_str_as.expr,
|
||||
pass/newline_after_mul.expr,
|
||||
pass/newline_after_opt_field.expr,
|
||||
pass/newline_after_paren.expr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue