.swiftmodule format, a few short questions


(Benjamin Spratling) #1

Howdy,
  I would appreciate it if someone with a working knowledge of the .swiftmodule format and especially the DECLS_AND_TYPES_BLOCK block would contact me privately.
  I’m working on a module which extracts information from .swiftmodule files (the binary files, not the directories) to enable more advanced unit tests which are otherwise implausible. I have been able to access the basic names of types and members, but I’m thus far unable to determine which members belong in which types.
  Brownie points if you can tell me how to do it without loading the hash table in the TOP_LEVEL_DECLS block.
-Ben Spratling


(Joe Groff) #2

[-swift-evolution, +swift-dev]

Swift-evolution is for discussion of Swift language design, not its implementation.

-Joe

···

On Dec 4, 2016, at 1:48 AM, Benjamin Spratling via swift-evolution <swift-evolution@swift.org> wrote:

Howdy,
  I would appreciate it if someone with a working knowledge of the .swiftmodule format and especially the DECLS_AND_TYPES_BLOCK block would contact me privately.
  I’m working on a module which extracts information from .swiftmodule files (the binary files, not the directories) to enable more advanced unit tests which are otherwise implausible. I have been able to access the basic names of types and members, but I’m thus far unable to determine which members belong in which types.
  Brownie points if you can tell me how to do it without loading the hash table in the TOP_LEVEL_DECLS block.
-Ben Spratling


(Joe Groff) #3

[-swift-evolution, +swift-dev]

Swift-evolution is for discussion of Swift language design, not its implementation.

-Joe

···

On Dec 5, 2016, at 9:40 AM, Joe Groff <jgroff@apple.com> wrote:

On Dec 4, 2016, at 1:48 AM, Benjamin Spratling via swift-evolution <swift-evolution@swift.org> wrote:

Howdy,
  I would appreciate it if someone with a working knowledge of the .swiftmodule format and especially the DECLS_AND_TYPES_BLOCK block would contact me privately.
  I’m working on a module which extracts information from .swiftmodule files (the binary files, not the directories) to enable more advanced unit tests which are otherwise implausible. I have been able to access the basic names of types and members, but I’m thus far unable to determine which members belong in which types.
  Brownie points if you can tell me how to do it without loading the hash table in the TOP_LEVEL_DECLS block.
-Ben Spratling