-
-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade hosted header in the style module header
- Loading branch information
Showing
22 changed files
with
256 additions
and
185 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
4 changes: 1 addition & 3 deletions
4
crates/cli/tests/test-projects/false-interpreter/platform/Host.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
4 changes: 1 addition & 3 deletions
4
crates/cli/tests/test-projects/test-platform-effects-zig/Effect.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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
hosted Effect | ||
exposes [put_line!, get_line!] | ||
imports [] | ||
hosted [put_line!, get_line!] | ||
|
||
put_line! : Str => {} | ||
|
||
|
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
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
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
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
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
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
2 changes: 1 addition & 1 deletion
2
crates/compiler/test_syntax/tests/snapshots/pass/empty_hosted_header.header.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 |
---|---|---|
@@ -1 +1 @@ | ||
hosted Foo exposes [] imports [] | ||
hosted [] |
1 change: 1 addition & 0 deletions
1
...es/compiler/test_syntax/tests/snapshots/pass/empty_old_hosted_header.header.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 @@ | ||
hosted [] |
19 changes: 19 additions & 0 deletions
19
crates/compiler/test_syntax/tests/snapshots/pass/empty_old_hosted_header.header.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,19 @@ | ||
SpacesBefore { | ||
before: [], | ||
item: Hosted( | ||
HostedHeader { | ||
before_exposes: [], | ||
exposes: [], | ||
old_imports: Some( | ||
KeywordItem { | ||
keyword: Spaces { | ||
before: [], | ||
item: ImportsKeyword, | ||
after: [], | ||
}, | ||
item: [], | ||
}, | ||
), | ||
}, | ||
), | ||
} |
1 change: 1 addition & 0 deletions
1
crates/compiler/test_syntax/tests/snapshots/pass/empty_old_hosted_header.header.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 @@ | ||
hosted Foo exposes [] imports [] |
17 changes: 5 additions & 12 deletions
17
crates/compiler/test_syntax/tests/snapshots/pass/nonempty_hosted_header.header.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 |
---|---|---|
@@ -1,12 +1,5 @@ | ||
hosted Foo | ||
exposes | ||
[ | ||
Stuff, | ||
Things, | ||
somethingElse, | ||
] | ||
imports | ||
[ | ||
Blah, | ||
Baz.{ stuff, things }, | ||
] | ||
hosted [ | ||
Stuff, | ||
Things, | ||
somethingElse, | ||
] |
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
15 changes: 3 additions & 12 deletions
15
crates/compiler/test_syntax/tests/snapshots/pass/nonempty_hosted_header.header.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 |
---|---|---|
@@ -1,12 +1,3 @@ | ||
hosted Foo | ||
exposes | ||
[ | ||
Stuff, | ||
Things, | ||
somethingElse, | ||
] | ||
imports | ||
[ | ||
Blah, | ||
Baz.{ stuff, things }, | ||
] | ||
hosted [Stuff, Things, | ||
somethingElse, | ||
] |
5 changes: 5 additions & 0 deletions
5
...compiler/test_syntax/tests/snapshots/pass/nonempty_old_hosted_header.header.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,5 @@ | ||
hosted [ | ||
Stuff, | ||
Things, | ||
somethingElse, | ||
] |
Oops, something went wrong.