OperatorApplicationNode

class OperatorApplicationNode(val operator: Operator, val arguments: Arguments<AtomicExpressionNode>, val sourceLocation: SourceLocation) : PureExpressionNode

An n-ary operator applied to n arguments.

Constructors

Link copied to clipboard

Functions

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

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

Link copied to clipboard
override fun toDocument(): Document
Link copied to clipboard

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

Link copied to clipboard

override fun toSurfaceNode(metadata: Metadata): ExpressionNode

Returns a representation of this node in the surface syntax.

Properties

Link copied to clipboard
Link copied to clipboard

The list of all children nodes. This is empty for leaf nodes.

Link copied to clipboard
Link copied to clipboard
open override val sourceLocation: SourceLocation

Extensions

Link copied to clipboard

Like Node.copy, but recursively copies all descendant nodes also.

Link copied to clipboard

Returns this node and all its descendants in post order.

Link copied to clipboard

Returns all instances of T contained in this node (which may include this node).

Link copied to clipboard

A FreshNameGenerator that will avoid all Variable names in this node.

Link copied to clipboard

States whether an expression reads only from the protocols in protocols.