Files
swift-mirror/test/SourceKit/CursorInfo/rdar_41593893.swift
Ben Barham d206e1baa1 [Test] Re-enable and cleanup some cursor info tests
Re-enable `static_vs_class_spelling.swift` - it was just missing the
`-target` in the `sourcekitd-test` lines.

While here, cleanup all the cursor info tests that used `split_file` to
use `split-file` instead.

Resolves rdar://105287822.
2023-02-10 19:33:15 -08:00

24 lines
577 B
Swift

// RUN: %empty-directory(%t)
// RUN: split-file %s %t
// RUN: %sourcekitd-test -req=cursor -pos=8:37 %t/first.swift -- %t/first.swift %t/second.swift | %FileCheck %s
// CHECK: source.lang.swift.ref.var.instance (6:9-6:12)
//--- first.swift
protocol ChatDataSourceDelegateProtocol {
func chatDataSourceDidUpdate()
}
class BaseChatViewController {
var foo = 1
func bar() {
print(self . /*cursor-info->*/foo)
}
}
//--- second.swift
extension BaseChatViewController: ChatDataSourceDelegateProtocol {
func chatDataSourceDidUpdate() { fatalError() }
}