@@ -316,7 +316,6 @@ namespace ts {
316316 // Property assignments
317317 PropertyAssignment ,
318318 ShorthandPropertyAssignment ,
319- SpreadObjectLiteralAssignment ,
320319
321320 // Enum
322321 EnumMember ,
@@ -644,23 +643,23 @@ namespace ts {
644643 initializer ?: Expression ; // Optional initializer
645644 }
646645
647- export interface ObjectLiteralElementLike extends Declaration {
646+ export interface ObjectLiteralElement extends Declaration {
648647 _objectLiteralBrandBrand : any ;
649648 name ?: PropertyName ;
650649 }
651650
652- export type ObjectLiteralElement = PropertyAssignment | ShorthandPropertyAssignment | SpreadObjectLiteralAssignment | MethodDeclaration | AccessorDeclaration ;
651+ export type ObjectLiteralElementLike = PropertyAssignment | ShorthandPropertyAssignment | MethodDeclaration | AccessorDeclaration ;
653652
654653 // @kind (SyntaxKind.PropertyAssignment)
655- export interface PropertyAssignment extends ObjectLiteralElementLike {
654+ export interface PropertyAssignment extends ObjectLiteralElement {
656655 _propertyAssignmentBrand : any ;
657656 name : PropertyName ;
658657 questionToken ?: Node ;
659658 initializer : Expression ;
660659 }
661660
662661 // @kind (SyntaxKind.ShorthandPropertyAssignment)
663- export interface ShorthandPropertyAssignment extends ObjectLiteralElementLike {
662+ export interface ShorthandPropertyAssignment extends ObjectLiteralElement {
664663 name : Identifier ;
665664 questionToken ?: Node ;
666665 // used when ObjectLiteralExpression is used in ObjectAssignmentPattern
@@ -669,12 +668,6 @@ namespace ts {
669668 objectAssignmentInitializer ?: Expression ;
670669 }
671670
672- // @kind (SyntaxKind.SpreadObjectLiteralAssignment)
673- export interface SpreadObjectLiteralAssignment extends ObjectLiteralElementLike , SpreadElementExpression {
674- _spreadObjectLiteralAssignmentBrand : any ;
675- dotDotDotToken ?: Node ;
676- }
677-
678671 // SyntaxKind.VariableDeclaration
679672 // SyntaxKind.Parameter
680673 // SyntaxKind.BindingElement
@@ -749,7 +742,7 @@ namespace ts {
749742 // at later stages of the compiler pipeline. In that case, you can either check the parent kind
750743 // of the method, or use helpers like isObjectLiteralMethodDeclaration
751744 // @kind (SyntaxKind.MethodDeclaration)
752- export interface MethodDeclaration extends FunctionLikeDeclaration , ClassElement , ObjectLiteralElementLike {
745+ export interface MethodDeclaration extends FunctionLikeDeclaration , ClassElement , ObjectLiteralElement {
753746 name : PropertyName ;
754747 body ?: FunctionBody ;
755748 }
@@ -767,7 +760,7 @@ namespace ts {
767760
768761 // See the comment on MethodDeclaration for the intuition behind AccessorDeclaration being a
769762 // ClassElement and an ObjectLiteralElement.
770- export interface AccessorDeclaration extends FunctionLikeDeclaration , ClassElement , ObjectLiteralElementLike {
763+ export interface AccessorDeclaration extends FunctionLikeDeclaration , ClassElement , ObjectLiteralElement {
771764 _accessorDeclarationBrand : any ;
772765 name : PropertyName ;
773766 body : FunctionBody ;
@@ -1063,13 +1056,13 @@ namespace ts {
10631056 * JSXAttribute or JSXSpreadAttribute. ObjectLiteralExpression, on the other hand, can only have properties of type
10641057 * ObjectLiteralElement (e.g. PropertyAssignment, ShorthandPropertyAssignment etc.)
10651058 **/
1066- export interface ObjectLiteralExpressionBase < T extends ObjectLiteralElementLike > extends PrimaryExpression , Declaration {
1059+ export interface ObjectLiteralExpressionBase < T extends ObjectLiteralElement > extends PrimaryExpression , Declaration {
10671060 properties : NodeArray < T > ;
10681061 }
10691062
10701063 // An ObjectLiteralExpression is the declaration node for an anonymous symbol.
10711064 // @kind (SyntaxKind.ObjectLiteralExpression)
1072- export interface ObjectLiteralExpression extends ObjectLiteralExpressionBase < ObjectLiteralElement > {
1065+ export interface ObjectLiteralExpression extends ObjectLiteralExpressionBase < ObjectLiteralElementLike > {
10731066 /* @internal */
10741067 multiLine ?: boolean ;
10751068 }
@@ -1213,7 +1206,7 @@ namespace ts {
12131206 export interface DebuggerStatement extends Statement { }
12141207
12151208 // @kind (SyntaxKind.MissingDeclaration)
1216- export interface MissingDeclaration extends DeclarationStatement , ClassElement , ObjectLiteralElementLike , TypeElement {
1209+ export interface MissingDeclaration extends DeclarationStatement , ClassElement , ObjectLiteralElement , TypeElement {
12171210 name ?: Identifier ;
12181211 }
12191212
0 commit comments