MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / _get_json

Method _get_json

utility/import_info.cpp:36–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void ImportInfo::_get_json(Dictionary &p_json) const {
37 p_json["iitype"] = iitype;
38 p_json["import_md_path"] = import_md_path;
39 p_json["ver_major"] = ver_major;
40 p_json["ver_minor"] = ver_minor;
41 if (not_an_import) {
42 p_json["not_an_import"] = not_an_import;
43 }
44 if (auto_converted_export) {
45 p_json["auto_converted_export"] = auto_converted_export;
46 }
47 // p_json["dirty"] = dirty;
48 if (!preferred_import_path.is_empty()) {
49 p_json["preferred_import_path"] = preferred_import_path;
50 }
51 if (!export_dest.is_empty()) {
52 p_json["export_dest"] = export_dest;
53 }
54 if (!export_lossless_copy.is_empty()) {
55 p_json["export_lossless_copy"] = export_lossless_copy;
56 }
57}
58
59Dictionary ImportInfo::to_json() const {
60 Dictionary json;

Callers

nothing calls this directly

Calls 2

encode_cfg_to_textFunction · 0.85
to_jsonMethod · 0.45

Tested by

no test coverage detected