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

@@ -603,7 +603,7 @@ public:
/// Searches the module's nested type decls table for the given member of
/// the given type.
TypeDecl *lookupNestedType(Identifier name, const ValueDecl *parent);
TypeDecl *lookupNestedType(Identifier name, const NominalTypeDecl *parent);
/// Searches the module's operators for one with the given name and fixity.
///