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

Function compatiblePageTypes

scripts/reflib.py:400–410  ·  view source on GitHub ↗

Returns whether two refpage 'types' (categories) are compatible - this is only true for 'consts' and 'enums' types.

(refpage_type, pagemap_type)

Source from the content-addressed store, hash-verified

398
399
400def compatiblePageTypes(refpage_type, pagemap_type):
401 """Returns whether two refpage 'types' (categories) are compatible -
402 this is only true for 'consts' and 'enums' types."""
403
404 constsEnums = [ 'consts', 'enums' ]
405
406 if refpage_type == pagemap_type:
407 return True
408 if refpage_type in constsEnums and pagemap_type in constsEnums:
409 return True
410 return False
411
412# Patterns used to recognize interesting lines in an asciidoc source file.
413# These patterns are only compiled once.

Callers 1

findRefsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected