diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 1763df9cda8..f24b07eaf8e 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -1304,10 +1304,6 @@ module ts { parseErrorAtCurrentToken(diagnosticMessage, arg0); } - return createMissingNodeWithoutError(kind); - } - - function createMissingNodeWithoutError(kind: SyntaxKind) { var result = createNode(kind, scanner.getStartPos()); (result).text = ""; return finishNode(result);