[SourceKit] static modifier


(Chéyo Jiménez) #1

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

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

Thanks


(Chéyo Jiménez) #2

I filed this bug for anybody interested: https://bugs.swift.org/browse/SR-4834

···

On May 7, 2017, at 1:56 PM, Jose Cheyo Jimenez <cheyo@masters3d.com> wrote:

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

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

Thanks