InputNode

class InputNode(type: ValueTypeNode, host: HostNode, sourceLocation: SourceLocation) : ExpressionNode, CommunicationNode

An external input.

Parameters

type

Type of the value to receive.

Constructors

InputNode
Link copied to clipboard
fun InputNode(type: ValueTypeNode, host: HostNode, sourceLocation: SourceLocation)

Functions

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

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(): InputNode

override fun toSurfaceNode(metadata: Metadata): ExpressionNode

Returns a representation of this node in the surface syntax.

Properties

children
Link copied to clipboard
open override val children: Iterable<Nothing>
host
Link copied to clipboard
open override val host: HostNode
sourceLocation
Link copied to clipboard
open override val sourceLocation: SourceLocation
type
Link copied to clipboard
val type: ValueTypeNode