mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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.
8 lines
286 B
Swift
8 lines
286 B
Swift
enum AnEnum {
|
|
case /*last-enum-element:def*/lastOccurrence(a: Int)
|
|
}
|
|
|
|
// REQUIRES: swift_swift_parser
|
|
// RUN: %refactor -find-rename-ranges -source-filename %s -pos="last-enum-element" -is-function-like -old-name "lastOccurrence(a:)" -new-name "lastOccurrence(b:)"
|
|
// REQUIRES asserts
|