[swift-dev] [SourceKit] static modifier

Jose Cheyo Jimenez cheyo at masters3d.com
Sun May 7 15:56:16 CDT 2017


Hi, 
I am trying to understand why sourceKit is reporting `static` as a "source.lang.swift.syntaxtype.keyword" instead of a “source.lang.swift.syntaxtype.attribute.builtin”?

All the modifiers in this list (except for class and static) are `builtin` https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Declarations.html#//apple_ref/swift/grammar/declaration-modifiers <https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Declarations.html#//apple_ref/swift/grammar/declaration-modifiers>

I am trying to build a linting rule to enforce a consistent order of these attributes.  https://github.com/realm/SwiftLint/issues/387 <https://github.com/realm/SwiftLint/issues/387>

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20170507/26aa4bde/attachment.html>


More information about the swift-dev mailing list