MCPcopy
hub / github.com/KhronosGroup/Vulkan-Docs / appendSection

Method appendSection

scripts/cgenerator.py:317–325  ·  view source on GitHub ↗

Append a definition to the specified section

(self, section, text)

Source from the content-addressed store, hash-verified

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."

Callers 5

genTypeMethod · 0.95
genStructMethod · 0.95
genGroupMethod · 0.95
genEnumMethod · 0.95
genCmdMethod · 0.95

Calls 2

logMsgMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected