I'm working on a web-based tool to browse the contents of a swift module, and I'm looking for a way to get a list of all the symbols (classes, structs, enums, functions, members) by name. It should be possible to reconstruct this by parsing the AST, but is there an easier way to get this information?
I suppose something like this is already done for the XCode symbol navigator, and probably Swift LSP. What would be the easiest way to achieve it? Maybe it's possible to parse DSYM files?
edit: ideally I would be able to do this in the context of a webserver running Linux - I'm not sure whether dSYM files are cross-platform