MCPcopy Create free account
hub / github.com/Kitware/CMake / __convert

Function __convert

Source/cmConvertMSBuildXMLToJSON.py:230–240  ·  view source on GitHub ↗

Converts the tag type found in the root and converts them using the func and appends them to the values.

(root, tag, values, func)

Source from the content-addressed store, hash-verified

228###########################################################################################
229# private xml functions
230def __convert(root, tag, values, func):
231 """Converts the tag type found in the root and converts them using the func
232 and appends them to the values.
233 """
234 elements = root.getElementsByTagName(tag)
235
236 for element in elements:
237 converted = func(element)
238
239 # Append to the list
240 __append_list(values, converted)
241
242
243def __convert_enum(node):

Callers 1

read_msbuild_xmlFunction · 0.85

Calls 2

__append_listFunction · 0.85
funcFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…