Hi,

I notice that currently the dumped AST contains a parsing-unfriendly “decl”
attribute like this:
> decl=fib.(file).func decl.b@fib.swift:4:9
The “func decl” contains a space but has nothing like a quote around it.
The whole AST output is delimited by spaces. I think this might create some
difficulty for someone who intends to parse the AST into another language
(like me). Is there any special purpose for adding a space like this,
rather than using something like “func_decl”? If not, should we change the
behavior to make it more parsing-friendly?

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

Reply via email to