Check tree invariants during fourslash tests.
This commit is contained in:
parent
2bb0eb604b
commit
0ec9f0d3bb
1 changed files with 2 additions and 0 deletions
|
@ -1363,6 +1363,8 @@ module FourSlash {
|
|||
|
||||
private checkPostEditInvariants() {
|
||||
var incrementalSourceFile = this.languageService.getSourceFile(this.activeFile.fileName);
|
||||
Utils.assertInvariants(incrementalSourceFile, /*parent:*/ undefined);
|
||||
|
||||
var incrementalSyntaxDiagnostics = JSON.stringify(Utils.convertDiagnostics(incrementalSourceFile.getSyntacticDiagnostics()));
|
||||
|
||||
// Check syntactic structure
|
||||
|
|
Loading…
Reference in a new issue