mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Move indent call to correct spot
This commit is contained in:
parent
11d8dd1335
commit
1b4f5bbb52
7 changed files with 68 additions and 12 deletions
|
@ -95,7 +95,8 @@ fn round_trip_once(input: Input<'_>) -> Option<String> {
|
|||
|
||||
let actual = match input.parse_in(&arena) {
|
||||
Ok(a) => a,
|
||||
Err(e) => return Some(format!("Initial parse failed: {:?}", e.normalize(&arena))),
|
||||
Err(_e) => return None,
|
||||
// Err(e) => return Some(format!("Initial parse failed: {:?}", e.normalize(&arena))),
|
||||
};
|
||||
|
||||
if actual.is_malformed() {
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
P := p
|
||||
#
|
||||
implements []
|
||||
n
|
|
@ -0,0 +1,55 @@
|
|||
@0-22 SpaceAfter(
|
||||
Defs(
|
||||
Defs {
|
||||
tags: [
|
||||
EitherIndex(0),
|
||||
],
|
||||
regions: [
|
||||
@0-20,
|
||||
],
|
||||
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: [
|
||||
Opaque {
|
||||
header: TypeHeader {
|
||||
name: @0-1 "P",
|
||||
vars: [],
|
||||
},
|
||||
typ: @3-4 BoundVariable(
|
||||
"p",
|
||||
),
|
||||
derived: Some(
|
||||
@18-20 SpaceBefore(
|
||||
Implements(
|
||||
[],
|
||||
),
|
||||
[
|
||||
LineComment(
|
||||
"",
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
},
|
||||
],
|
||||
value_defs: [],
|
||||
},
|
||||
@21-22 SpaceBefore(
|
||||
Var {
|
||||
module_name: "",
|
||||
ident: "n",
|
||||
},
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
|
@ -0,0 +1,3 @@
|
|||
P:=p#
|
||||
implements[]
|
||||
n
|
|
@ -373,6 +373,7 @@ mod test_snapshots {
|
|||
pass/crazy_annotation_left.expr,
|
||||
pass/crazy_annotation_left2.expr,
|
||||
pass/crazy_backpassing_parens.expr,
|
||||
pass/crazy_implements_bangs.expr,
|
||||
pass/crazy_pat_ann.expr,
|
||||
pass/dbg.expr,
|
||||
pass/dbg_bang_neg_bang_if_bang.expr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue