|
21 | 21 |
|
22 | 22 | // RUN: %target-swift-ide-test -code-completion -source-filename %s -I %t -code-completion-token=MODULE_QUALIFIED_5 | %FileCheck %s -check-prefix=ERROR_COMMON
|
23 | 23 |
|
| 24 | +// RUN: %target-swift-ide-test -code-completion -source-filename %s -I %t -code-completion-token=STDLIB_TYPE_QUALIFIED > %t.compl.txt |
| 25 | +// RUN: %FileCheck %s -check-prefix=STDLIB_TYPE_QUALIFIED < %t.compl.txt |
| 26 | + |
| 27 | +// RUN: %target-swift-ide-test -code-completion -source-filename %s -I %t -code-completion-token=MODULE_TYPE_QUALIFIED > %t.compl.txt |
| 28 | +// RUN: %FileCheck %s -check-prefix=MODULE_TYPE_QUALIFIED < %t.compl.txt |
| 29 | + |
24 | 30 | // RUN: %target-swift-ide-test -code-completion -source-filename %s -I %t -code-completion-token=POSTFIX_OPERATOR_1 > %t.compl.txt
|
25 | 31 | // RUN: %FileCheck %s -check-prefix=POSTFIX_OPERATOR_1 < %t.compl.txt
|
26 | 32 | // RUN: %FileCheck %s -check-prefix=NEGATIVE_POSTFIX_OPERATOR_1 < %t.compl.txt
|
@@ -99,3 +105,20 @@ func testPostfixOperator1(x: Int) {
|
99 | 105 | // TOP_LEVEL_1-DAG: Decl[GlobalVar]/Local: hiddenImport[#Int#]{{; name=.+$}}
|
100 | 106 | // TOP_LEVEL_1-DAG: Decl[GlobalVar]/OtherModule[foo_swift_module]: globalVar[#Int#]{{; name=.+$}}
|
101 | 107 | // TOP_LEVEL_1: End completions
|
| 108 | + |
| 109 | +struct Foo: Swift.Array.#^STDLIB_TYPE_QUALIFIED^# {} |
| 110 | +// STDLIB_TYPE_QUALIFIED: Begin completions |
| 111 | +// STDLIB_TYPE_QUALIFIED: Decl[TypeAlias]/CurrNominal: Index[#Int#]; name=Index |
| 112 | +// STDLIB_TYPE_QUALIFIED: Decl[TypeAlias]/CurrNominal: Element[#Element#]; name=Element |
| 113 | +// STDLIB_TYPE_QUALIFIED: Keyword/None: Type[#Array.Type#]; name=Type |
| 114 | +// STDLIB_TYPE_QUALIFIED: End completions |
| 115 | + |
| 116 | +func foo() -> foo_swift_module.#^MODULE_TYPE_QUALIFIED^# {} |
| 117 | +// MODULE_TYPE_QUALIFIED: Begin completions |
| 118 | +// MODULE_TYPE_QUALIFIED: Decl[Protocol]/OtherModule[foo_swift_module]: BarProtocol[#BarProtocol#]; name=BarProtocol |
| 119 | +// MODULE_TYPE_QUALIFIED: Decl[Enum]/OtherModule[foo_swift_module]: MyQuickLookObject[#MyQuickLookObject#]; name=MyQuickLookObject |
| 120 | +// MODULE_TYPE_QUALIFIED: Decl[Struct]/OtherModule[foo_swift_module]: BarGenericSwiftStruct1[#BarGenericSwiftStruct1#]; name=BarGenericSwiftStruct1 |
| 121 | +// MODULE_TYPE_QUALIFIED: Decl[Struct]/OtherModule[foo_swift_module]: FooSwiftStruct[#FooSwiftStruct#]; name=FooSwiftStruct |
| 122 | +// MODULE_TYPE_QUALIFIED: Decl[Struct]/OtherModule[foo_swift_module]: BarGenericSwiftStruct2[#BarGenericSwiftStruct2#]; name=BarGenericSwiftStruct2 |
| 123 | +// MODULE_TYPE_QUALIFIED: Keyword/None: Type[#module<foo_swift_module>.Type#]; name=Type |
| 124 | +// MODULE_TYPE_QUALIFIED: End completions |
0 commit comments