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.
7 lines
424 B
Swift
7 lines
424 B
Swift
// REQUIRES: swift_swift_parser
|
|
// RUN: not %refactor -find-rename-ranges -source-filename %s -pos="ignore" -old-name "a" -new-name " "
|
|
// RUN: not %refactor -find-rename-ranges -source-filename %s -pos="ignore" -is-function-like -old-name "foo(a:)" -new-name "foo( :)"
|
|
// RUN: not %refactor -find-rename-ranges -source-filename %s -pos="ignore" -is-function-like -old-name "foo" -new-name "foo( )"
|
|
|
|
func /*ignore*/foo() {}
|