[Type Checker] Introduce a request for “overridden declarations”.

Introduce a new request kind to capture the computation of the set of
overridden declarations of a given declaration, eliminating the
stateful “setOverriddenDecls()” calls from the type checker.
This commit is contained in:
Doug Gregor
2018-07-11 07:46:42 -07:00
parent 5815a81922
commit 8f23915334
14 changed files with 208 additions and 183 deletions

View File

@@ -2709,7 +2709,7 @@ ModuleFile::getDeclCheckedImpl(DeclID DID, Optional<DeclContext *> ForcedContext
overriddenAssocTypes.push_back(overriddenAssocType);
}
}
(void)assocType->setOverriddenDecls(overriddenAssocTypes);
assocType->setOverriddenDecls(overriddenAssocTypes);
break;
}