mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[index] Make sure that we index implicit constructors
These can be explicitely referenced so we should index their definitions as well
This commit is contained in:
@@ -299,6 +299,8 @@ static bool initDocEntityInfo(const Decl *D, const Decl *SynthesizedTarget,
|
||||
bool IsRef, bool IsSynthesizedExtension,
|
||||
DocEntityInfo &Info,
|
||||
StringRef Arg = StringRef()) {
|
||||
if (!IsRef && D->isImplicit())
|
||||
return true;
|
||||
if (!D || isa<ParamDecl>(D) ||
|
||||
(isa<VarDecl>(D) && D->getDeclContext()->isLocalContext())) {
|
||||
Info.Kind = SwiftLangSupport::getUIDForLocalVar(IsRef);
|
||||
|
||||
Reference in New Issue
Block a user