mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Add Effective Scope to Index
This commit is contained in:
@@ -134,6 +134,13 @@ private:
|
||||
if (!isRef) {
|
||||
uidAttrs = getDeclAttributeUIDs(symbol.decl);
|
||||
info.Attrs = uidAttrs;
|
||||
if (auto *VD = dyn_cast<ValueDecl>(symbol.decl)) {
|
||||
if (symbol.symInfo.Kind != SymbolKind::Extension) {
|
||||
AccessScope accessScope = VD->getFormalAccessScope();
|
||||
UIdent AttrUID = SwiftLangSupport::getUIDForFormalAccessScope(accessScope);
|
||||
info.EffectiveAccessLevel = AttrUID;
|
||||
}
|
||||
}
|
||||
}
|
||||
return func(info);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user