mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Lift nested type lookup fast-pathing up to FileUnit.
We use this to avoid circularity issues in serialization; we'd like to extend that to the Clang importer. This is only necessary because we can't look up a single member at a time, but it can still fix issues in the short term. This commit should have no effect on functionality.
This commit is contained in:
@@ -525,6 +525,12 @@ TypeDecl *SerializedASTFile::lookupLocalType(llvm::StringRef MangledName) const{
|
||||
return File.lookupLocalType(MangledName);
|
||||
}
|
||||
|
||||
TypeDecl *
|
||||
SerializedASTFile::lookupNestedType(Identifier name,
|
||||
const NominalTypeDecl *parent) const {
|
||||
return File.lookupNestedType(name, parent);
|
||||
}
|
||||
|
||||
OperatorDecl *SerializedASTFile::lookupOperator(Identifier name,
|
||||
DeclKind fixity) const {
|
||||
return File.lookupOperator(name, fixity);
|
||||
|
||||
Reference in New Issue
Block a user