Annotation

data class Annotation(val type: Node.Type.SimpleType, val lPar: Node.Keyword.LPar?, val arguments: List<Node.ValueArgument>, val rPar: Node.Keyword.RPar?, val supplement: NodeSupplement = NodeSupplement()) : Node, Node.WithValueArguments

AST node that represents an annotation. The node corresponds to KtAnnotationEntry under KtAnnotation or a part of KtAnnotationEntry not under KtAnnotation.

Constructors

Link copied to clipboard
constructor(type: Node.Type.SimpleType, lPar: Node.Keyword.LPar?, arguments: List<Node.ValueArgument>, rPar: Node.Keyword.RPar?, supplement: NodeSupplement = NodeSupplement())

Properties

Link copied to clipboard
open override val arguments: List<Node.ValueArgument>

list of value arguments.

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

left parenthesis of the value arguments if exists, otherwise null.

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

right parenthesis of the value arguments if exists, otherwise null.

Link copied to clipboard
open override val supplement: NodeSupplement

Supplemental data for the node.

Link copied to clipboard

type of this annotation.