mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Immediate] [Sema] Implemented Lazy Type Checking
Implements lazy type checking in Swift Immediate mode, allowing functions to be type-checked as they are executed.
This commit is contained in:
@@ -1424,6 +1424,9 @@ static bool ParseTypeCheckerArgs(TypeCheckerOptions &Opts, ArgList &Args,
|
||||
if (Args.getLastArg(OPT_solver_disable_shrink))
|
||||
Opts.SolverDisableShrink = true;
|
||||
|
||||
if (FrontendOpts.RequestedAction == FrontendOptions::ActionType::Immediate)
|
||||
Opts.DeferToRuntime = true;
|
||||
|
||||
Opts.DebugGenericSignatures |= Args.hasArg(OPT_debug_generic_signatures);
|
||||
|
||||
return HadError;
|
||||
|
||||
Reference in New Issue
Block a user