PrimaryConstructor

data class PrimaryConstructor(val modifiers: List<Node.Modifier>, val constructorKeyword: Node.Keyword.Constructor?, val lPar: Node.Keyword.LPar, val parameters: List<Node.FunctionParameter>, val rPar: Node.Keyword.RPar, val supplement: NodeSupplement = NodeSupplement()) : Node, Node.WithModifiers, Node.WithFunctionParameters

AST node that represents a primary constructor. The node corresponds to KtPrimaryConstructor.

Constructors

Link copied to clipboard
constructor(modifiers: List<Node.Modifier>, constructorKeyword: Node.Keyword.Constructor?, lPar: Node.Keyword.LPar, parameters: List<Node.FunctionParameter>, rPar: Node.Keyword.RPar, supplement: NodeSupplement = NodeSupplement())

Properties

Link copied to clipboard

list of annotation sets.

Link copied to clipboard

constructor keyword if exists, otherwise null.

Link copied to clipboard
open override val lPar: Node.Keyword.LPar

left parenthesis of the function parameters.

Link copied to clipboard
open override val modifiers: List<Node.Modifier>

list of modifiers.

Link copied to clipboard

list of parameters of the constructor.

Link copied to clipboard
open override val rPar: Node.Keyword.RPar

right parenthesis of the function parameters.

Link copied to clipboard
open override val supplement: NodeSupplement

Supplemental data for the node.