mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We don't actually need to set a ContextOverride unless the ContextLoc and L paren/brace/bracket are on different lines. Combined with the fact that we only set them if the L and R parens/braces/brackets are on different lines to, it guarantees there will be at most one override that's applicable on any given line, which lets us simplify the logic somewhat.
7 lines
219 B
Swift
7 lines
219 B
Swift
let foo = Bar.Stuff(
|
|
first: path,
|
|
description: "No \(thing) was found at path \(path)"
|
|
|
|
// RUN: %sourcekitd-test -req=format -line=4 -length=1 %s | %FileCheck --strict-whitespace %s
|
|
// CHECK: key.sourcetext: ""
|