mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[index] For extensions, relate the symbol reference that gets extended and base references with the extension symbol.
They were getting related with the original extended symbol, which was incorrect.
This commit is contained in:
@@ -45,7 +45,7 @@ inline SymbolPropertySet &operator|=(SymbolPropertySet &SKSet, SymbolProperty SK
|
||||
}
|
||||
|
||||
struct IndexRelation {
|
||||
const ValueDecl *decl;
|
||||
const Decl *decl;
|
||||
SymbolInfo symInfo;
|
||||
SymbolRoleSet roles = SymbolRoleSet(0);
|
||||
|
||||
@@ -55,7 +55,7 @@ struct IndexRelation {
|
||||
StringRef USR; // USR may be safely compared by pointer.
|
||||
StringRef group;
|
||||
|
||||
IndexRelation(SymbolRoleSet Roles, const ValueDecl *Sym, SymbolInfo SymInfo, StringRef Name, StringRef USR)
|
||||
IndexRelation(SymbolRoleSet Roles, const Decl *Sym, SymbolInfo SymInfo, StringRef Name, StringRef USR)
|
||||
: decl(Sym), symInfo(SymInfo), roles(Roles), name(Name), USR(USR) {}
|
||||
|
||||
IndexRelation() = default;
|
||||
|
||||
Reference in New Issue
Block a user