Module spec Copy item path Source Annotation Represents an annotation in Kotlin. Used for adding meta information for code entities. Argument Function argument, consists of pair name and value.
If name is None is considered as positional argument. Class Defines Kotlin’s class like entity. This could represent any ‘flavour’ of class: enum, interface, e.t.c.
To change type of class please use Class::inheritance_modifier . ClassLikeType Represents a class like type, such as a class, interface, or enum.
This type can be nullable and can have generic arguments and nullability mark. ClassLikeTypeName Represents a class-like type name. CodeBlock Plain list of nodes that can be rendered to a Kotlin code. Comment Represents a ‘normal’, non documentation comment in Kotlin. CompanionObject Companion object for class
Can contain properties, functions, subclasses and init blocks like class itself. Function FunctionType GenericParameter Describes a generic parameter of a class or function. KDoc Represents a Kotlin documentation comment in KDoc format. KotlinFile Represents a Kotlin file. Name Kotlin identifier name, automatically escaped with backticks if it contains escapable tokens Package Fully qualified package name, may be parsed from &str Parameter PrimaryConstructor Defines Class’s primary constructor Property Represents a Kotlin property PropertyGetter PropertySetter SecondaryConstructor Defines Class’s secondary constructor TypeAlias Kotlin’s typealias
declaration AnnotationTarget Specifies exactly where this annotation will be applied.
Missing targets are represented as Option ClassInheritanceModifier Inheritance modifiers applicable to class-like entities.
Enables converting class to interface, enum e.t.c.
Defaults to ClassInheritanceModifier::Final , lack of inheritance modifier is represented as default. GenericInvariance Type of generic parameter invariance . Import Defines Kotlin’s import statement MemberInheritanceModifier Inheritance modifiers applicable to class / file members Type Kotlin fully resolved / qualified type VisibilityModifier Represents Kotlin’s visibility modifier