JsClassDeclaration

class JsClassDeclaration(val name: String, val functions: List<JsFunctionDeclaration> = emptyList(), val staticFunctions: List<JsFunctionDeclaration> = emptyList(), val fields: List<JsDeclaration> = emptyList(), val staticFields: List<JsDeclaration> = emptyList(), val extends: JsValue? = null) : JsStatement(source)

Constructors

Link copied to clipboard
constructor(name: String, functions: List<JsFunctionDeclaration> = emptyList(), staticFunctions: List<JsFunctionDeclaration> = emptyList(), fields: List<JsDeclaration> = emptyList(), staticFields: List<JsDeclaration> = emptyList(), extends: JsValue? = null)

Properties

Link copied to clipboard
val extends: JsValue? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val needsSemicolon: Boolean
Link copied to clipboard

Functions

Link copied to clipboard
open override fun generate(indentAmount: Int, indent: String): String
Link copied to clipboard
Link copied to clipboard
open fun toValue(): JsValue