Properties

Link copied to clipboard

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 : Node, P : AstEdge<T>> addIfNotContains(collection: AstEdges<T, P>, declaration: T)
open fun <T : Node, P : Edge<T>> addIfNotContains(collection: EdgeList<T, P>, declaration: T)
open fun <T : Declaration> addIfNotContains(collection: MutableCollection<T>, declaration: T)

open fun <T : Node, P : Edge<T>> addIfNotContains(collection: EdgeList<T, out P>, declaration: T, outgoing: Boolean)

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