@@ -636,6 +636,7 @@ namespace ts {
636
636
637
637
export interface Decorator extends Node {
638
638
kind : SyntaxKind . Decorator ;
639
+ parent ?: NamedDeclaration ;
639
640
expression : LeftHandSideExpression ;
640
641
}
641
642
@@ -765,6 +766,7 @@ namespace ts {
765
766
export interface SpreadAssignment extends ObjectLiteralElement {
766
767
parent : ObjectLiteralExpression ;
767
768
kind : SyntaxKind . SpreadAssignment ;
769
+ parent ?: ObjectLiteralExpression ;
768
770
expression : Expression ;
769
771
}
770
772
@@ -781,7 +783,7 @@ namespace ts {
781
783
export interface VariableLikeDeclaration extends NamedDeclaration {
782
784
propertyName ?: PropertyName ;
783
785
dotDotDotToken ?: DotDotDotToken ;
784
- name ? : DeclarationName ; // May be missing for ParameterDeclaration, see comment there
786
+ name : DeclarationName ;
785
787
questionToken ?: QuestionToken ;
786
788
type ?: TypeNode ;
787
789
initializer ?: Expression ;
@@ -945,6 +947,7 @@ namespace ts {
945
947
946
948
export interface TypePredicateNode extends TypeNode {
947
949
kind : SyntaxKind . TypePredicate ;
950
+ parent ?: SignatureDeclaration ;
948
951
parameterName : Identifier | ThisTypeNode ;
949
952
type : TypeNode ;
950
953
}
@@ -1001,7 +1004,6 @@ namespace ts {
1001
1004
1002
1005
export interface MappedTypeNode extends TypeNode , Declaration {
1003
1006
kind : SyntaxKind . MappedType ;
1004
- parent ?: TypeAliasDeclaration ;
1005
1007
readonlyToken ?: ReadonlyToken ;
1006
1008
typeParameter : TypeParameterDeclaration ;
1007
1009
questionToken ?: QuestionToken ;
@@ -1453,6 +1455,7 @@ namespace ts {
1453
1455
1454
1456
export interface SpreadElement extends Expression {
1455
1457
kind : SyntaxKind . SpreadElement ;
1458
+ parent ?: ArrayLiteralExpression | CallExpression | NewExpression ;
1456
1459
expression : Expression ;
1457
1460
}
1458
1461
0 commit comments