ClassBody
data class ClassBody(val enumEntries: List<Node.Declaration.ClassOrObject.ClassBody.EnumEntry>, val declarations: List<Node.Declaration>, val supplement: NodeSupplement = NodeSupplement()) : Node, Node.WithDeclarations
AST node that represents a class body. The node corresponds to KtClassBody.
Constructors
Link copied to clipboard
constructor(enumEntries: List<Node.Declaration.ClassOrObject.ClassBody.EnumEntry>, declarations: List<Node.Declaration>, supplement: NodeSupplement = NodeSupplement())
Types
Link copied to clipboard
data class EnumEntry(val modifiers: List<Node.Modifier>, val name: Node.Expression.NameExpression, val lPar: Node.Keyword.LPar?, val arguments: List<Node.ValueArgument>, val rPar: Node.Keyword.RPar?, val classBody: Node.Declaration.ClassOrObject.ClassBody?, val supplement: NodeSupplement = NodeSupplement()) : Node, Node.WithModifiers, Node.WithValueArguments
AST node that represents an enum entry. The node corresponds to KtEnumEntry.
Link copied to clipboard
data class Initializer(val block: Node.Expression.BlockExpression, val supplement: NodeSupplement = NodeSupplement()) : Node.Declaration
AST node that represents an init block, a.k.a. initializer. The node corresponds to KtAnonymousInitializer.
Link copied to clipboard
data class SecondaryConstructor(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 delegationCall: Node.Expression.CallExpression?, val block: Node.Expression.BlockExpression?, val supplement: NodeSupplement = NodeSupplement()) : Node.Declaration, Node.WithModifiers, Node.WithFunctionParameters
AST node that represents a secondary constructor. The node corresponds to KtSecondaryConstructor.