File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Inputs/clang-importer-sdk/swift-modules Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 39
39
// Check the individual cache item.
40
40
// RUN: %target-swift-ide-test -dump-completion-cache %t.ccp/macros-dot-* | %FileCheck %s -check-prefix=CLANG_QUAL_MACROS_2
41
41
42
+ // Qualified private with dot.
43
+ // RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -code-completion -source-filename %s -code-completion-token=CLANG_QUAL_STRING -completion-cache-path=%t.ccp > %t.string.ccp1.compl.txt
44
+ // RUN: %FileCheck %s -check-prefix=CLANG_QUAL_STRING < %t.string.ccp1.compl.txt
45
+
46
+
42
47
// Ensure the testable import showed up mangled correctly.
43
48
// RUN: ls %t.ccp/Darwin-testable*
49
+ // RUN: ls %t.ccp/AppKit-private*
44
50
// REQUIRES: executable_test
45
51
46
52
import macros
47
53
import ctypes
48
54
@testable import Darwin
55
+ @_private ( sourceFile: " AppKit.swift " ) import AppKit
49
56
50
57
// CLANG_CTYPES: Begin completions
51
58
// CLANG_CTYPES-DAG: Decl[Struct]/OtherModule[ctypes]/keyword[Foo1, Struct1]: FooStruct1[#FooStruct1#]{{; name=.+$}}
@@ -106,3 +113,10 @@ func testCompleteModuleQualifiedMacros2() {
106
113
// CLANG_QUAL_MACROS_2-DAG: Decl[GlobalVar]/OtherModule[macros]: .VERSION_STRING[#String#]{{; name=.+$}}
107
114
// CLANG_QUAL_MACROS_2: End completions
108
115
}
116
+
117
+ func testPrivate( ) {
118
+ String. #^CLANG_QUAL_STRING^#
119
+ // CLANG_QUAL_STRING: Begin completions
120
+ // CLANG_QUAL_STRING: name=someMethod()
121
+ // CLANG_QUAL_STRING: End completions
122
+ }
Original file line number Diff line number Diff line change 3
3
extension String {
4
4
public static func someFactoryMethod( ) -> Int { return 0 }
5
5
}
6
+
7
+ extension String {
8
+ static func someMethod( ) -> Int { return 0 }
9
+ }
You can’t perform that action at this time.
0 commit comments