Lines Matching defs:Condition
268 _children: t.Dict[str, t.Union[Condition, Field]]
285 # TODO: Should we cache? See TODO in equivalent Condition getter.
289 if isinstance(child, Condition):
309 elif isinstance(element, Condition):
534 class Condition(Node):
538 _children: t.Dict[str, t.Union[Condition, Field]]
539 _child_branch: t.Optional[Condition]
545 if not Condition._is_valid_type(self.type):
568 if isinstance(child, Condition):
589 def _add_branch(self, branch: Condition) -> None:
613 assert isinstance(self.parent, Condition)
622 elif isinstance(element, Condition):
990 condition = Condition(parent, name=attrs["check"], ty=attrs["type"])
1005 if not isinstance(parent, Condition):
1006 raise RuntimeError("Cannot close unopened or already closed condition. Condition: '%s'"
1017 if not isinstance(element, Condition) and not isinstance(element, Struct):