File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Sources/SourceKitLSP/Swift Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,13 @@ struct TestingAttributeData {
96
96
}
97
97
} . flatMap ( \. arguments)
98
98
. compactMap {
99
- $0. expression. as ( StringLiteralExprSyntax . self) ? . representedLiteralValue ??
100
- $0. expression. as ( MemberAccessExprSyntax . self) ? . declName. baseName. text
99
+ if let stringLiteral = $0. expression. as ( StringLiteralExprSyntax . self) {
100
+ return stringLiteral. representedLiteralValue
101
+ } else if let memberAccess = $0. expression. as ( MemberAccessExprSyntax . self) {
102
+ let baseName = ( memberAccess. baseName. map { " \( $0) . " } ?? " " ) . replacing ( #/Tag\./# , with: " " )
103
+ return " \( baseName) \( memberAccess. declName. baseName. text) "
104
+ }
105
+ return nil
101
106
}
102
107
103
108
self . isDisabled = traitArguments. lazy
You can’t perform that action at this time.
0 commit comments