Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/KhronosGroup/Vulkan-Docs
/ add_key
Method
add_key
scripts/spec_tools/data_structures.py:47–50 ·
view source on GitHub ↗
Ensure the set for the given key exists.
(self, k)
Source
from the content-addressed store, hash-verified
45
return
self.d.values()
46
47
def
add_key(self, k):
48
""
"Ensure the set for the given key exists."
""
49
if
k not in self.d:
50
self.d[k] = set()
51
52
def
add(self, k, v):
53
self.add_key(k)
Callers
1
add
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected