mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
add failing test for ignored fields canonicalization
This commit is contained in:
parent
408379f8d3
commit
7d464a2989
7 changed files with 217 additions and 3 deletions
|
@ -0,0 +1,4 @@
|
|||
import P {
|
||||
_: h,
|
||||
}
|
||||
t!
|
|
@ -0,0 +1,67 @@
|
|||
@0-17 SpaceAfter(
|
||||
Defs(
|
||||
Defs {
|
||||
tags: [
|
||||
EitherIndex(2147483648),
|
||||
],
|
||||
regions: [
|
||||
@0-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: @7-8 ImportedModuleName {
|
||||
package: None,
|
||||
name: ModuleName(
|
||||
"P",
|
||||
),
|
||||
},
|
||||
params: Some(
|
||||
ModuleImportParams {
|
||||
before: [],
|
||||
params: @8-14 [
|
||||
@9-12 SpaceAfter(
|
||||
IgnoredValue(
|
||||
@9-10 "",
|
||||
[],
|
||||
@11-12 Var {
|
||||
module_name: "",
|
||||
ident: "h",
|
||||
},
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
],
|
||||
},
|
||||
),
|
||||
alias: None,
|
||||
exposed: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
},
|
||||
@15-17 SpaceBefore(
|
||||
Var {
|
||||
module_name: "",
|
||||
ident: "t!",
|
||||
},
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
|
@ -0,0 +1,3 @@
|
|||
import P{_:h
|
||||
}
|
||||
t!
|
|
@ -357,6 +357,7 @@ mod test_snapshots {
|
|||
pass/body_with_unneeded_parens.expr,
|
||||
pass/call_bang.expr,
|
||||
pass/call_bang_no_space.expr,
|
||||
pass/can_ignored_field_in_import.expr,
|
||||
pass/capture_body_parens_comment.expr,
|
||||
pass/closure_arg_parens_then_comment.expr,
|
||||
pass/closure_complex_pattern_indent_issue.expr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue