DeclarationHolder

Functions

Link copied to clipboard
abstract fun addDeclaration(declaration: Declaration)

Adds the specified declaration to this declaration holder. Ideally, the declaration holder should use the addIfNotContains method to consistently add declarations.

Link copied to clipboard
open fun <T : Declaration> addIfNotContains(collection: MutableCollection<T>, declaration: T)
open fun <T : Node> addIfNotContains(collection: MutableCollection<PropertyEdge<T>>, declaration: T)

open fun <T : Node> addIfNotContains(collection: MutableCollection<PropertyEdge<T>>, declaration: T, outgoing: Boolean)

Adds a declaration to a collection of property edges, which contain the declarations

Properties

Link copied to clipboard

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
inline fun <T : Declaration> DeclarationHolder.byName(name: String, fqn: Boolean = false): T
Link copied to clipboard
inline fun <T : Declaration> DeclarationHolder.byNameOrNull(name: String, fqn: Boolean = false): T?