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:
Jordan Rose
2017-07-13 14:07:00 -07:00
parent 88aa00e7de
commit 03e1e3b6e0
6 changed files with 33 additions and 19 deletions

View File

@@ -132,6 +132,10 @@ public:
virtual TypeDecl *lookupLocalType(StringRef MangledName) const override;
virtual TypeDecl *
lookupNestedType(Identifier name,
const NominalTypeDecl *parent) const override;
virtual OperatorDecl *lookupOperator(Identifier name,
DeclKind fixity) const override;