hwt/hdl/switchContainer.py
def _merge_with_other_stm(self, other: "IfContainer") -> None:
        """
        Merge other statement to this statement
        """
        merge = self._merge_statement_lists
        newCases = []
        for (c, caseA), (_, caseB) in zip(self.cases, other.cases):
            newCases.append((c, merge(caseA, caseB)))

        self.cases = newCases

        if self.default is not None:
            self.default = merge(self.default, other.default)

        self._on_merge(other)
def _merge_with_other_stm(self, other: "IfContainer") -> None:
        merge = self._merge_statement_lists
        newCases = []
        for (c, caseA), (_, caseB) in zip(self.cases, other.cases):
            newCases.append((c, merge(caseA, caseB)))

        self.cases = newCases

        if self.default is not None:
            self.default = merge(self.default, other.default)

        self._on_merge(other)
def _merge_with_other_stm ( self , other : "IfContainer" ) -> None : merge = self . _merge_statement_lists newCases = [ ] for ( c , caseA ) , ( _ , caseB ) in zip ( self . cases , other . cases ) : newCases . append ( ( c , merge ( caseA , caseB ) ) ) self . cases = newCases if self . default is not None : self . default = merge ( self . default , other . default ) self . _on_merge ( other )
Merge other statement to this statement
Merge other statement to this statement