[SR-7252] SourceKit doesn't recognise static
and class
as declaration attribute
#49800
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Environment
Apple Swift version 4.1 using Xcode 9.3 beta 4
macOS version 10.13.3
Additional Detail from JIRA
md5: e0df0c763edebf5d45e250af1abf307b
Issue Description:
SourceKit doesn't include `static` and `class` as declaration attribute.
For example:
OR
will return
In `key.attributes` SourceKit only returns receive `source.decl.attribute.public`, nothing regarding the `static` or the `class` modifier.
I understand, that it is part of the `key.kind`, however using the structure above i am not able to identify what is the offset of the `static`, nor the `class` keyword.
Is there any chance, it could be included as attribute? It would be great, so i can identify the position by using `key.offset`.
The text was updated successfully, but these errors were encountered: