File tree 4 files changed +12
-9
lines changed
4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 6
6
},
7
7
"lineBreakBeforeEachArgument": true,
8
8
"indentConditionalCompilationBlocks": false,
9
+ "prioritizeKeepingFunctionOutputTogether": true,
9
10
"rules": {
10
11
"AlwaysUseLowerCamelCase": false,
11
12
"AmbiguousTrailingClosureOverload": false,
Original file line number Diff line number Diff line change @@ -137,9 +137,10 @@ public class MultiFileTestProject {
137
137
/// Opens the document with the given file name in the SourceKit-LSP server.
138
138
///
139
139
/// - Returns: The URI for the opened document and the positions of the location markers.
140
- public func openDocument( _ fileName: String , language: Language ? = nil ) throws -> (
141
- uri: DocumentURI , positions: DocumentPositions
142
- ) {
140
+ public func openDocument(
141
+ _ fileName: String ,
142
+ language: Language ? = nil
143
+ ) throws -> ( uri: DocumentURI , positions: DocumentPositions ) {
143
144
guard let fileData = self . fileData [ fileName] else {
144
145
throw Error . fileNotFound
145
146
}
Original file line number Diff line number Diff line change @@ -298,9 +298,10 @@ private struct IndexOutOfDateChecker {
298
298
/// `documentManager` must always be the same between calls to `hasFileInMemoryModifications` since it is not part of
299
299
/// the cache key. This is fine because we always assume the `documentManager` to come from the associated value of
300
300
/// `CheckLevel.imMemoryModifiedFiles`, which is constant.
301
- private mutating func fileHasInMemoryModifications( _ uri: DocumentURI , documentManager: InMemoryDocumentManager )
302
- -> Bool
303
- {
301
+ private mutating func fileHasInMemoryModifications(
302
+ _ uri: DocumentURI ,
303
+ documentManager: InMemoryDocumentManager
304
+ ) -> Bool {
304
305
if let cached = fileHasInMemoryModificationsCache [ uri] {
305
306
return cached
306
307
}
Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ public struct SyntaxHighlightingTokens: Sendable {
68
68
}
69
69
70
70
/// Sorts the tokens in this array by their start position.
71
- public func sorted( _ areInIncreasingOrder : ( SyntaxHighlightingToken , SyntaxHighlightingToken ) -> Bool )
72
- -> SyntaxHighlightingTokens
73
- {
71
+ public func sorted(
72
+ _ areInIncreasingOrder : ( SyntaxHighlightingToken , SyntaxHighlightingToken ) -> Bool
73
+ ) -> SyntaxHighlightingTokens {
74
74
SyntaxHighlightingTokens ( tokens: tokens. sorted ( by: areInIncreasingOrder) )
75
75
}
76
76
}
You can’t perform that action at this time.
0 commit comments