Files
swift-mirror/test/SourceKit/RelatedIdents/system_symbol.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

11 lines
268 B
Swift

// REQUIRES: swift_swift_parser
// RUN: %sourcekitd-test -req=related-idents -pos=%(line + 1):13 %s -- %s | %FileCheck %s
func foo(x: String) {
let a: String = "abc"
}
// CHECK: START RANGES
// CHECK-NEXT: 3:13 - 6
// CHECK-NEXT: 4:10 - 6
// CHECK-NEXT: END RANGES