swiftc: provide an option to dump the AST as JSON
| Originator: | paulyoungonline | ||
| Number: | rdar://18922190 | Date Originated: | 10-Nov-2014 01:28 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Swift version 1.1 (swift-600.0.54.20) Target: x86_64-apple-darwin13.4.0 |
| Classification: | Enhancement | Reproducible: | Not Applicable |
Summary: The AST of a Swift file can be output using swiftc via the --dump-ast flag. Please provide a way to output this as JSON. Steps to Reproduce: 1. Execute xcrun --sdk macosx swiftc -dump-ast <filename> on any valid Swift file. 2. Examine the output. Expected Results: Results are expected but there is no option to dump the AST as JSON. Actual Results: Results are expected but there is no option to dump the AST as JSON. Version: Swift version 1.1 (swift-600.0.54.20) Target: x86_64-apple-darwin13.4.0
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!