KtDeclarationContainer¶
interface KtDeclarationContainer
Represents an element that contains a list of declarations, such as a file, a class or object body, or a script.
This interface groups only the directly nested declarations; it does not recurse into them, and it does not include declarations synthesized by the compiler.
Inheritors¶
Functions¶
getDeclarations¶
@NotNull
@ReadOnly
abstract fun getDeclarations(): List<KtDeclaration>
Returns the declarations directly contained in this element, in their source order. Returns an empty list if there are none.