Where to read about *.swiftmodule file format?

Hi

Where to read about *.swiftmodule file format?

And *.swiftdoc

I want to understand container of it.

would be good to have parser for third party IDEs.

Best regards,
Volodymyr Boichentsov

Hi Volodymyr,

The format is not documented anywhere and is subject to change. A good starting point is include/swift/Serialization/ModuleFormat.h, but I would first be curious to know what exactly you’re planning on doing with it.

It might be better to extend swift-ide-test and similar utilities to dump the information you need in an easy to parse format, and exec() them from your IDE, instead of attempting to parse swift modules directly.

Slava

···

On Nov 28, 2017, at 7:00 AM, Volodymyr B via swift-users <swift-users@swift.org> wrote:

Hi

Where to read about *.swiftmodule file format?

And *.swiftdoc

I want to understand container of it.

would be good to have parser for third party IDEs.

Best regards,
Volodymyr Boichentsov

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Hi Slava,

Thank you for your respond.

I want to read content of file and present relations between classes in visual diagram.

Then I thought it also will be useful for other cases.

Best regards,
Volodymyr Boichentsov

···

On 28 Nov 2017, at 21:07, Slava Pestov <spestov@apple.com> wrote:

Hi Volodymyr,

The format is not documented anywhere and is subject to change. A good starting point is include/swift/Serialization/ModuleFormat.h, but I would first be curious to know what exactly you’re planning on doing with it.

It might be better to extend swift-ide-test and similar utilities to dump the information you need in an easy to parse format, and exec() them from your IDE, instead of attempting to parse swift modules directly.

Slava

On Nov 28, 2017, at 7:00 AM, Volodymyr B via swift-users <swift-users@swift.org <mailto:swift-users@swift.org>> wrote:

Hi

Where to read about *.swiftmodule file format?

And *.swiftdoc

I want to understand container of it.

would be good to have parser for third party IDEs.

Best regards,
Volodymyr Boichentsov

_______________________________________________
swift-users mailing list
swift-users@swift.org <mailto:swift-users@swift.org>
https://lists.swift.org/mailman/listinfo/swift-users