mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
565 B
Swift
18 lines
565 B
Swift
class Foo {
|
|
func Bar() {
|
|
repeat {
|
|
foo()
|
|
|
|
|
|
// RUN: %sourcekitd-test -req=format -line=1 -length=1 %s >%t.response
|
|
// RUN: %sourcekitd-test -req=format -line=2 -length=1 %s >>%t.response
|
|
// RUN: %sourcekitd-test -req=format -line=3 -length=1 %s >>%t.response
|
|
// RUN: %sourcekitd-test -req=format -line=4 -length=1 %s >>%t.response
|
|
// RUN: %FileCheck --strict-whitespace %s <%t.response
|
|
|
|
// CHECK: key.sourcetext: "class Foo {"
|
|
// CHECK: key.sourcetext: " func Bar() {"
|
|
// CHECK: key.sourcetext: " repeat {"
|
|
// CHECK: key.sourcetext: " foo()"
|
|
|