diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 024cc96cb79..361c14040bf 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -5634,6 +5634,7 @@ namespace ts { // will immediately bail out of walking any subtrees when we can see that their parents // are already correct. let result = Parser.parseSourceFile(sourceFile.fileName, newText, sourceFile.languageVersion, syntaxCursor, /* setParentNode */ true) + return result; }