I couldn't work out how to compile SourceKit, but from the comment here, I think it would be required to do so as I couldn't find libsourcekitdInProc.dylib in my Xcode directory:
if name == 'Darwin':
# The XPC service cannot run via the bindings due to permissions
# issue.
# file = 'sourcekitd.framework/sourcekitd'
file = 'libsourcekitdInProc.dylib'
If this were to work as I'd hope it might:
Reduce dependencies
Reduce overhead from calling SwiftKitten and JSON parsing the results
In the Swift/SourceKit source there are Python bindings for using SourceKit directly
I couldn't work out how to compile SourceKit, but from the comment here, I think it would be required to do so as I couldn't find
libsourcekitdInProc.dylib
in my Xcode directory:If this were to work as I'd hope it might: