[Dependency Scanning] Add serialization of optional imports to the JSON output

And to the corresponding graph data structure the output gets generated from
This commit is contained in:
Artem Chikin
2025-08-15 14:49:43 -07:00
parent bc30953c15
commit b14cbbb039
5 changed files with 57 additions and 35 deletions

View File

@@ -65,6 +65,9 @@ struct swiftscan_dependency_info_s {
/// The list of source import infos.
swiftscan_import_info_set_t *imports;
/// The list of source optional import infos.
swiftscan_import_info_set_t *optional_imports;
/// Specific details of a particular kind of module.
swiftscan_module_details_t details;
};