-
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Remove pattern record. - Remove return call and only keep it for statements. - Added general await expression. - Added checks for the children property. - Remove obselete JS and ObjectSerializer classes.
- Loading branch information
1 parent
7da5eb1
commit a2b73e0
Showing
62 changed files
with
342 additions
and
992 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
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
component Test { | ||
property children : Array(Html) | ||
|
||
fun render : Html { | ||
<div/> | ||
} | ||
} | ||
|
||
component Main { | ||
fun render : Html { | ||
<Test/> | ||
} | ||
} | ||
-------------------------------------------------------------------------------- | ||
░ ERROR (PROPERTY_CHILDREN_DEFAULT_REQUIRED) ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | ||
|
||
There should be a default value for the children property: | ||
|
||
[] | ||
|
||
The property in question is here: | ||
|
||
┌ ./spec/errors/property_children_default_requried:2:3 | ||
├───────────────────────────────────────────────────── | ||
1│ component Test { | ||
2│ property children : Array(Html) | ||
│ ⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃ | ||
3│ | ||
4│ fun render : Html { | ||
5│ <div/> | ||
6│ } |
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,35 @@ | ||
component Test { | ||
property children : String | ||
|
||
fun render : Html { | ||
<div/> | ||
} | ||
} | ||
|
||
component Main { | ||
fun render : Html { | ||
<Test/> | ||
} | ||
} | ||
-------------------------------------------------------------------------------- | ||
░ ERROR (PROPERTY_CHILDREN_MISMATCH) ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | ||
|
||
The type of the children property must be: | ||
|
||
Array(Html) | ||
|
||
Instead it is: | ||
|
||
String | ||
|
||
The property in question is here: | ||
|
||
┌ ./spec/errors/property_children_mismatch:2:3 | ||
├───────────────────────────────────────────── | ||
1│ component Test { | ||
2│ property children : String | ||
│ ⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃⌃ | ||
3│ | ||
4│ fun render : Html { | ||
5│ <div/> | ||
6│ } |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
component Main { | ||
fun render : String { | ||
{ | ||
await "Hello" | ||
} | ||
|
||
"" | ||
} | ||
} | ||
-------------------------------------------------------------------------------- | ||
component Main { | ||
fun render : String { | ||
{ | ||
"asd" |> await defer (value : String) { value } | ||
} | ||
|
||
"" | ||
} | ||
} |
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
Oops, something went wrong.