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.
10 lines
336 B
Swift
10 lines
336 B
Swift
var foo: String {
|
|
let name = "white"
|
|
return name
|
|
}
|
|
|
|
// REQUIRES: swift_swift_parser
|
|
// RUN: %empty-directory(%t.result)
|
|
// RUN: %refactor -find-local-rename-ranges -source-filename %s -pos=2:7 > %t.result/computed_property.swift
|
|
// RUN: diff -u %S/Outputs/property/computed_property.swift.expected %t.result/computed_property.swift
|