toggle menu
shake
0.1.0
common
switch theme
search in API
com.shakelang.shake.compiler.jsgenerator
/
com.shakelang.shake.js.output
/
JsNew
Js
New
class
JsNew
(
val
type
:
JsValue
,
val
parameters
:
List
<
JsValue
>
=
emptyList()
)
:
JsValuedStatement
(
source
)
Members
Constructors
Js
New
Link copied to clipboard
constructor
(
type
:
JsValue
,
parameters
:
List
<
JsValue
>
=
emptyList()
)
Properties
needs
Parens
Link copied to clipboard
open
override
val
needsParens
:
Boolean
needs
Semicolon
Link copied to clipboard
open
val
needsSemicolon
:
Boolean
parameters
Link copied to clipboard
val
parameters
:
List
<
JsValue
>
type
Link copied to clipboard
val
type
:
JsValue
Functions
generate
Link copied to clipboard
open
override
fun
generate
(
indentAmount
:
Int
,
indent
:
String
)
:
String
generate
Value
Link copied to clipboard
open
fun
generateValue
(
indentAmount
:
Int
=
0
,
indent
:
String
=
" "
)
:
String
to
Statement
Link copied to clipboard
open
fun
toStatement
(
)
:
JsStatement
?
to
Value
Link copied to clipboard
open
fun
toValue
(
)
:
JsValue