mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SourceKit] Split SourceDocInfo tests into CursorInfo and RelatedIdents subdirectories
Unless you're familiar with the way the swift source code is organized, it's not clear what "SourceDocInfo" means, or how it is different from DocSupport, etc. Move the tests into directories that are named based on their request (note: we already had one test under CursorInfo, which just made things even more confusing).
This commit is contained in:
18
test/SourceKit/CursorInfo/cursor_implicit_init.swift
Normal file
18
test/SourceKit/CursorInfo/cursor_implicit_init.swift
Normal file
@@ -0,0 +1,18 @@
|
||||
class MyClass {
|
||||
init(abc:Int) {
|
||||
}
|
||||
}
|
||||
|
||||
class MySubClass: MyClass {
|
||||
}
|
||||
|
||||
func foo() {
|
||||
MyClass(abc:1)
|
||||
MySubClass(abc:1)
|
||||
}
|
||||
|
||||
// RUN: %sourcekitd-test -req=cursor -pos=10:12 %s -- %s | FileCheck -check-prefix=CHECK1 %s
|
||||
// CHECK1: <Declaration>init(abc: <Type usr="s:Si">Int</Type>)</Declaration>
|
||||
|
||||
// RUN: %sourcekitd-test -req=cursor -pos=11:16 %s -- %s | FileCheck -check-prefix=CHECK2 %s
|
||||
// CHECK2: <Declaration>init(abc: <Type usr="s:Si">Int</Type>)</Declaration>
|
||||
Reference in New Issue
Block a user