Being a compiler, it would make sense that … there would be some
intermediate output
And indeed there is. In fact, IIRC there are two, one in memory representation (a symbol graph) and one on-disk (JSON perhaps).
Note My focus is on using DocC, so I only pay passing attention to this stuff.
I am wondering if and how one could get access to the AST
I think you should pop on over to the [Swift-DocC area] on Swift Forums and:
-
Search the existing posts to see what you can learn from those
-
If that doesn’t get you what you need, start a thread over there
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"