KotlinFile

data class KotlinFile(val annotationSets: List<Node.Modifier.AnnotationSet>, val packageDirective: Node.PackageDirective?, val importDirectives: List<Node.ImportDirective>, val declarations: List<Node.Declaration>, val supplement: NodeSupplement = NodeSupplement()) : Node, Node.KotlinEntry, Node.WithDeclarations

AST node that represents whole Kotlin file. The node corresponds to KtFile.

Constructors

Link copied to clipboard
constructor(annotationSets: List<Node.Modifier.AnnotationSet>, packageDirective: Node.PackageDirective?, importDirectives: List<Node.ImportDirective>, declarations: List<Node.Declaration>, supplement: NodeSupplement = NodeSupplement())

Properties

Link copied to clipboard

list of annotation sets.

Link copied to clipboard
open override val declarations: List<Node.Declaration>

list of declarations.

Link copied to clipboard

list of import directives.

Link copied to clipboard

package directive if exists, otherwise null.

Link copied to clipboard
open override val supplement: NodeSupplement

Supplemental data for the node.