toggle menu
shake
0.1.0
common
switch theme
search in API
com.shakelang.shake.compiler.jsgenerator
/
com.shakelang.shake.js.output
/
JsIf
Js
If
class
JsIf
(
val
condition
:
JsValue
,
val
then
:
JsTree
,
val
elseStatement
:
JsTree
?
=
null
)
:
JsStatement
(
source
)
Members
Constructors
Js
If
Link copied to clipboard
constructor
(
condition
:
JsValue
,
then
:
JsTree
,
elseStatement
:
JsTree
?
=
null
)
Properties
condition
Link copied to clipboard
val
condition
:
JsValue
else
Statement
Link copied to clipboard
val
elseStatement
:
JsTree
?
=
null
needs
Semicolon
Link copied to clipboard
open
override
val
needsSemicolon
:
Boolean
then
Link copied to clipboard
val
then
:
JsTree
Functions
generate
Link copied to clipboard
open
override
fun
generate
(
indentAmount
:
Int
,
indent
:
String
)
:
String
to
Statement
Link copied to clipboard
open
fun
toStatement
(
)
:
JsStatement
?
to
Value
Link copied to clipboard
open
fun
toValue
(
)
:
JsValue