concepts.dm.crow.parsers.crow_parser.Suite#

class Suite[source]#

Bases: object

A suite of statements. This is used as the intermediate representation of the parsed expressions.

Methods

get_all_action_expressions([use_runtime_assign])

get_all_assign_expressions()

get_all_check_expressions()

get_all_expr_expression([...])

get_combined_return_expression([...])

Attributes

tracker

items

local_variables

__init__(items, local_variables=<factory>, tracker=None)#
Parameters:
Return type:

None

__new__(**kwargs)#
get_all_action_expressions(use_runtime_assign=True)[source]#
Return type:

List[CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression]

get_all_assign_expressions()[source]#
Return type:

List[Tuple[VariableAssignmentExpression, Dict[str, Any]]]

get_all_check_expressions()[source]#
Return type:

List[ValueOutputExpression]

get_all_expr_expression(allow_multiple_expressions=False)[source]#
Parameters:

allow_multiple_expressions (bool) –

Return type:

ValueOutputExpression | Tuple[ValueOutputExpression, …] | None

get_combined_return_expression(allow_expr_expressions=False, allow_multiple_expressions=False)[source]#
Parameters:
  • allow_expr_expressions (bool) –

  • allow_multiple_expressions (bool) –

Return type:

ValueOutputExpression | None

items: Tuple[Any, ...]#
local_variables: Dict[str, Any]#
tracker: FunctionCallTracker | None = None#