mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: loadNamedMembers() never fails
This allows us to simplify lookupDirect() a fair bit as well.
This commit is contained in:
@@ -81,10 +81,7 @@ public:
|
||||
|
||||
/// Populates a vector with all members of \p IDC that have DeclName
|
||||
/// matching \p N.
|
||||
///
|
||||
/// Returns None if an error occurred \em or named member-lookup
|
||||
/// was otherwise unsupported in this implementation or Decl.
|
||||
virtual Optional<TinyPtrVector<ValueDecl *>>
|
||||
virtual TinyPtrVector<ValueDecl *>
|
||||
loadNamedMembers(const IterableDeclContext *IDC, DeclBaseName N,
|
||||
uint64_t contextData) = 0;
|
||||
|
||||
|
||||
@@ -243,9 +243,6 @@ FRONTEND_STATISTIC(Sema, NumLazyIterableDeclContexts)
|
||||
/// Number of member-name lookups that avoided loading all members.
|
||||
FRONTEND_STATISTIC(Sema, NamedLazyMemberLoadSuccessCount)
|
||||
|
||||
/// Number of member-name lookups that wound up loading all members.
|
||||
FRONTEND_STATISTIC(Sema, NamedLazyMemberLoadFailureCount)
|
||||
|
||||
/// Number of types deserialized.
|
||||
FRONTEND_STATISTIC(Sema, NumTypesDeserialized)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user