From b1af566396b0e9dfe648ee107f43f411b1a7a44e Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Thu, 29 Jun 2017 16:30:44 -0700 Subject: [PATCH] Remove unused code in bindWorker --- src/compiler/binder.ts | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index e99db4f1914..6975d431a11 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -2080,22 +2080,6 @@ namespace ts { case SyntaxKind.EnumMember: return bindPropertyOrMethodOrAccessor(node, SymbolFlags.EnumMember, SymbolFlags.EnumMemberExcludes); - case SyntaxKind.SpreadAssignment: - case SyntaxKind.JsxSpreadAttribute: - let root = container; - let hasRest = false; - while (root.parent) { - if (root.kind === SyntaxKind.ObjectLiteralExpression && - root.parent.kind === SyntaxKind.BinaryExpression && - (root.parent as BinaryExpression).operatorToken.kind === SyntaxKind.EqualsToken && - (root.parent as BinaryExpression).left === root) { - hasRest = true; - break; - } - root = root.parent; - } - return; - case SyntaxKind.CallSignature: case SyntaxKind.ConstructSignature: case SyntaxKind.IndexSignature: @@ -3613,4 +3597,4 @@ namespace ts { child.parent = parent; forEachChild(child, (childsChild) => setParentPointers(child, childsChild)); } -} \ No newline at end of file +}