Files
swift-mirror/test/SourceKit/Refactoring/rename-with-location-directive.swift
Alex Hoppen a710111001 [SourceKit] Support building sourcekitd without building swift-syntax
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.
2023-12-04 19:14:01 -08:00

8 lines
263 B
Swift

#sourceLocation(file: "someFile.swift", line: 10)
func test() {}
#sourceLocation()
// REQUIRES: swift_swift_parser
// RUN: %sourcekitd-test -req=find-local-rename-ranges -pos=2:6 %s -- %s | %FileCheck %s
// CHECK: 2:6-2:10 source.refactoring.range.kind.basename