Commit Graph

104 Commits

Author SHA1 Message Date
Slava Pestov
9ab18f6595 LookupVisibleDecls: Also substitute when the base type is an archetype 2019-01-08 00:14:52 -05:00
Slava Pestov
e563296447 LookupVisibleDecls: Use TypeBase::getMetatypeInstanceType() 2019-01-08 00:14:52 -05:00
Slava Pestov
0e458900b1 Sema: Remove hack introduced by 31245556
It looks like Type::subst() was subsequently fixed for GenericFunctionTypes
in 06d16795 so we can remove this hack.
2019-01-08 00:14:52 -05:00
Argyrios Kyrtzidis
75ab0a5f36 [AST] Break dependency cycle between swiftAST and swiftSema
AST/LookupVisibleDecls.cpp has a dependency on swiftSema by having doGlobalExtensionLookup call into swift::isExtensionApplied,
and doGlobalExtensionLookup is ultimately used by the other global functions in that file.
Break the cycle by moving the file into the swiftSema library.
2018-12-06 22:52:38 -08:00