Hi all, is it possible to dump ASTs for a file that's part of a Swift Package Manager project? Usually, I'd use something like swiftc -dump-ast test.swift
, but I guess I can't call swiftc
directly if I want to build a Swift package (with dependencies etc). I tried doing swift build -Xswiftc -dump-ast
, but it says <unknown>:0: error: this mode does not support emitting dependency files
. Any thoughts?
It'd also be good to know if I can use SourceKit with Swift Package Manager builds, since apparently I also have to call SourceKit while passing flags for a valid compilation for it to work...