From ee851784a63debc1c37ba9c69afda1e5987da2b4 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 14 Nov 2017 14:03:56 -0800 Subject: [PATCH] Remove dead code that didn't get removed in #19979 --- src/compiler/parser.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index e0991612b56..b20fd79757e 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -3409,8 +3409,7 @@ namespace ts { // - "a ? (b): c" will have "(b):" parsed as a signature with a return type annotation. // // So we need just a bit of lookahead to ensure that it can only be a signature. - if (!allowAmbiguity && ((token() !== SyntaxKind.EqualsGreaterThanToken && token() !== SyntaxKind.OpenBraceToken) || - find(node.parameters, p => p.initializer && ts.isIdentifier(p.initializer) && p.initializer.escapedText === "= not found"))) { + if (!allowAmbiguity && token() !== SyntaxKind.EqualsGreaterThanToken && token() !== SyntaxKind.OpenBraceToken) { // Returning undefined here will cause our caller to rewind to where we started from. return undefined; }