ArrowInvocationTemplate

Labs

class ArrowInvocationTemplate

Description

An arrow invocation: the template form of s->f(b), s->f(y=b), s->collect {in i; i + 1} or s->reduce g.

“A special syntax for an invocation expression in which the first argument is given before the arrow” (KerML 7.4.9.3): source is that argument, and arguments and named_arguments are the ones after function, as in InvocationTemplate; arguments is a FunctionReferenceTemplate for s->reduce g. Equality and hashing compare the templates structurally and the function and parameters by element_id, for the reason ReferenceTemplate gives.

Members defined in ArrowInvocationTemplate (5 members)

arguments

RW

function

RW

named_arguments

RW

source

RW

__hash__

Hash the source, the function’s identity and the arguments.

Members inherited from ExpressionTemplate (13 members)

__add__

__bool__

Raise: a template is an expression tree, not a truth value.

__mod__

__mul__

__neg__

__pos__

__radd__

__rmod__

__rmul__

__rsub__

__rtruediv__

__sub__

__truediv__

Attributes

arguments: tuple[syside.experimental.expressions.ExpressionTemplate, ...] | syside.experimental.expressions.FunctionReferenceTemplate = None
function: syside.Type = None
named_arguments: tuple[tuple[syside.Feature, syside.experimental.expressions.ExpressionTemplate], ...] = None
source: syside.experimental.expressions.ExpressionTemplate = None

Methods

__hash__() → int

Hash the source, the function’s identity and the arguments.

Used by