Merge pull request #33922 from slavapestov/sil-parser-overhaul

SILParser: Fix for removal of parse-time name lookup
This commit is contained in:
Slava Pestov
2020-09-12 08:11:26 -04:00
committed by GitHub
12 changed files with 399 additions and 282 deletions

View File

@@ -1617,7 +1617,9 @@ class CodeCompletionCallbacksImpl : public CodeCompletionCallbacks {
const auto ty = swift::performTypeResolution(
ParsedTypeLoc.getTypeRepr(), P.Context,
/*isSILMode=*/false,
/*isSILType=*/false, CurDeclContext->getGenericEnvironmentOfContext(),
/*isSILType=*/false,
CurDeclContext->getGenericEnvironmentOfContext(),
/*GenericParams=*/nullptr,
CurDeclContext,
/*ProduceDiagnostics=*/false);
ParsedTypeLoc.setType(ty);