Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include declaration attributes in SourceKitten #504

Closed
dirtydanee opened this issue Mar 28, 2018 · 4 comments
Closed

Include declaration attributes in SourceKitten #504

dirtydanee opened this issue Mar 28, 2018 · 4 comments

Comments

@dirtydanee
Copy link

dirtydanee commented Mar 28, 2018

When i am running with Xcode 9.2

strings /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/sourcekitd.framework/Versions/Current/XPCServices/SourceKitService.xpc/Contents/MacOS/SourceKitService|grep source.decl.attribute

I get the following output:

source.decl.attribute.ibaction
source.decl.attribute.iboutlet
source.decl.attribute.ibdesignable
source.decl.attribute.ibinspectable
source.decl.attribute.gkinspectable
source.decl.attribute.objc
source.decl.attribute.objc.name
source.decl.attribute._silgen_name
source.decl.attribute.available
source.decl.attribute.final
source.decl.attribute.required
source.decl.attribute.optional
source.decl.attribute.noreturn
source.decl.attribute._exported
source.decl.attribute.NSCopying
source.decl.attribute.NSManaged
source.decl.attribute.lazy
source.decl.attribute.LLDBDebuggerFunction
source.decl.attribute.UIApplicationMain
source.decl.attribute.unsafe_no_objc_tagged_pointer
source.decl.attribute.inline
source.decl.attribute._semantics
source.decl.attribute.dynamic
source.decl.attribute.infix
source.decl.attribute.prefix
source.decl.attribute.postfix
source.decl.attribute._transparent
source.decl.attribute.requires_stored_property_inits
source.decl.attribute.autoclosure
source.decl.attribute.noescape
source.decl.attribute.nonobjc
source.decl.attribute._fixed_layout
source.decl.attribute._inlineable
source.decl.attribute._specialize
source.decl.attribute.objcMembers
source.decl.attribute.mutating
source.decl.attribute.nonmutating
source.decl.attribute.convenience
source.decl.attribute.override
source.decl.attribute.sil_stored
source.decl.attribute.weak
source.decl.attribute.effects
source.decl.attribute.__objc_bridged
source.decl.attribute.NSApplicationMain
source.decl.attribute.objc_non_lazy_realization
source.decl.attribute.__synthesized_protocol
source.decl.attribute.testable
source.decl.attribute._alignment
source.decl.attribute.rethrows
source.decl.attribute._swift_native_objc_runtime_base
source.decl.attribute.indirect
source.decl.attribute.warn_unqualified_access
source.decl.attribute._cdecl
source.decl.attribute._versioned
source.decl.attribute.discardableResult
source.decl.attribute._implements
source.decl.attribute._objcRuntimeName
source.decl.attribute._staticInitializeObjCMetadata
source.decl.attribute._restatedObjCConformance

Would this be possible to be included in SourceKitten, maybe something like SwiftDeclarationAttributeKind?

@jpsim
Copy link
Owner

jpsim commented Apr 1, 2018

That'd be great!

@masters3d
Copy link

Are there any facilities to differentiate attributes that start with '@' like @objc? It would be kinna of cool is this could be like the linux test but I am not sure how that could be done.

@dirtydanee
Copy link
Author

@jpsim i will be opening a PR than soon. Also, would it be possible to update SourceKitten maybe to Swift 4.1 ?

@jpsim
Copy link
Owner

jpsim commented Apr 3, 2018

@dirtydanee you mean the swift language version specified in the Xcode project? Yeah, that'd be a good idea. Want to file a PR for that too? 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants