10
10
// RUN: %t/SomeModule.swift
11
11
12
12
// RUN: %target-swift-ide-test -code-completion -sdk %t/SDK -iframework %t/SDK/Frameworks -source-filename %t/main.swift -code-completion-token=GLOBAL | %FileCheck --check-prefix GLOBAL %s
13
- // RUN: %target-swift-ide-test -code-completion -sdk %t/SDK -iframework %t/SDK/Frameworks -source-filename %t/main.swift -code-completion-token=GLOBAL_TYPE | %FileCheck --check-prefix GLOBAL_TYPE %s
14
13
// RUN: %target-swift-ide-test -code-completion -sdk %t/SDK -iframework %t/SDK/Frameworks -source-filename %t/main.swift -code-completion-token=INSTANCE | %FileCheck --check-prefix INSTANCE %s
15
14
// RUN: %target-swift-ide-test -code-completion -sdk %t/SDK -iframework %t/SDK/Frameworks -source-filename %t/main.swift -code-completion-token=INITIALIZER | %FileCheck --check-prefix INITIALIZER %s
16
15
@@ -37,10 +36,6 @@ internal func internalFunc() {}
37
36
public func _secretFunc( ) { }
38
37
public func publicFunc( ) { }
39
38
40
- internal class InternalClass { }
41
- public class _SecretClass { }
42
- public class PublicClass { }
43
-
44
39
// BEGIN main.swift
45
40
import SomeModule
46
41
@@ -49,21 +44,10 @@ func test(value: SomeValue) {
49
44
// GLOBAL: Begin completions
50
45
// GLOBAL-NOT: _secretFunc
51
46
// GLOBAL-NOT: internalFunc
52
- // GLOBAL-NOT: _SecretClass
53
- // GLOBAL-NOT: InternalClass
54
47
// GLOBAL-DAG: Decl[Struct]/OtherModule[SomeModule]: SomeValue[#SomeValue#];
55
48
// GLOBAL-DAG: Decl[FreeFunction]/OtherModule[SomeModule]: publicFunc()[#Void#];
56
- // GLOBAL-DAG: Decl[Class]/OtherModule[SomeModule]: PublicClass[#PublicClass#]; name=PublicClass
57
49
// GLOBAL: End completions
58
50
59
- let _: #^GLOBAL_TYPE^#
60
- // GLOBAL_TYPE: Begin completions
61
- // GLOBAL_TYPE-NOT: InternalClass
62
- // GLOBAL_TYPE-NOT: _SecretClass
63
- // GLOBAL-TYPE-DAG: Decl[Struct]/OtherModule[SomeModule]: SomeValue[#SomeValue#];
64
- // GLOBAL-TYPE-DAG: Decl[Class]/OtherModule[SomeModule]: PublicClass[#PublicClass#];
65
- // GLOBAL_TYPE: End completions
66
-
67
51
let _ = value. #^INSTANCE^#
68
52
// INSTANCE: Begin completions, 3 items
69
53
// INSTANCE-DAG: Keyword[self]/CurrNominal: self[#SomeValue#];
0 commit comments