@@ -1426,22 +1426,20 @@ namespace FourSlash {
1426
1426
return ;
1427
1427
}
1428
1428
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 ) ;
1432
1431
1433
- const incrementalSyntaxDiagnostics = incrementalSourceFile . parseDiagnostics ;
1432
+ const incrementalSyntaxDiagnostics = incrementalSourceFile . parseDiagnostics ;
1434
1433
1435
- // Check syntactic structure
1436
- const content = this . getFileContent ( this . activeFile . fileName ) ;
1434
+ // Check syntactic structure
1435
+ const content = this . getFileContent ( this . activeFile . fileName ) ;
1437
1436
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 ;
1441
1440
1442
- Utils . assertDiagnosticsEquals ( incrementalSyntaxDiagnostics , referenceSyntaxDiagnostics ) ;
1443
- Utils . assertStructuralEquals ( incrementalSourceFile , referenceSourceFile ) ;
1444
- }
1441
+ Utils . assertDiagnosticsEquals ( incrementalSyntaxDiagnostics , referenceSyntaxDiagnostics ) ;
1442
+ Utils . assertStructuralEquals ( incrementalSourceFile , referenceSourceFile ) ;
1445
1443
}
1446
1444
1447
1445
private fixCaretPosition ( ) {
0 commit comments