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

Method makeAccessor

scripts/rubygenerator.py:53–57  ·  view source on GitHub ↗

Create an accessor method for the hash 'name

(self, name)

Source from the content-addressed store, hash-verified

51 self.writeDict(l, name, printValues = False)
52
53 def makeAccessor(self, name):
54 """Create an accessor method for the hash 'name'"""
55 write(f'def {name}', file=self.outFile)
56 write(f' @{name}', file=self.outFile)
57 write('end', file=self.outFile)
58
59 def endFile(self):
60 # Creates the inverse mapping of nonexistent APIs to their aliases.

Callers 1

endFileMethod · 0.95

Calls 1

writeFunction · 0.90

Tested by

no test coverage detected