mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This allows building sourcekitd and swift-refactor with `SWIFT_BUILD_SWIFT_SYNTAX=NO`. In these builds, the `relatedidents` and `find-syntactic-rename-ranges` requests will always return an error.
10 lines
511 B
Swift
10 lines
511 B
Swift
struct Foo {
|
|
/*test:def*/subscript(`x` y: Int) -> Int { fatalError() }
|
|
}
|
|
Foo()/*test:ref*/[`x`: 10]
|
|
|
|
// REQUIRES: swift_swift_parser
|
|
// RUN: %empty-directory(%t.ranges)
|
|
// RUN: %refactor -find-rename-ranges -source-filename %s -pos="test" -is-function-like -old-name "subscript(x:)" >> %t.ranges/backticks-noncollapsible-separate-arglabel.swift.expected
|
|
// RUN: diff -u %S/Outputs/backticks-noncollapsible-separate-arglabel.swift.expected %t.ranges/backticks-noncollapsible-separate-arglabel.swift.expected
|