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

26 lines
428 B
Swift

// RUN: %empty-directory(%t)
// RUN: split-file %s %t
//--- a.swift
class A {
var b: B
var c: B
}
//--- b.swift
class B {
var a: A
}
//--- dummy.swift
// REQUIRES: swift_swift_parser
// RUN: %sourcekitd-test -req=related-idents -pos=3:10 %t/a.swift -- %t/a.swift %t/b.swift -o implicit_vis.o | %FileCheck -check-prefix=CHECK1 %s
// CHECK1: START RANGES
// CHECK1: 3:10 - 1
// CHECK1: 4:10 - 1
// CHECK1: END RANGES