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 +}