File tree Expand file tree Collapse file tree 6 files changed +3
-114
lines changed Expand file tree Collapse file tree 6 files changed +3
-114
lines changed Original file line number Diff line number Diff line change @@ -975,6 +975,7 @@ pub struct TSIndexSignature<'a> {
975
975
pub struct TSCallSignatureDeclaration < ' a > {
976
976
pub span : Span ,
977
977
pub type_parameters : Option < Box < ' a , TSTypeParameterDeclaration < ' a > > > ,
978
+ #[ estree( skip) ]
978
979
pub this_param : Option < TSThisParameter < ' a > > ,
979
980
pub params : Box < ' a , FormalParameters < ' a > > ,
980
981
pub return_type : Option < Box < ' a , TSTypeAnnotation < ' a > > > ,
@@ -1319,6 +1320,7 @@ pub struct TSFunctionType<'a> {
1319
1320
/// type T = (this: string, a: number) => void;
1320
1321
/// // ^^^^^^^^^^^^
1321
1322
/// ```
1323
+ #[ estree( skip) ]
1322
1324
pub this_param : Option < Box < ' a , TSThisParameter < ' a > > > ,
1323
1325
/// Function parameters. Akin to [`Function::params`].
1324
1326
pub params : Box < ' a , FormalParameters < ' a > > ,
Original file line number Diff line number Diff line change @@ -2907,7 +2907,6 @@ impl ESTree for TSCallSignatureDeclaration<'_> {
2907
2907
state. serialize_field ( "start" , & self . span . start ) ;
2908
2908
state. serialize_field ( "end" , & self . span . end ) ;
2909
2909
state. serialize_field ( "typeParameters" , & self . type_parameters ) ;
2910
- state. serialize_field ( "thisParam" , & self . this_param ) ;
2911
2910
state. serialize_field ( "params" , & self . params ) ;
2912
2911
state. serialize_field ( "returnType" , & self . return_type ) ;
2913
2912
state. end ( ) ;
@@ -3124,7 +3123,6 @@ impl ESTree for TSFunctionType<'_> {
3124
3123
state. serialize_field ( "start" , & self . span . start ) ;
3125
3124
state. serialize_field ( "end" , & self . span . end ) ;
3126
3125
state. serialize_field ( "typeParameters" , & self . type_parameters ) ;
3127
- state. serialize_field ( "thisParam" , & self . this_param ) ;
3128
3126
state. serialize_field ( "params" , & self . params ) ;
3129
3127
state. serialize_field ( "returnType" , & self . return_type ) ;
3130
3128
state. end ( ) ;
Original file line number Diff line number Diff line change @@ -1662,7 +1662,6 @@ function deserializeTSCallSignatureDeclaration(pos) {
1662
1662
start : deserializeU32 ( pos ) ,
1663
1663
end : deserializeU32 ( pos + 4 ) ,
1664
1664
typeParameters : deserializeOptionBoxTSTypeParameterDeclaration ( pos + 8 ) ,
1665
- thisParam : deserializeOptionTSThisParameter ( pos + 16 ) ,
1666
1665
params : deserializeBoxFormalParameters ( pos + 48 ) ,
1667
1666
returnType : deserializeOptionBoxTSTypeAnnotation ( pos + 56 ) ,
1668
1667
} ;
@@ -1798,7 +1797,6 @@ function deserializeTSFunctionType(pos) {
1798
1797
start : deserializeU32 ( pos ) ,
1799
1798
end : deserializeU32 ( pos + 4 ) ,
1800
1799
typeParameters : deserializeOptionBoxTSTypeParameterDeclaration ( pos + 8 ) ,
1801
- thisParam : deserializeOptionBoxTSThisParameter ( pos + 16 ) ,
1802
1800
params : deserializeBoxFormalParameters ( pos + 24 ) ,
1803
1801
returnType : deserializeBoxTSTypeAnnotation ( pos + 32 ) ,
1804
1802
} ;
Original file line number Diff line number Diff line change @@ -1727,7 +1727,6 @@ function deserializeTSCallSignatureDeclaration(pos) {
1727
1727
start : deserializeU32 ( pos ) ,
1728
1728
end : deserializeU32 ( pos + 4 ) ,
1729
1729
typeParameters : deserializeOptionBoxTSTypeParameterDeclaration ( pos + 8 ) ,
1730
- thisParam : deserializeOptionTSThisParameter ( pos + 16 ) ,
1731
1730
params : deserializeBoxFormalParameters ( pos + 48 ) ,
1732
1731
returnType : deserializeOptionBoxTSTypeAnnotation ( pos + 56 ) ,
1733
1732
} ;
@@ -1863,7 +1862,6 @@ function deserializeTSFunctionType(pos) {
1863
1862
start : deserializeU32 ( pos ) ,
1864
1863
end : deserializeU32 ( pos + 4 ) ,
1865
1864
typeParameters : deserializeOptionBoxTSTypeParameterDeclaration ( pos + 8 ) ,
1866
- thisParam : deserializeOptionBoxTSThisParameter ( pos + 16 ) ,
1867
1865
params : deserializeBoxFormalParameters ( pos + 24 ) ,
1868
1866
returnType : deserializeBoxTSTypeAnnotation ( pos + 32 ) ,
1869
1867
} ;
Original file line number Diff line number Diff line change @@ -1210,7 +1210,6 @@ export interface TSIndexSignature extends Span {
1210
1210
export interface TSCallSignatureDeclaration extends Span {
1211
1211
type : 'TSCallSignatureDeclaration' ;
1212
1212
typeParameters : TSTypeParameterDeclaration | null ;
1213
- thisParam : TSThisParameter | null ;
1214
1213
params : ParamPattern [ ] ;
1215
1214
returnType : TSTypeAnnotation | null ;
1216
1215
}
@@ -1307,7 +1306,6 @@ export interface TSImportType extends Span {
1307
1306
export interface TSFunctionType extends Span {
1308
1307
type : 'TSFunctionType' ;
1309
1308
typeParameters : TSTypeParameterDeclaration | null ;
1310
- thisParam : TSThisParameter | null ;
1311
1309
params : ParamPattern [ ] ;
1312
1310
returnType : TSTypeAnnotation ;
1313
1311
}
You can’t perform that action at this time.
0 commit comments