HostDeclarationNode

class HostDeclarationNode(name: HostNode, authority: LabelNode, sourceLocation: SourceLocation) : TopLevelDeclarationNode

Declaration of a participant and their authority.

Parameters

name

Host name.

authority

Label specifying the trust placed in this host.

Constructors

HostDeclarationNode
Link copied to clipboard
fun HostDeclarationNode(name: HostNode, authority: LabelNode, sourceLocation: SourceLocation)

Functions

copy
Link copied to clipboard
open override fun copy(children: List<Node>): HostDeclarationNode

Returns a shallow copy of this node where the child nodes are replaced by children.

toDocument
Link copied to clipboard
override fun toDocument(): Document
toDocumentWithMetadata
Link copied to clipboard
fun toDocumentWithMetadata(metadata: Metadata): Document

Returns a pretty representation of this Node where each descendant is decorated using metadata.

toSurfaceNode
Link copied to clipboard
open override fun toSurfaceNode(metadata: Metadata): HostDeclarationNode

Returns a representation of this node in the surface syntax.

Properties

authority
Link copied to clipboard
val authority: LabelNode
children
Link copied to clipboard
open override val children: Iterable<Nothing>
name
Link copied to clipboard
val name: HostNode
sourceLocation
Link copied to clipboard
open override val sourceLocation: SourceLocation