Remove validateDeclForNameLookup

Flush it and the early validation hack now that we can delay computing the underlying interface type on demand and have taught type resolution to honor the structural type of a typealias.

This changes the way requirement signatures are spelled as a side effect.
This commit is contained in:
Robert Widmann
2019-09-13 11:14:12 -07:00
parent 5e34169aca
commit d5c014b8e4
10 changed files with 21 additions and 298 deletions

View File

@@ -1679,7 +1679,7 @@ SwiftDeclCollector::constructVarNode(ValueDecl *VD) {
SDKNode *swift::ide::api::
SwiftDeclCollector::constructTypeAliasNode(TypeAliasDecl *TAD) {
auto Alias = SDKNodeInitInfo(Ctx, TAD).createSDKNode(SDKNodeKind::DeclTypeAlias);
Alias->addChild(constructTypeNode(TAD->getUnderlyingTypeLoc().getType()));
Alias->addChild(constructTypeNode(TAD->getUnderlyingType()));
return Alias;
}