|
50 | 50 | // RUN: %FileCheck %s -check-prefix=QUX_ENUM_NO_DOT < %t.enum.txt
|
51 | 51 |
|
52 | 52 | // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=ENUM_QUAL_DOT_1 > %t.enum.txt
|
53 |
| -// RUN: %FileCheck %s -check-prefix=FOO_ENUM_DOT < %t.enum.txt |
| 53 | +// RUN: %FileCheck %s -check-prefix=FOO_ENUM_DOT_INVALID < %t.enum.txt |
54 | 54 |
|
55 | 55 | // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=ENUM_QUAL_DOT_2 > %t.enum.txt
|
56 | 56 | // RUN: %FileCheck %s -check-prefix=BAR_ENUM_DOT < %t.enum.txt
|
@@ -88,17 +88,27 @@ enum FooEnum: CaseIterable {
|
88 | 88 | // FOO_ENUM_NO_DOT: Begin completions
|
89 | 89 | // FOO_ENUM_NO_DOT-NEXT: Decl[EnumElement]/CurrNominal: .Foo1[#FooEnum#]{{; name=.+$}}
|
90 | 90 | // FOO_ENUM_NO_DOT-NEXT: Decl[EnumElement]/CurrNominal: .Foo2[#FooEnum#]{{; name=.+$}}
|
| 91 | +// FOO_ENUM_NO_DOT-NEXT: Decl[InstanceMethod]/CurrNominal: .hash({#self: FooEnum#})[#(into: inout Hasher) -> Void#]; name=hash(FooEnum) |
91 | 92 | // FOO_ENUM_NO_DOT-NEXT: Decl[TypeAlias]/CurrNominal: .AllCases[#[FooEnum]#]{{; name=.+$}}
|
92 | 93 | // FOO_ENUM_NO_DOT-NEXT: Decl[StaticVar]/CurrNominal: .allCases[#[FooEnum]#]{{; name=.+$}}
|
93 | 94 | // FOO_ENUM_NO_DOT-NEXT: End completions
|
94 | 95 |
|
95 | 96 | // FOO_ENUM_DOT: Begin completions
|
96 | 97 | // FOO_ENUM_DOT-NEXT: Decl[EnumElement]/CurrNominal: Foo1[#FooEnum#]{{; name=.+$}}
|
97 | 98 | // FOO_ENUM_DOT-NEXT: Decl[EnumElement]/CurrNominal: Foo2[#FooEnum#]{{; name=.+$}}
|
| 99 | +// FOO_ENUM_DOT-NEXT: Decl[InstanceMethod]/CurrNominal: hash({#self: FooEnum#})[#(into: inout Hasher) -> Void#]; name=hash(FooEnum) |
98 | 100 | // FOO_ENUM_DOT-NEXT: Decl[TypeAlias]/CurrNominal: AllCases[#[FooEnum]#]{{; name=.+$}}
|
99 | 101 | // FOO_ENUM_DOT-NEXT: Decl[StaticVar]/CurrNominal: allCases[#[FooEnum]#]{{; name=.+$}}
|
100 | 102 | // FOO_ENUM_DOT-NEXT: End completions
|
101 | 103 |
|
| 104 | +// FOO_ENUM_DOT_INVALID: Begin completions |
| 105 | +// FOO_ENUM_DOT_INVALID-NEXT: Decl[EnumElement]/CurrNominal: Foo1[#FooEnum#]{{; name=.+$}} |
| 106 | +// FOO_ENUM_DOT_INVALID-NEXT: Decl[EnumElement]/CurrNominal: Foo2[#FooEnum#]{{; name=.+$}} |
| 107 | +// FOO_ENUM_DOT_INVALID-NEXT: Decl[InstanceMethod]/CurrNominal/NotRecommended/TypeRelation[Invalid]: hash({#self: FooEnum#})[#(into: inout Hasher) -> Void#]; name=hash(FooEnum) |
| 108 | +// FOO_ENUM_DOT_INVALID-NEXT: Decl[TypeAlias]/CurrNominal: AllCases[#[FooEnum]#]{{; name=.+$}} |
| 109 | +// FOO_ENUM_DOT_INVALID-NEXT: Decl[StaticVar]/CurrNominal: allCases[#[FooEnum]#]{{; name=.+$}} |
| 110 | +// FOO_ENUM_DOT_INVALID-NEXT: End completions |
| 111 | + |
102 | 112 | // FOO_ENUM_DOT_ELEMENTS: Begin completions, 2 items
|
103 | 113 | // FOO_ENUM_DOT_ELEMENTS-NEXT: Decl[EnumElement]/ExprSpecific: Foo1[#FooEnum#]{{; name=.+$}}
|
104 | 114 | // FOO_ENUM_DOT_ELEMENTS-NEXT: Decl[EnumElement]/ExprSpecific: Foo2[#FooEnum#]{{; name=.+$}}
|
@@ -237,17 +247,19 @@ enum QuxEnum : Int {
|
237 | 247 | // QUX_ENUM_TYPE_CONTEXT-DAG: Decl[EnumElement]/ExprSpecific: .Qux2[#QuxEnum#]{{; name=.+$}}
|
238 | 248 | // QUX_ENUM_TYPE_CONTEXT: End completions
|
239 | 249 |
|
240 |
| -// QUX_ENUM_NO_DOT: Begin completions, 4 items |
| 250 | +// QUX_ENUM_NO_DOT: Begin completions, 5 items |
241 | 251 | // QUX_ENUM_NO_DOT-NEXT: Decl[EnumElement]/CurrNominal: .Qux1[#QuxEnum#]{{; name=.+$}}
|
242 | 252 | // QUX_ENUM_NO_DOT-NEXT: Decl[EnumElement]/CurrNominal: .Qux2[#QuxEnum#]{{; name=.+$}}
|
243 | 253 | // QUX_ENUM_NO_DOT-NEXT: Decl[TypeAlias]/CurrNominal: .RawValue[#Int#]{{; name=.+$}}
|
| 254 | +// QUX_ENUM_NO_DOT-NEXT: Decl[InstanceMethod]/CurrNominal: .hash({#self: QuxEnum#})[#(into: inout Hasher) -> Void#]; name=hash(QuxEnum) |
244 | 255 | // QUX_ENUM_NO_DOT-NEXT: Decl[Constructor]/CurrNominal: ({#rawValue: Int#})[#QuxEnum?#]{{; name=.+$}}
|
245 | 256 | // QUX_ENUM_NO_DOT-NEXT: End completions
|
246 | 257 |
|
247 |
| -// QUX_ENUM_DOT: Begin completions, 4 items |
| 258 | +// QUX_ENUM_DOT: Begin completions, 5 items |
248 | 259 | // QUX_ENUM_DOT-NEXT: Decl[EnumElement]/CurrNominal: Qux1[#QuxEnum#]{{; name=.+$}}
|
249 | 260 | // QUX_ENUM_DOT-NEXT: Decl[EnumElement]/CurrNominal: Qux2[#QuxEnum#]{{; name=.+$}}
|
250 | 261 | // QUX_ENUM_DOT-NEXT: Decl[TypeAlias]/CurrNominal: RawValue[#Int#]{{; name=.+$}}
|
| 262 | +// QUX_ENUM_DOT-NEXT: Decl[InstanceMethod]/CurrNominal/NotRecommended/TypeRelation[Invalid]: hash({#self: QuxEnum#})[#(into: inout Hasher) -> Void#]; name=hash(QuxEnum) |
251 | 263 | // QUX_ENUM_DOT-NEXT: Decl[Constructor]/CurrNominal: init({#rawValue: Int#})[#QuxEnum?#]{{; name=.+$}}
|
252 | 264 | // QUX_ENUM_DOT-NEXT: End completions
|
253 | 265 |
|
|
0 commit comments