Append a definition to the specified section
(self, section, text)
| 315 | OutputGenerator.endFeature(self) |
| 316 | |
| 317 | def appendSection(self, section, text): |
| 318 | "Append a definition to the specified section" |
| 319 | |
| 320 | if section is None: |
| 321 | self.logMsg('error', 'Missing section in appendSection (probably a <type> element missing its \'category\' attribute. Text:', text) |
| 322 | exit(1) |
| 323 | |
| 324 | self.sections[section].append(text) |
| 325 | self.feature_not_empty = True |
| 326 | |
| 327 | def genType(self, typeinfo, name, alias): |
| 328 | "Generate type." |