File tree Expand file tree Collapse file tree 2 files changed +26
-26
lines changed
test/SourceKit/CodeComplete Expand file tree Collapse file tree 2 files changed +26
-26
lines changed Original file line number Diff line number Diff line change 1
- // BEGIN Module.swift
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %empty-directory(%t/Modules)
3
+ // RUN: split-file %s %t
4
+
5
+ // RUN: %target-swift-frontend \
6
+ // RUN: -emit-module \
7
+ // RUN: -module-name DocBriefTest \
8
+ // RUN: -emit-module-path %t/Modules/DocBriefTest.swiftmodule \
9
+ // RUN: -emit-module-doc-path %t/Modules/DocBriefTest.swiftdoc \
10
+ // RUN: %t/Module.swift
11
+
12
+ //--- Module.swift
2
13
public protocol P {
3
14
/// This is a doc comment of P.foo
4
15
///
5
16
/// Do whatever.
6
17
func foo( )
7
18
}
8
19
9
- // BEGIN User.swift
20
+ //--- User.swift
10
21
import DocBriefTest
11
22
struct S : P {
12
23
func foo( ) { }
@@ -16,17 +27,6 @@ func test() {
16
27
S ( ) .
17
28
}
18
29
19
- // RUN: %empty-directory(%t)
20
- // RUN: %empty-directory(%t/Modules)
21
- // RUN: %{python} %utils/split_file.py -o %t %s
22
-
23
- // RUN: %target-swift-frontend \
24
- // RUN: -emit-module \
25
- // RUN: -module-name DocBriefTest \
26
- // RUN: -emit-module-path %t/Modules/DocBriefTest.swiftmodule \
27
- // RUN: -emit-module-doc-path %t/Modules/DocBriefTest.swiftdoc \
28
- // RUN: %t/Module.swift
29
-
30
30
// RUN: %sourcekitd-test -req=complete -pos=7:7 %t/User.swift -- %t/User.swift -I %t/Modules -target %target-triple -module-name DocBriefUser | %FileCheck %s -check-prefix=CHECK
31
31
32
32
// CHECK: {
Original file line number Diff line number Diff line change 1
- // BEGIN Module.swift
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %empty-directory(%t/Modules)
3
+ // RUN: split-file %s %t
4
+
5
+ // RUN: %target-swift-frontend \
6
+ // RUN: -emit-module \
7
+ // RUN: -module-name DocBriefTest \
8
+ // RUN: -emit-module-path %t/Modules/DocBriefTest.swiftmodule \
9
+ // RUN: -emit-module-doc-path %t/Modules/DocBriefTest.swiftdoc \
10
+ // RUN: %t/Module.swift
11
+
12
+ //--- Module.swift
2
13
public protocol P {
3
14
/// This is a doc comment of P.foo
4
15
///
@@ -11,23 +22,12 @@ public struct S: P {
11
22
public func foo( ) { }
12
23
}
13
24
14
- // BEGIN User.swift
25
+ //--- User.swift
15
26
import DocBriefTest
16
27
func test( ) {
17
28
S ( ) . foo ( )
18
29
}
19
30
20
- // RUN: %empty-directory(%t)
21
- // RUN: %empty-directory(%t/Modules)
22
- // RUN: %{python} %utils/split_file.py -o %t %s
23
-
24
- // RUN: %target-swift-frontend \
25
- // RUN: -emit-module \
26
- // RUN: -module-name DocBriefTest \
27
- // RUN: -emit-module-path %t/Modules/DocBriefTest.swiftmodule \
28
- // RUN: -emit-module-doc-path %t/Modules/DocBriefTest.swiftdoc \
29
- // RUN: %t/Module.swift
30
-
31
31
// RUN: %sourcekitd-test -req=complete -pos=3:7 %t/User.swift -- %t/User.swift -I %t/Modules -target %target-triple -module-name DocBriefUser | %FileCheck %s -check-prefix=CHECK
32
32
33
33
// CHECK: {
You can’t perform that action at this time.
0 commit comments