concepts.dm.crow.parsers.cdl_parser.Suite#

class Suite[source]#

Bases: object

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

Methods

Attributes

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

None

__new__(**kwargs)#
get_all_assign_expressions()[source]#
Return type:

List[CrowFeatureAssignmentExpression | CrowBehaviorForeachLoopSuite | CrowBehaviorConditionSuite]

get_all_behavior_expressions(use_runtime_assign=True)[source]#
Return type:

List[CrowBehaviorBodyPrimitiveBase | CrowBehaviorBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression]

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#