hwt/hdl/ifContainter.py
def _merge_with_other_stm(self, other: "IfContainer") -> None:
        """
        :attention: statements has to be mergable (to check use _is_mergable method)
        """
        merge = self._merge_statement_lists
        self.ifTrue = merge(self.ifTrue, other.ifTrue)

        new_elifs = []
        for ((c, elifA), (_, elifB)) in zip(self.elIfs, other.elIfs):
            new_elifs.append((c,  merge(elifA, elifB)))
        self.elIfs = new_elifs

        self.ifFalse = merge(self.ifFalse, other.ifFalse)

        other.ifTrue = []
        other.elIfs = []
        other.ifFalse = None

        self._on_merge(other)
def _merge_with_other_stm(self, other: "IfContainer") -> None:
        """
        :attention: statements has to be mergable (to check use _is_mergable method)
        """
        merge = self._merge_statement_lists
        self.ifTrue = merge(self.ifTrue, other.ifTrue)

        new_elifs = []
        for ((c, elifA), (_, elifB)) in zip(self.elIfs, other.elIfs):
            new_elifs.append((c,  merge(elifA, elifB)))
        self.elIfs = new_elifs

        self.ifFalse = merge(self.ifFalse, other.ifFalse)

        other.ifTrue = []
        other.elIfs = []
        other.ifFalse = None

        self._on_merge(other)
def _merge_with_other_stm ( self , other : "IfContainer" ) -> None : merge = self . _merge_statement_lists self . ifTrue = merge ( self . ifTrue , other . ifTrue ) new_elifs = [ ] for ( ( c , elifA ) , ( _ , elifB ) ) in zip ( self . elIfs , other . elIfs ) : new_elifs . append ( ( c , merge ( elifA , elifB ) ) ) self . elIfs = new_elifs self . ifFalse = merge ( self . ifFalse , other . ifFalse ) other . ifTrue = [ ] other . elIfs = [ ] other . ifFalse = None self . _on_merge ( other )
:attention: statements has to be mergable (to check use _is_mergable method)
: attention : statements has to be mergable ( to check use _is_mergable method )