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

Function dependencyNames

scripts/parse_dependency.py:338–349  ·  view source on GitHub ↗

Return a set of the extension and version names in an API dependency expression. Used when determining transitive dependencies for spec generation with specific extensions included. - dependency - the expression

(dependency)

Source from the content-addressed store, hash-verified

336 raise Exception(f'invalid op: {op}')
337
338def dependencyNames(dependency):
339 """Return a set of the extension and version names in an API dependency
340 expression. Used when determining transitive dependencies for spec
341 generation with specific extensions included.
342
343 - dependency - the expression"""
344
345 global exprStack
346 exprStack = []
347 results = dependencyBNF().parse_string(dependency, parse_all=True)
348 # print(f'names(): stack = {exprStack}')
349 return evalDependencyNames(exprStack)
350
351def markupTraverse(expr, level = 0, root = True):
352 """Recursively process a dependency in infix form, transforming it into

Callers 6

__init__Method · 0.90
makeMetafileMethod · 0.90
seeAlsoListFunction · 0.90
check_suffixesMethod · 0.90

Calls 2

dependencyBNFFunction · 0.85
evalDependencyNamesFunction · 0.85

Tested by

no test coverage detected