ParameterNode

class ParameterNode(name: ObjectVariableNode, parameterDirection: ParameterDirection, className: ClassNameNode, typeArguments: Arguments<ValueTypeNode>, labelArguments: Arguments<LabelNode>?, protocol: ProtocolNode?, sourceLocation: SourceLocation) : Node, ObjectDeclaration

A parameter to a function declaration.

Constructors

ParameterNode
Link copied to clipboard
fun ParameterNode(name: ObjectVariableNode, parameterDirection: ParameterDirection, className: ClassNameNode, typeArguments: Arguments<ValueTypeNode>, labelArguments: Arguments<LabelNode>?, protocol: ProtocolNode?, sourceLocation: SourceLocation)

Functions

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

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): ParameterNode

Returns a representation of this node in the surface syntax.

Properties

children
Link copied to clipboard
open override val children: Iterable<BlockNode>
className
Link copied to clipboard
open override val className: ClassNameNode
declarationAsNode
Link copied to clipboard
open override val declarationAsNode: Node
isInParameter
Link copied to clipboard
val isInParameter: Boolean
isOutParameter
Link copied to clipboard
val isOutParameter: Boolean
labelArguments
Link copied to clipboard
open override val labelArguments: Arguments<LabelNode>?
name
Link copied to clipboard
open override val name: ObjectVariableNode
parameterDirection
Link copied to clipboard
val parameterDirection: ParameterDirection
protocol
Link copied to clipboard
val protocol: ProtocolNode?
sourceLocation
Link copied to clipboard
open override val sourceLocation: SourceLocation
typeArguments
Link copied to clipboard
open override val typeArguments: Arguments<ValueTypeNode>