Converts a StringListProperty node to JSON format.
(node)
| 285 | |
| 286 | |
| 287 | def __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 | |
| 306 | def __convert_string(node): |
nothing calls this directly
no test coverage detected
searching dependent graphs…