Skip to content

Commit b5351a1

Browse files
committed
[CursorInfo] UID for opaque result type.
rdar://problem/49819227
1 parent 3a2454c commit b5351a1

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

include/swift/AST/PrintOptions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ struct PrintOptions {
574574
PO.ExplodeEnumCaseDecls = true;
575575
PO.ShouldQualifyNestedDeclarations = QualifyNestedDeclarations::TypesOnly;
576576
PO.PrintParameterSpecifiers = true;
577+
PO.SkipImplicit = true;
577578
return PO;
578579
}
579580
};

tools/SourceKit/lib/SwiftLang/SwiftLangSupport.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ class UIdentVisitor : public ASTVisitor<UIdentVisitor,
117117
UID_FOR(Constructor)
118118
UID_FOR(Destructor)
119119
UID_FOR(Subscript)
120+
UID_FOR(OpaqueType)
120121
#undef UID_FOR
121122
};
122123

utils/gyb_sourcekit_support/UIDs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@ def __init__(self, internal_name, external_name):
322322
KIND('DeclExtensionProtocol', 'source.lang.swift.decl.extension.protocol'),
323323
KIND('DeclAssociatedType', 'source.lang.swift.decl.associatedtype'),
324324
KIND('RefAssociatedType', 'source.lang.swift.ref.associatedtype'),
325+
KIND('DeclOpaqueType', 'source.lang.swift.decl.opaquetype'),
326+
KIND('RefOpaqueType', 'source.lang.swift.ref.opaquetype'),
325327
KIND('DeclTypeAlias', 'source.lang.swift.decl.typealias'),
326328
KIND('RefTypeAlias', 'source.lang.swift.ref.typealias'),
327329
KIND('DeclGenericTypeParam', 'source.lang.swift.decl.generic_type_param'),

0 commit comments

Comments
 (0)