-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
0150442
commit de0254c
Showing
1,485 changed files
with
18,813 additions
and
17,994 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
enum A(a) { | ||
B(a) | ||
} | ||
|
||
enum C(a) { | ||
D(A(a)) | ||
X | ||
} | ||
|
||
component Main { | ||
fun test (b : C(a)) : a { | ||
case (b) { | ||
C::X => "" | ||
C::D(a) => | ||
case (a) { | ||
A::B(c) => | ||
c | ||
} | ||
} | ||
} | ||
|
||
fun render : String { | ||
test(C::D(A::B(""))) | ||
|
||
"" | ||
} | ||
} | ||
-------------------------------------------------------------------------------- | ||
class A extends _E { | ||
constructor(_0) { | ||
super(); | ||
this._0 = _0; | ||
this.length = 1; | ||
} | ||
}; | ||
|
||
class B extends _E { | ||
constructor(_0) { | ||
super(); | ||
this._0 = _0; | ||
this.length = 1; | ||
} | ||
}; | ||
|
||
class C extends _E { | ||
constructor() { | ||
super(); | ||
this.length = 0; | ||
} | ||
}; | ||
|
||
class D extends _C { | ||
a(b) { | ||
return _match(b,[ | ||
[ | ||
_PE(C,[]), | ||
() => { | ||
return `` | ||
} | ||
], | ||
[ | ||
_PE(B,[ | ||
_PV | ||
]), | ||
(c) => { | ||
return _match(c,[ | ||
[ | ||
_PE(A,[ | ||
_PV | ||
]), | ||
(d) => { | ||
return d | ||
} | ||
] | ||
]) | ||
} | ||
] | ||
]); | ||
} | ||
|
||
render() { | ||
this.a(_n(B)(_n(A)(``))); | ||
return ``; | ||
} | ||
}; | ||
|
||
D.displayName = "Main"; |
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,44 @@ | ||
component Main { | ||
style test { | ||
color: yellow; | ||
|
||
if (true) { | ||
color: #{"red"}; | ||
} else { | ||
color: blue; | ||
} | ||
} | ||
|
||
fun render : Html { | ||
<div::test/> | ||
} | ||
} | ||
-------------------------------------------------------------------------------- | ||
class A extends _C { | ||
$Main_test() { | ||
const _ = {}; | ||
|
||
(true ? Object.assign(_, { | ||
[`--a-a`]: `red` | ||
}) : Object.assign(_, { | ||
[`--a-a`]: `blue` | ||
})); | ||
|
||
return _; | ||
} | ||
|
||
render() { | ||
return _h("div", { | ||
className: `Main_test`, | ||
style: _style([this.$Main_test()]) | ||
}); | ||
} | ||
}; | ||
|
||
A.displayName = "Main"; | ||
|
||
_insertStyles(` | ||
.Main_test { | ||
color: var(--a-a, yellow); | ||
} | ||
`); |
Oops, something went wrong.