saealib.Repeat#

class saealib.Repeat(body, count, *, name='')[source]#

Bases: _ControlValue

Repeat a structural body a fixed number of times.

Parameters:
  • body (PipelineEntry)

  • count (int)

  • name (str)

Methods

__init__

to_pseudocode

Render this repeat as a lightweight pseudocode line.

to_text

Render this repeat as a single plain-text line.

Method Details

Repeat.__init__(body, count, *, name='')[source]#
Parameters:
Return type:

None

Repeat.to_pseudocode(*, expand=False, indent=0)[source]#

Render this repeat as a lightweight pseudocode line.

Parameters:
  • expand (bool)

  • indent (int)

Return type:

str

Repeat.to_text(*, expand=False, indent=0)[source]#

Render this repeat as a single plain-text line.

Parameters:
  • expand (bool)

  • indent (int)

Return type:

str