Skip to content

Commit e724e88

Browse files
committed
Duh
1 parent ce7f554 commit e724e88

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/harness/fourslash.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,22 +1426,20 @@ namespace FourSlash {
14261426
return;
14271427
}
14281428

1429-
if (1 + 1 === 2) {
1430-
const incrementalSourceFile = this.languageService.getNonBoundSourceFile(this.activeFile.fileName);
1431-
Utils.assertInvariants(incrementalSourceFile, /*parent:*/ undefined);
1429+
const incrementalSourceFile = this.languageService.getNonBoundSourceFile(this.activeFile.fileName);
1430+
Utils.assertInvariants(incrementalSourceFile, /*parent:*/ undefined);
14321431

1433-
const incrementalSyntaxDiagnostics = incrementalSourceFile.parseDiagnostics;
1432+
const incrementalSyntaxDiagnostics = incrementalSourceFile.parseDiagnostics;
14341433

1435-
// Check syntactic structure
1436-
const content = this.getFileContent(this.activeFile.fileName);
1434+
// Check syntactic structure
1435+
const content = this.getFileContent(this.activeFile.fileName);
14371436

1438-
const referenceSourceFile = ts.createLanguageServiceSourceFile(
1439-
this.activeFile.fileName, createScriptSnapShot(content), ts.ScriptTarget.Latest, /*version:*/ "0", /*setNodeParents:*/ false);
1440-
const referenceSyntaxDiagnostics = referenceSourceFile.parseDiagnostics;
1437+
const referenceSourceFile = ts.createLanguageServiceSourceFile(
1438+
this.activeFile.fileName, createScriptSnapShot(content), ts.ScriptTarget.Latest, /*version:*/ "0", /*setNodeParents:*/ false);
1439+
const referenceSyntaxDiagnostics = referenceSourceFile.parseDiagnostics;
14411440

1442-
Utils.assertDiagnosticsEquals(incrementalSyntaxDiagnostics, referenceSyntaxDiagnostics);
1443-
Utils.assertStructuralEquals(incrementalSourceFile, referenceSourceFile);
1444-
}
1441+
Utils.assertDiagnosticsEquals(incrementalSyntaxDiagnostics, referenceSyntaxDiagnostics);
1442+
Utils.assertStructuralEquals(incrementalSourceFile, referenceSourceFile);
14451443
}
14461444

14471445
private fixCaretPosition() {

0 commit comments

Comments
 (0)