PropertyDeclaration
AST node that represents a property declaration. The node corresponds to KtProperty or KtDestructuringDeclaration.
Constructors
Types
Common interface for property accessors. The node corresponds to KtPropertyAccessor.
AST node that represents a property getter.
AST node that represents a property setter.
Properties
accessors of the property.
list of annotation sets.
property delegate of the property if exists, otherwise null. When the property has an initializer, the delegate must be null.
initializer expression of the property if exists, otherwise null. When the property has a delegate, the initializer must be null.
left angle bracket of the type parameters if exists, otherwise null.
( keyword if exists, otherwise null. When there are two or more variables, the keyword must exist.
list of modifiers.
right angle bracket of the type parameters if exists, otherwise null.
receiver type of the property if exists, otherwise null.
) keyword if exists, otherwise null. When there are two or more variables, the keyword must exist.
Supplemental data for the node.
type constraint set of the property if exists, otherwise null.
list of type parameters of the property.
val or var keyword.
variables of the property. Always at least one, more than one means destructuring.