Setter

data class Setter(val modifiers: List<Node.Modifier>, val lPar: Node.Keyword.LPar?, val parameter: Node.FunctionParameter?, val rPar: Node.Keyword.RPar?, val postModifiers: List<Node.PostModifier>, val body: Node.Expression?, val supplement: NodeSupplement = NodeSupplement()) : Node.Declaration.PropertyDeclaration.Accessor

AST node that represents a property setter.

Constructors

Link copied to clipboard
constructor(modifiers: List<Node.Modifier>, lPar: Node.Keyword.LPar?, parameter: Node.FunctionParameter?, rPar: Node.Keyword.RPar?, postModifiers: List<Node.PostModifier>, body: Node.Expression?, supplement: NodeSupplement = NodeSupplement())

Properties

Link copied to clipboard

list of annotation sets.

Link copied to clipboard
open override val body: Node.Expression?

body of the setter if exists, otherwise null.

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

left parenthesis if exists, otherwise null.

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

list of modifiers.

Link copied to clipboard

parameter of the setter if exists, otherwise null.

Link copied to clipboard

post-modifiers of the setter.

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

right parenthesis if exists, otherwise null.

Link copied to clipboard
open override val supplement: NodeSupplement

Supplemental data for the node.