(a_value, base, nodes)
| 7 | |
| 8 | |
| 9 | def collect_array(a_value, base, nodes): |
| 10 | a_type = a_value["name"] |
| 11 | if is_node(a_type): |
| 12 | nodes.append(base) |
| 13 | elif a_type in ("shape", "exact"): |
| 14 | nodes = collect_nodes(a_value["value"], base + "[]", nodes) |
| 15 | elif a_type == "union": |
| 16 | nodes = collect_union(a_value["value"], base + "[]", nodes) |
| 17 | elif a_type == "objectOf": |
| 18 | nodes = collect_object(a_value["value"], base + "[]", nodes) |
| 19 | return nodes |
| 20 | |
| 21 | |
| 22 | def collect_union(type_list, base, nodes): |
no test coverage detected
searching dependent graphs…