Skip to content

Commit 8b1051e

Browse files
committed
We can do round-trip and validation testing even with deep nesting
1 parent d3bc4f5 commit 8b1051e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Parse/ParseDecl.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,7 @@ void Parser::parseTopLevelItems(SmallVectorImpl<ASTNode> &items) {
307307
// Perform round-trip and/or validation checking.
308308
if ((Context.LangOpts.hasFeature(Feature::ParserRoundTrip) ||
309309
Context.LangOpts.hasFeature(Feature::ParserValidation)) &&
310-
SF.exportedSourceFile &&
311-
!L->lexingCutOffOffset()) {
310+
SF.exportedSourceFile) {
312311
if (Context.LangOpts.hasFeature(Feature::ParserRoundTrip) &&
313312
swift_ASTGen_roundTripCheck(SF.exportedSourceFile)) {
314313
SourceLoc loc;

0 commit comments

Comments
 (0)