SourceKitten
SourceKitten copied to clipboard
An adorable little framework and command line tool for interacting with SourceKit.
It seems like a lot of the "cool" source kit commands (such as finding subclasses, documentation for a certain foundation type, etc.) are only implemented in /Applications/Xcode.app/Contents/SharedFrameworks/SourceKit.framework not in sourcekitd....
I'm using SourceKitten to improve syntax highlighting and add code completion for my app [Swift Coder](https://github.com/joshbirnholz/Swift-Coder). I've managed to get code completion suggestions through SourceKitten so far, but it gave...
When parsing source that has unicode characters, the start index is off by 1 and causes parsing of function bodies and related artifacts to be chopped off.
We are trying to parse a Xcode workspace that contains quite a lot of Swift and Objc modules. Using: `sourcekitten doc -- -workspace /path/to/my.xcworkspace -scheme SchemeName` returns: ``` Running xcodebuild...
Looking at https://github.com/jpsim/SourceKitten/blob/492510245a177248319436c5c66551edfe863e72/Source/SourceKittenFramework/Clang%2BSourceKitten.swift#L181, it appears that it would be relatively straightforward to add an `@since` tag. Appledoc appears to be able to support `@since` tag with something like https://github.com/groue/GRMustache/blob/master/src/classes/GRMustache.h#L33. Would...
We have a server-side project (using SPM) and have a script to generate documentation for it. However, when trying to migrate to Swift 4.2 (from 4.1.2), we noticed that in...
Hi, We use sourceKitten in the following way: `sourcekitten doc --spm-module "` and everything is fine. But if there is a *.swift file without a newline at the end of...
I found `"source.lang.swift.expr.call"` as a declaration, for example at the site of a `precondition`: ``` [0] = { key = "key.name" value = "precondition" } [1] = { key =...
Would it be possible? I've been trying to make a decent python script to do this, but the lack of semantics makes it fragile: I can't know whether a class...