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

Function _checkAnchorComponents

scripts/spec_tools/validity.py:17–22  ·  view source on GitHub ↗

Raise an exception if any component of a VUID anchor name is illegal.

(anchor)

Source from the content-addressed store, hash-verified

15
16
17def _checkAnchorComponents(anchor):
18 """Raise an exception if any component of a VUID anchor name is illegal."""
19 if anchor:
20 # Any other invalid things in an anchor name should be detected here.
21 if any((' ' in anchor_part for anchor_part in anchor)):
22 raise RuntimeError("Illegal component of a VUID anchor name!")
23
24
25def _fix_a_vs_an(s):

Callers 2

addValidityEntryMethod · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected