BodyParameterTemplate

Labs

class BodyParameterTemplate

Description

A body parameter, in i : Integer, and every reference to it: built by parameter().

Passed to body(), it declares the parameter; inside the body’s result, it references the parameter of the nearest enclosing body declaring its name, as the name does in the textual syntax. type is None for an untyped parameter, in i. Equality and hashing use the name and the type’s element_id, for the reason ReferenceTemplate gives.

Members defined in BodyParameterTemplate (3 members)

name

RW

type

RW

__hash__

Hash the name with the type’s identity.

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

name: str = None
type: syside.Type | None = None

Methods

__hash__() → int

Hash the name with the type’s identity.

Used by