-
-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef4df61
commit 3c158f6
Showing
5 changed files
with
80 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
crates/compiler/test_syntax/tests/snapshots/pass/sneaky_and_expr.expr.formatted.roc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
a | ||
ands | ||
d |
55 changes: 55 additions & 0 deletions
55
crates/compiler/test_syntax/tests/snapshots/pass/sneaky_and_expr.expr.result-ast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
@0-11 SpaceAfter( | ||
Defs( | ||
Defs { | ||
tags: [ | ||
EitherIndex(2147483648), | ||
EitherIndex(2147483649), | ||
], | ||
regions: [ | ||
@0-1, | ||
@2-9, | ||
], | ||
space_before: [ | ||
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 }, | ||
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 1 }, | ||
], | ||
space_after: [ | ||
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 }, | ||
Slice<roc_parse::ast::CommentOrNewline> { start: 1, length: 0 }, | ||
], | ||
spaces: [ | ||
Newline, | ||
], | ||
type_defs: [], | ||
value_defs: [ | ||
Stmt( | ||
@0-1 Var { | ||
module_name: "", | ||
ident: "a", | ||
}, | ||
), | ||
Body( | ||
@2-4 RecordDestructure( | ||
[], | ||
), | ||
@5-9 Var { | ||
module_name: "", | ||
ident: "ands", | ||
}, | ||
), | ||
], | ||
}, | ||
@10-11 SpaceBefore( | ||
Var { | ||
module_name: "", | ||
ident: "d", | ||
}, | ||
[ | ||
Newline, | ||
], | ||
), | ||
), | ||
[ | ||
Newline, | ||
], | ||
) |
3 changes: 3 additions & 0 deletions
3
crates/compiler/test_syntax/tests/snapshots/pass/sneaky_and_expr.expr.roc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
a | ||
{}=ands | ||
d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters