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

Function __convert_string_list

Source/cmConvertMSBuildXMLToJSON.py:287–303  ·  view source on GitHub ↗

Converts a StringListProperty node to JSON format.

(node)

Source from the content-addressed store, hash-verified

285
286
287def __convert_string_list(node):
288 """Converts a StringListProperty node to JSON format."""
289 converted = __convert_node(node)
290
291 # Determine flags for the string list
292 flags = vsflags(VSFlags.UserValue)
293
294 # Check for a separator to determine if it is semicolon appendable
295 # If not present assume the value should be ;
296 separator = __get_attribute(node, 'Separator', default_value=';')
297
298 if separator == ';':
299 flags = vsflags(flags, VSFlags.SemicolonAppendable)
300
301 converted['flags'] = flags
302
303 return __check_for_flag(converted)
304
305
306def __convert_string(node):

Callers

nothing calls this directly

Calls 4

__convert_nodeFunction · 0.85
vsflagsFunction · 0.85
__get_attributeFunction · 0.85
__check_for_flagFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…