[swift-dev] Consider removing the space in Swift AST dump's "decl" attribute?

Joe Groff jgroff at apple.com
Mon May 9 12:20:37 CDT 2016

> On May 9, 2016, at 10:00 AM, Minsheng Liu via swift-dev <swift-dev at swift.org> wrote:
> Thanks for your information. However, what I intend to work on is a Swift-to-JS translator, which I guess probably need to stick with the upstream anyway. I think that make the output a bit more parsing-friendly will not harm, will it?
> Moreover, if you do not suggest parse the dumped AST, is there any recommended way to reuse the compiler’s front-end?

It would be better to use an interface designed for programmatic consumption, either coding against Swift's libSwiftAST.a directly, or through our libIDE or SourceKit, than to use our debug dumping outputs.


More information about the swift-dev mailing list