File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Sources/SourceKitLSP/Swift Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -96,16 +96,16 @@ struct TestingAttributeData {
96
96
}
97
97
} . flatMap ( \. arguments)
98
98
. compactMap {
99
- if let memberAccess = $0. expression. as ( MemberAccessExprSyntax . self) {
100
- var components = memberAccess. components [ ... ]
101
- if components. starts ( with: [ " Testing " , " Tag " ] ) {
102
- components = components. dropFirst ( 2 )
103
- } else if components. starts ( with: [ " Tag " ] ) {
104
- components = components. dropFirst ( 1 )
105
- }
106
- return components. joined ( separator: " . " )
99
+ if let memberAccess = $0. expression. as ( MemberAccessExprSyntax . self) {
100
+ var components = memberAccess. components [ ... ]
101
+ if components. starts ( with: [ " Testing " , " Tag " ] ) {
102
+ components = components. dropFirst ( 2 )
103
+ } else if components. starts ( with: [ " Tag " ] ) {
104
+ components = components. dropFirst ( 1 )
107
105
}
108
- return nil
106
+ return components. joined ( separator: " . " )
107
+ }
108
+ return nil
109
109
}
110
110
111
111
self . isDisabled = traitArguments. lazy
You can’t perform that action at this time.
0 commit comments