From 10f2eb5ff1bdbf655fa7e51fcc7ef8adbe713118 Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Mon, 7 May 2018 15:39:00 -0700 Subject: [PATCH] Pass setParentNodes through to parseJsonText --- src/compiler/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 9db66792a7a..4b55bba412c 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -505,7 +505,7 @@ namespace ts { performance.mark("beforeParse"); let result: SourceFile; if (languageVersion === ScriptTarget.JSON) { - result = Parser.parseJsonText(fileName, sourceText); + result = Parser.parseJsonText(fileName, sourceText, languageVersion, /*syntaxCursor*/ undefined, setParentNodes); } else { result = Parser.parseSourceFile(fileName, sourceText, languageVersion, /*syntaxCursor*/ undefined, setParentNodes, scriptKind);