def represent_py(self, presenter: CcScriptPresenter): presenter.write_line('from cc_model.CcModelBase import CcObject') presenter.write_crlf(self.__class__.__name__, self.crlf_for_statement * 2) super().represent_py(presenter) presenter.write_line('CcObject.generate_tag_map(globals())')
def represent_py_output(self, presenter: CcScriptPresenter): for statement in self._statements: assert (isinstance(statement, CcStatement)) statement.represent_py_output(presenter) presenter.write_crlf(self.__class__.__name__, self.crlf_for_statement)