TopLevel

data class TopLevel(val packageName: PackageName, val name: String) : CallableName(source)

A top-level callable's qualified name.

Constructors

Link copied to clipboard
constructor(packageName: PackageName, name: String)

Properties

Link copied to clipboard

Whether this is the name of a property accessor.

Link copied to clipboard

Whether this is the name of a property getter.

Link copied to clipboard

Whether this is the name of a property setter.

Link copied to clipboard
open override val name: String

The declaration's simple name.

Link copied to clipboard
open override val packageName: PackageName

The declaration's package.

Link copied to clipboard

Get the corresponding property name if this is the name of a property accessor.

Functions

Link copied to clipboard
open override fun asString(): String

The name as a Kotlin name string (i.e. using . to separate the segments).

Link copied to clipboard
open override fun segments(): List<String>

All segments of the name.

Link copied to clipboard
open override fun sibling(name: String): CallableName.TopLevel

Create a sibling callable name with the name simple name.

Link copied to clipboard
override fun toString(): String