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.
16 lines
566 B
Swift
16 lines
566 B
Swift
func boop() {
|
|
enum LocalEnum {
|
|
case north
|
|
case south
|
|
}
|
|
|
|
print(LocalEnum.north)
|
|
}
|
|
|
|
// REQUIRES: swift_swift_parser
|
|
// RUN: %empty-directory(%t.result)
|
|
// RUN: %refactor -find-local-rename-ranges -source-filename %s -pos=3:10 -new-name east > %t.result/north_def.swift
|
|
// RUN: diff -u %S/Outputs/localEnum/north.swift.expected %t.result/north_def.swift
|
|
// RUN: %refactor -find-local-rename-ranges -source-filename %s -pos=7:19 -new-name east > %t.result/north_ref.swift
|
|
// RUN: diff -u %S/Outputs/localEnum/north.swift.expected %t.result/north_ref.swift
|