FileDeclaration

@Serializable
data class FileDeclaration(val name: String, val packageName: String, val imports: List<String> = emptyList(), val classes: List<ClassDeclaration> = emptyList(), val topLevelFunctions: List<FunctionDeclaration> = emptyList(), val topLevelProperties: List<PropertyDeclaration> = emptyList(), val kdocText: String? = null, val filePath: String = "", val importAliases: Map<String, String> = emptyMap(), val sourceSets: List<SourceSetId> = emptyList(), val usages: List<SourceUsage> = emptyList(), val annotations: List<AnnotationDeclaration> = emptyList())

Represents a source file declaration containing classes, functions, properties, and imports.

Constructors

Link copied to clipboard
constructor(name: String, packageName: String, imports: List<String> = emptyList(), classes: List<ClassDeclaration> = emptyList(), topLevelFunctions: List<FunctionDeclaration> = emptyList(), topLevelProperties: List<PropertyDeclaration> = emptyList(), kdocText: String? = null, filePath: String = "", importAliases: Map<String, String> = emptyMap(), sourceSets: List<SourceSetId> = emptyList(), usages: List<SourceUsage> = emptyList(), annotations: List<AnnotationDeclaration> = emptyList())

Properties

Link copied to clipboard

Filter or assertion criteria for file-level annotations.

Link copied to clipboard

Filter or assertion criteria for classes.

Link copied to clipboard

Filter or assertion criteria for file path.

Link copied to clipboard

Filter or assertion criteria for import aliases.

Link copied to clipboard

Filter or assertion criteria for imports.

Link copied to clipboard
val kdocText: String? = null

Filter or assertion criteria for kdoc text.

Link copied to clipboard

Filter or assertion criteria for name.

Link copied to clipboard

Filter or assertion criteria for package name.

Link copied to clipboard

Filter or assertion criteria for source sets.

Link copied to clipboard

Filter or assertion criteria for top level functions.

Link copied to clipboard

Filter or assertion criteria for top level properties.

Link copied to clipboard

Filter or assertion criteria for usages.