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

Method writeEnumBox

scripts/docgenerator.py:381–389  ·  view source on GitHub ↗

Output a box of enumerants.

(self, basename, values)

Source from the content-addressed store, hash-verified

379 write(_BLOCK_SUFFIX, file=fp)
380
381 def writeEnumBox(self, basename, values):
382 """Output a box of enumerants."""
383 directory = Path(self.genOpts.directory) / 'enums'
384 self.makeDir(str(directory))
385
386 filename = str(directory / f'{basename}.comments-box{self.file_suffix}')
387 self.writeBox(filename, _ENUM_BLOCK_PREFIX,
388 (f"ename:{data['name']} -- {data['comment']}"
389 for data in values))
390
391 def writeFlagBox(self, basename, values):
392 """Output a box of flag bit comments."""

Callers 1

genEnumTableMethod · 0.95

Calls 2

writeBoxMethod · 0.95
makeDirMethod · 0.80

Tested by

no test coverage detected