toggle menu
shake
0.1.0
common
switch theme
search in API
com.shakelang.shake.compiler.jsgenerator
/
com.shakelang.shake.js.output
/
JsFunctionDeclaration
Js
Function
Declaration
class
JsFunctionDeclaration
(
val
name
:
String
,
val
parameters
:
List
<
JsParameter
>
,
val
body
:
JsTree
)
:
JsStatement
(
source
)
Members
Constructors
Js
Function
Declaration
Link copied to clipboard
constructor
(
name
:
String
,
parameters
:
List
<
JsParameter
>
,
body
:
JsTree
)
Properties
body
Link copied to clipboard
val
body
:
JsTree
name
Link copied to clipboard
val
name
:
String
needs
Semicolon
Link copied to clipboard
open
override
val
needsSemicolon
:
Boolean
parameters
Link copied to clipboard
val
parameters
:
List
<
JsParameter
>
Functions
generate
Link copied to clipboard
open
override
fun
generate
(
indentAmount
:
Int
,
indent
:
String
)
:
String
generate
In
Class
Link copied to clipboard
fun
generateInClass
(
indentAmount
:
Int
,
indent
:
String
)
:
String
inline
Link copied to clipboard
fun
inline
(
)
:
JsInlineFunction
to
Statement
Link copied to clipboard
open
fun
toStatement
(
)
:
JsStatement
?
to
Value
Link copied to clipboard
open
fun
toValue
(
)
:
JsValue