File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -3498,28 +3498,10 @@ bool Parser::canDelayMemberDeclParsing() {
3498
3498
// If explicitly disabled, respect the flag.
3499
3499
if (!DelayBodyParsing)
3500
3500
return false ;
3501
- // There's no fundamental reasons that SIL cannnot be lasily parsed. We need
3502
- // to keep SILParserTUStateBase persistent to make it happen.
3503
- if (isInSILMode ())
3504
- return false ;
3505
- // Calculating interface hash requires tokens consumed in the original order.
3506
- if (SF.hasInterfaceHash ())
3507
- return false ;
3508
- if (SF.Kind == SourceFileKind::REPL)
3509
- return false ;
3510
- // We always collect the entire syntax tree for IDE uses.
3511
- if (SF.shouldCollectToken ())
3512
- return false ;
3513
- if (SF.shouldBuildSyntaxTree ())
3514
- return false ;
3515
- // Recovering parser status later for #sourceLocaion is not-trivial and
3501
+ // Recovering parser status later for #sourceLocation is not-trivial and
3516
3502
// it may not worth it.
3517
3503
if (InPoundLineEnvironment)
3518
3504
return false ;
3519
- // The first code completion pass looks for code completion tokens extensively,
3520
- // so we cannot lazily parse members.
3521
- if (isCodeCompletionFirstPass ())
3522
- return false ;
3523
3505
3524
3506
// Skip until the matching right curly bracket; if we find a pound directive,
3525
3507
// we can't lazily parse.
You can’t perform that action at this time.
0 commit comments