File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -4265,6 +4265,7 @@ class CompletionOverrideLookup : public swift::VisibleDeclConsumer {
4265
4265
PrintOptions Options;
4266
4266
if (auto transformType = CurrDeclContext->getDeclaredTypeInContext ())
4267
4267
Options.setBaseType (transformType);
4268
+ Options.SkipUnderscoredKeywords = true ;
4268
4269
Options.PrintImplicitAttrs = false ;
4269
4270
Options.ExclusiveAttrList .push_back (TAK_escaping);
4270
4271
Options.ExclusiveAttrList .push_back (TAK_autoclosure);
Original file line number Diff line number Diff line change 66
66
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=INFIX_STRING_1 | %FileCheck %s -check-prefix=INFIX_STRING
67
67
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=INFIX_EXT_STRING_1 | %FileCheck %s -check-prefix=INFIX_EXT_STRING
68
68
69
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=CONFORM_SEQUENCE | %FileCheck %s -check-prefix=CONFORM_SEQUENCE
70
+
69
71
// NO_STDLIB_PRIVATE: Begin completions
70
72
// NO_STDLIB_PRIVATE: End completions
71
73
@@ -286,3 +288,14 @@ func testInfixOperator4(_ x: String) {
286
288
// INFIX_EXT_STRING-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]: && {#Bool#}[#Bool#]
287
289
// INFIX_EXT_STRING-NOT: ==
288
290
// INFIX_EXT_STRING: End completions
291
+
292
+ class TestSequence : Sequence {
293
+ #^CONFORM_SEQUENCE^#
294
+ // CONFORM_SEQUENCE: Begin completions
295
+ // CONFORM_SEQUENCE-DAG: Decl[AssociatedType]/Super: typealias Element = {#(Type)#};
296
+ // CONFORM_SEQUENCE-DAG: Decl[AssociatedType]/Super: typealias Iterator = {#(Type)#};
297
+ // CONFORM_SEQUENCE-DAG: Decl[InstanceMethod]/Super: func makeIterator() -> some IteratorProtocol {|};
298
+ // CONFORM_SEQUENCE-DAG: Decl[InstanceVar]/Super: var underestimatedCount: Int;
299
+ // CONFORM_SEQUENCE-DAG: Decl[InstanceMethod]/Super: func withContiguousStorageIfAvailable<R>(_ body: (UnsafeBufferPointer<Element>) throws -> R) rethrows -> R? {|};
300
+ // CONFORM_SEQUENCE: End completions
301
+ }
You can’t perform that action at this time.
0 commit comments