diff --git a/crates/swc/tests/tsc-references/callSignaturesWithDuplicateParameters.1.normal.js b/crates/swc/tests/tsc-references/callSignaturesWithDuplicateParameters.1.normal.js index e07fa5c89563..966a7e2512f1 100644 --- a/crates/swc/tests/tsc-references/callSignaturesWithDuplicateParameters.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignaturesWithDuplicateParameters.1.normal.js @@ -74,9 +74,9 @@ //! 7 | var f4 = (x: T, x: T) => { } //! 8 | //! 9 | function foo2(x: string, x: number) { } -//! : ^^^^|^^^^ ^^^^|^^^^ -//! : | `-- used as parameter more than once -//! : `-- previous definition here +//! : | | +//! : | `-- used as parameter more than once +//! : `-- previous definition here //! 10 | var f5 = function foo(x: string, x: number) { } //! 11 | var f6 = function (x: string, x: number) { } //! 12 | var f7 = (x: string, x: number) => { } @@ -88,9 +88,9 @@ //! 8 | //! 9 | function foo2(x: string, x: number) { } //! 10 | var f5 = function foo(x: string, x: number) { } -//! : ^^^^|^^^^ ^^^^|^^^^ -//! : | `-- used as parameter more than once -//! : `-- previous definition here +//! : | | +//! : | `-- used as parameter more than once +//! : `-- previous definition here //! 11 | var f6 = function (x: string, x: number) { } //! 12 | var f7 = (x: string, x: number) => { } //! 13 | var f8 = (x: T, y: T) => { } @@ -102,9 +102,9 @@ //! 9 | function foo2(x: string, x: number) { } //! 10 | var f5 = function foo(x: string, x: number) { } //! 11 | var f6 = function (x: string, x: number) { } -//! : ^^^^|^^^^ ^^^^|^^^^ -//! : | `-- used as parameter more than once -//! : `-- previous definition here +//! : | | +//! : | `-- used as parameter more than once +//! : `-- previous definition here //! 12 | var f7 = (x: string, x: number) => { } //! 13 | var f8 = (x: T, y: T) => { } //! `---- @@ -143,9 +143,9 @@ //! 15 | class C { //! 16 | foo(x, x) { } //! 17 | foo2(x: number, x: string) { } -//! : ^^^^|^^^^ ^^^^|^^^^ -//! : | `-- used as parameter more than once -//! : `-- previous definition here +//! : | | +//! : | `-- used as parameter more than once +//! : `-- previous definition here //! 18 | foo3(x: T, x: T) { } //! 19 | } //! `---- @@ -156,9 +156,9 @@ //! 16 | foo(x, x) { } //! 17 | foo2(x: number, x: string) { } //! 18 | foo3(x: T, x: T) { } -//! : ^^|^ ^^|^ -//! : | `-- used as parameter more than once -//! : `-- previous definition here +//! : | | +//! : | `-- used as parameter more than once +//! : `-- previous definition here //! 19 | } //! 20 | //! 21 | interface I { @@ -184,9 +184,9 @@ //! 34 | var b = { //! 35 | foo(x, x) { }, //! 36 | a: function foo(x: number, x: string) { }, -//! : ^^^^|^^^^ ^^^^|^^^^ -//! : | `-- used as parameter more than once -//! : `-- previous definition here +//! : | | +//! : | `-- used as parameter more than once +//! : `-- previous definition here //! 37 | b: (x: T, x: T) => { } //! 38 | } //! `---- diff --git a/crates/swc/tests/tsc-references/callSignaturesWithDuplicateParameters.2.minified.js b/crates/swc/tests/tsc-references/callSignaturesWithDuplicateParameters.2.minified.js index e07fa5c89563..966a7e2512f1 100644 --- a/crates/swc/tests/tsc-references/callSignaturesWithDuplicateParameters.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignaturesWithDuplicateParameters.2.minified.js @@ -74,9 +74,9 @@ //! 7 | var f4 = (x: T, x: T) => { } //! 8 | //! 9 | function foo2(x: string, x: number) { } -//! : ^^^^|^^^^ ^^^^|^^^^ -//! : | `-- used as parameter more than once -//! : `-- previous definition here +//! : | | +//! : | `-- used as parameter more than once +//! : `-- previous definition here //! 10 | var f5 = function foo(x: string, x: number) { } //! 11 | var f6 = function (x: string, x: number) { } //! 12 | var f7 = (x: string, x: number) => { } @@ -88,9 +88,9 @@ //! 8 | //! 9 | function foo2(x: string, x: number) { } //! 10 | var f5 = function foo(x: string, x: number) { } -//! : ^^^^|^^^^ ^^^^|^^^^ -//! : | `-- used as parameter more than once -//! : `-- previous definition here +//! : | | +//! : | `-- used as parameter more than once +//! : `-- previous definition here //! 11 | var f6 = function (x: string, x: number) { } //! 12 | var f7 = (x: string, x: number) => { } //! 13 | var f8 = (x: T, y: T) => { } @@ -102,9 +102,9 @@ //! 9 | function foo2(x: string, x: number) { } //! 10 | var f5 = function foo(x: string, x: number) { } //! 11 | var f6 = function (x: string, x: number) { } -//! : ^^^^|^^^^ ^^^^|^^^^ -//! : | `-- used as parameter more than once -//! : `-- previous definition here +//! : | | +//! : | `-- used as parameter more than once +//! : `-- previous definition here //! 12 | var f7 = (x: string, x: number) => { } //! 13 | var f8 = (x: T, y: T) => { } //! `---- @@ -143,9 +143,9 @@ //! 15 | class C { //! 16 | foo(x, x) { } //! 17 | foo2(x: number, x: string) { } -//! : ^^^^|^^^^ ^^^^|^^^^ -//! : | `-- used as parameter more than once -//! : `-- previous definition here +//! : | | +//! : | `-- used as parameter more than once +//! : `-- previous definition here //! 18 | foo3(x: T, x: T) { } //! 19 | } //! `---- @@ -156,9 +156,9 @@ //! 16 | foo(x, x) { } //! 17 | foo2(x: number, x: string) { } //! 18 | foo3(x: T, x: T) { } -//! : ^^|^ ^^|^ -//! : | `-- used as parameter more than once -//! : `-- previous definition here +//! : | | +//! : | `-- used as parameter more than once +//! : `-- previous definition here //! 19 | } //! 20 | //! 21 | interface I { @@ -184,9 +184,9 @@ //! 34 | var b = { //! 35 | foo(x, x) { }, //! 36 | a: function foo(x: number, x: string) { }, -//! : ^^^^|^^^^ ^^^^|^^^^ -//! : | `-- used as parameter more than once -//! : `-- previous definition here +//! : | | +//! : | `-- used as parameter more than once +//! : `-- previous definition here //! 37 | b: (x: T, x: T) => { } //! 38 | } //! `---- diff --git a/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments.1.normal.js b/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments.1.normal.js index a9b7110e17a0..3bd7b2c2043f 100644 --- a/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments.1.normal.js +++ b/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments.1.normal.js @@ -2,7 +2,7 @@ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Foo = function Foo(/** @internal */ isInternal1, /** @internal */ isInternal2, /** @internal */ isInternal3, // @internal isInternal4, // nothing -/** @internal */ isInternal5, /* @internal */ isInternal6 /* trailing */ , /* @internal */ isInternal7, /** @internal */ // not work +/** @internal */ isInternal5, /* @internal */ isInternal6/* trailing */ , /* @internal */ isInternal7, /** @internal */ // not work notInternal1, // @internal /* not work */ notInternal2, /* not work */ // @internal /* not work */ notInternal3) { diff --git a/crates/swc/tests/tsc-references/parserindenter.1.normal.js b/crates/swc/tests/tsc-references/parserindenter.1.normal.js index 3cbc4f144282..453ced8b8c0c 100644 --- a/crates/swc/tests/tsc-references/parserindenter.1.normal.js +++ b/crates/swc/tests/tsc-references/parserindenter.1.normal.js @@ -380,7 +380,7 @@ var Formatting; } return null; }; - _proto.GetIndentationDelta = function GetIndentationDelta(tokenStartPosition, childTokenStartPosition /*?*/ ) { + _proto.GetIndentationDelta = function GetIndentationDelta(tokenStartPosition, childTokenStartPosition/*?*/ ) { Debug.Assert(childTokenStartPosition !== undefined, "Error: caller must pass 'null' for undefined position"); var indentationDeltaSize = this.offsetIndentationDeltas.GetValue(tokenStartPosition); if (indentationDeltaSize === null) { diff --git a/crates/swc_ecma_parser/src/parser/pat.rs b/crates/swc_ecma_parser/src/parser/pat.rs index 20a6d5c35d15..0878402b983a 100644 --- a/crates/swc_ecma_parser/src/parser/pat.rs +++ b/crates/swc_ecma_parser/src/parser/pat.rs @@ -214,11 +214,6 @@ impl Parser { ref mut span, .. }) - | Pat::Ident(BindingIdent { - ref mut type_ann, - id: Ident { ref mut span, .. }, - .. - }) | Pat::Object(ObjectPat { ref mut type_ann, ref mut span, @@ -235,6 +230,14 @@ impl Parser { } *type_ann = new_type_ann; } + + Pat::Ident(BindingIdent { + ref mut type_ann, .. + }) => { + let new_type_ann = self.try_parse_ts_type_ann()?; + *type_ann = new_type_ann; + } + Pat::Assign(AssignPat { ref mut span, .. }) => { if (self.try_parse_ts_type_ann()?).is_some() { *span = Span::new(pat_start, self.input.prev_span().hi, Default::default()); diff --git a/crates/swc_ecma_parser/tests/span/ts/decl/decorated-class.ts.span.swc-stderr b/crates/swc_ecma_parser/tests/span/ts/decl/decorated-class.ts.span.swc-stderr index 98f8da19ceb4..d71318c256f9 100644 --- a/crates/swc_ecma_parser/tests/span/ts/decl/decorated-class.ts.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/span/ts/decl/decorated-class.ts.span.swc-stderr @@ -415,14 +415,14 @@ ,-[$DIR/tests/span/ts/decl/decorated-class.ts:4:1] 4 | export class CommentController { 5 | constructor(private commentService: CommentService) { } - : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^ `---- x Ident ,-[$DIR/tests/span/ts/decl/decorated-class.ts:4:1] 4 | export class CommentController { 5 | constructor(private commentService: CommentService) { } - : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^ `---- x TsTypeAnn @@ -617,7 +617,7 @@ ,-[$DIR/tests/span/ts/decl/decorated-class.ts:9:1] 9 | public updateComment( 10 | @Param('id') id: string, - : ^^^^^^^^^^ + : ^^ 11 | @Body() updateCommentDto: UpdateCommentDto, `---- @@ -625,7 +625,7 @@ ,-[$DIR/tests/span/ts/decl/decorated-class.ts:9:1] 9 | public updateComment( 10 | @Param('id') id: string, - : ^^^^^^^^^^ + : ^^ 11 | @Body() updateCommentDto: UpdateCommentDto, `---- @@ -713,7 +713,7 @@ ,-[$DIR/tests/span/ts/decl/decorated-class.ts:10:1] 10 | @Param('id') id: string, 11 | @Body() updateCommentDto: UpdateCommentDto, - : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^ 12 | @User() user: UserType, `---- @@ -721,7 +721,7 @@ ,-[$DIR/tests/span/ts/decl/decorated-class.ts:10:1] 10 | @Param('id') id: string, 11 | @Body() updateCommentDto: UpdateCommentDto, - : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^ 12 | @User() user: UserType, `---- @@ -825,7 +825,7 @@ ,-[$DIR/tests/span/ts/decl/decorated-class.ts:11:1] 11 | @Body() updateCommentDto: UpdateCommentDto, 12 | @User() user: UserType, - : ^^^^^^^^^^^^^^ + : ^^^^ 13 | ) { `---- @@ -833,7 +833,7 @@ ,-[$DIR/tests/span/ts/decl/decorated-class.ts:11:1] 11 | @Body() updateCommentDto: UpdateCommentDto, 12 | @User() user: UserType, - : ^^^^^^^^^^^^^^ + : ^^^^ 13 | ) { `---- @@ -1370,7 +1370,7 @@ ,-[$DIR/tests/span/ts/decl/decorated-class.ts:18:1] 18 | @Delete(COMMENT_DELETE_ENDPOINT) 19 | public deleteComment(@Param('id') id: string, @User() user: UserType) { - : ^^^^^^^^^^ + : ^^ 20 | return this.commentService.delete(id, user.id); `---- @@ -1378,7 +1378,7 @@ ,-[$DIR/tests/span/ts/decl/decorated-class.ts:18:1] 18 | @Delete(COMMENT_DELETE_ENDPOINT) 19 | public deleteComment(@Param('id') id: string, @User() user: UserType) { - : ^^^^^^^^^^ + : ^^ 20 | return this.commentService.delete(id, user.id); `---- @@ -1466,7 +1466,7 @@ ,-[$DIR/tests/span/ts/decl/decorated-class.ts:18:1] 18 | @Delete(COMMENT_DELETE_ENDPOINT) 19 | public deleteComment(@Param('id') id: string, @User() user: UserType) { - : ^^^^^^^^^^^^^^ + : ^^^^ 20 | return this.commentService.delete(id, user.id); `---- @@ -1474,7 +1474,7 @@ ,-[$DIR/tests/span/ts/decl/decorated-class.ts:18:1] 18 | @Delete(COMMENT_DELETE_ENDPOINT) 19 | public deleteComment(@Param('id') id: string, @User() user: UserType) { - : ^^^^^^^^^^^^^^ + : ^^^^ 20 | return this.commentService.delete(id, user.id); `---- diff --git a/crates/swc_ecma_parser/tests/span/ts/issue-8856/param.ts b/crates/swc_ecma_parser/tests/span/ts/issue-8856/param.ts new file mode 100644 index 000000000000..946702636b31 --- /dev/null +++ b/crates/swc_ecma_parser/tests/span/ts/issue-8856/param.ts @@ -0,0 +1 @@ +function b(a: number = 1) { } diff --git a/crates/swc_ecma_parser/tests/span/ts/issue-8856/param.ts.span.swc-stderr b/crates/swc_ecma_parser/tests/span/ts/issue-8856/param.ts.span.swc-stderr new file mode 100644 index 000000000000..0f75417797d9 --- /dev/null +++ b/crates/swc_ecma_parser/tests/span/ts/issue-8856/param.ts.span.swc-stderr @@ -0,0 +1,114 @@ + + x Module + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x ModuleItem + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x Stmt + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x Decl + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x FnDecl + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x Ident + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^ + `---- + + x Function + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x Param + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^^^^^^^^^^^^^ + `---- + + x Pat + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^^^^^^^^^^^^^ + `---- + + x AssignPat + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^^^^^^^^^^^^^ + `---- + + x Pat + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^ + `---- + + x Ident + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^ + `---- + + x TsTypeAnn + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^^^^^^^^ + `---- + + x TsType + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^^^^^^ + `---- + + x TsKeywordType + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^^^^^^ + `---- + + x Expr + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^ + `---- + + x Lit + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^ + `---- + + x Number + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^ + `---- + + x BlockStmt + ,-[$DIR/tests/span/ts/issue-8856/param.ts:1:1] + 1 | function b(a: number = 1) { } + : ^^^ + `---- diff --git a/crates/swc_ecma_parser/tests/span/ts/issue-8856/var-decl.ts b/crates/swc_ecma_parser/tests/span/ts/issue-8856/var-decl.ts new file mode 100644 index 000000000000..f6e45e43bef8 --- /dev/null +++ b/crates/swc_ecma_parser/tests/span/ts/issue-8856/var-decl.ts @@ -0,0 +1 @@ +const a: number diff --git a/crates/swc_ecma_parser/tests/span/ts/issue-8856/var-decl.ts.span.swc-stderr b/crates/swc_ecma_parser/tests/span/ts/issue-8856/var-decl.ts.span.swc-stderr new file mode 100644 index 000000000000..0ad084dd3497 --- /dev/null +++ b/crates/swc_ecma_parser/tests/span/ts/issue-8856/var-decl.ts.span.swc-stderr @@ -0,0 +1,66 @@ + + x Module + ,-[$DIR/tests/span/ts/issue-8856/var-decl.ts:1:1] + 1 | const a: number + : ^^^^^^^^^^^^^^^ + `---- + + x ModuleItem + ,-[$DIR/tests/span/ts/issue-8856/var-decl.ts:1:1] + 1 | const a: number + : ^^^^^^^^^^^^^^^ + `---- + + x Stmt + ,-[$DIR/tests/span/ts/issue-8856/var-decl.ts:1:1] + 1 | const a: number + : ^^^^^^^^^^^^^^^ + `---- + + x Decl + ,-[$DIR/tests/span/ts/issue-8856/var-decl.ts:1:1] + 1 | const a: number + : ^^^^^^^^^^^^^^^ + `---- + + x VarDecl + ,-[$DIR/tests/span/ts/issue-8856/var-decl.ts:1:1] + 1 | const a: number + : ^^^^^^^^^^^^^^^ + `---- + + x VarDeclarator + ,-[$DIR/tests/span/ts/issue-8856/var-decl.ts:1:1] + 1 | const a: number + : ^^^^^^^^^ + `---- + + x Pat + ,-[$DIR/tests/span/ts/issue-8856/var-decl.ts:1:1] + 1 | const a: number + : ^ + `---- + + x Ident + ,-[$DIR/tests/span/ts/issue-8856/var-decl.ts:1:1] + 1 | const a: number + : ^ + `---- + + x TsTypeAnn + ,-[$DIR/tests/span/ts/issue-8856/var-decl.ts:1:1] + 1 | const a: number + : ^^^^^^^^ + `---- + + x TsType + ,-[$DIR/tests/span/ts/issue-8856/var-decl.ts:1:1] + 1 | const a: number + : ^^^^^^ + `---- + + x TsKeywordType + ,-[$DIR/tests/span/ts/issue-8856/var-decl.ts:1:1] + 1 | const a: number + : ^^^^^^ + `---- diff --git a/crates/swc_ecma_parser/tests/span/ts/type/interface.ts.span.swc-stderr b/crates/swc_ecma_parser/tests/span/ts/type/interface.ts.span.swc-stderr index 769e36bad1c4..6d4271d8869b 100644 --- a/crates/swc_ecma_parser/tests/span/ts/type/interface.ts.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/span/ts/type/interface.ts.span.swc-stderr @@ -96,7 +96,7 @@ ,-[$DIR/tests/span/ts/type/interface.ts:2:1] 2 | new(); 3 | (foo: string): void; - : ^^^^^^^^^^^ + : ^^^ 4 | [foo: string]: void; `---- @@ -104,7 +104,7 @@ ,-[$DIR/tests/span/ts/type/interface.ts:2:1] 2 | new(); 3 | (foo: string): void; - : ^^^^^^^^^^^ + : ^^^ 4 | [foo: string]: void; `---- diff --git a/crates/swc_ecma_parser/tests/tsc/1.0lib-noErrors.json b/crates/swc_ecma_parser/tests/tsc/1.0lib-noErrors.json index 70a7506bc5ff..1be8b5481d38 100644 --- a/crates/swc_ecma_parser/tests/tsc/1.0lib-noErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/1.0lib-noErrors.json @@ -130,7 +130,7 @@ "type": "Identifier", "span": { "start": 1156, - "end": 1165, + "end": 1157, "ctxt": 0 }, "value": "x", @@ -209,7 +209,7 @@ "type": "Identifier", "span": { "start": 1531, - "end": 1540, + "end": 1532, "ctxt": 0 }, "value": "s", @@ -245,7 +245,7 @@ "type": "Identifier", "span": { "start": 1542, - "end": 1556, + "end": 1547, "ctxt": 0 }, "value": "radix", @@ -324,7 +324,7 @@ "type": "Identifier", "span": { "start": 1723, - "end": 1737, + "end": 1729, "ctxt": 0 }, "value": "string", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 1918, - "end": 1932, + "end": 1924, "ctxt": 0 }, "value": "number", @@ -482,7 +482,7 @@ "type": "Identifier", "span": { "start": 2070, - "end": 2084, + "end": 2076, "ctxt": 0 }, "value": "number", @@ -561,7 +561,7 @@ "type": "Identifier", "span": { "start": 2272, - "end": 2290, + "end": 2282, "ctxt": 0 }, "value": "encodedURI", @@ -640,7 +640,7 @@ "type": "Identifier", "span": { "start": 2520, - "end": 2547, + "end": 2539, "ctxt": 0 }, "value": "encodedURIComponent", @@ -719,7 +719,7 @@ "type": "Identifier", "span": { "start": 2719, - "end": 2730, + "end": 2722, "ctxt": 0 }, "value": "uri", @@ -798,7 +798,7 @@ "type": "Identifier", "span": { "start": 2945, - "end": 2984, + "end": 2957, "ctxt": 0 }, "value": "uriComponent", @@ -1136,7 +1136,7 @@ "type": "Identifier", "span": { "start": 3148, - "end": 3154, + "end": 3149, "ctxt": 0 }, "value": "v", @@ -1513,7 +1513,7 @@ "type": "Identifier", "span": { "start": 3816, - "end": 3825, + "end": 3817, "ctxt": 0 }, "value": "v", @@ -1581,7 +1581,7 @@ "type": "Identifier", "span": { "start": 4027, - "end": 4036, + "end": 4028, "ctxt": 0 }, "value": "v", @@ -1659,7 +1659,7 @@ "type": "Identifier", "span": { "start": 4189, - "end": 4198, + "end": 4190, "ctxt": 0 }, "value": "v", @@ -1758,7 +1758,7 @@ "type": "Identifier", "span": { "start": 4314, - "end": 4325, + "end": 4319, "ctxt": 0 }, "value": "value", @@ -1850,7 +1850,7 @@ "type": "Identifier", "span": { "start": 4354, - "end": 4364, + "end": 4359, "ctxt": 0 }, "value": "value", @@ -1969,7 +1969,7 @@ "type": "Identifier", "span": { "start": 4602, - "end": 4608, + "end": 4603, "ctxt": 0 }, "value": "o", @@ -2037,7 +2037,7 @@ "type": "Identifier", "span": { "start": 4951, - "end": 4957, + "end": 4952, "ctxt": 0 }, "value": "o", @@ -2064,7 +2064,7 @@ "type": "Identifier", "span": { "start": 4959, - "end": 4968, + "end": 4960, "ctxt": 0 }, "value": "p", @@ -2142,7 +2142,7 @@ "type": "Identifier", "span": { "start": 5371, - "end": 5377, + "end": 5372, "ctxt": 0 }, "value": "o", @@ -2218,7 +2218,7 @@ "type": "Identifier", "span": { "start": 5683, - "end": 5689, + "end": 5684, "ctxt": 0 }, "value": "o", @@ -2245,7 +2245,7 @@ "type": "Identifier", "span": { "start": 5691, - "end": 5725, + "end": 5701, "ctxt": 0 }, "value": "properties", @@ -2323,7 +2323,7 @@ "type": "Identifier", "span": { "start": 6177, - "end": 6183, + "end": 6178, "ctxt": 0 }, "value": "o", @@ -2350,7 +2350,7 @@ "type": "Identifier", "span": { "start": 6185, - "end": 6194, + "end": 6186, "ctxt": 0 }, "value": "p", @@ -2377,7 +2377,7 @@ "type": "Identifier", "span": { "start": 6196, - "end": 6226, + "end": 6206, "ctxt": 0 }, "value": "attributes", @@ -2455,7 +2455,7 @@ "type": "Identifier", "span": { "start": 6661, - "end": 6667, + "end": 6662, "ctxt": 0 }, "value": "o", @@ -2482,7 +2482,7 @@ "type": "Identifier", "span": { "start": 6669, - "end": 6702, + "end": 6679, "ctxt": 0 }, "value": "properties", @@ -2560,7 +2560,7 @@ "type": "Identifier", "span": { "start": 6912, - "end": 6918, + "end": 6913, "ctxt": 0 }, "value": "o", @@ -2628,7 +2628,7 @@ "type": "Identifier", "span": { "start": 7135, - "end": 7141, + "end": 7136, "ctxt": 0 }, "value": "o", @@ -2696,7 +2696,7 @@ "type": "Identifier", "span": { "start": 7300, - "end": 7306, + "end": 7301, "ctxt": 0 }, "value": "o", @@ -2764,7 +2764,7 @@ "type": "Identifier", "span": { "start": 7514, - "end": 7520, + "end": 7515, "ctxt": 0 }, "value": "o", @@ -2832,7 +2832,7 @@ "type": "Identifier", "span": { "start": 7745, - "end": 7751, + "end": 7746, "ctxt": 0 }, "value": "o", @@ -2900,7 +2900,7 @@ "type": "Identifier", "span": { "start": 7921, - "end": 7927, + "end": 7922, "ctxt": 0 }, "value": "o", @@ -2968,7 +2968,7 @@ "type": "Identifier", "span": { "start": 8203, - "end": 8209, + "end": 8204, "ctxt": 0 }, "value": "o", @@ -3081,7 +3081,7 @@ "type": "Identifier", "span": { "start": 8605, - "end": 8617, + "end": 8612, "ctxt": 0 }, "value": "thisArg", @@ -3108,7 +3108,7 @@ "type": "Identifier", "span": { "start": 8619, - "end": 8633, + "end": 8627, "ctxt": 0 }, "value": "argArray", @@ -3176,7 +3176,7 @@ "type": "Identifier", "span": { "start": 8897, - "end": 8909, + "end": 8904, "ctxt": 0 }, "value": "thisArg", @@ -3293,7 +3293,7 @@ "type": "Identifier", "span": { "start": 9370, - "end": 9382, + "end": 9377, "ctxt": 0 }, "value": "thisArg", @@ -4109,7 +4109,7 @@ "type": "Identifier", "span": { "start": 10108, - "end": 10119, + "end": 10111, "ctxt": 0 }, "value": "pos", @@ -4177,7 +4177,7 @@ "type": "Identifier", "span": { "start": 10376, - "end": 10389, + "end": 10381, "ctxt": 0 }, "value": "index", @@ -4335,7 +4335,7 @@ "type": "Identifier", "span": { "start": 10923, - "end": 10943, + "end": 10935, "ctxt": 0 }, "value": "searchString", @@ -4362,7 +4362,7 @@ "type": "Identifier", "span": { "start": 10945, - "end": 10962, + "end": 10953, "ctxt": 0 }, "value": "position", @@ -4430,7 +4430,7 @@ "type": "Identifier", "span": { "start": 11249, - "end": 11269, + "end": 11261, "ctxt": 0 }, "value": "searchString", @@ -4457,7 +4457,7 @@ "type": "Identifier", "span": { "start": 11271, - "end": 11288, + "end": 11279, "ctxt": 0 }, "value": "position", @@ -4525,7 +4525,7 @@ "type": "Identifier", "span": { "start": 11467, - "end": 11479, + "end": 11471, "ctxt": 0 }, "value": "that", @@ -4593,7 +4593,7 @@ "type": "Identifier", "span": { "start": 11740, - "end": 11754, + "end": 11746, "ctxt": 0 }, "value": "regexp", @@ -4669,7 +4669,7 @@ "type": "Identifier", "span": { "start": 12026, - "end": 12040, + "end": 12032, "ctxt": 0 }, "value": "regexp", @@ -4755,7 +4755,7 @@ "type": "Identifier", "span": { "start": 12406, - "end": 12425, + "end": 12417, "ctxt": 0 }, "value": "searchValue", @@ -4782,7 +4782,7 @@ "type": "Identifier", "span": { "start": 12427, - "end": 12447, + "end": 12439, "ctxt": 0 }, "value": "replaceValue", @@ -4850,7 +4850,7 @@ "type": "Identifier", "span": { "start": 12742, - "end": 12761, + "end": 12753, "ctxt": 0 }, "value": "searchValue", @@ -4877,7 +4877,7 @@ "type": "Identifier", "span": { "start": 12763, - "end": 12822, + "end": 12775, "ctxt": 0 }, "value": "replaceValue", @@ -4901,7 +4901,7 @@ "type": "Identifier", "span": { "start": 12778, - "end": 12795, + "end": 12787, "ctxt": 0 }, "value": "substring", @@ -5040,7 +5040,7 @@ "type": "Identifier", "span": { "start": 13204, - "end": 13223, + "end": 13215, "ctxt": 0 }, "value": "searchValue", @@ -5077,7 +5077,7 @@ "type": "Identifier", "span": { "start": 13225, - "end": 13245, + "end": 13237, "ctxt": 0 }, "value": "replaceValue", @@ -5145,7 +5145,7 @@ "type": "Identifier", "span": { "start": 13558, - "end": 13577, + "end": 13569, "ctxt": 0 }, "value": "searchValue", @@ -5182,7 +5182,7 @@ "type": "Identifier", "span": { "start": 13579, - "end": 13638, + "end": 13591, "ctxt": 0 }, "value": "replaceValue", @@ -5206,7 +5206,7 @@ "type": "Identifier", "span": { "start": 13594, - "end": 13611, + "end": 13603, "ctxt": 0 }, "value": "substring", @@ -5345,7 +5345,7 @@ "type": "Identifier", "span": { "start": 13826, - "end": 13840, + "end": 13832, "ctxt": 0 }, "value": "regexp", @@ -5413,7 +5413,7 @@ "type": "Identifier", "span": { "start": 14028, - "end": 14042, + "end": 14034, "ctxt": 0 }, "value": "regexp", @@ -5491,7 +5491,7 @@ "type": "Identifier", "span": { "start": 14473, - "end": 14487, + "end": 14478, "ctxt": 0 }, "value": "start", @@ -5518,7 +5518,7 @@ "type": "Identifier", "span": { "start": 14489, - "end": 14501, + "end": 14492, "ctxt": 0 }, "value": "end", @@ -5586,7 +5586,7 @@ "type": "Identifier", "span": { "start": 14912, - "end": 14929, + "end": 14921, "ctxt": 0 }, "value": "separator", @@ -5613,7 +5613,7 @@ "type": "Identifier", "span": { "start": 14931, - "end": 14945, + "end": 14936, "ctxt": 0 }, "value": "limit", @@ -5689,7 +5689,7 @@ "type": "Identifier", "span": { "start": 15367, - "end": 15384, + "end": 15376, "ctxt": 0 }, "value": "separator", @@ -5726,7 +5726,7 @@ "type": "Identifier", "span": { "start": 15386, - "end": 15400, + "end": 15391, "ctxt": 0 }, "value": "limit", @@ -5802,7 +5802,7 @@ "type": "Identifier", "span": { "start": 15900, - "end": 15913, + "end": 15905, "ctxt": 0 }, "value": "start", @@ -5829,7 +5829,7 @@ "type": "Identifier", "span": { "start": 15915, - "end": 15927, + "end": 15918, "ctxt": 0 }, "value": "end", @@ -6138,7 +6138,7 @@ "type": "Identifier", "span": { "start": 17033, - "end": 17045, + "end": 17037, "ctxt": 0 }, "value": "from", @@ -6165,7 +6165,7 @@ "type": "Identifier", "span": { "start": 17047, - "end": 17062, + "end": 17053, "ctxt": 0 }, "value": "length", @@ -6320,7 +6320,7 @@ "type": "Identifier", "span": { "start": 17264, - "end": 17275, + "end": 17269, "ctxt": 0 }, "value": "value", @@ -6385,7 +6385,7 @@ "type": "Identifier", "span": { "start": 17291, - "end": 17302, + "end": 17296, "ctxt": 0 }, "value": "value", @@ -6661,7 +6661,7 @@ "type": "Identifier", "span": { "start": 17439, - "end": 17450, + "end": 17444, "ctxt": 0 }, "value": "value", @@ -6726,7 +6726,7 @@ "type": "Identifier", "span": { "start": 17467, - "end": 17478, + "end": 17472, "ctxt": 0 }, "value": "value", @@ -6882,7 +6882,7 @@ "type": "Identifier", "span": { "start": 17738, - "end": 17752, + "end": 17743, "ctxt": 0 }, "value": "radix", @@ -6950,7 +6950,7 @@ "type": "Identifier", "span": { "start": 17978, - "end": 18001, + "end": 17992, "ctxt": 0 }, "value": "fractionDigits", @@ -7018,7 +7018,7 @@ "type": "Identifier", "span": { "start": 18242, - "end": 18265, + "end": 18256, "ctxt": 0 }, "value": "fractionDigits", @@ -7086,7 +7086,7 @@ "type": "Identifier", "span": { "start": 18543, - "end": 18561, + "end": 18552, "ctxt": 0 }, "value": "precision", @@ -7185,7 +7185,7 @@ "type": "Identifier", "span": { "start": 18719, - "end": 18730, + "end": 18724, "ctxt": 0 }, "value": "value", @@ -7250,7 +7250,7 @@ "type": "Identifier", "span": { "start": 18746, - "end": 18757, + "end": 18751, "ctxt": 0 }, "value": "value", @@ -7939,7 +7939,7 @@ "type": "Identifier", "span": { "start": 20627, - "end": 20636, + "end": 20628, "ctxt": 0 }, "value": "x", @@ -8007,7 +8007,7 @@ "type": "Identifier", "span": { "start": 20777, - "end": 20786, + "end": 20778, "ctxt": 0 }, "value": "x", @@ -8075,7 +8075,7 @@ "type": "Identifier", "span": { "start": 20905, - "end": 20914, + "end": 20906, "ctxt": 0 }, "value": "x", @@ -8143,7 +8143,7 @@ "type": "Identifier", "span": { "start": 21070, - "end": 21079, + "end": 21071, "ctxt": 0 }, "value": "x", @@ -8211,7 +8211,7 @@ "type": "Identifier", "span": { "start": 21348, - "end": 21357, + "end": 21349, "ctxt": 0 }, "value": "y", @@ -8238,7 +8238,7 @@ "type": "Identifier", "span": { "start": 21359, - "end": 21368, + "end": 21360, "ctxt": 0 }, "value": "x", @@ -8306,7 +8306,7 @@ "type": "Identifier", "span": { "start": 21528, - "end": 21537, + "end": 21529, "ctxt": 0 }, "value": "x", @@ -8374,7 +8374,7 @@ "type": "Identifier", "span": { "start": 21696, - "end": 21705, + "end": 21697, "ctxt": 0 }, "value": "x", @@ -8442,7 +8442,7 @@ "type": "Identifier", "span": { "start": 21879, - "end": 21888, + "end": 21880, "ctxt": 0 }, "value": "x", @@ -8510,7 +8510,7 @@ "type": "Identifier", "span": { "start": 22046, - "end": 22055, + "end": 22047, "ctxt": 0 }, "value": "x", @@ -8578,7 +8578,7 @@ "type": "Identifier", "span": { "start": 22191, - "end": 22200, + "end": 22192, "ctxt": 0 }, "value": "x", @@ -8826,7 +8826,7 @@ "type": "Identifier", "span": { "start": 22787, - "end": 22796, + "end": 22788, "ctxt": 0 }, "value": "x", @@ -8853,7 +8853,7 @@ "type": "Identifier", "span": { "start": 22798, - "end": 22807, + "end": 22799, "ctxt": 0 }, "value": "y", @@ -8961,7 +8961,7 @@ "type": "Identifier", "span": { "start": 23067, - "end": 23076, + "end": 23068, "ctxt": 0 }, "value": "x", @@ -9029,7 +9029,7 @@ "type": "Identifier", "span": { "start": 23232, - "end": 23241, + "end": 23233, "ctxt": 0 }, "value": "x", @@ -9097,7 +9097,7 @@ "type": "Identifier", "span": { "start": 23362, - "end": 23371, + "end": 23363, "ctxt": 0 }, "value": "x", @@ -9165,7 +9165,7 @@ "type": "Identifier", "span": { "start": 23530, - "end": 23539, + "end": 23531, "ctxt": 0 }, "value": "x", @@ -10323,7 +10323,7 @@ "type": "Identifier", "span": { "start": 26485, - "end": 26497, + "end": 26489, "ctxt": 0 }, "value": "time", @@ -10391,7 +10391,7 @@ "type": "Identifier", "span": { "start": 26685, - "end": 26695, + "end": 26687, "ctxt": 0 }, "value": "ms", @@ -10459,7 +10459,7 @@ "type": "Identifier", "span": { "start": 26909, - "end": 26919, + "end": 26911, "ctxt": 0 }, "value": "ms", @@ -10527,7 +10527,7 @@ "type": "Identifier", "span": { "start": 27162, - "end": 27173, + "end": 27165, "ctxt": 0 }, "value": "sec", @@ -10554,7 +10554,7 @@ "type": "Identifier", "span": { "start": 27175, - "end": 27186, + "end": 27177, "ctxt": 0 }, "value": "ms", @@ -10622,7 +10622,7 @@ "type": "Identifier", "span": { "start": 27452, - "end": 27463, + "end": 27455, "ctxt": 0 }, "value": "sec", @@ -10649,7 +10649,7 @@ "type": "Identifier", "span": { "start": 27465, - "end": 27476, + "end": 27467, "ctxt": 0 }, "value": "ms", @@ -10717,7 +10717,7 @@ "type": "Identifier", "span": { "start": 27783, - "end": 27794, + "end": 27786, "ctxt": 0 }, "value": "min", @@ -10744,7 +10744,7 @@ "type": "Identifier", "span": { "start": 27796, - "end": 27808, + "end": 27799, "ctxt": 0 }, "value": "sec", @@ -10771,7 +10771,7 @@ "type": "Identifier", "span": { "start": 27810, - "end": 27821, + "end": 27812, "ctxt": 0 }, "value": "ms", @@ -10839,7 +10839,7 @@ "type": "Identifier", "span": { "start": 28152, - "end": 28163, + "end": 28155, "ctxt": 0 }, "value": "min", @@ -10866,7 +10866,7 @@ "type": "Identifier", "span": { "start": 28165, - "end": 28177, + "end": 28168, "ctxt": 0 }, "value": "sec", @@ -10893,7 +10893,7 @@ "type": "Identifier", "span": { "start": 28179, - "end": 28190, + "end": 28181, "ctxt": 0 }, "value": "ms", @@ -10961,7 +10961,7 @@ "type": "Identifier", "span": { "start": 28553, - "end": 28566, + "end": 28558, "ctxt": 0 }, "value": "hours", @@ -10988,7 +10988,7 @@ "type": "Identifier", "span": { "start": 28568, - "end": 28580, + "end": 28571, "ctxt": 0 }, "value": "min", @@ -11015,7 +11015,7 @@ "type": "Identifier", "span": { "start": 28582, - "end": 28594, + "end": 28585, "ctxt": 0 }, "value": "sec", @@ -11042,7 +11042,7 @@ "type": "Identifier", "span": { "start": 28596, - "end": 28607, + "end": 28598, "ctxt": 0 }, "value": "ms", @@ -11110,7 +11110,7 @@ "type": "Identifier", "span": { "start": 28996, - "end": 29009, + "end": 29001, "ctxt": 0 }, "value": "hours", @@ -11137,7 +11137,7 @@ "type": "Identifier", "span": { "start": 29011, - "end": 29023, + "end": 29014, "ctxt": 0 }, "value": "min", @@ -11164,7 +11164,7 @@ "type": "Identifier", "span": { "start": 29025, - "end": 29037, + "end": 29028, "ctxt": 0 }, "value": "sec", @@ -11191,7 +11191,7 @@ "type": "Identifier", "span": { "start": 29039, - "end": 29050, + "end": 29041, "ctxt": 0 }, "value": "ms", @@ -11259,7 +11259,7 @@ "type": "Identifier", "span": { "start": 29243, - "end": 29255, + "end": 29247, "ctxt": 0 }, "value": "date", @@ -11327,7 +11327,7 @@ "type": "Identifier", "span": { "start": 29468, - "end": 29480, + "end": 29472, "ctxt": 0 }, "value": "date", @@ -11395,7 +11395,7 @@ "type": "Identifier", "span": { "start": 29875, - "end": 29888, + "end": 29880, "ctxt": 0 }, "value": "month", @@ -11422,7 +11422,7 @@ "type": "Identifier", "span": { "start": 29890, - "end": 29903, + "end": 29894, "ctxt": 0 }, "value": "date", @@ -11490,7 +11490,7 @@ "type": "Identifier", "span": { "start": 30315, - "end": 30328, + "end": 30320, "ctxt": 0 }, "value": "month", @@ -11517,7 +11517,7 @@ "type": "Identifier", "span": { "start": 30330, - "end": 30343, + "end": 30334, "ctxt": 0 }, "value": "date", @@ -11585,7 +11585,7 @@ "type": "Identifier", "span": { "start": 30703, - "end": 30715, + "end": 30707, "ctxt": 0 }, "value": "year", @@ -11612,7 +11612,7 @@ "type": "Identifier", "span": { "start": 30717, - "end": 30731, + "end": 30722, "ctxt": 0 }, "value": "month", @@ -11639,7 +11639,7 @@ "type": "Identifier", "span": { "start": 30733, - "end": 30746, + "end": 30737, "ctxt": 0 }, "value": "date", @@ -11707,7 +11707,7 @@ "type": "Identifier", "span": { "start": 31173, - "end": 31185, + "end": 31177, "ctxt": 0 }, "value": "year", @@ -11734,7 +11734,7 @@ "type": "Identifier", "span": { "start": 31187, - "end": 31201, + "end": 31192, "ctxt": 0 }, "value": "month", @@ -11761,7 +11761,7 @@ "type": "Identifier", "span": { "start": 31203, - "end": 31216, + "end": 31207, "ctxt": 0 }, "value": "date", @@ -11909,7 +11909,7 @@ "type": "Identifier", "span": { "start": 31586, - "end": 31595, + "end": 31589, "ctxt": 0 }, "value": "key", @@ -12045,7 +12045,7 @@ "type": "Identifier", "span": { "start": 31656, - "end": 31669, + "end": 31661, "ctxt": 0 }, "value": "value", @@ -12110,7 +12110,7 @@ "type": "Identifier", "span": { "start": 31687, - "end": 31700, + "end": 31692, "ctxt": 0 }, "value": "value", @@ -12175,7 +12175,7 @@ "type": "Identifier", "span": { "start": 31718, - "end": 31730, + "end": 31722, "ctxt": 0 }, "value": "year", @@ -12202,7 +12202,7 @@ "type": "Identifier", "span": { "start": 31732, - "end": 31745, + "end": 31737, "ctxt": 0 }, "value": "month", @@ -12229,7 +12229,7 @@ "type": "Identifier", "span": { "start": 31747, - "end": 31760, + "end": 31751, "ctxt": 0 }, "value": "date", @@ -12256,7 +12256,7 @@ "type": "Identifier", "span": { "start": 31762, - "end": 31776, + "end": 31767, "ctxt": 0 }, "value": "hours", @@ -12283,7 +12283,7 @@ "type": "Identifier", "span": { "start": 31778, - "end": 31794, + "end": 31785, "ctxt": 0 }, "value": "minutes", @@ -12310,7 +12310,7 @@ "type": "Identifier", "span": { "start": 31796, - "end": 31812, + "end": 31803, "ctxt": 0 }, "value": "seconds", @@ -12337,7 +12337,7 @@ "type": "Identifier", "span": { "start": 31814, - "end": 31825, + "end": 31816, "ctxt": 0 }, "value": "ms", @@ -12493,7 +12493,7 @@ "type": "Identifier", "span": { "start": 32060, - "end": 32069, + "end": 32061, "ctxt": 0 }, "value": "s", @@ -12561,7 +12561,7 @@ "type": "Identifier", "span": { "start": 33000, - "end": 33012, + "end": 33004, "ctxt": 0 }, "value": "year", @@ -12588,7 +12588,7 @@ "type": "Identifier", "span": { "start": 33014, - "end": 33027, + "end": 33019, "ctxt": 0 }, "value": "month", @@ -12615,7 +12615,7 @@ "type": "Identifier", "span": { "start": 33029, - "end": 33042, + "end": 33033, "ctxt": 0 }, "value": "date", @@ -12642,7 +12642,7 @@ "type": "Identifier", "span": { "start": 33044, - "end": 33058, + "end": 33049, "ctxt": 0 }, "value": "hours", @@ -12669,7 +12669,7 @@ "type": "Identifier", "span": { "start": 33060, - "end": 33076, + "end": 33067, "ctxt": 0 }, "value": "minutes", @@ -12696,7 +12696,7 @@ "type": "Identifier", "span": { "start": 33078, - "end": 33094, + "end": 33085, "ctxt": 0 }, "value": "seconds", @@ -12723,7 +12723,7 @@ "type": "Identifier", "span": { "start": 33096, - "end": 33107, + "end": 33098, "ctxt": 0 }, "value": "ms", @@ -13233,7 +13233,7 @@ "type": "Identifier", "span": { "start": 33364, - "end": 33382, + "end": 33373, "ctxt": 0 }, "value": "separator", @@ -13519,7 +13519,7 @@ "type": "Identifier", "span": { "start": 33506, - "end": 33520, + "end": 33511, "ctxt": 0 }, "value": "start", @@ -13546,7 +13546,7 @@ "type": "Identifier", "span": { "start": 33522, - "end": 33534, + "end": 33525, "ctxt": 0 }, "value": "end", @@ -13622,7 +13622,7 @@ "type": "Identifier", "span": { "start": 33556, - "end": 33600, + "end": 33565, "ctxt": 0 }, "value": "compareFn", @@ -13646,7 +13646,7 @@ "type": "Identifier", "span": { "start": 33569, - "end": 33578, + "end": 33570, "ctxt": 0 }, "value": "a", @@ -13673,7 +13673,7 @@ "type": "Identifier", "span": { "start": 33580, - "end": 33589, + "end": 33581, "ctxt": 0 }, "value": "b", @@ -13771,7 +13771,7 @@ "type": "Identifier", "span": { "start": 33624, - "end": 33637, + "end": 33629, "ctxt": 0 }, "value": "start", @@ -13847,7 +13847,7 @@ "type": "Identifier", "span": { "start": 33661, - "end": 33674, + "end": 33666, "ctxt": 0 }, "value": "start", @@ -13874,7 +13874,7 @@ "type": "Identifier", "span": { "start": 33676, - "end": 33695, + "end": 33687, "ctxt": 0 }, "value": "deleteCount", @@ -14089,7 +14089,7 @@ "type": "Identifier", "span": { "start": 33782, - "end": 33803, + "end": 33795, "ctxt": 0 }, "value": "searchElement", @@ -14116,7 +14116,7 @@ "type": "Identifier", "span": { "start": 33805, - "end": 33823, + "end": 33814, "ctxt": 0 }, "value": "fromIndex", @@ -14184,7 +14184,7 @@ "type": "Identifier", "span": { "start": 33850, - "end": 33871, + "end": 33863, "ctxt": 0 }, "value": "searchElement", @@ -14211,7 +14211,7 @@ "type": "Identifier", "span": { "start": 33873, - "end": 33891, + "end": 33882, "ctxt": 0 }, "value": "fromIndex", @@ -14279,7 +14279,7 @@ "type": "Identifier", "span": { "start": 33912, - "end": 33982, + "end": 33922, "ctxt": 0 }, "value": "callbackfn", @@ -14303,7 +14303,7 @@ "type": "Identifier", "span": { "start": 33925, - "end": 33938, + "end": 33930, "ctxt": 0 }, "value": "value", @@ -14330,7 +14330,7 @@ "type": "Identifier", "span": { "start": 33940, - "end": 33953, + "end": 33945, "ctxt": 0 }, "value": "index", @@ -14357,7 +14357,7 @@ "type": "Identifier", "span": { "start": 33955, - "end": 33970, + "end": 33960, "ctxt": 0 }, "value": "array", @@ -14414,7 +14414,7 @@ "type": "Identifier", "span": { "start": 33984, - "end": 33997, + "end": 33991, "ctxt": 0 }, "value": "thisArg", @@ -14482,7 +14482,7 @@ "type": "Identifier", "span": { "start": 34018, - "end": 34088, + "end": 34028, "ctxt": 0 }, "value": "callbackfn", @@ -14506,7 +14506,7 @@ "type": "Identifier", "span": { "start": 34031, - "end": 34044, + "end": 34036, "ctxt": 0 }, "value": "value", @@ -14533,7 +14533,7 @@ "type": "Identifier", "span": { "start": 34046, - "end": 34059, + "end": 34051, "ctxt": 0 }, "value": "index", @@ -14560,7 +14560,7 @@ "type": "Identifier", "span": { "start": 34061, - "end": 34076, + "end": 34066, "ctxt": 0 }, "value": "array", @@ -14617,7 +14617,7 @@ "type": "Identifier", "span": { "start": 34090, - "end": 34103, + "end": 34097, "ctxt": 0 }, "value": "thisArg", @@ -14685,7 +14685,7 @@ "type": "Identifier", "span": { "start": 34127, - "end": 34194, + "end": 34137, "ctxt": 0 }, "value": "callbackfn", @@ -14709,7 +14709,7 @@ "type": "Identifier", "span": { "start": 34140, - "end": 34153, + "end": 34145, "ctxt": 0 }, "value": "value", @@ -14736,7 +14736,7 @@ "type": "Identifier", "span": { "start": 34155, - "end": 34168, + "end": 34160, "ctxt": 0 }, "value": "index", @@ -14763,7 +14763,7 @@ "type": "Identifier", "span": { "start": 34170, - "end": 34185, + "end": 34175, "ctxt": 0 }, "value": "array", @@ -14820,7 +14820,7 @@ "type": "Identifier", "span": { "start": 34196, - "end": 34209, + "end": 34203, "ctxt": 0 }, "value": "thisArg", @@ -14888,7 +14888,7 @@ "type": "Identifier", "span": { "start": 34226, - "end": 34292, + "end": 34236, "ctxt": 0 }, "value": "callbackfn", @@ -14912,7 +14912,7 @@ "type": "Identifier", "span": { "start": 34239, - "end": 34252, + "end": 34244, "ctxt": 0 }, "value": "value", @@ -14939,7 +14939,7 @@ "type": "Identifier", "span": { "start": 34254, - "end": 34267, + "end": 34259, "ctxt": 0 }, "value": "index", @@ -14966,7 +14966,7 @@ "type": "Identifier", "span": { "start": 34269, - "end": 34284, + "end": 34274, "ctxt": 0 }, "value": "array", @@ -15023,7 +15023,7 @@ "type": "Identifier", "span": { "start": 34294, - "end": 34307, + "end": 34301, "ctxt": 0 }, "value": "thisArg", @@ -15099,7 +15099,7 @@ "type": "Identifier", "span": { "start": 34328, - "end": 34398, + "end": 34338, "ctxt": 0 }, "value": "callbackfn", @@ -15123,7 +15123,7 @@ "type": "Identifier", "span": { "start": 34341, - "end": 34354, + "end": 34346, "ctxt": 0 }, "value": "value", @@ -15150,7 +15150,7 @@ "type": "Identifier", "span": { "start": 34356, - "end": 34369, + "end": 34361, "ctxt": 0 }, "value": "index", @@ -15177,7 +15177,7 @@ "type": "Identifier", "span": { "start": 34371, - "end": 34386, + "end": 34376, "ctxt": 0 }, "value": "array", @@ -15234,7 +15234,7 @@ "type": "Identifier", "span": { "start": 34400, - "end": 34413, + "end": 34407, "ctxt": 0 }, "value": "thisArg", @@ -15310,7 +15310,7 @@ "type": "Identifier", "span": { "start": 34437, - "end": 34534, + "end": 34447, "ctxt": 0 }, "value": "callbackfn", @@ -15334,7 +15334,7 @@ "type": "Identifier", "span": { "start": 34450, - "end": 34468, + "end": 34463, "ctxt": 0 }, "value": "previousValue", @@ -15361,7 +15361,7 @@ "type": "Identifier", "span": { "start": 34470, - "end": 34487, + "end": 34482, "ctxt": 0 }, "value": "currentValue", @@ -15388,7 +15388,7 @@ "type": "Identifier", "span": { "start": 34489, - "end": 34509, + "end": 34501, "ctxt": 0 }, "value": "currentIndex", @@ -15415,7 +15415,7 @@ "type": "Identifier", "span": { "start": 34511, - "end": 34526, + "end": 34516, "ctxt": 0 }, "value": "array", @@ -15472,7 +15472,7 @@ "type": "Identifier", "span": { "start": 34536, - "end": 34554, + "end": 34548, "ctxt": 0 }, "value": "initialValue", @@ -15540,7 +15540,7 @@ "type": "Identifier", "span": { "start": 34578, - "end": 34675, + "end": 34588, "ctxt": 0 }, "value": "callbackfn", @@ -15564,7 +15564,7 @@ "type": "Identifier", "span": { "start": 34591, - "end": 34609, + "end": 34604, "ctxt": 0 }, "value": "previousValue", @@ -15591,7 +15591,7 @@ "type": "Identifier", "span": { "start": 34611, - "end": 34628, + "end": 34623, "ctxt": 0 }, "value": "currentValue", @@ -15618,7 +15618,7 @@ "type": "Identifier", "span": { "start": 34630, - "end": 34650, + "end": 34642, "ctxt": 0 }, "value": "currentIndex", @@ -15645,7 +15645,7 @@ "type": "Identifier", "span": { "start": 34652, - "end": 34667, + "end": 34657, "ctxt": 0 }, "value": "array", @@ -15702,7 +15702,7 @@ "type": "Identifier", "span": { "start": 34677, - "end": 34695, + "end": 34689, "ctxt": 0 }, "value": "initialValue", @@ -15801,7 +15801,7 @@ "type": "Identifier", "span": { "start": 34977, - "end": 34991, + "end": 34983, "ctxt": 0 }, "value": "string", @@ -15879,7 +15879,7 @@ "type": "Identifier", "span": { "start": 35201, - "end": 35215, + "end": 35207, "ctxt": 0 }, "value": "string", @@ -16233,7 +16233,7 @@ "type": "Identifier", "span": { "start": 36035, - "end": 36050, + "end": 36042, "ctxt": 0 }, "value": "pattern", @@ -16260,7 +16260,7 @@ "type": "Identifier", "span": { "start": 36052, - "end": 36066, + "end": 36057, "ctxt": 0 }, "value": "flags", @@ -16325,7 +16325,7 @@ "type": "Identifier", "span": { "start": 36082, - "end": 36097, + "end": 36089, "ctxt": 0 }, "value": "pattern", @@ -16352,7 +16352,7 @@ "type": "Identifier", "span": { "start": 36099, - "end": 36113, + "end": 36104, "ctxt": 0 }, "value": "flags", @@ -16990,7 +16990,7 @@ "type": "Identifier", "span": { "start": 36415, - "end": 36431, + "end": 36422, "ctxt": 0 }, "value": "message", @@ -17055,7 +17055,7 @@ "type": "Identifier", "span": { "start": 36446, - "end": 36462, + "end": 36453, "ctxt": 0 }, "value": "message", @@ -17271,7 +17271,7 @@ "type": "Identifier", "span": { "start": 36569, - "end": 36585, + "end": 36576, "ctxt": 0 }, "value": "message", @@ -17336,7 +17336,7 @@ "type": "Identifier", "span": { "start": 36604, - "end": 36620, + "end": 36611, "ctxt": 0 }, "value": "message", @@ -17552,7 +17552,7 @@ "type": "Identifier", "span": { "start": 36737, - "end": 36753, + "end": 36744, "ctxt": 0 }, "value": "message", @@ -17617,7 +17617,7 @@ "type": "Identifier", "span": { "start": 36773, - "end": 36789, + "end": 36780, "ctxt": 0 }, "value": "message", @@ -17833,7 +17833,7 @@ "type": "Identifier", "span": { "start": 36916, - "end": 36932, + "end": 36923, "ctxt": 0 }, "value": "message", @@ -17898,7 +17898,7 @@ "type": "Identifier", "span": { "start": 36956, - "end": 36972, + "end": 36963, "ctxt": 0 }, "value": "message", @@ -18114,7 +18114,7 @@ "type": "Identifier", "span": { "start": 37101, - "end": 37117, + "end": 37108, "ctxt": 0 }, "value": "message", @@ -18179,7 +18179,7 @@ "type": "Identifier", "span": { "start": 37138, - "end": 37154, + "end": 37145, "ctxt": 0 }, "value": "message", @@ -18395,7 +18395,7 @@ "type": "Identifier", "span": { "start": 37273, - "end": 37289, + "end": 37280, "ctxt": 0 }, "value": "message", @@ -18460,7 +18460,7 @@ "type": "Identifier", "span": { "start": 37308, - "end": 37324, + "end": 37315, "ctxt": 0 }, "value": "message", @@ -18676,7 +18676,7 @@ "type": "Identifier", "span": { "start": 37437, - "end": 37453, + "end": 37444, "ctxt": 0 }, "value": "message", @@ -18741,7 +18741,7 @@ "type": "Identifier", "span": { "start": 37471, - "end": 37487, + "end": 37478, "ctxt": 0 }, "value": "message", @@ -18907,7 +18907,7 @@ "type": "Identifier", "span": { "start": 37918, - "end": 37930, + "end": 37922, "ctxt": 0 }, "value": "text", @@ -18934,7 +18934,7 @@ "type": "Identifier", "span": { "start": 37932, - "end": 37971, + "end": 37939, "ctxt": 0 }, "value": "reviver", @@ -18958,7 +18958,7 @@ "type": "Identifier", "span": { "start": 37943, - "end": 37951, + "end": 37946, "ctxt": 0 }, "value": "key", @@ -18985,7 +18985,7 @@ "type": "Identifier", "span": { "start": 37953, - "end": 37963, + "end": 37958, "ctxt": 0 }, "value": "value", @@ -19075,7 +19075,7 @@ "type": "Identifier", "span": { "start": 38179, - "end": 38189, + "end": 38184, "ctxt": 0 }, "value": "value", @@ -19143,7 +19143,7 @@ "type": "Identifier", "span": { "start": 38464, - "end": 38474, + "end": 38469, "ctxt": 0 }, "value": "value", @@ -19170,7 +19170,7 @@ "type": "Identifier", "span": { "start": 38476, - "end": 38518, + "end": 38484, "ctxt": 0 }, "value": "replacer", @@ -19194,7 +19194,7 @@ "type": "Identifier", "span": { "start": 38487, - "end": 38498, + "end": 38490, "ctxt": 0 }, "value": "key", @@ -19221,7 +19221,7 @@ "type": "Identifier", "span": { "start": 38500, - "end": 38510, + "end": 38505, "ctxt": 0 }, "value": "value", @@ -19311,7 +19311,7 @@ "type": "Identifier", "span": { "start": 38788, - "end": 38798, + "end": 38793, "ctxt": 0 }, "value": "value", @@ -19338,7 +19338,7 @@ "type": "Identifier", "span": { "start": 38800, - "end": 38815, + "end": 38808, "ctxt": 0 }, "value": "replacer", @@ -19414,7 +19414,7 @@ "type": "Identifier", "span": { "start": 39225, - "end": 39235, + "end": 39230, "ctxt": 0 }, "value": "value", @@ -19441,7 +19441,7 @@ "type": "Identifier", "span": { "start": 39237, - "end": 39279, + "end": 39245, "ctxt": 0 }, "value": "replacer", @@ -19465,7 +19465,7 @@ "type": "Identifier", "span": { "start": 39248, - "end": 39259, + "end": 39251, "ctxt": 0 }, "value": "key", @@ -19492,7 +19492,7 @@ "type": "Identifier", "span": { "start": 39261, - "end": 39271, + "end": 39266, "ctxt": 0 }, "value": "value", @@ -19541,7 +19541,7 @@ "type": "Identifier", "span": { "start": 39281, - "end": 39291, + "end": 39286, "ctxt": 0 }, "value": "space", @@ -19609,7 +19609,7 @@ "type": "Identifier", "span": { "start": 39696, - "end": 39706, + "end": 39701, "ctxt": 0 }, "value": "value", @@ -19636,7 +19636,7 @@ "type": "Identifier", "span": { "start": 39708, - "end": 39723, + "end": 39716, "ctxt": 0 }, "value": "replacer", @@ -19671,7 +19671,7 @@ "type": "Identifier", "span": { "start": 39725, - "end": 39735, + "end": 39730, "ctxt": 0 }, "value": "space", @@ -20235,7 +20235,7 @@ "type": "Identifier", "span": { "start": 40788, - "end": 40806, + "end": 40797, "ctxt": 0 }, "value": "separator", @@ -20561,7 +20561,7 @@ "type": "Identifier", "span": { "start": 41477, - "end": 41491, + "end": 41482, "ctxt": 0 }, "value": "start", @@ -20588,7 +20588,7 @@ "type": "Identifier", "span": { "start": 41493, - "end": 41505, + "end": 41496, "ctxt": 0 }, "value": "end", @@ -20674,7 +20674,7 @@ "type": "Identifier", "span": { "start": 41732, - "end": 41766, + "end": 41741, "ctxt": 0 }, "value": "compareFn", @@ -20698,7 +20698,7 @@ "type": "Identifier", "span": { "start": 41745, - "end": 41749, + "end": 41746, "ctxt": 0 }, "value": "a", @@ -20735,7 +20735,7 @@ "type": "Identifier", "span": { "start": 41751, - "end": 41755, + "end": 41752, "ctxt": 0 }, "value": "b", @@ -20853,7 +20853,7 @@ "type": "Identifier", "span": { "start": 42027, - "end": 42040, + "end": 42032, "ctxt": 0 }, "value": "start", @@ -20939,7 +20939,7 @@ "type": "Identifier", "span": { "start": 42451, - "end": 42464, + "end": 42456, "ctxt": 0 }, "value": "start", @@ -20966,7 +20966,7 @@ "type": "Identifier", "span": { "start": 42466, - "end": 42485, + "end": 42477, "ctxt": 0 }, "value": "deleteCount", @@ -21211,7 +21211,7 @@ "type": "Identifier", "span": { "start": 42978, - "end": 42994, + "end": 42991, "ctxt": 0 }, "value": "searchElement", @@ -21248,7 +21248,7 @@ "type": "Identifier", "span": { "start": 42996, - "end": 43014, + "end": 43005, "ctxt": 0 }, "value": "fromIndex", @@ -21316,7 +21316,7 @@ "type": "Identifier", "span": { "start": 43351, - "end": 43367, + "end": 43364, "ctxt": 0 }, "value": "searchElement", @@ -21353,7 +21353,7 @@ "type": "Identifier", "span": { "start": 43369, - "end": 43387, + "end": 43378, "ctxt": 0 }, "value": "fromIndex", @@ -21421,7 +21421,7 @@ "type": "Identifier", "span": { "start": 43880, - "end": 43940, + "end": 43890, "ctxt": 0 }, "value": "callbackfn", @@ -21445,7 +21445,7 @@ "type": "Identifier", "span": { "start": 43893, - "end": 43901, + "end": 43898, "ctxt": 0 }, "value": "value", @@ -21482,7 +21482,7 @@ "type": "Identifier", "span": { "start": 43903, - "end": 43916, + "end": 43908, "ctxt": 0 }, "value": "index", @@ -21509,7 +21509,7 @@ "type": "Identifier", "span": { "start": 43918, - "end": 43928, + "end": 43923, "ctxt": 0 }, "value": "array", @@ -21576,7 +21576,7 @@ "type": "Identifier", "span": { "start": 43942, - "end": 43955, + "end": 43949, "ctxt": 0 }, "value": "thisArg", @@ -21644,7 +21644,7 @@ "type": "Identifier", "span": { "start": 44464, - "end": 44524, + "end": 44474, "ctxt": 0 }, "value": "callbackfn", @@ -21668,7 +21668,7 @@ "type": "Identifier", "span": { "start": 44477, - "end": 44485, + "end": 44482, "ctxt": 0 }, "value": "value", @@ -21705,7 +21705,7 @@ "type": "Identifier", "span": { "start": 44487, - "end": 44500, + "end": 44492, "ctxt": 0 }, "value": "index", @@ -21732,7 +21732,7 @@ "type": "Identifier", "span": { "start": 44502, - "end": 44512, + "end": 44507, "ctxt": 0 }, "value": "array", @@ -21799,7 +21799,7 @@ "type": "Identifier", "span": { "start": 44526, - "end": 44539, + "end": 44533, "ctxt": 0 }, "value": "thisArg", @@ -21867,7 +21867,7 @@ "type": "Identifier", "span": { "start": 44960, - "end": 45017, + "end": 44970, "ctxt": 0 }, "value": "callbackfn", @@ -21891,7 +21891,7 @@ "type": "Identifier", "span": { "start": 44973, - "end": 44981, + "end": 44978, "ctxt": 0 }, "value": "value", @@ -21928,7 +21928,7 @@ "type": "Identifier", "span": { "start": 44983, - "end": 44996, + "end": 44988, "ctxt": 0 }, "value": "index", @@ -21955,7 +21955,7 @@ "type": "Identifier", "span": { "start": 44998, - "end": 45008, + "end": 45003, "ctxt": 0 }, "value": "array", @@ -22022,7 +22022,7 @@ "type": "Identifier", "span": { "start": 45019, - "end": 45032, + "end": 45026, "ctxt": 0 }, "value": "thisArg", @@ -22090,7 +22090,7 @@ "type": "Identifier", "span": { "start": 45505, - "end": 45559, + "end": 45515, "ctxt": 0 }, "value": "callbackfn", @@ -22114,7 +22114,7 @@ "type": "Identifier", "span": { "start": 45518, - "end": 45526, + "end": 45523, "ctxt": 0 }, "value": "value", @@ -22151,7 +22151,7 @@ "type": "Identifier", "span": { "start": 45528, - "end": 45541, + "end": 45533, "ctxt": 0 }, "value": "index", @@ -22178,7 +22178,7 @@ "type": "Identifier", "span": { "start": 45543, - "end": 45553, + "end": 45548, "ctxt": 0 }, "value": "array", @@ -22255,7 +22255,7 @@ "type": "Identifier", "span": { "start": 45561, - "end": 45574, + "end": 45568, "ctxt": 0 }, "value": "thisArg", @@ -22373,7 +22373,7 @@ "type": "Identifier", "span": { "start": 46030, - "end": 46090, + "end": 46040, "ctxt": 0 }, "value": "callbackfn", @@ -22397,7 +22397,7 @@ "type": "Identifier", "span": { "start": 46043, - "end": 46051, + "end": 46048, "ctxt": 0 }, "value": "value", @@ -22434,7 +22434,7 @@ "type": "Identifier", "span": { "start": 46053, - "end": 46066, + "end": 46058, "ctxt": 0 }, "value": "index", @@ -22461,7 +22461,7 @@ "type": "Identifier", "span": { "start": 46068, - "end": 46078, + "end": 46073, "ctxt": 0 }, "value": "array", @@ -22528,7 +22528,7 @@ "type": "Identifier", "span": { "start": 46092, - "end": 46105, + "end": 46099, "ctxt": 0 }, "value": "thisArg", @@ -22614,7 +22614,7 @@ "type": "Identifier", "span": { "start": 46746, - "end": 46832, + "end": 46756, "ctxt": 0 }, "value": "callbackfn", @@ -22638,7 +22638,7 @@ "type": "Identifier", "span": { "start": 46759, - "end": 46775, + "end": 46772, "ctxt": 0 }, "value": "previousValue", @@ -22675,7 +22675,7 @@ "type": "Identifier", "span": { "start": 46777, - "end": 46792, + "end": 46789, "ctxt": 0 }, "value": "currentValue", @@ -22712,7 +22712,7 @@ "type": "Identifier", "span": { "start": 46794, - "end": 46814, + "end": 46806, "ctxt": 0 }, "value": "currentIndex", @@ -22739,7 +22739,7 @@ "type": "Identifier", "span": { "start": 46816, - "end": 46826, + "end": 46821, "ctxt": 0 }, "value": "array", @@ -22816,7 +22816,7 @@ "type": "Identifier", "span": { "start": 46834, - "end": 46850, + "end": 46846, "ctxt": 0 }, "value": "initialValue", @@ -22904,7 +22904,7 @@ "type": "Identifier", "span": { "start": 47491, - "end": 47577, + "end": 47501, "ctxt": 0 }, "value": "callbackfn", @@ -22928,7 +22928,7 @@ "type": "Identifier", "span": { "start": 47504, - "end": 47520, + "end": 47517, "ctxt": 0 }, "value": "previousValue", @@ -22965,7 +22965,7 @@ "type": "Identifier", "span": { "start": 47522, - "end": 47537, + "end": 47534, "ctxt": 0 }, "value": "currentValue", @@ -23002,7 +23002,7 @@ "type": "Identifier", "span": { "start": 47539, - "end": 47559, + "end": 47551, "ctxt": 0 }, "value": "currentIndex", @@ -23029,7 +23029,7 @@ "type": "Identifier", "span": { "start": 47561, - "end": 47571, + "end": 47566, "ctxt": 0 }, "value": "array", @@ -23106,7 +23106,7 @@ "type": "Identifier", "span": { "start": 47579, - "end": 47594, + "end": 47591, "ctxt": 0 }, "value": "initialValue", @@ -23226,7 +23226,7 @@ "type": "Identifier", "span": { "start": 48266, - "end": 48352, + "end": 48276, "ctxt": 0 }, "value": "callbackfn", @@ -23250,7 +23250,7 @@ "type": "Identifier", "span": { "start": 48279, - "end": 48295, + "end": 48292, "ctxt": 0 }, "value": "previousValue", @@ -23287,7 +23287,7 @@ "type": "Identifier", "span": { "start": 48297, - "end": 48312, + "end": 48309, "ctxt": 0 }, "value": "currentValue", @@ -23324,7 +23324,7 @@ "type": "Identifier", "span": { "start": 48314, - "end": 48334, + "end": 48326, "ctxt": 0 }, "value": "currentIndex", @@ -23351,7 +23351,7 @@ "type": "Identifier", "span": { "start": 48336, - "end": 48346, + "end": 48341, "ctxt": 0 }, "value": "array", @@ -23428,7 +23428,7 @@ "type": "Identifier", "span": { "start": 48354, - "end": 48370, + "end": 48366, "ctxt": 0 }, "value": "initialValue", @@ -23516,7 +23516,7 @@ "type": "Identifier", "span": { "start": 49044, - "end": 49130, + "end": 49054, "ctxt": 0 }, "value": "callbackfn", @@ -23540,7 +23540,7 @@ "type": "Identifier", "span": { "start": 49057, - "end": 49073, + "end": 49070, "ctxt": 0 }, "value": "previousValue", @@ -23577,7 +23577,7 @@ "type": "Identifier", "span": { "start": 49075, - "end": 49090, + "end": 49087, "ctxt": 0 }, "value": "currentValue", @@ -23614,7 +23614,7 @@ "type": "Identifier", "span": { "start": 49092, - "end": 49112, + "end": 49104, "ctxt": 0 }, "value": "currentIndex", @@ -23641,7 +23641,7 @@ "type": "Identifier", "span": { "start": 49114, - "end": 49124, + "end": 49119, "ctxt": 0 }, "value": "array", @@ -23718,7 +23718,7 @@ "type": "Identifier", "span": { "start": 49132, - "end": 49147, + "end": 49144, "ctxt": 0 }, "value": "initialValue", @@ -23976,7 +23976,7 @@ "type": "Identifier", "span": { "start": 49364, - "end": 49384, + "end": 49375, "ctxt": 0 }, "value": "arrayLength", @@ -24039,7 +24039,7 @@ "type": "Identifier", "span": { "start": 49406, - "end": 49425, + "end": 49417, "ctxt": 0 }, "value": "arrayLength", @@ -24281,7 +24281,7 @@ "type": "Identifier", "span": { "start": 49471, - "end": 49491, + "end": 49482, "ctxt": 0 }, "value": "arrayLength", @@ -24344,7 +24344,7 @@ "type": "Identifier", "span": { "start": 49509, - "end": 49528, + "end": 49520, "ctxt": 0 }, "value": "arrayLength", @@ -24599,7 +24599,7 @@ "type": "Identifier", "span": { "start": 49577, - "end": 49585, + "end": 49580, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndAmbientWithSameNameAndCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndAmbientWithSameNameAndCommonRoot.json index ed5d616fc755..f71e9b8a441f 100644 --- a/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndAmbientWithSameNameAndCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndAmbientWithSameNameAndCommonRoot.json @@ -298,7 +298,7 @@ "type": "Identifier", "span": { "start": 255, - "end": 264, + "end": 256, "ctxt": 0 }, "value": "x", @@ -334,7 +334,7 @@ "type": "Identifier", "span": { "start": 266, - "end": 275, + "end": 267, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.json index b1f6ac9346e4..aacfff42442f 100644 --- a/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.json @@ -301,7 +301,7 @@ "type": "Identifier", "span": { "start": 257, - "end": 266, + "end": 258, "ctxt": 0 }, "value": "x", @@ -340,7 +340,7 @@ "type": "Identifier", "span": { "start": 275, - "end": 284, + "end": 276, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.json index c66038de00ec..9ddfbb73bf59 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.json @@ -218,7 +218,7 @@ "type": "Identifier", "span": { "start": 117, - "end": 121, + "end": 118, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.json index 1a41321dd551..e846efc43498 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.json @@ -157,7 +157,7 @@ "type": "Identifier", "span": { "start": 68, - "end": 73, + "end": 70, "ctxt": 0 }, "value": "id", @@ -350,7 +350,7 @@ "type": "Identifier", "span": { "start": 169, - "end": 173, + "end": 170, "ctxt": 0 }, "value": "x", @@ -396,7 +396,7 @@ "type": "Identifier", "span": { "start": 175, - "end": 179, + "end": 176, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.json index 0ae1520bca5b..f5c72ed557cc 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.json @@ -157,7 +157,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 75, + "end": 67, "ctxt": 0 }, "value": "id", @@ -308,7 +308,7 @@ "type": "Identifier", "span": { "start": 171, - "end": 175, + "end": 172, "ctxt": 0 }, "value": "x", @@ -354,7 +354,7 @@ "type": "Identifier", "span": { "start": 177, - "end": 181, + "end": 178, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.json index 5e84a08e1865..3deb849de9d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.json @@ -157,7 +157,7 @@ "type": "Identifier", "span": { "start": 74, - "end": 84, + "end": 76, "ctxt": 0 }, "value": "id", @@ -327,7 +327,7 @@ "type": "Identifier", "span": { "start": 191, - "end": 195, + "end": 192, "ctxt": 0 }, "value": "x", @@ -373,7 +373,7 @@ "type": "Identifier", "span": { "start": 197, - "end": 201, + "end": 198, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.json index c7284509951d..d7a7b7022930 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 38, - "end": 47, + "end": 39, "ctxt": 0 }, "value": "x", @@ -98,7 +98,7 @@ "type": "Identifier", "span": { "start": 56, - "end": 65, + "end": 57, "ctxt": 0 }, "value": "y", @@ -455,7 +455,7 @@ "type": "Identifier", "span": { "start": 331, - "end": 340, + "end": 332, "ctxt": 0 }, "value": "x", @@ -494,7 +494,7 @@ "type": "Identifier", "span": { "start": 349, - "end": 358, + "end": 350, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.json index a89daf32b005..06752ea1fd6f 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 38, - "end": 47, + "end": 39, "ctxt": 0 }, "value": "x", @@ -98,7 +98,7 @@ "type": "Identifier", "span": { "start": 56, - "end": 65, + "end": 57, "ctxt": 0 }, "value": "y", @@ -449,7 +449,7 @@ "type": "Identifier", "span": { "start": 283, - "end": 292, + "end": 284, "ctxt": 0 }, "value": "x", @@ -488,7 +488,7 @@ "type": "Identifier", "span": { "start": 301, - "end": 310, + "end": 302, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.json index 866882aa5e9f..d812d3e7c95d 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 38, - "end": 47, + "end": 39, "ctxt": 0 }, "value": "x", @@ -98,7 +98,7 @@ "type": "Identifier", "span": { "start": 56, - "end": 65, + "end": 57, "ctxt": 0 }, "value": "y", @@ -419,7 +419,7 @@ "type": "Identifier", "span": { "start": 266, - "end": 275, + "end": 267, "ctxt": 0 }, "value": "x", @@ -458,7 +458,7 @@ "type": "Identifier", "span": { "start": 284, - "end": 293, + "end": 285, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.json index d0573e4d0361..d15d233fb7d1 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 38, - "end": 47, + "end": 39, "ctxt": 0 }, "value": "x", @@ -98,7 +98,7 @@ "type": "Identifier", "span": { "start": 56, - "end": 65, + "end": 57, "ctxt": 0 }, "value": "y", @@ -411,7 +411,7 @@ "type": "Identifier", "span": { "start": 257, - "end": 266, + "end": 258, "ctxt": 0 }, "value": "x", @@ -450,7 +450,7 @@ "type": "Identifier", "span": { "start": 275, - "end": 284, + "end": 276, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleWithSameNameAndCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleWithSameNameAndCommonRoot.json index c77a5a7f65a3..2911e3a205c8 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleWithSameNameAndCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleWithSameNameAndCommonRoot.json @@ -109,7 +109,7 @@ "type": "Identifier", "span": { "start": 82, - "end": 91, + "end": 83, "ctxt": 0 }, "value": "x", @@ -145,7 +145,7 @@ "type": "Identifier", "span": { "start": 93, - "end": 102, + "end": 94, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleWithSameNameAndCommonRootES6.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleWithSameNameAndCommonRootES6.json index 05782ea19ff5..64cf68f10cfe 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleWithSameNameAndCommonRootES6.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleWithSameNameAndCommonRootES6.json @@ -109,7 +109,7 @@ "type": "Identifier", "span": { "start": 98, - "end": 107, + "end": 99, "ctxt": 0 }, "value": "x", @@ -145,7 +145,7 @@ "type": "Identifier", "span": { "start": 109, - "end": 118, + "end": 110, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/EnumAndModuleWithSameNameAndCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/EnumAndModuleWithSameNameAndCommonRoot.json index d875c556153f..9193810d1db8 100644 --- a/crates/swc_ecma_parser/tests/tsc/EnumAndModuleWithSameNameAndCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/EnumAndModuleWithSameNameAndCommonRoot.json @@ -153,7 +153,7 @@ "type": "Identifier", "span": { "start": 105, - "end": 114, + "end": 106, "ctxt": 0 }, "value": "x", @@ -192,7 +192,7 @@ "type": "Identifier", "span": { "start": 123, - "end": 132, + "end": 124, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportClassWhichExtendsInterfaceWithInaccessibleType.json b/crates/swc_ecma_parser/tests/tsc/ExportClassWhichExtendsInterfaceWithInaccessibleType.json index ba782c39af8a..ce2937d7003f 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportClassWhichExtendsInterfaceWithInaccessibleType.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportClassWhichExtendsInterfaceWithInaccessibleType.json @@ -168,7 +168,7 @@ "type": "Identifier", "span": { "start": 93, - "end": 101, + "end": 94, "ctxt": 0 }, "value": "p", @@ -284,7 +284,7 @@ "type": "Identifier", "span": { "start": 190, - "end": 199, + "end": 191, "ctxt": 0 }, "value": "x", @@ -323,7 +323,7 @@ "type": "Identifier", "span": { "start": 208, - "end": 217, + "end": 209, "ctxt": 0 }, "value": "y", @@ -391,7 +391,7 @@ "type": "Identifier", "span": { "start": 243, - "end": 251, + "end": 244, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.json b/crates/swc_ecma_parser/tests/tsc/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.json index 1b1531a6713f..223c34dde610 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.json @@ -574,7 +574,7 @@ "type": "Identifier", "span": { "start": 328, - "end": 341, + "end": 333, "ctxt": 0 }, "value": "start", @@ -623,7 +623,7 @@ "type": "Identifier", "span": { "start": 350, - "end": 361, + "end": 353, "ctxt": 0 }, "value": "end", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportClassWithInaccessibleTypeInTypeParameterConstraint.json b/crates/swc_ecma_parser/tests/tsc/ExportClassWithInaccessibleTypeInTypeParameterConstraint.json index b4e3d28814ac..84353a99b0b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportClassWithInaccessibleTypeInTypeParameterConstraint.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportClassWithInaccessibleTypeInTypeParameterConstraint.json @@ -566,7 +566,7 @@ "type": "Identifier", "span": { "start": 321, - "end": 334, + "end": 326, "ctxt": 0 }, "value": "start", @@ -615,7 +615,7 @@ "type": "Identifier", "span": { "start": 343, - "end": 354, + "end": 346, "ctxt": 0 }, "value": "end", @@ -693,7 +693,7 @@ "type": "Identifier", "span": { "start": 389, - "end": 397, + "end": 390, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.json b/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.json index 4c4334f83773..28c078e07134 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.json @@ -218,7 +218,7 @@ "type": "Identifier", "span": { "start": 134, - "end": 146, + "end": 139, "ctxt": 0 }, "value": "start", @@ -267,7 +267,7 @@ "type": "Identifier", "span": { "start": 155, - "end": 165, + "end": 158, "ctxt": 0 }, "value": "end", @@ -355,7 +355,7 @@ "type": "Identifier", "span": { "start": 209, - "end": 217, + "end": 210, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.json b/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.json index 425d611e1fdd..ebd6259b72ae 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.json @@ -210,7 +210,7 @@ "type": "Identifier", "span": { "start": 127, - "end": 139, + "end": 132, "ctxt": 0 }, "value": "start", @@ -259,7 +259,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 158, + "end": 151, "ctxt": 0 }, "value": "end", @@ -347,7 +347,7 @@ "type": "Identifier", "span": { "start": 202, - "end": 210, + "end": 203, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.json b/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.json index e0207e48c81c..3274174758d2 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.json @@ -211,7 +211,7 @@ "type": "Identifier", "span": { "start": 127, - "end": 139, + "end": 132, "ctxt": 0 }, "value": "start", @@ -260,7 +260,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 158, + "end": 151, "ctxt": 0 }, "value": "end", @@ -347,7 +347,7 @@ "type": "Identifier", "span": { "start": 202, - "end": 210, + "end": 203, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.json b/crates/swc_ecma_parser/tests/tsc/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.json index 3486ceb036ae..5e0ec05532e4 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.json @@ -618,7 +618,7 @@ "type": "Identifier", "span": { "start": 326, - "end": 339, + "end": 331, "ctxt": 0 }, "value": "start", @@ -655,7 +655,7 @@ "type": "Identifier", "span": { "start": 341, - "end": 352, + "end": 344, "ctxt": 0 }, "value": "end", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.json b/crates/swc_ecma_parser/tests/tsc/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.json index 54ae8c933b39..a72ff59529da 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.json @@ -610,7 +610,7 @@ "type": "Identifier", "span": { "start": 319, - "end": 332, + "end": 324, "ctxt": 0 }, "value": "start", @@ -647,7 +647,7 @@ "type": "Identifier", "span": { "start": 334, - "end": 345, + "end": 337, "ctxt": 0 }, "value": "end", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportModuleWithAccessibleTypesOnItsExportedMembers.json b/crates/swc_ecma_parser/tests/tsc/ExportModuleWithAccessibleTypesOnItsExportedMembers.json index 55149052abdf..ebe467a9dbdb 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportModuleWithAccessibleTypesOnItsExportedMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportModuleWithAccessibleTypesOnItsExportedMembers.json @@ -93,7 +93,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 74, + "end": 66, "ctxt": 0 }, "value": "x", @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 83, - "end": 92, + "end": 84, "ctxt": 0 }, "value": "y", @@ -381,7 +381,7 @@ "type": "Identifier", "span": { "start": 232, - "end": 244, + "end": 237, "ctxt": 0 }, "value": "start", @@ -427,7 +427,7 @@ "type": "Identifier", "span": { "start": 246, - "end": 256, + "end": 249, "ctxt": 0 }, "value": "end", @@ -505,7 +505,7 @@ "type": "Identifier", "span": { "start": 306, - "end": 314, + "end": 307, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.json b/crates/swc_ecma_parser/tests/tsc/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.json index 59a13e5b4cf5..991691c15e3a 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.json @@ -86,7 +86,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 67, + "end": 59, "ctxt": 0 }, "value": "x", @@ -125,7 +125,7 @@ "type": "Identifier", "span": { "start": 76, - "end": 85, + "end": 77, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.json b/crates/swc_ecma_parser/tests/tsc/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.json index d628cc201e17..ca74877aacd3 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.json @@ -86,7 +86,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 67, + "end": 59, "ctxt": 0 }, "value": "x", @@ -125,7 +125,7 @@ "type": "Identifier", "span": { "start": 76, - "end": 85, + "end": 77, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/ModuleAndClassWithSameNameAndCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/ModuleAndClassWithSameNameAndCommonRoot.json index ceff91007ab2..078fe752205f 100644 --- a/crates/swc_ecma_parser/tests/tsc/ModuleAndClassWithSameNameAndCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/ModuleAndClassWithSameNameAndCommonRoot.json @@ -284,7 +284,7 @@ "type": "Identifier", "span": { "start": 232, - "end": 241, + "end": 233, "ctxt": 0 }, "value": "x", @@ -320,7 +320,7 @@ "type": "Identifier", "span": { "start": 243, - "end": 252, + "end": 244, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/ModuleAndEnumWithSameNameAndCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/ModuleAndEnumWithSameNameAndCommonRoot.json index abc9275de8d4..2f3ee85659bd 100644 --- a/crates/swc_ecma_parser/tests/tsc/ModuleAndEnumWithSameNameAndCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/ModuleAndEnumWithSameNameAndCommonRoot.json @@ -93,7 +93,7 @@ "type": "Identifier", "span": { "start": 72, - "end": 81, + "end": 73, "ctxt": 0 }, "value": "x", @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 90, - "end": 99, + "end": 91, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedFunctions.json b/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedFunctions.json index 2e72b261d277..76331e2436e8 100644 --- a/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedFunctions.json @@ -66,7 +66,7 @@ "type": "Identifier", "span": { "start": 36, - "end": 45, + "end": 37, "ctxt": 0 }, "value": "s", @@ -163,7 +163,7 @@ "type": "Identifier", "span": { "start": 107, - "end": 111, + "end": 108, "ctxt": 0 }, "value": "s", @@ -343,7 +343,7 @@ "type": "Identifier", "span": { "start": 163, - "end": 172, + "end": 164, "ctxt": 0 }, "value": "s", @@ -432,7 +432,7 @@ "type": "Identifier", "span": { "start": 229, - "end": 233, + "end": 230, "ctxt": 0 }, "value": "s", @@ -633,7 +633,7 @@ "type": "Identifier", "span": { "start": 342, - "end": 351, + "end": 343, "ctxt": 0 }, "value": "s", @@ -788,7 +788,7 @@ "type": "Identifier", "span": { "start": 397, - "end": 401, + "end": 398, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedImportAlias.json b/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedImportAlias.json index 2abfc15f2501..00970c6b82d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedImportAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedImportAlias.json @@ -336,7 +336,7 @@ "type": "Identifier", "span": { "start": 214, - "end": 228, + "end": 219, "ctxt": 0 }, "value": "start", @@ -398,7 +398,7 @@ "type": "Identifier", "span": { "start": 237, - "end": 249, + "end": 240, "ctxt": 0 }, "value": "end", diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.json index 0c2814296bf4..a2a35c6a3720 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.json @@ -239,7 +239,7 @@ "type": "Identifier", "span": { "start": 136, - "end": 146, + "end": 137, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.json index 2bd7e48565ae..8ac1c1fa8a74 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.json @@ -697,7 +697,7 @@ "type": "Identifier", "span": { "start": 340, - "end": 354, + "end": 345, "ctxt": 0 }, "value": "start", @@ -747,7 +747,7 @@ "type": "Identifier", "span": { "start": 356, - "end": 368, + "end": 359, "ctxt": 0 }, "value": "end", @@ -1106,7 +1106,7 @@ "type": "Identifier", "span": { "start": 556, - "end": 566, + "end": 557, "ctxt": 0 }, "value": "s", @@ -1156,7 +1156,7 @@ "type": "Identifier", "span": { "start": 568, - "end": 578, + "end": 569, "ctxt": 0 }, "value": "e", diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.json index a877fde545ce..551db6792ba2 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.json @@ -221,7 +221,7 @@ "type": "Identifier", "span": { "start": 182, - "end": 186, + "end": 183, "ctxt": 0 }, "value": "p", @@ -736,7 +736,7 @@ "type": "Identifier", "span": { "start": 493, - "end": 502, + "end": 495, "ctxt": 0 }, "value": "tl", @@ -785,7 +785,7 @@ "type": "Identifier", "span": { "start": 511, - "end": 520, + "end": 513, "ctxt": 0 }, "value": "br", diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.json index f31de075f46d..6f78a0ef3353 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.json @@ -768,7 +768,7 @@ "type": "Identifier", "span": { "start": 369, - "end": 383, + "end": 374, "ctxt": 0 }, "value": "start", @@ -818,7 +818,7 @@ "type": "Identifier", "span": { "start": 385, - "end": 397, + "end": 388, "ctxt": 0 }, "value": "end", @@ -1313,7 +1313,7 @@ "type": "Identifier", "span": { "start": 622, - "end": 632, + "end": 623, "ctxt": 0 }, "value": "s", @@ -1363,7 +1363,7 @@ "type": "Identifier", "span": { "start": 634, - "end": 644, + "end": 635, "ctxt": 0 }, "value": "e", diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.json index 7d4f51353935..3b8c26579c86 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.json @@ -228,7 +228,7 @@ "type": "Identifier", "span": { "start": 189, - "end": 193, + "end": 190, "ctxt": 0 }, "value": "p", @@ -815,7 +815,7 @@ "type": "Identifier", "span": { "start": 543, - "end": 552, + "end": 545, "ctxt": 0 }, "value": "tl", @@ -864,7 +864,7 @@ "type": "Identifier", "span": { "start": 561, - "end": 570, + "end": 563, "ctxt": 0 }, "value": "br", diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.json index 318f03e7e211..ed0112bbbe2c 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.json @@ -255,7 +255,7 @@ "type": "Identifier", "span": { "start": 231, - "end": 235, + "end": 232, "ctxt": 0 }, "value": "p", @@ -776,7 +776,7 @@ "type": "Identifier", "span": { "start": 597, - "end": 613, + "end": 599, "ctxt": 0 }, "value": "tl", @@ -851,7 +851,7 @@ "type": "Identifier", "span": { "start": 622, - "end": 638, + "end": 624, "ctxt": 0 }, "value": "br", diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesWithTheSameNameAndSameCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesWithTheSameNameAndSameCommonRoot.json index 337be9288ccb..65031acf896e 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesWithTheSameNameAndSameCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesWithTheSameNameAndSameCommonRoot.json @@ -221,7 +221,7 @@ "type": "Identifier", "span": { "start": 182, - "end": 186, + "end": 183, "ctxt": 0 }, "value": "p", @@ -678,7 +678,7 @@ "type": "Identifier", "span": { "start": 415, - "end": 424, + "end": 417, "ctxt": 0 }, "value": "tl", @@ -727,7 +727,7 @@ "type": "Identifier", "span": { "start": 433, - "end": 442, + "end": 435, "ctxt": 0 }, "value": "br", diff --git a/crates/swc_ecma_parser/tests/tsc/TypeGuardWithArrayUnion.json b/crates/swc_ecma_parser/tests/tsc/TypeGuardWithArrayUnion.json index 521e95556027..cb15e8f06e30 100644 --- a/crates/swc_ecma_parser/tests/tsc/TypeGuardWithArrayUnion.json +++ b/crates/swc_ecma_parser/tests/tsc/TypeGuardWithArrayUnion.json @@ -104,7 +104,7 @@ "type": "Identifier", "span": { "start": 56, - "end": 84, + "end": 63, "ctxt": 0 }, "value": "message", diff --git a/crates/swc_ecma_parser/tests/tsc/TypeGuardWithEnumUnion.json b/crates/swc_ecma_parser/tests/tsc/TypeGuardWithEnumUnion.json index ef631864f082..08e9f389ac71 100644 --- a/crates/swc_ecma_parser/tests/tsc/TypeGuardWithEnumUnion.json +++ b/crates/swc_ecma_parser/tests/tsc/TypeGuardWithEnumUnion.json @@ -111,7 +111,7 @@ "type": "Identifier", "span": { "start": 37, - "end": 54, + "end": 38, "ctxt": 0 }, "value": "x", @@ -470,7 +470,7 @@ "type": "Identifier", "span": { "start": 212, - "end": 240, + "end": 213, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsAreNotContextuallyTyped.json b/crates/swc_ecma_parser/tests/tsc/accessorsAreNotContextuallyTyped.json index 3375c18a18d1..d10139d3b614 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsAreNotContextuallyTyped.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsAreNotContextuallyTyped.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 62, - "end": 86, + "end": 63, "ctxt": 0 }, "value": "v", @@ -81,7 +81,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 75, + "end": 67, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty4.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty4.json index 58c420f21356..262e9d1fdf73 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty4.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty4.json @@ -264,7 +264,7 @@ "type": "Identifier", "span": { "start": 207, - "end": 218, + "end": 210, "ctxt": 0 }, "value": "val", diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty8.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty8.json index a5bee4b291f3..18996596e403 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty8.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty8.json @@ -625,7 +625,7 @@ "type": "Identifier", "span": { "start": 386, - "end": 399, + "end": 396, "ctxt": 0 }, "value": "properties", @@ -671,7 +671,7 @@ "type": "Identifier", "span": { "start": 401, - "end": 418, + "end": 406, "ctxt": 0 }, "value": "klass", diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty9.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty9.json index 04d2633e58bc..a0eec77b49fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty9.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty9.json @@ -791,7 +791,7 @@ "type": "Identifier", "span": { "start": 660, - "end": 681, + "end": 669, "ctxt": 0 }, "value": "baseClass", diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithConstrainedTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithConstrainedTypeParameter.json index 01d12c98c4d8..f4ce05e28043 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithConstrainedTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithConstrainedTypeParameter.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 80, - "end": 89, + "end": 81, "ctxt": 0 }, "value": "n", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 91, - "end": 95, + "end": 92, "ctxt": 0 }, "value": "v", @@ -114,7 +114,7 @@ "type": "Identifier", "span": { "start": 97, - "end": 101, + "end": 98, "ctxt": 0 }, "value": "k", @@ -461,7 +461,7 @@ "type": "Identifier", "span": { "start": 235, - "end": 244, + "end": 236, "ctxt": 0 }, "value": "n", @@ -497,7 +497,7 @@ "type": "Identifier", "span": { "start": 246, - "end": 253, + "end": 248, "ctxt": 0 }, "value": "vs", @@ -551,7 +551,7 @@ "type": "Identifier", "span": { "start": 255, - "end": 259, + "end": 256, "ctxt": 0 }, "value": "k", diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithTypeParameter.json index 17013dd9b754..ede54f9ef930 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithTypeParameter.json @@ -92,7 +92,7 @@ "type": "Identifier", "span": { "start": 104, - "end": 108, + "end": 105, "ctxt": 0 }, "value": "t", @@ -138,7 +138,7 @@ "type": "Identifier", "span": { "start": 110, - "end": 114, + "end": 111, "ctxt": 0 }, "value": "u", diff --git a/crates/swc_ecma_parser/tests/tsc/ambientAccessors.json b/crates/swc_ecma_parser/tests/tsc/ambientAccessors.json index abc802307b4f..d4c70a3d15ca 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientAccessors.json @@ -111,7 +111,7 @@ "type": "Identifier", "span": { "start": 149, - "end": 162, + "end": 154, "ctxt": 0 }, "value": "value", @@ -240,7 +240,7 @@ "type": "Identifier", "span": { "start": 227, - "end": 238, + "end": 230, "ctxt": 0 }, "value": "foo", @@ -369,7 +369,7 @@ "type": "Identifier", "span": { "start": 273, - "end": 286, + "end": 278, "ctxt": 0 }, "value": "value", @@ -498,7 +498,7 @@ "type": "Identifier", "span": { "start": 337, - "end": 348, + "end": 340, "ctxt": 0 }, "value": "foo", diff --git a/crates/swc_ecma_parser/tests/tsc/ambientDeclarations.json b/crates/swc_ecma_parser/tests/tsc/ambientDeclarations.json index c06211668b33..f56983f376dd 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientDeclarations.json @@ -140,7 +140,7 @@ "type": "Identifier", "span": { "start": 259, - "end": 268, + "end": 260, "ctxt": 0 }, "value": "n", @@ -219,7 +219,7 @@ "type": "Identifier", "span": { "start": 342, - "end": 351, + "end": 343, "ctxt": 0 }, "value": "n", @@ -298,7 +298,7 @@ "type": "Identifier", "span": { "start": 383, - "end": 392, + "end": 384, "ctxt": 0 }, "value": "n", @@ -334,7 +334,7 @@ "type": "Identifier", "span": { "start": 394, - "end": 403, + "end": 395, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns.json b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns.json index 79cbcd0dfabf..be7986b9f211 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns.json @@ -66,7 +66,7 @@ "type": "Identifier", "span": { "start": 84, - "end": 93, + "end": 85, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/anyAssignabilityInInheritance.json b/crates/swc_ecma_parser/tests/tsc/anyAssignabilityInInheritance.json index a9a33fed901b..3428570064a5 100644 --- a/crates/swc_ecma_parser/tests/tsc/anyAssignabilityInInheritance.json +++ b/crates/swc_ecma_parser/tests/tsc/anyAssignabilityInInheritance.json @@ -209,7 +209,7 @@ "type": "Identifier", "span": { "start": 237, - "end": 246, + "end": 238, "ctxt": 0 }, "value": "x", @@ -288,7 +288,7 @@ "type": "Identifier", "span": { "start": 279, - "end": 285, + "end": 280, "ctxt": 0 }, "value": "x", @@ -433,7 +433,7 @@ "type": "Identifier", "span": { "start": 485, - "end": 494, + "end": 486, "ctxt": 0 }, "value": "x", @@ -512,7 +512,7 @@ "type": "Identifier", "span": { "start": 527, - "end": 533, + "end": 528, "ctxt": 0 }, "value": "x", @@ -657,7 +657,7 @@ "type": "Identifier", "span": { "start": 589, - "end": 599, + "end": 590, "ctxt": 0 }, "value": "x", @@ -736,7 +736,7 @@ "type": "Identifier", "span": { "start": 633, - "end": 639, + "end": 634, "ctxt": 0 }, "value": "x", @@ -881,7 +881,7 @@ "type": "Identifier", "span": { "start": 695, - "end": 702, + "end": 696, "ctxt": 0 }, "value": "x", @@ -980,7 +980,7 @@ "type": "Identifier", "span": { "start": 733, - "end": 739, + "end": 734, "ctxt": 0 }, "value": "x", @@ -1125,7 +1125,7 @@ "type": "Identifier", "span": { "start": 795, - "end": 804, + "end": 796, "ctxt": 0 }, "value": "x", @@ -1224,7 +1224,7 @@ "type": "Identifier", "span": { "start": 837, - "end": 843, + "end": 838, "ctxt": 0 }, "value": "x", @@ -1369,7 +1369,7 @@ "type": "Identifier", "span": { "start": 899, - "end": 917, + "end": 900, "ctxt": 0 }, "value": "x", @@ -1532,7 +1532,7 @@ "type": "Identifier", "span": { "start": 959, - "end": 965, + "end": 960, "ctxt": 0 }, "value": "x", @@ -1677,7 +1677,7 @@ "type": "Identifier", "span": { "start": 1021, - "end": 1032, + "end": 1022, "ctxt": 0 }, "value": "x", @@ -1772,7 +1772,7 @@ "type": "Identifier", "span": { "start": 1067, - "end": 1073, + "end": 1068, "ctxt": 0 }, "value": "x", @@ -1989,7 +1989,7 @@ "type": "Identifier", "span": { "start": 1158, - "end": 1163, + "end": 1159, "ctxt": 0 }, "value": "x", @@ -2088,7 +2088,7 @@ "type": "Identifier", "span": { "start": 1192, - "end": 1198, + "end": 1193, "ctxt": 0 }, "value": "x", @@ -2305,7 +2305,7 @@ "type": "Identifier", "span": { "start": 1280, - "end": 1284, + "end": 1281, "ctxt": 0 }, "value": "x", @@ -2404,7 +2404,7 @@ "type": "Identifier", "span": { "start": 1313, - "end": 1319, + "end": 1314, "ctxt": 0 }, "value": "x", @@ -2663,7 +2663,7 @@ "type": "Identifier", "span": { "start": 1400, - "end": 1413, + "end": 1401, "ctxt": 0 }, "value": "x", @@ -2798,7 +2798,7 @@ "type": "Identifier", "span": { "start": 1451, - "end": 1457, + "end": 1452, "ctxt": 0 }, "value": "x", @@ -2943,7 +2943,7 @@ "type": "Identifier", "span": { "start": 1514, - "end": 1530, + "end": 1515, "ctxt": 0 }, "value": "x", @@ -3082,7 +3082,7 @@ "type": "Identifier", "span": { "start": 1571, - "end": 1577, + "end": 1572, "ctxt": 0 }, "value": "x", @@ -3227,7 +3227,7 @@ "type": "Identifier", "span": { "start": 1634, - "end": 1651, + "end": 1635, "ctxt": 0 }, "value": "x", @@ -3251,7 +3251,7 @@ "type": "Identifier", "span": { "start": 1641, - "end": 1645, + "end": 1642, "ctxt": 0 }, "value": "x", @@ -3379,7 +3379,7 @@ "type": "Identifier", "span": { "start": 1658, - "end": 1662, + "end": 1659, "ctxt": 0 }, "value": "x", @@ -3502,7 +3502,7 @@ "type": "Identifier", "span": { "start": 1693, - "end": 1699, + "end": 1694, "ctxt": 0 }, "value": "x", @@ -3688,7 +3688,7 @@ "type": "Identifier", "span": { "start": 1769, - "end": 1773, + "end": 1770, "ctxt": 0 }, "value": "x", @@ -3787,7 +3787,7 @@ "type": "Identifier", "span": { "start": 1802, - "end": 1808, + "end": 1803, "ctxt": 0 }, "value": "x", @@ -4046,7 +4046,7 @@ "type": "Identifier", "span": { "start": 1919, - "end": 1930, + "end": 1920, "ctxt": 0 }, "value": "x", @@ -4145,7 +4145,7 @@ "type": "Identifier", "span": { "start": 1966, - "end": 1972, + "end": 1967, "ctxt": 0 }, "value": "x", @@ -4442,7 +4442,7 @@ "type": "Identifier", "span": { "start": 2092, - "end": 2097, + "end": 2093, "ctxt": 0 }, "value": "x", @@ -4541,7 +4541,7 @@ "type": "Identifier", "span": { "start": 2127, - "end": 2133, + "end": 2128, "ctxt": 0 }, "value": "x", @@ -4686,7 +4686,7 @@ "type": "Identifier", "span": { "start": 2190, - "end": 2199, + "end": 2191, "ctxt": 0 }, "value": "x", @@ -4785,7 +4785,7 @@ "type": "Identifier", "span": { "start": 2233, - "end": 2239, + "end": 2234, "ctxt": 0 }, "value": "x", @@ -4930,7 +4930,7 @@ "type": "Identifier", "span": { "start": 2296, - "end": 2301, + "end": 2297, "ctxt": 0 }, "value": "x", @@ -5009,7 +5009,7 @@ "type": "Identifier", "span": { "start": 2331, - "end": 2337, + "end": 2332, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/anyAssignableToEveryType.json b/crates/swc_ecma_parser/tests/tsc/anyAssignableToEveryType.json index 3206fe35df6f..7763e7d77175 100644 --- a/crates/swc_ecma_parser/tests/tsc/anyAssignableToEveryType.json +++ b/crates/swc_ecma_parser/tests/tsc/anyAssignableToEveryType.json @@ -1090,7 +1090,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 325, + "end": 317, "ctxt": 0 }, "value": "x", @@ -1474,7 +1474,7 @@ "type": "Identifier", "span": { "start": 426, - "end": 430, + "end": 427, "ctxt": 0 }, "value": "x", @@ -1747,7 +1747,7 @@ "type": "Identifier", "span": { "start": 530, - "end": 534, + "end": 531, "ctxt": 0 }, "value": "x", @@ -1793,7 +1793,7 @@ "type": "Identifier", "span": { "start": 536, - "end": 540, + "end": 537, "ctxt": 0 }, "value": "y", @@ -1839,7 +1839,7 @@ "type": "Identifier", "span": { "start": 542, - "end": 546, + "end": 543, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/anyAssignableToEveryType2.json b/crates/swc_ecma_parser/tests/tsc/anyAssignableToEveryType2.json index c1d44869c759..7465ee2eed8b 100644 --- a/crates/swc_ecma_parser/tests/tsc/anyAssignableToEveryType2.json +++ b/crates/swc_ecma_parser/tests/tsc/anyAssignableToEveryType2.json @@ -1954,7 +1954,7 @@ "type": "Identifier", "span": { "start": 913, - "end": 917, + "end": 914, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/argumentExpressionContextualTyping.json b/crates/swc_ecma_parser/tests/tsc/argumentExpressionContextualTyping.json index fc5342cd71b7..5ba198d90f51 100644 --- a/crates/swc_ecma_parser/tests/tsc/argumentExpressionContextualTyping.json +++ b/crates/swc_ecma_parser/tests/tsc/argumentExpressionContextualTyping.json @@ -458,7 +458,7 @@ "type": "Identifier", "span": { "start": 230, - "end": 258, + "end": 231, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/arithmeticOperatorWithTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/arithmeticOperatorWithTypeParameter.json index d2f6ffd9b7e5..e597383fdce9 100644 --- a/crates/swc_ecma_parser/tests/tsc/arithmeticOperatorWithTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/arithmeticOperatorWithTypeParameter.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 76, - "end": 80, + "end": 77, "ctxt": 0 }, "value": "t", diff --git a/crates/swc_ecma_parser/tests/tsc/arrayOfFunctionTypes3.json b/crates/swc_ecma_parser/tests/tsc/arrayOfFunctionTypes3.json index c3522eed30da..00446643547a 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrayOfFunctionTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/arrayOfFunctionTypes3.json @@ -448,7 +448,7 @@ "type": "Identifier", "span": { "start": 169, - "end": 178, + "end": 170, "ctxt": 0 }, "value": "x", @@ -503,7 +503,7 @@ "type": "Identifier", "span": { "start": 190, - "end": 199, + "end": 191, "ctxt": 0 }, "value": "x", @@ -608,7 +608,7 @@ "type": "Identifier", "span": { "start": 223, - "end": 232, + "end": 224, "ctxt": 0 }, "value": "x", @@ -663,7 +663,7 @@ "type": "Identifier", "span": { "start": 244, - "end": 253, + "end": 245, "ctxt": 0 }, "value": "x", @@ -768,7 +768,7 @@ "type": "Identifier", "span": { "start": 277, - "end": 286, + "end": 278, "ctxt": 0 }, "value": "x", @@ -823,7 +823,7 @@ "type": "Identifier", "span": { "start": 298, - "end": 304, + "end": 299, "ctxt": 0 }, "value": "x", @@ -1209,7 +1209,7 @@ "type": "Identifier", "span": { "start": 416, - "end": 420, + "end": 417, "ctxt": 0 }, "value": "x", @@ -1306,7 +1306,7 @@ "type": "Identifier", "span": { "start": 432, - "end": 441, + "end": 433, "ctxt": 0 }, "value": "x", @@ -1411,7 +1411,7 @@ "type": "Identifier", "span": { "start": 468, - "end": 472, + "end": 469, "ctxt": 0 }, "value": "x", @@ -1508,7 +1508,7 @@ "type": "Identifier", "span": { "start": 484, - "end": 493, + "end": 485, "ctxt": 0 }, "value": "x", @@ -1613,7 +1613,7 @@ "type": "Identifier", "span": { "start": 518, - "end": 527, + "end": 519, "ctxt": 0 }, "value": "x", @@ -1668,7 +1668,7 @@ "type": "Identifier", "span": { "start": 542, - "end": 546, + "end": 543, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/arraySpreadImportHelpers.json b/crates/swc_ecma_parser/tests/tsc/arraySpreadImportHelpers.json index 2acc7fccc812..a0c5ff94a9bc 100644 --- a/crates/swc_ecma_parser/tests/tsc/arraySpreadImportHelpers.json +++ b/crates/swc_ecma_parser/tests/tsc/arraySpreadImportHelpers.json @@ -225,7 +225,7 @@ "type": "Identifier", "span": { "start": 350, - "end": 359, + "end": 352, "ctxt": 0 }, "value": "to", @@ -269,7 +269,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 372, + "end": 365, "ctxt": 0 }, "value": "from", diff --git a/crates/swc_ecma_parser/tests/tsc/arraySpreadInCall.json b/crates/swc_ecma_parser/tests/tsc/arraySpreadInCall.json index 5e8638c13e4e..940c572167fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/arraySpreadInCall.json +++ b/crates/swc_ecma_parser/tests/tsc/arraySpreadInCall.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 56, - "end": 65, + "end": 57, "ctxt": 0 }, "value": "a", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 67, - "end": 76, + "end": 68, "ctxt": 0 }, "value": "b", @@ -104,7 +104,7 @@ "type": "Identifier", "span": { "start": 78, - "end": 87, + "end": 79, "ctxt": 0 }, "value": "c", @@ -140,7 +140,7 @@ "type": "Identifier", "span": { "start": 89, - "end": 98, + "end": 90, "ctxt": 0 }, "value": "d", @@ -176,7 +176,7 @@ "type": "Identifier", "span": { "start": 100, - "end": 109, + "end": 101, "ctxt": 0 }, "value": "e", @@ -212,7 +212,7 @@ "type": "Identifier", "span": { "start": 111, - "end": 120, + "end": 112, "ctxt": 0 }, "value": "f", @@ -2976,7 +2976,7 @@ "type": "Identifier", "span": { "start": 1012, - "end": 1027, + "end": 1017, "ctxt": 0 }, "value": "event", diff --git a/crates/swc_ecma_parser/tests/tsc/arrowFunctionExpressions.json b/crates/swc_ecma_parser/tests/tsc/arrowFunctionExpressions.json index a9808d37f11d..b5b575ca40b7 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrowFunctionExpressions.json +++ b/crates/swc_ecma_parser/tests/tsc/arrowFunctionExpressions.json @@ -664,7 +664,7 @@ "type": "Identifier", "span": { "start": 477, - "end": 483, + "end": 478, "ctxt": 0 }, "value": "n", @@ -3278,7 +3278,7 @@ "type": "Identifier", "span": { "start": 1801, - "end": 1810, + "end": 1802, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/asOperatorContextualType.json b/crates/swc_ecma_parser/tests/tsc/asOperatorContextualType.json index 93bc06c0e35e..d5ddfdd3fccc 100644 --- a/crates/swc_ecma_parser/tests/tsc/asOperatorContextualType.json +++ b/crates/swc_ecma_parser/tests/tsc/asOperatorContextualType.json @@ -96,7 +96,7 @@ "type": "Identifier", "span": { "start": 38, - "end": 47, + "end": 39, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/asiPreventsParsingAsInterface02.json b/crates/swc_ecma_parser/tests/tsc/asiPreventsParsingAsInterface02.json index 7431a7a9af3c..195c7cf4473c 100644 --- a/crates/swc_ecma_parser/tests/tsc/asiPreventsParsingAsInterface02.json +++ b/crates/swc_ecma_parser/tests/tsc/asiPreventsParsingAsInterface02.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 13, - "end": 30, + "end": 22, "ctxt": 0 }, "value": "interface", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 32, - "end": 41, + "end": 33, "ctxt": 0 }, "value": "I", diff --git a/crates/swc_ecma_parser/tests/tsc/assignAnyToEveryType.json b/crates/swc_ecma_parser/tests/tsc/assignAnyToEveryType.json index 442e660e5874..2b9265d35f4a 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignAnyToEveryType.json +++ b/crates/swc_ecma_parser/tests/tsc/assignAnyToEveryType.json @@ -1071,7 +1071,7 @@ "type": "Identifier", "span": { "start": 354, - "end": 358, + "end": 355, "ctxt": 0 }, "value": "x", @@ -1318,7 +1318,7 @@ "type": "Identifier", "span": { "start": 436, - "end": 440, + "end": 437, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/assignEveryTypeToAny.json b/crates/swc_ecma_parser/tests/tsc/assignEveryTypeToAny.json index 7d8fa258b5eb..119a7bb70521 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignEveryTypeToAny.json +++ b/crates/swc_ecma_parser/tests/tsc/assignEveryTypeToAny.json @@ -1468,7 +1468,7 @@ "type": "Identifier", "span": { "start": 425, - "end": 429, + "end": 426, "ctxt": 0 }, "value": "x", @@ -1604,7 +1604,7 @@ "type": "Identifier", "span": { "start": 462, - "end": 466, + "end": 463, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/assignFromNumberInterface2.json b/crates/swc_ecma_parser/tests/tsc/assignFromNumberInterface2.json index d3f09ad1a306..505eed2848c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignFromNumberInterface2.json +++ b/crates/swc_ecma_parser/tests/tsc/assignFromNumberInterface2.json @@ -130,7 +130,7 @@ "type": "Identifier", "span": { "start": 81, - "end": 95, + "end": 86, "ctxt": 0 }, "value": "radix", @@ -198,7 +198,7 @@ "type": "Identifier", "span": { "start": 118, - "end": 141, + "end": 132, "ctxt": 0 }, "value": "fractionDigits", @@ -266,7 +266,7 @@ "type": "Identifier", "span": { "start": 170, - "end": 193, + "end": 184, "ctxt": 0 }, "value": "fractionDigits", @@ -334,7 +334,7 @@ "type": "Identifier", "span": { "start": 220, - "end": 238, + "end": 229, "ctxt": 0 }, "value": "precision", diff --git a/crates/swc_ecma_parser/tests/tsc/assignFromStringInterface2.json b/crates/swc_ecma_parser/tests/tsc/assignFromStringInterface2.json index de4c742b7c50..2a2d35f7969a 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignFromStringInterface2.json +++ b/crates/swc_ecma_parser/tests/tsc/assignFromStringInterface2.json @@ -210,7 +210,7 @@ "type": "Identifier", "span": { "start": 126, - "end": 137, + "end": 129, "ctxt": 0 }, "value": "pos", @@ -278,7 +278,7 @@ "type": "Identifier", "span": { "start": 163, - "end": 176, + "end": 168, "ctxt": 0 }, "value": "index", @@ -436,7 +436,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 261, + "end": 253, "ctxt": 0 }, "value": "searchString", @@ -463,7 +463,7 @@ "type": "Identifier", "span": { "start": 263, - "end": 280, + "end": 271, "ctxt": 0 }, "value": "position", @@ -531,7 +531,7 @@ "type": "Identifier", "span": { "start": 307, - "end": 327, + "end": 319, "ctxt": 0 }, "value": "searchString", @@ -558,7 +558,7 @@ "type": "Identifier", "span": { "start": 329, - "end": 346, + "end": 337, "ctxt": 0 }, "value": "position", @@ -626,7 +626,7 @@ "type": "Identifier", "span": { "start": 375, - "end": 387, + "end": 379, "ctxt": 0 }, "value": "that", @@ -694,7 +694,7 @@ "type": "Identifier", "span": { "start": 408, - "end": 422, + "end": 414, "ctxt": 0 }, "value": "regexp", @@ -772,7 +772,7 @@ "type": "Identifier", "span": { "start": 453, - "end": 467, + "end": 459, "ctxt": 0 }, "value": "regexp", @@ -860,7 +860,7 @@ "type": "Identifier", "span": { "start": 500, - "end": 519, + "end": 511, "ctxt": 0 }, "value": "searchValue", @@ -887,7 +887,7 @@ "type": "Identifier", "span": { "start": 521, - "end": 541, + "end": 533, "ctxt": 0 }, "value": "replaceValue", @@ -955,7 +955,7 @@ "type": "Identifier", "span": { "start": 564, - "end": 583, + "end": 575, "ctxt": 0 }, "value": "searchValue", @@ -982,7 +982,7 @@ "type": "Identifier", "span": { "start": 585, - "end": 644, + "end": 597, "ctxt": 0 }, "value": "replaceValue", @@ -1006,7 +1006,7 @@ "type": "Identifier", "span": { "start": 600, - "end": 617, + "end": 609, "ctxt": 0 }, "value": "substring", @@ -1145,7 +1145,7 @@ "type": "Identifier", "span": { "start": 667, - "end": 686, + "end": 678, "ctxt": 0 }, "value": "searchValue", @@ -1182,7 +1182,7 @@ "type": "Identifier", "span": { "start": 688, - "end": 708, + "end": 700, "ctxt": 0 }, "value": "replaceValue", @@ -1250,7 +1250,7 @@ "type": "Identifier", "span": { "start": 731, - "end": 750, + "end": 742, "ctxt": 0 }, "value": "searchValue", @@ -1287,7 +1287,7 @@ "type": "Identifier", "span": { "start": 752, - "end": 811, + "end": 764, "ctxt": 0 }, "value": "replaceValue", @@ -1311,7 +1311,7 @@ "type": "Identifier", "span": { "start": 767, - "end": 784, + "end": 776, "ctxt": 0 }, "value": "substring", @@ -1450,7 +1450,7 @@ "type": "Identifier", "span": { "start": 833, - "end": 847, + "end": 839, "ctxt": 0 }, "value": "regexp", @@ -1518,7 +1518,7 @@ "type": "Identifier", "span": { "start": 869, - "end": 883, + "end": 875, "ctxt": 0 }, "value": "regexp", @@ -1596,7 +1596,7 @@ "type": "Identifier", "span": { "start": 904, - "end": 918, + "end": 909, "ctxt": 0 }, "value": "start", @@ -1623,7 +1623,7 @@ "type": "Identifier", "span": { "start": 920, - "end": 932, + "end": 923, "ctxt": 0 }, "value": "end", @@ -1691,7 +1691,7 @@ "type": "Identifier", "span": { "start": 953, - "end": 970, + "end": 962, "ctxt": 0 }, "value": "separator", @@ -1718,7 +1718,7 @@ "type": "Identifier", "span": { "start": 972, - "end": 986, + "end": 977, "ctxt": 0 }, "value": "limit", @@ -1794,7 +1794,7 @@ "type": "Identifier", "span": { "start": 1009, - "end": 1026, + "end": 1018, "ctxt": 0 }, "value": "separator", @@ -1831,7 +1831,7 @@ "type": "Identifier", "span": { "start": 1028, - "end": 1042, + "end": 1033, "ctxt": 0 }, "value": "limit", @@ -1907,7 +1907,7 @@ "type": "Identifier", "span": { "start": 1069, - "end": 1082, + "end": 1074, "ctxt": 0 }, "value": "start", @@ -1934,7 +1934,7 @@ "type": "Identifier", "span": { "start": 1084, - "end": 1096, + "end": 1087, "ctxt": 0 }, "value": "end", @@ -2243,7 +2243,7 @@ "type": "Identifier", "span": { "start": 1278, - "end": 1290, + "end": 1282, "ctxt": 0 }, "value": "from", @@ -2270,7 +2270,7 @@ "type": "Identifier", "span": { "start": 1292, - "end": 1307, + "end": 1298, "ctxt": 0 }, "value": "length", diff --git a/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationES2022.json b/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationES2022.json index 38bb3bd7ced8..5137ae7d6f5f 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationES2022.json +++ b/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationES2022.json @@ -482,7 +482,7 @@ "type": "Identifier", "span": { "start": 315, - "end": 326, + "end": 318, "ctxt": 0 }, "value": "foo", @@ -1052,7 +1052,7 @@ "type": "Identifier", "span": { "start": 620, - "end": 632, + "end": 624, "ctxt": 0 }, "value": "foo2", @@ -1430,7 +1430,7 @@ "type": "Identifier", "span": { "start": 810, - "end": 820, + "end": 812, "ctxt": 0 }, "value": "p1", @@ -1527,7 +1527,7 @@ "type": "Identifier", "span": { "start": 860, - "end": 865, + "end": 862, "ctxt": 0 }, "value": "p1", diff --git a/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationESNext.json b/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationESNext.json index 38bb3bd7ced8..5137ae7d6f5f 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationESNext.json +++ b/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationESNext.json @@ -482,7 +482,7 @@ "type": "Identifier", "span": { "start": 315, - "end": 326, + "end": 318, "ctxt": 0 }, "value": "foo", @@ -1052,7 +1052,7 @@ "type": "Identifier", "span": { "start": 620, - "end": 632, + "end": 624, "ctxt": 0 }, "value": "foo2", @@ -1430,7 +1430,7 @@ "type": "Identifier", "span": { "start": 810, - "end": 820, + "end": 812, "ctxt": 0 }, "value": "p1", @@ -1527,7 +1527,7 @@ "type": "Identifier", "span": { "start": 860, - "end": 865, + "end": 862, "ctxt": 0 }, "value": "p1", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures.json index 6534faffadb9..e49729d57aab 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 130, - "end": 139, + "end": 131, "ctxt": 0 }, "value": "x", @@ -204,7 +204,7 @@ "type": "Identifier", "span": { "start": 170, - "end": 179, + "end": 171, "ctxt": 0 }, "value": "x", @@ -372,7 +372,7 @@ "type": "Identifier", "span": { "start": 225, - "end": 234, + "end": 226, "ctxt": 0 }, "value": "x", @@ -530,7 +530,7 @@ "type": "Identifier", "span": { "start": 268, - "end": 277, + "end": 269, "ctxt": 0 }, "value": "x", @@ -948,7 +948,7 @@ "type": "Identifier", "span": { "start": 368, - "end": 377, + "end": 369, "ctxt": 0 }, "value": "x", @@ -1228,7 +1228,7 @@ "type": "Identifier", "span": { "start": 441, - "end": 450, + "end": 442, "ctxt": 0 }, "value": "x", @@ -1334,7 +1334,7 @@ "type": "Identifier", "span": { "start": 488, - "end": 497, + "end": 489, "ctxt": 0 }, "value": "x", @@ -1492,7 +1492,7 @@ "type": "Identifier", "span": { "start": 531, - "end": 540, + "end": 532, "ctxt": 0 }, "value": "x", @@ -1741,7 +1741,7 @@ "type": "Identifier", "span": { "start": 623, - "end": 632, + "end": 624, "ctxt": 0 }, "value": "x", @@ -2004,7 +2004,7 @@ "type": "Identifier", "span": { "start": 701, - "end": 710, + "end": 702, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures2.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures2.json index 264a41831593..5748c5fe5843 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures2.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 131, - "end": 140, + "end": 132, "ctxt": 0 }, "value": "x", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 172, - "end": 181, + "end": 173, "ctxt": 0 }, "value": "x", @@ -411,7 +411,7 @@ "type": "Identifier", "span": { "start": 228, - "end": 237, + "end": 229, "ctxt": 0 }, "value": "x", @@ -582,7 +582,7 @@ "type": "Identifier", "span": { "start": 272, - "end": 281, + "end": 273, "ctxt": 0 }, "value": "x", @@ -1166,7 +1166,7 @@ "type": "Identifier", "span": { "start": 417, - "end": 426, + "end": 418, "ctxt": 0 }, "value": "x", @@ -1514,7 +1514,7 @@ "type": "Identifier", "span": { "start": 510, - "end": 519, + "end": 511, "ctxt": 0 }, "value": "x", @@ -1676,7 +1676,7 @@ "type": "Identifier", "span": { "start": 576, - "end": 585, + "end": 577, "ctxt": 0 }, "value": "x", @@ -1835,7 +1835,7 @@ "type": "Identifier", "span": { "start": 629, - "end": 638, + "end": 630, "ctxt": 0 }, "value": "x", @@ -1954,7 +1954,7 @@ "type": "Identifier", "span": { "start": 677, - "end": 686, + "end": 678, "ctxt": 0 }, "value": "x", @@ -2125,7 +2125,7 @@ "type": "Identifier", "span": { "start": 721, - "end": 730, + "end": 722, "ctxt": 0 }, "value": "x", @@ -2374,7 +2374,7 @@ "type": "Identifier", "span": { "start": 813, - "end": 822, + "end": 814, "ctxt": 0 }, "value": "x", @@ -2637,7 +2637,7 @@ "type": "Identifier", "span": { "start": 891, - "end": 900, + "end": 892, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures3.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures3.json index fee6c9792b35..4566b03b966c 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures3.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures3.json @@ -366,7 +366,7 @@ "type": "Identifier", "span": { "start": 286, - "end": 295, + "end": 287, "ctxt": 0 }, "value": "x", @@ -469,7 +469,7 @@ "type": "Identifier", "span": { "start": 319, - "end": 328, + "end": 320, "ctxt": 0 }, "value": "x", @@ -572,7 +572,7 @@ "type": "Identifier", "span": { "start": 352, - "end": 361, + "end": 353, "ctxt": 0 }, "value": "x", @@ -667,7 +667,7 @@ "type": "Identifier", "span": { "start": 381, - "end": 390, + "end": 382, "ctxt": 0 }, "value": "x", @@ -694,7 +694,7 @@ "type": "Identifier", "span": { "start": 392, - "end": 401, + "end": 393, "ctxt": 0 }, "value": "y", @@ -789,7 +789,7 @@ "type": "Identifier", "span": { "start": 423, - "end": 449, + "end": 424, "ctxt": 0 }, "value": "x", @@ -813,7 +813,7 @@ "type": "Identifier", "span": { "start": 427, - "end": 438, + "end": 430, "ctxt": 0 }, "value": "arg", @@ -930,7 +930,7 @@ "type": "Identifier", "span": { "start": 471, - "end": 496, + "end": 472, "ctxt": 0 }, "value": "x", @@ -954,7 +954,7 @@ "type": "Identifier", "span": { "start": 475, - "end": 484, + "end": 478, "ctxt": 0 }, "value": "arg", @@ -1101,7 +1101,7 @@ "type": "Identifier", "span": { "start": 516, - "end": 541, + "end": 517, "ctxt": 0 }, "value": "x", @@ -1125,7 +1125,7 @@ "type": "Identifier", "span": { "start": 520, - "end": 529, + "end": 523, "ctxt": 0 }, "value": "arg", @@ -1211,7 +1211,7 @@ "type": "Identifier", "span": { "start": 547, - "end": 554, + "end": 548, "ctxt": 0 }, "value": "r", @@ -1328,7 +1328,7 @@ "type": "Identifier", "span": { "start": 577, - "end": 602, + "end": 578, "ctxt": 0 }, "value": "x", @@ -1352,7 +1352,7 @@ "type": "Identifier", "span": { "start": 581, - "end": 590, + "end": 584, "ctxt": 0 }, "value": "arg", @@ -1421,7 +1421,7 @@ "type": "Identifier", "span": { "start": 604, - "end": 630, + "end": 605, "ctxt": 0 }, "value": "y", @@ -1445,7 +1445,7 @@ "type": "Identifier", "span": { "start": 608, - "end": 618, + "end": 612, "ctxt": 0 }, "value": "arg2", @@ -1531,7 +1531,7 @@ "type": "Identifier", "span": { "start": 636, - "end": 643, + "end": 637, "ctxt": 0 }, "value": "r", @@ -1648,7 +1648,7 @@ "type": "Identifier", "span": { "start": 666, - "end": 691, + "end": 667, "ctxt": 0 }, "value": "x", @@ -1672,7 +1672,7 @@ "type": "Identifier", "span": { "start": 670, - "end": 679, + "end": 673, "ctxt": 0 }, "value": "arg", @@ -1741,7 +1741,7 @@ "type": "Identifier", "span": { "start": 693, - "end": 719, + "end": 694, "ctxt": 0 }, "value": "y", @@ -1765,7 +1765,7 @@ "type": "Identifier", "span": { "start": 697, - "end": 707, + "end": 701, "ctxt": 0 }, "value": "arg2", @@ -1851,7 +1851,7 @@ "type": "Identifier", "span": { "start": 725, - "end": 732, + "end": 726, "ctxt": 0 }, "value": "r", @@ -2105,7 +2105,7 @@ "type": "Identifier", "span": { "start": 795, - "end": 813, + "end": 796, "ctxt": 0 }, "value": "x", @@ -2174,7 +2174,7 @@ "type": "Identifier", "span": { "start": 815, - "end": 846, + "end": 816, "ctxt": 0 }, "value": "y", @@ -2362,7 +2362,7 @@ "type": "Identifier", "span": { "start": 867, - "end": 881, + "end": 868, "ctxt": 0 }, "value": "x", @@ -2427,7 +2427,7 @@ "type": "Identifier", "span": { "start": 883, - "end": 901, + "end": 884, "ctxt": 0 }, "value": "y", @@ -2598,7 +2598,7 @@ "type": "Identifier", "span": { "start": 932, - "end": 946, + "end": 933, "ctxt": 0 }, "value": "x", @@ -2663,7 +2663,7 @@ "type": "Identifier", "span": { "start": 948, - "end": 965, + "end": 949, "ctxt": 0 }, "value": "y", @@ -2834,7 +2834,7 @@ "type": "Identifier", "span": { "start": 996, - "end": 1023, + "end": 997, "ctxt": 0 }, "value": "x", @@ -3030,7 +3030,7 @@ "type": "Identifier", "span": { "start": 1052, - "end": 1061, + "end": 1053, "ctxt": 0 }, "value": "x", @@ -3093,7 +3093,7 @@ "type": "Identifier", "span": { "start": 1079, - "end": 1088, + "end": 1080, "ctxt": 0 }, "value": "x", @@ -3206,7 +3206,7 @@ "type": "Identifier", "span": { "start": 1138, - "end": 1142, + "end": 1139, "ctxt": 0 }, "value": "x", @@ -3329,7 +3329,7 @@ "type": "Identifier", "span": { "start": 1176, - "end": 1180, + "end": 1177, "ctxt": 0 }, "value": "x", @@ -3502,7 +3502,7 @@ "type": "Identifier", "span": { "start": 1211, - "end": 1235, + "end": 1212, "ctxt": 0 }, "value": "x", @@ -3526,7 +3526,7 @@ "type": "Identifier", "span": { "start": 1215, - "end": 1224, + "end": 1216, "ctxt": 0 }, "value": "a", @@ -3611,7 +3611,7 @@ "type": "Identifier", "span": { "start": 1253, - "end": 1277, + "end": 1254, "ctxt": 0 }, "value": "x", @@ -3635,7 +3635,7 @@ "type": "Identifier", "span": { "start": 1257, - "end": 1266, + "end": 1258, "ctxt": 0 }, "value": "a", @@ -3770,7 +3770,7 @@ "type": "Identifier", "span": { "start": 1309, - "end": 1377, + "end": 1310, "ctxt": 0 }, "value": "x", @@ -3802,7 +3802,7 @@ "type": "Identifier", "span": { "start": 1323, - "end": 1332, + "end": 1324, "ctxt": 0 }, "value": "a", @@ -3857,7 +3857,7 @@ "type": "Identifier", "span": { "start": 1352, - "end": 1361, + "end": 1353, "ctxt": 0 }, "value": "a", @@ -3944,7 +3944,7 @@ "type": "Identifier", "span": { "start": 1392, - "end": 1458, + "end": 1393, "ctxt": 0 }, "value": "x", @@ -3976,7 +3976,7 @@ "type": "Identifier", "span": { "start": 1406, - "end": 1416, + "end": 1407, "ctxt": 0 }, "value": "a", @@ -4031,7 +4031,7 @@ "type": "Identifier", "span": { "start": 1437, - "end": 1444, + "end": 1438, "ctxt": 0 }, "value": "a", @@ -4180,7 +4180,7 @@ "type": "Identifier", "span": { "start": 1482, - "end": 1486, + "end": 1483, "ctxt": 0 }, "value": "x", @@ -4411,7 +4411,7 @@ "type": "Identifier", "span": { "start": 1535, - "end": 1539, + "end": 1536, "ctxt": 0 }, "value": "x", @@ -4632,7 +4632,7 @@ "type": "Identifier", "span": { "start": 1598, - "end": 1602, + "end": 1599, "ctxt": 0 }, "value": "x", @@ -4855,7 +4855,7 @@ "type": "Identifier", "span": { "start": 1656, - "end": 1660, + "end": 1657, "ctxt": 0 }, "value": "x", @@ -4892,7 +4892,7 @@ "type": "Identifier", "span": { "start": 1662, - "end": 1666, + "end": 1663, "ctxt": 0 }, "value": "y", @@ -5138,7 +5138,7 @@ "type": "Identifier", "span": { "start": 1720, - "end": 1736, + "end": 1721, "ctxt": 0 }, "value": "x", @@ -5162,7 +5162,7 @@ "type": "Identifier", "span": { "start": 1724, - "end": 1730, + "end": 1727, "ctxt": 0 }, "value": "arg", @@ -5440,7 +5440,7 @@ "type": "Identifier", "span": { "start": 1819, - "end": 1835, + "end": 1820, "ctxt": 0 }, "value": "x", @@ -5464,7 +5464,7 @@ "type": "Identifier", "span": { "start": 1823, - "end": 1829, + "end": 1826, "ctxt": 0 }, "value": "arg", @@ -5778,7 +5778,7 @@ "type": "Identifier", "span": { "start": 1918, - "end": 1934, + "end": 1919, "ctxt": 0 }, "value": "x", @@ -5802,7 +5802,7 @@ "type": "Identifier", "span": { "start": 1922, - "end": 1928, + "end": 1925, "ctxt": 0 }, "value": "arg", @@ -5979,7 +5979,7 @@ "type": "Identifier", "span": { "start": 1940, - "end": 1944, + "end": 1941, "ctxt": 0 }, "value": "r", @@ -6172,7 +6172,7 @@ "type": "Identifier", "span": { "start": 2027, - "end": 2043, + "end": 2028, "ctxt": 0 }, "value": "x", @@ -6196,7 +6196,7 @@ "type": "Identifier", "span": { "start": 2031, - "end": 2037, + "end": 2034, "ctxt": 0 }, "value": "arg", @@ -6265,7 +6265,7 @@ "type": "Identifier", "span": { "start": 2045, - "end": 2062, + "end": 2046, "ctxt": 0 }, "value": "y", @@ -6289,7 +6289,7 @@ "type": "Identifier", "span": { "start": 2049, - "end": 2056, + "end": 2053, "ctxt": 0 }, "value": "arg2", @@ -6466,7 +6466,7 @@ "type": "Identifier", "span": { "start": 2068, - "end": 2072, + "end": 2069, "ctxt": 0 }, "value": "r", @@ -6659,7 +6659,7 @@ "type": "Identifier", "span": { "start": 2154, - "end": 2170, + "end": 2155, "ctxt": 0 }, "value": "x", @@ -6683,7 +6683,7 @@ "type": "Identifier", "span": { "start": 2158, - "end": 2164, + "end": 2161, "ctxt": 0 }, "value": "arg", @@ -6752,7 +6752,7 @@ "type": "Identifier", "span": { "start": 2172, - "end": 2217, + "end": 2173, "ctxt": 0 }, "value": "y", @@ -6776,7 +6776,7 @@ "type": "Identifier", "span": { "start": 2176, - "end": 2211, + "end": 2180, "ctxt": 0 }, "value": "arg2", @@ -7026,7 +7026,7 @@ "type": "Identifier", "span": { "start": 2223, - "end": 2227, + "end": 2224, "ctxt": 0 }, "value": "r", @@ -7482,7 +7482,7 @@ "type": "Identifier", "span": { "start": 2373, - "end": 2377, + "end": 2374, "ctxt": 0 }, "value": "x", @@ -7519,7 +7519,7 @@ "type": "Identifier", "span": { "start": 2379, - "end": 2383, + "end": 2380, "ctxt": 0 }, "value": "y", @@ -7760,7 +7760,7 @@ "type": "Identifier", "span": { "start": 2459, - "end": 2473, + "end": 2460, "ctxt": 0 }, "value": "x", @@ -7825,7 +7825,7 @@ "type": "Identifier", "span": { "start": 2475, - "end": 2479, + "end": 2476, "ctxt": 0 }, "value": "y", @@ -8122,7 +8122,7 @@ "type": "Identifier", "span": { "start": 2571, - "end": 2585, + "end": 2572, "ctxt": 0 }, "value": "x", @@ -8187,7 +8187,7 @@ "type": "Identifier", "span": { "start": 2587, - "end": 2591, + "end": 2588, "ctxt": 0 }, "value": "y", @@ -8456,7 +8456,7 @@ "type": "Identifier", "span": { "start": 2647, - "end": 2664, + "end": 2648, "ctxt": 0 }, "value": "x", @@ -8772,7 +8772,7 @@ "type": "Identifier", "span": { "start": 2720, - "end": 2724, + "end": 2721, "ctxt": 0 }, "value": "x", @@ -9003,7 +9003,7 @@ "type": "Identifier", "span": { "start": 2795, - "end": 2799, + "end": 2796, "ctxt": 0 }, "value": "x", @@ -9242,7 +9242,7 @@ "type": "Identifier", "span": { "start": 2861, - "end": 2875, + "end": 2862, "ctxt": 0 }, "value": "x", @@ -9266,7 +9266,7 @@ "type": "Identifier", "span": { "start": 2865, - "end": 2869, + "end": 2866, "ctxt": 0 }, "value": "a", @@ -9529,7 +9529,7 @@ "type": "Identifier", "span": { "start": 2938, - "end": 2952, + "end": 2939, "ctxt": 0 }, "value": "x", @@ -9553,7 +9553,7 @@ "type": "Identifier", "span": { "start": 2942, - "end": 2946, + "end": 2943, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures4.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures4.json index 969d7bf01c01..53a998b93939 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures4.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures4.json @@ -420,7 +420,7 @@ "type": "Identifier", "span": { "start": 417, - "end": 426, + "end": 418, "ctxt": 0 }, "value": "x", @@ -523,7 +523,7 @@ "type": "Identifier", "span": { "start": 458, - "end": 483, + "end": 459, "ctxt": 0 }, "value": "x", @@ -547,7 +547,7 @@ "type": "Identifier", "span": { "start": 462, - "end": 471, + "end": 465, "ctxt": 0 }, "value": "arg", @@ -633,7 +633,7 @@ "type": "Identifier", "span": { "start": 489, - "end": 496, + "end": 490, "ctxt": 0 }, "value": "r", @@ -750,7 +750,7 @@ "type": "Identifier", "span": { "start": 528, - "end": 553, + "end": 529, "ctxt": 0 }, "value": "x", @@ -774,7 +774,7 @@ "type": "Identifier", "span": { "start": 532, - "end": 541, + "end": 535, "ctxt": 0 }, "value": "arg", @@ -843,7 +843,7 @@ "type": "Identifier", "span": { "start": 555, - "end": 581, + "end": 556, "ctxt": 0 }, "value": "y", @@ -867,7 +867,7 @@ "type": "Identifier", "span": { "start": 559, - "end": 569, + "end": 563, "ctxt": 0 }, "value": "arg2", @@ -953,7 +953,7 @@ "type": "Identifier", "span": { "start": 587, - "end": 594, + "end": 588, "ctxt": 0 }, "value": "r", @@ -1207,7 +1207,7 @@ "type": "Identifier", "span": { "start": 667, - "end": 685, + "end": 668, "ctxt": 0 }, "value": "x", @@ -1276,7 +1276,7 @@ "type": "Identifier", "span": { "start": 687, - "end": 718, + "end": 688, "ctxt": 0 }, "value": "y", @@ -1464,7 +1464,7 @@ "type": "Identifier", "span": { "start": 747, - "end": 761, + "end": 748, "ctxt": 0 }, "value": "x", @@ -1529,7 +1529,7 @@ "type": "Identifier", "span": { "start": 763, - "end": 781, + "end": 764, "ctxt": 0 }, "value": "y", @@ -1708,7 +1708,7 @@ "type": "Identifier", "span": { "start": 838, - "end": 847, + "end": 839, "ctxt": 0 }, "value": "x", @@ -1771,7 +1771,7 @@ "type": "Identifier", "span": { "start": 877, - "end": 886, + "end": 878, "ctxt": 0 }, "value": "x", @@ -1876,7 +1876,7 @@ "type": "Identifier", "span": { "start": 932, - "end": 959, + "end": 933, "ctxt": 0 }, "value": "x", @@ -2062,7 +2062,7 @@ "type": "Identifier", "span": { "start": 1008, - "end": 1113, + "end": 1009, "ctxt": 0 }, "value": "x", @@ -2094,7 +2094,7 @@ "type": "Identifier", "span": { "start": 1034, - "end": 1043, + "end": 1035, "ctxt": 0 }, "value": "a", @@ -2149,7 +2149,7 @@ "type": "Identifier", "span": { "start": 1075, - "end": 1085, + "end": 1076, "ctxt": 0 }, "value": "a", @@ -2236,7 +2236,7 @@ "type": "Identifier", "span": { "start": 1143, - "end": 1252, + "end": 1144, "ctxt": 0 }, "value": "x", @@ -2268,7 +2268,7 @@ "type": "Identifier", "span": { "start": 1169, - "end": 1179, + "end": 1170, "ctxt": 0 }, "value": "a", @@ -2323,7 +2323,7 @@ "type": "Identifier", "span": { "start": 1212, - "end": 1223, + "end": 1213, "ctxt": 0 }, "value": "a", @@ -2460,7 +2460,7 @@ "type": "Identifier", "span": { "start": 1317, - "end": 1436, + "end": 1318, "ctxt": 0 }, "value": "x", @@ -2492,7 +2492,7 @@ "type": "Identifier", "span": { "start": 1362, - "end": 1366, + "end": 1363, "ctxt": 0 }, "value": "a", @@ -2617,7 +2617,7 @@ "type": "Identifier", "span": { "start": 1409, - "end": 1413, + "end": 1410, "ctxt": 0 }, "value": "a", @@ -2774,7 +2774,7 @@ "type": "Identifier", "span": { "start": 1463, - "end": 1583, + "end": 1464, "ctxt": 0 }, "value": "x", @@ -2806,7 +2806,7 @@ "type": "Identifier", "span": { "start": 1509, - "end": 1513, + "end": 1510, "ctxt": 0 }, "value": "a", @@ -2931,7 +2931,7 @@ "type": "Identifier", "span": { "start": 1556, - "end": 1560, + "end": 1557, "ctxt": 0 }, "value": "a", @@ -3130,7 +3130,7 @@ "type": "Identifier", "span": { "start": 1632, - "end": 1636, + "end": 1633, "ctxt": 0 }, "value": "x", @@ -3384,7 +3384,7 @@ "type": "Identifier", "span": { "start": 1754, - "end": 1770, + "end": 1755, "ctxt": 0 }, "value": "x", @@ -3408,7 +3408,7 @@ "type": "Identifier", "span": { "start": 1758, - "end": 1764, + "end": 1761, "ctxt": 0 }, "value": "arg", @@ -3626,7 +3626,7 @@ "type": "Identifier", "span": { "start": 1776, - "end": 1780, + "end": 1777, "ctxt": 0 }, "value": "r", @@ -3819,7 +3819,7 @@ "type": "Identifier", "span": { "start": 1875, - "end": 1891, + "end": 1876, "ctxt": 0 }, "value": "x", @@ -3843,7 +3843,7 @@ "type": "Identifier", "span": { "start": 1879, - "end": 1885, + "end": 1882, "ctxt": 0 }, "value": "arg", @@ -3912,7 +3912,7 @@ "type": "Identifier", "span": { "start": 1893, - "end": 1925, + "end": 1894, "ctxt": 0 }, "value": "y", @@ -3936,7 +3936,7 @@ "type": "Identifier", "span": { "start": 1897, - "end": 1919, + "end": 1901, "ctxt": 0 }, "value": "arg2", @@ -4145,7 +4145,7 @@ "type": "Identifier", "span": { "start": 1931, - "end": 1935, + "end": 1932, "ctxt": 0 }, "value": "r", @@ -4601,7 +4601,7 @@ "type": "Identifier", "span": { "start": 2223, - "end": 2227, + "end": 2224, "ctxt": 0 }, "value": "x", @@ -4638,7 +4638,7 @@ "type": "Identifier", "span": { "start": 2229, - "end": 2233, + "end": 2230, "ctxt": 0 }, "value": "y", @@ -4879,7 +4879,7 @@ "type": "Identifier", "span": { "start": 2326, - "end": 2340, + "end": 2327, "ctxt": 0 }, "value": "x", @@ -4944,7 +4944,7 @@ "type": "Identifier", "span": { "start": 2342, - "end": 2356, + "end": 2343, "ctxt": 0 }, "value": "y", @@ -5241,7 +5241,7 @@ "type": "Identifier", "span": { "start": 2425, - "end": 2442, + "end": 2426, "ctxt": 0 }, "value": "x", @@ -5557,7 +5557,7 @@ "type": "Identifier", "span": { "start": 2525, - "end": 2542, + "end": 2526, "ctxt": 0 }, "value": "x", @@ -5881,7 +5881,7 @@ "type": "Identifier", "span": { "start": 2618, - "end": 2632, + "end": 2619, "ctxt": 0 }, "value": "x", @@ -5905,7 +5905,7 @@ "type": "Identifier", "span": { "start": 2622, - "end": 2626, + "end": 2623, "ctxt": 0 }, "value": "a", @@ -6168,7 +6168,7 @@ "type": "Identifier", "span": { "start": 2702, - "end": 2716, + "end": 2703, "ctxt": 0 }, "value": "x", @@ -6192,7 +6192,7 @@ "type": "Identifier", "span": { "start": 2706, - "end": 2710, + "end": 2707, "ctxt": 0 }, "value": "a", @@ -6475,7 +6475,7 @@ "type": "Identifier", "span": { "start": 2888, - "end": 2892, + "end": 2889, "ctxt": 0 }, "value": "x", @@ -6630,7 +6630,7 @@ "type": "Identifier", "span": { "start": 2922, - "end": 2926, + "end": 2923, "ctxt": 0 }, "value": "x", @@ -6851,7 +6851,7 @@ "type": "Identifier", "span": { "start": 3046, - "end": 3050, + "end": 3047, "ctxt": 0 }, "value": "x", @@ -6996,7 +6996,7 @@ "type": "Identifier", "span": { "start": 3085, - "end": 3089, + "end": 3086, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures5.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures5.json index c1333045fd68..055890518ebf 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures5.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures5.json @@ -366,7 +366,7 @@ "type": "Identifier", "span": { "start": 257, - "end": 261, + "end": 258, "ctxt": 0 }, "value": "x", @@ -521,7 +521,7 @@ "type": "Identifier", "span": { "start": 283, - "end": 287, + "end": 284, "ctxt": 0 }, "value": "x", @@ -666,7 +666,7 @@ "type": "Identifier", "span": { "start": 314, - "end": 318, + "end": 315, "ctxt": 0 }, "value": "x", @@ -803,7 +803,7 @@ "type": "Identifier", "span": { "start": 343, - "end": 347, + "end": 344, "ctxt": 0 }, "value": "x", @@ -840,7 +840,7 @@ "type": "Identifier", "span": { "start": 349, - "end": 353, + "end": 350, "ctxt": 0 }, "value": "y", @@ -1000,7 +1000,7 @@ "type": "Identifier", "span": { "start": 380, - "end": 396, + "end": 381, "ctxt": 0 }, "value": "x", @@ -1024,7 +1024,7 @@ "type": "Identifier", "span": { "start": 384, - "end": 390, + "end": 387, "ctxt": 0 }, "value": "arg", @@ -1226,7 +1226,7 @@ "type": "Identifier", "span": { "start": 429, - "end": 451, + "end": 430, "ctxt": 0 }, "value": "x", @@ -1250,7 +1250,7 @@ "type": "Identifier", "span": { "start": 433, - "end": 439, + "end": 436, "ctxt": 0 }, "value": "arg", @@ -1447,7 +1447,7 @@ "type": "Identifier", "span": { "start": 472, - "end": 485, + "end": 473, "ctxt": 0 }, "value": "x", @@ -1526,7 +1526,7 @@ "type": "Identifier", "span": { "start": 487, - "end": 508, + "end": 488, "ctxt": 0 }, "value": "y", @@ -1766,7 +1766,7 @@ "type": "Identifier", "span": { "start": 532, - "end": 549, + "end": 533, "ctxt": 0 }, "value": "x", @@ -2014,7 +2014,7 @@ "type": "Identifier", "span": { "start": 585, - "end": 602, + "end": 586, "ctxt": 0 }, "value": "x", @@ -2288,7 +2288,7 @@ "type": "Identifier", "span": { "start": 647, - "end": 661, + "end": 648, "ctxt": 0 }, "value": "x", @@ -2312,7 +2312,7 @@ "type": "Identifier", "span": { "start": 651, - "end": 655, + "end": 652, "ctxt": 0 }, "value": "a", @@ -2477,7 +2477,7 @@ "type": "Identifier", "span": { "start": 690, - "end": 704, + "end": 691, "ctxt": 0 }, "value": "x", @@ -2501,7 +2501,7 @@ "type": "Identifier", "span": { "start": 694, - "end": 698, + "end": 695, "ctxt": 0 }, "value": "a", @@ -2716,7 +2716,7 @@ "type": "Identifier", "span": { "start": 739, - "end": 822, + "end": 740, "ctxt": 0 }, "value": "x", @@ -2748,7 +2748,7 @@ "type": "Identifier", "span": { "start": 772, - "end": 776, + "end": 773, "ctxt": 0 }, "value": "a", @@ -2873,7 +2873,7 @@ "type": "Identifier", "span": { "start": 807, - "end": 811, + "end": 808, "ctxt": 0 }, "value": "a", @@ -3030,7 +3030,7 @@ "type": "Identifier", "span": { "start": 837, - "end": 921, + "end": 838, "ctxt": 0 }, "value": "x", @@ -3062,7 +3062,7 @@ "type": "Identifier", "span": { "start": 871, - "end": 875, + "end": 872, "ctxt": 0 }, "value": "a", @@ -3187,7 +3187,7 @@ "type": "Identifier", "span": { "start": 906, - "end": 910, + "end": 907, "ctxt": 0 }, "value": "a", @@ -3386,7 +3386,7 @@ "type": "Identifier", "span": { "start": 946, - "end": 950, + "end": 947, "ctxt": 0 }, "value": "x", @@ -3617,7 +3617,7 @@ "type": "Identifier", "span": { "start": 999, - "end": 1003, + "end": 1000, "ctxt": 0 }, "value": "x", @@ -3838,7 +3838,7 @@ "type": "Identifier", "span": { "start": 1061, - "end": 1065, + "end": 1062, "ctxt": 0 }, "value": "x", @@ -4061,7 +4061,7 @@ "type": "Identifier", "span": { "start": 1119, - "end": 1123, + "end": 1120, "ctxt": 0 }, "value": "x", @@ -4098,7 +4098,7 @@ "type": "Identifier", "span": { "start": 1125, - "end": 1129, + "end": 1126, "ctxt": 0 }, "value": "y", @@ -4334,7 +4334,7 @@ "type": "Identifier", "span": { "start": 1188, - "end": 1204, + "end": 1189, "ctxt": 0 }, "value": "x", @@ -4358,7 +4358,7 @@ "type": "Identifier", "span": { "start": 1192, - "end": 1198, + "end": 1195, "ctxt": 0 }, "value": "arg", @@ -4636,7 +4636,7 @@ "type": "Identifier", "span": { "start": 1287, - "end": 1303, + "end": 1288, "ctxt": 0 }, "value": "x", @@ -4660,7 +4660,7 @@ "type": "Identifier", "span": { "start": 1291, - "end": 1297, + "end": 1294, "ctxt": 0 }, "value": "arg", @@ -4974,7 +4974,7 @@ "type": "Identifier", "span": { "start": 1358, - "end": 1371, + "end": 1359, "ctxt": 0 }, "value": "x", @@ -5053,7 +5053,7 @@ "type": "Identifier", "span": { "start": 1373, - "end": 1394, + "end": 1374, "ctxt": 0 }, "value": "y", @@ -5392,7 +5392,7 @@ "type": "Identifier", "span": { "start": 1456, - "end": 1474, + "end": 1457, "ctxt": 0 }, "value": "x", @@ -5739,7 +5739,7 @@ "type": "Identifier", "span": { "start": 1546, - "end": 1563, + "end": 1547, "ctxt": 0 }, "value": "x", @@ -6063,7 +6063,7 @@ "type": "Identifier", "span": { "start": 1621, - "end": 1635, + "end": 1622, "ctxt": 0 }, "value": "x", @@ -6087,7 +6087,7 @@ "type": "Identifier", "span": { "start": 1625, - "end": 1629, + "end": 1626, "ctxt": 0 }, "value": "a", @@ -6350,7 +6350,7 @@ "type": "Identifier", "span": { "start": 1690, - "end": 1707, + "end": 1691, "ctxt": 0 }, "value": "x", @@ -6374,7 +6374,7 @@ "type": "Identifier", "span": { "start": 1697, - "end": 1701, + "end": 1698, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures6.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures6.json index 75d6246a8e10..0ebaf5f19129 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures6.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures6.json @@ -390,7 +390,7 @@ "type": "Identifier", "span": { "start": 275, - "end": 279, + "end": 276, "ctxt": 0 }, "value": "x", @@ -537,7 +537,7 @@ "type": "Identifier", "span": { "start": 301, - "end": 305, + "end": 302, "ctxt": 0 }, "value": "x", @@ -674,7 +674,7 @@ "type": "Identifier", "span": { "start": 332, - "end": 336, + "end": 333, "ctxt": 0 }, "value": "x", @@ -803,7 +803,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 365, + "end": 362, "ctxt": 0 }, "value": "x", @@ -840,7 +840,7 @@ "type": "Identifier", "span": { "start": 367, - "end": 371, + "end": 368, "ctxt": 0 }, "value": "y", @@ -992,7 +992,7 @@ "type": "Identifier", "span": { "start": 398, - "end": 414, + "end": 399, "ctxt": 0 }, "value": "x", @@ -1016,7 +1016,7 @@ "type": "Identifier", "span": { "start": 402, - "end": 408, + "end": 405, "ctxt": 0 }, "value": "arg", @@ -1210,7 +1210,7 @@ "type": "Identifier", "span": { "start": 447, - "end": 469, + "end": 448, "ctxt": 0 }, "value": "x", @@ -1234,7 +1234,7 @@ "type": "Identifier", "span": { "start": 451, - "end": 457, + "end": 454, "ctxt": 0 }, "value": "arg", @@ -1423,7 +1423,7 @@ "type": "Identifier", "span": { "start": 490, - "end": 503, + "end": 491, "ctxt": 0 }, "value": "x", @@ -1502,7 +1502,7 @@ "type": "Identifier", "span": { "start": 505, - "end": 526, + "end": 506, "ctxt": 0 }, "value": "y", @@ -1734,7 +1734,7 @@ "type": "Identifier", "span": { "start": 550, - "end": 567, + "end": 551, "ctxt": 0 }, "value": "x", @@ -1974,7 +1974,7 @@ "type": "Identifier", "span": { "start": 603, - "end": 620, + "end": 604, "ctxt": 0 }, "value": "x", @@ -2298,7 +2298,7 @@ "type": "Identifier", "span": { "start": 655, - "end": 659, + "end": 656, "ctxt": 0 }, "value": "x", @@ -2564,7 +2564,7 @@ "type": "Identifier", "span": { "start": 700, - "end": 704, + "end": 701, "ctxt": 0 }, "value": "x", @@ -2820,7 +2820,7 @@ "type": "Identifier", "span": { "start": 754, - "end": 758, + "end": 755, "ctxt": 0 }, "value": "x", @@ -3078,7 +3078,7 @@ "type": "Identifier", "span": { "start": 803, - "end": 807, + "end": 804, "ctxt": 0 }, "value": "x", @@ -3115,7 +3115,7 @@ "type": "Identifier", "span": { "start": 809, - "end": 813, + "end": 810, "ctxt": 0 }, "value": "y", @@ -3386,7 +3386,7 @@ "type": "Identifier", "span": { "start": 864, - "end": 880, + "end": 865, "ctxt": 0 }, "value": "x", @@ -3410,7 +3410,7 @@ "type": "Identifier", "span": { "start": 868, - "end": 874, + "end": 871, "ctxt": 0 }, "value": "arg", @@ -3723,7 +3723,7 @@ "type": "Identifier", "span": { "start": 927, - "end": 940, + "end": 928, "ctxt": 0 }, "value": "x", @@ -3802,7 +3802,7 @@ "type": "Identifier", "span": { "start": 942, - "end": 963, + "end": 943, "ctxt": 0 }, "value": "y", @@ -4176,7 +4176,7 @@ "type": "Identifier", "span": { "start": 1014, - "end": 1031, + "end": 1015, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignaturesWithOptionalParameters.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignaturesWithOptionalParameters.json index 44db37006dc5..32b69c8a6232 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignaturesWithOptionalParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignaturesWithOptionalParameters.json @@ -134,7 +134,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 161, + "end": 152, "ctxt": 0 }, "value": "x", @@ -221,7 +221,7 @@ "type": "Identifier", "span": { "start": 183, - "end": 192, + "end": 184, "ctxt": 0 }, "value": "x", @@ -308,7 +308,7 @@ "type": "Identifier", "span": { "start": 214, - "end": 223, + "end": 215, "ctxt": 0 }, "value": "x", @@ -335,7 +335,7 @@ "type": "Identifier", "span": { "start": 225, - "end": 235, + "end": 226, "ctxt": 0 }, "value": "y", @@ -422,7 +422,7 @@ "type": "Identifier", "span": { "start": 257, - "end": 267, + "end": 258, "ctxt": 0 }, "value": "x", @@ -449,7 +449,7 @@ "type": "Identifier", "span": { "start": 269, - "end": 279, + "end": 270, "ctxt": 0 }, "value": "y", @@ -536,7 +536,7 @@ "type": "Identifier", "span": { "start": 301, - "end": 310, + "end": 302, "ctxt": 0 }, "value": "x", @@ -563,7 +563,7 @@ "type": "Identifier", "span": { "start": 312, - "end": 321, + "end": 313, "ctxt": 0 }, "value": "y", @@ -1328,7 +1328,7 @@ "type": "Identifier", "span": { "start": 689, - "end": 699, + "end": 690, "ctxt": 0 }, "value": "x", @@ -1968,7 +1968,7 @@ "type": "Identifier", "span": { "start": 1088, - "end": 1097, + "end": 1089, "ctxt": 0 }, "value": "x", @@ -2714,7 +2714,7 @@ "type": "Identifier", "span": { "start": 1492, - "end": 1501, + "end": 1493, "ctxt": 0 }, "value": "x", @@ -2741,7 +2741,7 @@ "type": "Identifier", "span": { "start": 1503, - "end": 1513, + "end": 1504, "ctxt": 0 }, "value": "y", @@ -3514,7 +3514,7 @@ "type": "Identifier", "span": { "start": 1932, - "end": 1942, + "end": 1933, "ctxt": 0 }, "value": "x", @@ -3541,7 +3541,7 @@ "type": "Identifier", "span": { "start": 1944, - "end": 1954, + "end": 1945, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignaturesWithRestParameters.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignaturesWithRestParameters.json index 740520726e5e..f210360feabf 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignaturesWithRestParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignaturesWithRestParameters.json @@ -184,7 +184,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 189, + "end": 181, "ctxt": 0 }, "value": "x", @@ -320,7 +320,7 @@ "type": "Identifier", "span": { "start": 227, - "end": 236, + "end": 228, "ctxt": 0 }, "value": "x", @@ -347,7 +347,7 @@ "type": "Identifier", "span": { "start": 238, - "end": 248, + "end": 239, "ctxt": 0 }, "value": "y", @@ -483,7 +483,7 @@ "type": "Identifier", "span": { "start": 286, - "end": 296, + "end": 287, "ctxt": 0 }, "value": "x", @@ -510,7 +510,7 @@ "type": "Identifier", "span": { "start": 298, - "end": 308, + "end": 299, "ctxt": 0 }, "value": "y", @@ -1393,7 +1393,7 @@ "type": "Identifier", "span": { "start": 906, - "end": 915, + "end": 907, "ctxt": 0 }, "value": "x", @@ -2315,7 +2315,7 @@ "type": "Identifier", "span": { "start": 1524, - "end": 1533, + "end": 1525, "ctxt": 0 }, "value": "x", @@ -2342,7 +2342,7 @@ "type": "Identifier", "span": { "start": 1535, - "end": 1545, + "end": 1536, "ctxt": 0 }, "value": "y", @@ -3195,7 +3195,7 @@ "type": "Identifier", "span": { "start": 1999, - "end": 2009, + "end": 2000, "ctxt": 0 }, "value": "x", @@ -3222,7 +3222,7 @@ "type": "Identifier", "span": { "start": 2011, - "end": 2021, + "end": 2012, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures.json index b025861ff12a..8f54f01406ee 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 134, - "end": 143, + "end": 135, "ctxt": 0 }, "value": "x", @@ -204,7 +204,7 @@ "type": "Identifier", "span": { "start": 178, - "end": 187, + "end": 179, "ctxt": 0 }, "value": "x", @@ -372,7 +372,7 @@ "type": "Identifier", "span": { "start": 237, - "end": 246, + "end": 238, "ctxt": 0 }, "value": "x", @@ -530,7 +530,7 @@ "type": "Identifier", "span": { "start": 284, - "end": 293, + "end": 285, "ctxt": 0 }, "value": "x", @@ -774,7 +774,7 @@ "type": "Identifier", "span": { "start": 357, - "end": 366, + "end": 358, "ctxt": 0 }, "value": "x", @@ -932,7 +932,7 @@ "type": "Identifier", "span": { "start": 400, - "end": 409, + "end": 401, "ctxt": 0 }, "value": "x", @@ -1181,7 +1181,7 @@ "type": "Identifier", "span": { "start": 492, - "end": 501, + "end": 493, "ctxt": 0 }, "value": "x", @@ -1444,7 +1444,7 @@ "type": "Identifier", "span": { "start": 570, - "end": 579, + "end": 571, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures2.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures2.json index 71ee797c306e..d3ffc457e74c 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures2.json @@ -75,7 +75,7 @@ "type": "Identifier", "span": { "start": 137, - "end": 146, + "end": 138, "ctxt": 0 }, "value": "x", @@ -266,7 +266,7 @@ "type": "Identifier", "span": { "start": 186, - "end": 195, + "end": 187, "ctxt": 0 }, "value": "x", @@ -467,7 +467,7 @@ "type": "Identifier", "span": { "start": 250, - "end": 259, + "end": 251, "ctxt": 0 }, "value": "x", @@ -658,7 +658,7 @@ "type": "Identifier", "span": { "start": 302, - "end": 311, + "end": 303, "ctxt": 0 }, "value": "x", @@ -959,7 +959,7 @@ "type": "Identifier", "span": { "start": 394, - "end": 403, + "end": 395, "ctxt": 0 }, "value": "x", @@ -1118,7 +1118,7 @@ "type": "Identifier", "span": { "start": 447, - "end": 456, + "end": 448, "ctxt": 0 }, "value": "x", @@ -1237,7 +1237,7 @@ "type": "Identifier", "span": { "start": 495, - "end": 504, + "end": 496, "ctxt": 0 }, "value": "x", @@ -1408,7 +1408,7 @@ "type": "Identifier", "span": { "start": 539, - "end": 548, + "end": 540, "ctxt": 0 }, "value": "x", @@ -1657,7 +1657,7 @@ "type": "Identifier", "span": { "start": 631, - "end": 640, + "end": 632, "ctxt": 0 }, "value": "x", @@ -1920,7 +1920,7 @@ "type": "Identifier", "span": { "start": 709, - "end": 718, + "end": 710, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures3.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures3.json index f561216196d1..dbf1eed9630b 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures3.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures3.json @@ -366,7 +366,7 @@ "type": "Identifier", "span": { "start": 276, - "end": 285, + "end": 277, "ctxt": 0 }, "value": "x", @@ -470,7 +470,7 @@ "type": "Identifier", "span": { "start": 313, - "end": 322, + "end": 314, "ctxt": 0 }, "value": "x", @@ -574,7 +574,7 @@ "type": "Identifier", "span": { "start": 350, - "end": 359, + "end": 351, "ctxt": 0 }, "value": "x", @@ -670,7 +670,7 @@ "type": "Identifier", "span": { "start": 383, - "end": 392, + "end": 384, "ctxt": 0 }, "value": "x", @@ -697,7 +697,7 @@ "type": "Identifier", "span": { "start": 394, - "end": 403, + "end": 395, "ctxt": 0 }, "value": "y", @@ -793,7 +793,7 @@ "type": "Identifier", "span": { "start": 429, - "end": 455, + "end": 430, "ctxt": 0 }, "value": "x", @@ -817,7 +817,7 @@ "type": "Identifier", "span": { "start": 433, - "end": 444, + "end": 436, "ctxt": 0 }, "value": "arg", @@ -935,7 +935,7 @@ "type": "Identifier", "span": { "start": 481, - "end": 506, + "end": 482, "ctxt": 0 }, "value": "x", @@ -959,7 +959,7 @@ "type": "Identifier", "span": { "start": 485, - "end": 494, + "end": 488, "ctxt": 0 }, "value": "arg", @@ -1107,7 +1107,7 @@ "type": "Identifier", "span": { "start": 530, - "end": 555, + "end": 531, "ctxt": 0 }, "value": "x", @@ -1131,7 +1131,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 543, + "end": 537, "ctxt": 0 }, "value": "arg", @@ -1217,7 +1217,7 @@ "type": "Identifier", "span": { "start": 561, - "end": 568, + "end": 562, "ctxt": 0 }, "value": "r", @@ -1335,7 +1335,7 @@ "type": "Identifier", "span": { "start": 595, - "end": 620, + "end": 596, "ctxt": 0 }, "value": "x", @@ -1359,7 +1359,7 @@ "type": "Identifier", "span": { "start": 599, - "end": 608, + "end": 602, "ctxt": 0 }, "value": "arg", @@ -1428,7 +1428,7 @@ "type": "Identifier", "span": { "start": 622, - "end": 648, + "end": 623, "ctxt": 0 }, "value": "y", @@ -1452,7 +1452,7 @@ "type": "Identifier", "span": { "start": 626, - "end": 636, + "end": 630, "ctxt": 0 }, "value": "arg2", @@ -1538,7 +1538,7 @@ "type": "Identifier", "span": { "start": 654, - "end": 661, + "end": 655, "ctxt": 0 }, "value": "r", @@ -1656,7 +1656,7 @@ "type": "Identifier", "span": { "start": 688, - "end": 713, + "end": 689, "ctxt": 0 }, "value": "x", @@ -1680,7 +1680,7 @@ "type": "Identifier", "span": { "start": 692, - "end": 701, + "end": 695, "ctxt": 0 }, "value": "arg", @@ -1749,7 +1749,7 @@ "type": "Identifier", "span": { "start": 715, - "end": 741, + "end": 716, "ctxt": 0 }, "value": "y", @@ -1773,7 +1773,7 @@ "type": "Identifier", "span": { "start": 719, - "end": 729, + "end": 723, "ctxt": 0 }, "value": "arg2", @@ -1859,7 +1859,7 @@ "type": "Identifier", "span": { "start": 747, - "end": 754, + "end": 748, "ctxt": 0 }, "value": "r", @@ -2115,7 +2115,7 @@ "type": "Identifier", "span": { "start": 825, - "end": 843, + "end": 826, "ctxt": 0 }, "value": "x", @@ -2184,7 +2184,7 @@ "type": "Identifier", "span": { "start": 845, - "end": 876, + "end": 846, "ctxt": 0 }, "value": "y", @@ -2373,7 +2373,7 @@ "type": "Identifier", "span": { "start": 901, - "end": 915, + "end": 902, "ctxt": 0 }, "value": "x", @@ -2438,7 +2438,7 @@ "type": "Identifier", "span": { "start": 917, - "end": 935, + "end": 918, "ctxt": 0 }, "value": "y", @@ -2610,7 +2610,7 @@ "type": "Identifier", "span": { "start": 970, - "end": 984, + "end": 971, "ctxt": 0 }, "value": "x", @@ -2675,7 +2675,7 @@ "type": "Identifier", "span": { "start": 986, - "end": 1003, + "end": 987, "ctxt": 0 }, "value": "y", @@ -2847,7 +2847,7 @@ "type": "Identifier", "span": { "start": 1038, - "end": 1065, + "end": 1039, "ctxt": 0 }, "value": "x", @@ -3044,7 +3044,7 @@ "type": "Identifier", "span": { "start": 1098, - "end": 1107, + "end": 1099, "ctxt": 0 }, "value": "x", @@ -3107,7 +3107,7 @@ "type": "Identifier", "span": { "start": 1129, - "end": 1138, + "end": 1130, "ctxt": 0 }, "value": "x", @@ -3220,7 +3220,7 @@ "type": "Identifier", "span": { "start": 1192, - "end": 1196, + "end": 1193, "ctxt": 0 }, "value": "x", @@ -3343,7 +3343,7 @@ "type": "Identifier", "span": { "start": 1234, - "end": 1238, + "end": 1235, "ctxt": 0 }, "value": "x", @@ -3516,7 +3516,7 @@ "type": "Identifier", "span": { "start": 1273, - "end": 1301, + "end": 1274, "ctxt": 0 }, "value": "x", @@ -3540,7 +3540,7 @@ "type": "Identifier", "span": { "start": 1281, - "end": 1290, + "end": 1282, "ctxt": 0 }, "value": "a", @@ -3626,7 +3626,7 @@ "type": "Identifier", "span": { "start": 1323, - "end": 1351, + "end": 1324, "ctxt": 0 }, "value": "x", @@ -3650,7 +3650,7 @@ "type": "Identifier", "span": { "start": 1331, - "end": 1340, + "end": 1332, "ctxt": 0 }, "value": "a", @@ -3786,7 +3786,7 @@ "type": "Identifier", "span": { "start": 1387, - "end": 1463, + "end": 1388, "ctxt": 0 }, "value": "x", @@ -3818,7 +3818,7 @@ "type": "Identifier", "span": { "start": 1405, - "end": 1414, + "end": 1406, "ctxt": 0 }, "value": "a", @@ -3873,7 +3873,7 @@ "type": "Identifier", "span": { "start": 1438, - "end": 1447, + "end": 1439, "ctxt": 0 }, "value": "a", @@ -3960,7 +3960,7 @@ "type": "Identifier", "span": { "start": 1482, - "end": 1556, + "end": 1483, "ctxt": 0 }, "value": "x", @@ -3992,7 +3992,7 @@ "type": "Identifier", "span": { "start": 1500, - "end": 1510, + "end": 1501, "ctxt": 0 }, "value": "a", @@ -4047,7 +4047,7 @@ "type": "Identifier", "span": { "start": 1535, - "end": 1542, + "end": 1536, "ctxt": 0 }, "value": "a", @@ -4196,7 +4196,7 @@ "type": "Identifier", "span": { "start": 1584, - "end": 1588, + "end": 1585, "ctxt": 0 }, "value": "x", @@ -4428,7 +4428,7 @@ "type": "Identifier", "span": { "start": 1641, - "end": 1645, + "end": 1642, "ctxt": 0 }, "value": "x", @@ -4650,7 +4650,7 @@ "type": "Identifier", "span": { "start": 1708, - "end": 1712, + "end": 1709, "ctxt": 0 }, "value": "x", @@ -4874,7 +4874,7 @@ "type": "Identifier", "span": { "start": 1770, - "end": 1774, + "end": 1771, "ctxt": 0 }, "value": "x", @@ -4911,7 +4911,7 @@ "type": "Identifier", "span": { "start": 1776, - "end": 1780, + "end": 1777, "ctxt": 0 }, "value": "y", @@ -5158,7 +5158,7 @@ "type": "Identifier", "span": { "start": 1838, - "end": 1854, + "end": 1839, "ctxt": 0 }, "value": "x", @@ -5182,7 +5182,7 @@ "type": "Identifier", "span": { "start": 1842, - "end": 1848, + "end": 1845, "ctxt": 0 }, "value": "arg", @@ -5461,7 +5461,7 @@ "type": "Identifier", "span": { "start": 1941, - "end": 1957, + "end": 1942, "ctxt": 0 }, "value": "x", @@ -5485,7 +5485,7 @@ "type": "Identifier", "span": { "start": 1945, - "end": 1951, + "end": 1948, "ctxt": 0 }, "value": "arg", @@ -5800,7 +5800,7 @@ "type": "Identifier", "span": { "start": 2044, - "end": 2060, + "end": 2045, "ctxt": 0 }, "value": "x", @@ -5824,7 +5824,7 @@ "type": "Identifier", "span": { "start": 2048, - "end": 2054, + "end": 2051, "ctxt": 0 }, "value": "arg", @@ -6001,7 +6001,7 @@ "type": "Identifier", "span": { "start": 2066, - "end": 2070, + "end": 2067, "ctxt": 0 }, "value": "r", @@ -6195,7 +6195,7 @@ "type": "Identifier", "span": { "start": 2157, - "end": 2173, + "end": 2158, "ctxt": 0 }, "value": "x", @@ -6219,7 +6219,7 @@ "type": "Identifier", "span": { "start": 2161, - "end": 2167, + "end": 2164, "ctxt": 0 }, "value": "arg", @@ -6288,7 +6288,7 @@ "type": "Identifier", "span": { "start": 2175, - "end": 2192, + "end": 2176, "ctxt": 0 }, "value": "y", @@ -6312,7 +6312,7 @@ "type": "Identifier", "span": { "start": 2179, - "end": 2186, + "end": 2183, "ctxt": 0 }, "value": "arg2", @@ -6489,7 +6489,7 @@ "type": "Identifier", "span": { "start": 2198, - "end": 2202, + "end": 2199, "ctxt": 0 }, "value": "r", @@ -6683,7 +6683,7 @@ "type": "Identifier", "span": { "start": 2288, - "end": 2304, + "end": 2289, "ctxt": 0 }, "value": "x", @@ -6707,7 +6707,7 @@ "type": "Identifier", "span": { "start": 2292, - "end": 2298, + "end": 2295, "ctxt": 0 }, "value": "arg", @@ -6776,7 +6776,7 @@ "type": "Identifier", "span": { "start": 2306, - "end": 2351, + "end": 2307, "ctxt": 0 }, "value": "y", @@ -6800,7 +6800,7 @@ "type": "Identifier", "span": { "start": 2310, - "end": 2345, + "end": 2314, "ctxt": 0 }, "value": "arg2", @@ -7050,7 +7050,7 @@ "type": "Identifier", "span": { "start": 2357, - "end": 2361, + "end": 2358, "ctxt": 0 }, "value": "r", @@ -7508,7 +7508,7 @@ "type": "Identifier", "span": { "start": 2515, - "end": 2519, + "end": 2516, "ctxt": 0 }, "value": "x", @@ -7545,7 +7545,7 @@ "type": "Identifier", "span": { "start": 2521, - "end": 2525, + "end": 2522, "ctxt": 0 }, "value": "y", @@ -7787,7 +7787,7 @@ "type": "Identifier", "span": { "start": 2605, - "end": 2619, + "end": 2606, "ctxt": 0 }, "value": "x", @@ -7852,7 +7852,7 @@ "type": "Identifier", "span": { "start": 2621, - "end": 2625, + "end": 2622, "ctxt": 0 }, "value": "y", @@ -8150,7 +8150,7 @@ "type": "Identifier", "span": { "start": 2721, - "end": 2735, + "end": 2722, "ctxt": 0 }, "value": "x", @@ -8215,7 +8215,7 @@ "type": "Identifier", "span": { "start": 2737, - "end": 2741, + "end": 2738, "ctxt": 0 }, "value": "y", @@ -8485,7 +8485,7 @@ "type": "Identifier", "span": { "start": 2801, - "end": 2818, + "end": 2802, "ctxt": 0 }, "value": "x", @@ -8802,7 +8802,7 @@ "type": "Identifier", "span": { "start": 2878, - "end": 2882, + "end": 2879, "ctxt": 0 }, "value": "x", @@ -9034,7 +9034,7 @@ "type": "Identifier", "span": { "start": 2957, - "end": 2961, + "end": 2958, "ctxt": 0 }, "value": "x", @@ -9274,7 +9274,7 @@ "type": "Identifier", "span": { "start": 3027, - "end": 3045, + "end": 3028, "ctxt": 0 }, "value": "x", @@ -9298,7 +9298,7 @@ "type": "Identifier", "span": { "start": 3035, - "end": 3039, + "end": 3036, "ctxt": 0 }, "value": "a", @@ -9563,7 +9563,7 @@ "type": "Identifier", "span": { "start": 3112, - "end": 3130, + "end": 3113, "ctxt": 0 }, "value": "x", @@ -9587,7 +9587,7 @@ "type": "Identifier", "span": { "start": 3120, - "end": 3124, + "end": 3121, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures4.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures4.json index 808ccef46173..bad66a303b96 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures4.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures4.json @@ -420,7 +420,7 @@ "type": "Identifier", "span": { "start": 397, - "end": 406, + "end": 398, "ctxt": 0 }, "value": "x", @@ -524,7 +524,7 @@ "type": "Identifier", "span": { "start": 442, - "end": 467, + "end": 443, "ctxt": 0 }, "value": "x", @@ -548,7 +548,7 @@ "type": "Identifier", "span": { "start": 446, - "end": 455, + "end": 449, "ctxt": 0 }, "value": "arg", @@ -634,7 +634,7 @@ "type": "Identifier", "span": { "start": 473, - "end": 480, + "end": 474, "ctxt": 0 }, "value": "r", @@ -752,7 +752,7 @@ "type": "Identifier", "span": { "start": 516, - "end": 541, + "end": 517, "ctxt": 0 }, "value": "x", @@ -776,7 +776,7 @@ "type": "Identifier", "span": { "start": 520, - "end": 529, + "end": 523, "ctxt": 0 }, "value": "arg", @@ -845,7 +845,7 @@ "type": "Identifier", "span": { "start": 543, - "end": 569, + "end": 544, "ctxt": 0 }, "value": "y", @@ -869,7 +869,7 @@ "type": "Identifier", "span": { "start": 547, - "end": 557, + "end": 551, "ctxt": 0 }, "value": "arg2", @@ -955,7 +955,7 @@ "type": "Identifier", "span": { "start": 575, - "end": 582, + "end": 576, "ctxt": 0 }, "value": "r", @@ -1211,7 +1211,7 @@ "type": "Identifier", "span": { "start": 663, - "end": 681, + "end": 664, "ctxt": 0 }, "value": "x", @@ -1280,7 +1280,7 @@ "type": "Identifier", "span": { "start": 683, - "end": 714, + "end": 684, "ctxt": 0 }, "value": "y", @@ -1469,7 +1469,7 @@ "type": "Identifier", "span": { "start": 747, - "end": 761, + "end": 748, "ctxt": 0 }, "value": "x", @@ -1534,7 +1534,7 @@ "type": "Identifier", "span": { "start": 763, - "end": 781, + "end": 764, "ctxt": 0 }, "value": "y", @@ -1714,7 +1714,7 @@ "type": "Identifier", "span": { "start": 842, - "end": 851, + "end": 843, "ctxt": 0 }, "value": "x", @@ -1777,7 +1777,7 @@ "type": "Identifier", "span": { "start": 885, - "end": 894, + "end": 886, "ctxt": 0 }, "value": "x", @@ -1882,7 +1882,7 @@ "type": "Identifier", "span": { "start": 944, - "end": 971, + "end": 945, "ctxt": 0 }, "value": "x", @@ -2069,7 +2069,7 @@ "type": "Identifier", "span": { "start": 1024, - "end": 1137, + "end": 1025, "ctxt": 0 }, "value": "x", @@ -2101,7 +2101,7 @@ "type": "Identifier", "span": { "start": 1054, - "end": 1063, + "end": 1055, "ctxt": 0 }, "value": "a", @@ -2156,7 +2156,7 @@ "type": "Identifier", "span": { "start": 1099, - "end": 1109, + "end": 1100, "ctxt": 0 }, "value": "a", @@ -2243,7 +2243,7 @@ "type": "Identifier", "span": { "start": 1171, - "end": 1288, + "end": 1172, "ctxt": 0 }, "value": "x", @@ -2275,7 +2275,7 @@ "type": "Identifier", "span": { "start": 1201, - "end": 1211, + "end": 1202, "ctxt": 0 }, "value": "a", @@ -2330,7 +2330,7 @@ "type": "Identifier", "span": { "start": 1248, - "end": 1259, + "end": 1249, "ctxt": 0 }, "value": "a", @@ -2467,7 +2467,7 @@ "type": "Identifier", "span": { "start": 1357, - "end": 1484, + "end": 1358, "ctxt": 0 }, "value": "x", @@ -2499,7 +2499,7 @@ "type": "Identifier", "span": { "start": 1406, - "end": 1410, + "end": 1407, "ctxt": 0 }, "value": "a", @@ -2624,7 +2624,7 @@ "type": "Identifier", "span": { "start": 1457, - "end": 1461, + "end": 1458, "ctxt": 0 }, "value": "a", @@ -2781,7 +2781,7 @@ "type": "Identifier", "span": { "start": 1515, - "end": 1643, + "end": 1516, "ctxt": 0 }, "value": "x", @@ -2813,7 +2813,7 @@ "type": "Identifier", "span": { "start": 1565, - "end": 1569, + "end": 1566, "ctxt": 0 }, "value": "a", @@ -2938,7 +2938,7 @@ "type": "Identifier", "span": { "start": 1616, - "end": 1620, + "end": 1617, "ctxt": 0 }, "value": "a", @@ -3137,7 +3137,7 @@ "type": "Identifier", "span": { "start": 1696, - "end": 1700, + "end": 1697, "ctxt": 0 }, "value": "x", @@ -3392,7 +3392,7 @@ "type": "Identifier", "span": { "start": 1834, - "end": 1850, + "end": 1835, "ctxt": 0 }, "value": "x", @@ -3416,7 +3416,7 @@ "type": "Identifier", "span": { "start": 1838, - "end": 1844, + "end": 1841, "ctxt": 0 }, "value": "arg", @@ -3634,7 +3634,7 @@ "type": "Identifier", "span": { "start": 1856, - "end": 1860, + "end": 1857, "ctxt": 0 }, "value": "r", @@ -3828,7 +3828,7 @@ "type": "Identifier", "span": { "start": 1971, - "end": 1987, + "end": 1972, "ctxt": 0 }, "value": "x", @@ -3852,7 +3852,7 @@ "type": "Identifier", "span": { "start": 1975, - "end": 1981, + "end": 1978, "ctxt": 0 }, "value": "arg", @@ -3921,7 +3921,7 @@ "type": "Identifier", "span": { "start": 1989, - "end": 2021, + "end": 1990, "ctxt": 0 }, "value": "y", @@ -3945,7 +3945,7 @@ "type": "Identifier", "span": { "start": 1993, - "end": 2015, + "end": 1997, "ctxt": 0 }, "value": "arg2", @@ -4154,7 +4154,7 @@ "type": "Identifier", "span": { "start": 2027, - "end": 2031, + "end": 2028, "ctxt": 0 }, "value": "r", @@ -4612,7 +4612,7 @@ "type": "Identifier", "span": { "start": 2268, - "end": 2272, + "end": 2269, "ctxt": 0 }, "value": "x", @@ -4649,7 +4649,7 @@ "type": "Identifier", "span": { "start": 2274, - "end": 2278, + "end": 2275, "ctxt": 0 }, "value": "y", @@ -4891,7 +4891,7 @@ "type": "Identifier", "span": { "start": 2387, - "end": 2401, + "end": 2388, "ctxt": 0 }, "value": "x", @@ -4956,7 +4956,7 @@ "type": "Identifier", "span": { "start": 2403, - "end": 2417, + "end": 2404, "ctxt": 0 }, "value": "y", @@ -5254,7 +5254,7 @@ "type": "Identifier", "span": { "start": 2502, - "end": 2519, + "end": 2503, "ctxt": 0 }, "value": "x", @@ -5571,7 +5571,7 @@ "type": "Identifier", "span": { "start": 2618, - "end": 2635, + "end": 2619, "ctxt": 0 }, "value": "x", @@ -5896,7 +5896,7 @@ "type": "Identifier", "span": { "start": 2727, - "end": 2741, + "end": 2728, "ctxt": 0 }, "value": "x", @@ -5920,7 +5920,7 @@ "type": "Identifier", "span": { "start": 2731, - "end": 2735, + "end": 2732, "ctxt": 0 }, "value": "a", @@ -6184,7 +6184,7 @@ "type": "Identifier", "span": { "start": 2833, - "end": 2847, + "end": 2834, "ctxt": 0 }, "value": "x", @@ -6208,7 +6208,7 @@ "type": "Identifier", "span": { "start": 2837, - "end": 2841, + "end": 2838, "ctxt": 0 }, "value": "a", @@ -6492,7 +6492,7 @@ "type": "Identifier", "span": { "start": 3041, - "end": 3045, + "end": 3042, "ctxt": 0 }, "value": "x", @@ -6648,7 +6648,7 @@ "type": "Identifier", "span": { "start": 3079, - "end": 3083, + "end": 3080, "ctxt": 0 }, "value": "x", @@ -6870,7 +6870,7 @@ "type": "Identifier", "span": { "start": 3219, - "end": 3223, + "end": 3220, "ctxt": 0 }, "value": "x", @@ -7016,7 +7016,7 @@ "type": "Identifier", "span": { "start": 3262, - "end": 3266, + "end": 3263, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures5.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures5.json index 5b99bbc7b06f..33e2f6cf5d10 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures5.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures5.json @@ -366,7 +366,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 252, + "end": 249, "ctxt": 0 }, "value": "x", @@ -522,7 +522,7 @@ "type": "Identifier", "span": { "start": 278, - "end": 282, + "end": 279, "ctxt": 0 }, "value": "x", @@ -668,7 +668,7 @@ "type": "Identifier", "span": { "start": 313, - "end": 317, + "end": 314, "ctxt": 0 }, "value": "x", @@ -806,7 +806,7 @@ "type": "Identifier", "span": { "start": 347, - "end": 351, + "end": 348, "ctxt": 0 }, "value": "x", @@ -843,7 +843,7 @@ "type": "Identifier", "span": { "start": 353, - "end": 357, + "end": 354, "ctxt": 0 }, "value": "y", @@ -1004,7 +1004,7 @@ "type": "Identifier", "span": { "start": 389, - "end": 409, + "end": 390, "ctxt": 0 }, "value": "x", @@ -1028,7 +1028,7 @@ "type": "Identifier", "span": { "start": 397, - "end": 403, + "end": 400, "ctxt": 0 }, "value": "arg", @@ -1232,7 +1232,7 @@ "type": "Identifier", "span": { "start": 446, - "end": 472, + "end": 447, "ctxt": 0 }, "value": "x", @@ -1256,7 +1256,7 @@ "type": "Identifier", "span": { "start": 454, - "end": 460, + "end": 457, "ctxt": 0 }, "value": "arg", @@ -1455,7 +1455,7 @@ "type": "Identifier", "span": { "start": 497, - "end": 510, + "end": 498, "ctxt": 0 }, "value": "x", @@ -1534,7 +1534,7 @@ "type": "Identifier", "span": { "start": 512, - "end": 533, + "end": 513, "ctxt": 0 }, "value": "y", @@ -1775,7 +1775,7 @@ "type": "Identifier", "span": { "start": 561, - "end": 578, + "end": 562, "ctxt": 0 }, "value": "x", @@ -2024,7 +2024,7 @@ "type": "Identifier", "span": { "start": 618, - "end": 635, + "end": 619, "ctxt": 0 }, "value": "x", @@ -2299,7 +2299,7 @@ "type": "Identifier", "span": { "start": 684, - "end": 702, + "end": 685, "ctxt": 0 }, "value": "x", @@ -2323,7 +2323,7 @@ "type": "Identifier", "span": { "start": 692, - "end": 696, + "end": 693, "ctxt": 0 }, "value": "a", @@ -2489,7 +2489,7 @@ "type": "Identifier", "span": { "start": 735, - "end": 753, + "end": 736, "ctxt": 0 }, "value": "x", @@ -2513,7 +2513,7 @@ "type": "Identifier", "span": { "start": 743, - "end": 747, + "end": 744, "ctxt": 0 }, "value": "a", @@ -2729,7 +2729,7 @@ "type": "Identifier", "span": { "start": 792, - "end": 883, + "end": 793, "ctxt": 0 }, "value": "x", @@ -2761,7 +2761,7 @@ "type": "Identifier", "span": { "start": 829, - "end": 833, + "end": 830, "ctxt": 0 }, "value": "a", @@ -2886,7 +2886,7 @@ "type": "Identifier", "span": { "start": 868, - "end": 872, + "end": 869, "ctxt": 0 }, "value": "a", @@ -3043,7 +3043,7 @@ "type": "Identifier", "span": { "start": 902, - "end": 994, + "end": 903, "ctxt": 0 }, "value": "x", @@ -3075,7 +3075,7 @@ "type": "Identifier", "span": { "start": 940, - "end": 944, + "end": 941, "ctxt": 0 }, "value": "a", @@ -3200,7 +3200,7 @@ "type": "Identifier", "span": { "start": 979, - "end": 983, + "end": 980, "ctxt": 0 }, "value": "a", @@ -3399,7 +3399,7 @@ "type": "Identifier", "span": { "start": 1023, - "end": 1027, + "end": 1024, "ctxt": 0 }, "value": "x", @@ -3631,7 +3631,7 @@ "type": "Identifier", "span": { "start": 1080, - "end": 1084, + "end": 1081, "ctxt": 0 }, "value": "x", @@ -3853,7 +3853,7 @@ "type": "Identifier", "span": { "start": 1146, - "end": 1150, + "end": 1147, "ctxt": 0 }, "value": "x", @@ -4077,7 +4077,7 @@ "type": "Identifier", "span": { "start": 1208, - "end": 1212, + "end": 1209, "ctxt": 0 }, "value": "x", @@ -4114,7 +4114,7 @@ "type": "Identifier", "span": { "start": 1214, - "end": 1218, + "end": 1215, "ctxt": 0 }, "value": "y", @@ -4351,7 +4351,7 @@ "type": "Identifier", "span": { "start": 1281, - "end": 1301, + "end": 1282, "ctxt": 0 }, "value": "x", @@ -4375,7 +4375,7 @@ "type": "Identifier", "span": { "start": 1289, - "end": 1295, + "end": 1292, "ctxt": 0 }, "value": "arg", @@ -4655,7 +4655,7 @@ "type": "Identifier", "span": { "start": 1388, - "end": 1408, + "end": 1389, "ctxt": 0 }, "value": "x", @@ -4679,7 +4679,7 @@ "type": "Identifier", "span": { "start": 1396, - "end": 1402, + "end": 1399, "ctxt": 0 }, "value": "arg", @@ -4995,7 +4995,7 @@ "type": "Identifier", "span": { "start": 1467, - "end": 1480, + "end": 1468, "ctxt": 0 }, "value": "x", @@ -5074,7 +5074,7 @@ "type": "Identifier", "span": { "start": 1482, - "end": 1503, + "end": 1483, "ctxt": 0 }, "value": "y", @@ -5414,7 +5414,7 @@ "type": "Identifier", "span": { "start": 1569, - "end": 1587, + "end": 1570, "ctxt": 0 }, "value": "x", @@ -5762,7 +5762,7 @@ "type": "Identifier", "span": { "start": 1649, - "end": 1666, + "end": 1650, "ctxt": 0 }, "value": "x", @@ -6087,7 +6087,7 @@ "type": "Identifier", "span": { "start": 1728, - "end": 1746, + "end": 1729, "ctxt": 0 }, "value": "x", @@ -6111,7 +6111,7 @@ "type": "Identifier", "span": { "start": 1736, - "end": 1740, + "end": 1737, "ctxt": 0 }, "value": "a", @@ -6376,7 +6376,7 @@ "type": "Identifier", "span": { "start": 1805, - "end": 1826, + "end": 1806, "ctxt": 0 }, "value": "x", @@ -6400,7 +6400,7 @@ "type": "Identifier", "span": { "start": 1816, - "end": 1820, + "end": 1817, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures6.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures6.json index b863e7b10a11..2bdd0c0aa04e 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures6.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures6.json @@ -390,7 +390,7 @@ "type": "Identifier", "span": { "start": 280, - "end": 284, + "end": 281, "ctxt": 0 }, "value": "x", @@ -538,7 +538,7 @@ "type": "Identifier", "span": { "start": 310, - "end": 314, + "end": 311, "ctxt": 0 }, "value": "x", @@ -676,7 +676,7 @@ "type": "Identifier", "span": { "start": 345, - "end": 349, + "end": 346, "ctxt": 0 }, "value": "x", @@ -806,7 +806,7 @@ "type": "Identifier", "span": { "start": 379, - "end": 383, + "end": 380, "ctxt": 0 }, "value": "x", @@ -843,7 +843,7 @@ "type": "Identifier", "span": { "start": 385, - "end": 389, + "end": 386, "ctxt": 0 }, "value": "y", @@ -996,7 +996,7 @@ "type": "Identifier", "span": { "start": 421, - "end": 437, + "end": 422, "ctxt": 0 }, "value": "x", @@ -1020,7 +1020,7 @@ "type": "Identifier", "span": { "start": 425, - "end": 431, + "end": 428, "ctxt": 0 }, "value": "arg", @@ -1215,7 +1215,7 @@ "type": "Identifier", "span": { "start": 474, - "end": 496, + "end": 475, "ctxt": 0 }, "value": "x", @@ -1239,7 +1239,7 @@ "type": "Identifier", "span": { "start": 478, - "end": 484, + "end": 481, "ctxt": 0 }, "value": "arg", @@ -1429,7 +1429,7 @@ "type": "Identifier", "span": { "start": 521, - "end": 534, + "end": 522, "ctxt": 0 }, "value": "x", @@ -1508,7 +1508,7 @@ "type": "Identifier", "span": { "start": 536, - "end": 557, + "end": 537, "ctxt": 0 }, "value": "y", @@ -1741,7 +1741,7 @@ "type": "Identifier", "span": { "start": 585, - "end": 602, + "end": 586, "ctxt": 0 }, "value": "x", @@ -1982,7 +1982,7 @@ "type": "Identifier", "span": { "start": 642, - "end": 659, + "end": 643, "ctxt": 0 }, "value": "x", @@ -2307,7 +2307,7 @@ "type": "Identifier", "span": { "start": 698, - "end": 702, + "end": 699, "ctxt": 0 }, "value": "x", @@ -2574,7 +2574,7 @@ "type": "Identifier", "span": { "start": 747, - "end": 751, + "end": 748, "ctxt": 0 }, "value": "x", @@ -2831,7 +2831,7 @@ "type": "Identifier", "span": { "start": 805, - "end": 809, + "end": 806, "ctxt": 0 }, "value": "x", @@ -3090,7 +3090,7 @@ "type": "Identifier", "span": { "start": 858, - "end": 862, + "end": 859, "ctxt": 0 }, "value": "x", @@ -3127,7 +3127,7 @@ "type": "Identifier", "span": { "start": 864, - "end": 868, + "end": 865, "ctxt": 0 }, "value": "y", @@ -3399,7 +3399,7 @@ "type": "Identifier", "span": { "start": 923, - "end": 939, + "end": 924, "ctxt": 0 }, "value": "x", @@ -3423,7 +3423,7 @@ "type": "Identifier", "span": { "start": 927, - "end": 933, + "end": 930, "ctxt": 0 }, "value": "arg", @@ -3737,7 +3737,7 @@ "type": "Identifier", "span": { "start": 990, - "end": 1003, + "end": 991, "ctxt": 0 }, "value": "x", @@ -3816,7 +3816,7 @@ "type": "Identifier", "span": { "start": 1005, - "end": 1026, + "end": 1006, "ctxt": 0 }, "value": "y", @@ -4191,7 +4191,7 @@ "type": "Identifier", "span": { "start": 1081, - "end": 1098, + "end": 1082, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignaturesWithOptionalParameters.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignaturesWithOptionalParameters.json index da6718aebca5..7331e7f3826b 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignaturesWithOptionalParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignaturesWithOptionalParameters.json @@ -135,7 +135,7 @@ "type": "Identifier", "span": { "start": 159, - "end": 169, + "end": 160, "ctxt": 0 }, "value": "x", @@ -223,7 +223,7 @@ "type": "Identifier", "span": { "start": 195, - "end": 204, + "end": 196, "ctxt": 0 }, "value": "x", @@ -311,7 +311,7 @@ "type": "Identifier", "span": { "start": 230, - "end": 239, + "end": 231, "ctxt": 0 }, "value": "x", @@ -338,7 +338,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 251, + "end": 242, "ctxt": 0 }, "value": "y", @@ -426,7 +426,7 @@ "type": "Identifier", "span": { "start": 277, - "end": 287, + "end": 278, "ctxt": 0 }, "value": "x", @@ -453,7 +453,7 @@ "type": "Identifier", "span": { "start": 289, - "end": 299, + "end": 290, "ctxt": 0 }, "value": "y", @@ -541,7 +541,7 @@ "type": "Identifier", "span": { "start": 325, - "end": 334, + "end": 326, "ctxt": 0 }, "value": "x", @@ -568,7 +568,7 @@ "type": "Identifier", "span": { "start": 336, - "end": 345, + "end": 337, "ctxt": 0 }, "value": "y", @@ -1126,7 +1126,7 @@ "type": "Identifier", "span": { "start": 541, - "end": 551, + "end": 542, "ctxt": 0 }, "value": "x", @@ -1558,7 +1558,7 @@ "type": "Identifier", "span": { "start": 707, - "end": 716, + "end": 708, "ctxt": 0 }, "value": "x", @@ -1990,7 +1990,7 @@ "type": "Identifier", "span": { "start": 872, - "end": 881, + "end": 873, "ctxt": 0 }, "value": "x", @@ -2017,7 +2017,7 @@ "type": "Identifier", "span": { "start": 883, - "end": 893, + "end": 884, "ctxt": 0 }, "value": "y", @@ -2449,7 +2449,7 @@ "type": "Identifier", "span": { "start": 1045, - "end": 1055, + "end": 1046, "ctxt": 0 }, "value": "x", @@ -2476,7 +2476,7 @@ "type": "Identifier", "span": { "start": 1057, - "end": 1067, + "end": 1058, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithDiscriminatedUnion.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithDiscriminatedUnion.json index fda92e837d5b..0a66945a81c9 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithDiscriminatedUnion.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithDiscriminatedUnion.json @@ -5705,7 +5705,7 @@ "type": "Identifier", "span": { "start": 3029, - "end": 3047, + "end": 3032, "ctxt": 0 }, "value": "val", @@ -5815,7 +5815,7 @@ "type": "Identifier", "span": { "start": 3081, - "end": 3124, + "end": 3093, "ctxt": 0 }, "value": "currentColor", @@ -7061,7 +7061,7 @@ "type": "Identifier", "span": { "start": 4046, - "end": 4066, + "end": 4055, "ctxt": 0 }, "value": "thingType", @@ -7390,7 +7390,7 @@ "type": "Identifier", "span": { "start": 4313, - "end": 4327, + "end": 4319, "ctxt": 0 }, "value": "action", @@ -7889,7 +7889,7 @@ "type": "Identifier", "span": { "start": 4650, - "end": 4658, + "end": 4654, "ctxt": 0 }, "value": "obj1", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignatures.json index c645b431d62a..3eb3ee933b68 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignatures.json @@ -51,7 +51,7 @@ "type": "Identifier", "span": { "start": 149, - "end": 153, + "end": 150, "ctxt": 0 }, "value": "x", @@ -246,7 +246,7 @@ "type": "Identifier", "span": { "start": 196, - "end": 202, + "end": 197, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignatures2.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignatures2.json index 8c2a61c1a811..68f9e06243d8 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignatures2.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 128, - "end": 132, + "end": 129, "ctxt": 0 }, "value": "x", @@ -241,7 +241,7 @@ "type": "Identifier", "span": { "start": 178, - "end": 182, + "end": 179, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignatures3.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignatures3.json index 2190a3861a2b..ee04fed28305 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignatures3.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignatures3.json @@ -101,7 +101,7 @@ "type": "Identifier", "span": { "start": 142, - "end": 166, + "end": 143, "ctxt": 0 }, "value": "f", @@ -125,7 +125,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 150, + "end": 147, "ctxt": 0 }, "value": "x", @@ -179,7 +179,7 @@ "type": "Identifier", "span": { "start": 156, - "end": 160, + "end": 157, "ctxt": 0 }, "value": "y", @@ -356,7 +356,7 @@ "type": "Identifier", "span": { "start": 185, - "end": 189, + "end": 186, "ctxt": 0 }, "value": "x", @@ -442,7 +442,7 @@ "type": "Identifier", "span": { "start": 198, - "end": 202, + "end": 199, "ctxt": 0 }, "value": "y", @@ -638,7 +638,7 @@ "type": "Identifier", "span": { "start": 226, - "end": 230, + "end": 227, "ctxt": 0 }, "value": "x", @@ -724,7 +724,7 @@ "type": "Identifier", "span": { "start": 239, - "end": 243, + "end": 240, "ctxt": 0 }, "value": "y", @@ -818,7 +818,7 @@ "type": "Identifier", "span": { "start": 254, - "end": 278, + "end": 255, "ctxt": 0 }, "value": "f", @@ -842,7 +842,7 @@ "type": "Identifier", "span": { "start": 258, - "end": 262, + "end": 259, "ctxt": 0 }, "value": "x", @@ -896,7 +896,7 @@ "type": "Identifier", "span": { "start": 268, - "end": 272, + "end": 269, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignatures4.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignatures4.json index 50a802371758..390a12c69f40 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignatures4.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignatures4.json @@ -165,7 +165,7 @@ "type": "Identifier", "span": { "start": 123, - "end": 127, + "end": 124, "ctxt": 0 }, "value": "z", @@ -348,7 +348,7 @@ "type": "Identifier", "span": { "start": 166, - "end": 170, + "end": 167, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.json index ef3c34652235..3740ed9a3c97 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.json @@ -163,7 +163,7 @@ "type": "Identifier", "span": { "start": 192, - "end": 197, + "end": 193, "ctxt": 0 }, "value": "x", @@ -274,7 +274,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 222, + "end": 219, "ctxt": 0 }, "value": "x", @@ -385,7 +385,7 @@ "type": "Identifier", "span": { "start": 243, - "end": 247, + "end": 244, "ctxt": 0 }, "value": "x", @@ -422,7 +422,7 @@ "type": "Identifier", "span": { "start": 249, - "end": 254, + "end": 250, "ctxt": 0 }, "value": "y", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 275, - "end": 280, + "end": 276, "ctxt": 0 }, "value": "x", @@ -570,7 +570,7 @@ "type": "Identifier", "span": { "start": 282, - "end": 287, + "end": 283, "ctxt": 0 }, "value": "y", @@ -2757,7 +2757,7 @@ "type": "Identifier", "span": { "start": 1697, - "end": 1702, + "end": 1698, "ctxt": 0 }, "value": "x", @@ -2900,7 +2900,7 @@ "type": "Identifier", "span": { "start": 1726, - "end": 1730, + "end": 1727, "ctxt": 0 }, "value": "x", @@ -3043,7 +3043,7 @@ "type": "Identifier", "span": { "start": 1754, - "end": 1758, + "end": 1755, "ctxt": 0 }, "value": "x", @@ -3080,7 +3080,7 @@ "type": "Identifier", "span": { "start": 1760, - "end": 1765, + "end": 1761, "ctxt": 0 }, "value": "y", @@ -3223,7 +3223,7 @@ "type": "Identifier", "span": { "start": 1789, - "end": 1794, + "end": 1790, "ctxt": 0 }, "value": "x", @@ -3260,7 +3260,7 @@ "type": "Identifier", "span": { "start": 1796, - "end": 1801, + "end": 1797, "ctxt": 0 }, "value": "y", @@ -3503,7 +3503,7 @@ "type": "Identifier", "span": { "start": 1871, - "end": 1876, + "end": 1872, "ctxt": 0 }, "value": "x", @@ -3614,7 +3614,7 @@ "type": "Identifier", "span": { "start": 1897, - "end": 1901, + "end": 1898, "ctxt": 0 }, "value": "x", @@ -3725,7 +3725,7 @@ "type": "Identifier", "span": { "start": 1922, - "end": 1926, + "end": 1923, "ctxt": 0 }, "value": "x", @@ -3762,7 +3762,7 @@ "type": "Identifier", "span": { "start": 1928, - "end": 1933, + "end": 1929, "ctxt": 0 }, "value": "y", @@ -3873,7 +3873,7 @@ "type": "Identifier", "span": { "start": 1954, - "end": 1959, + "end": 1955, "ctxt": 0 }, "value": "x", @@ -3910,7 +3910,7 @@ "type": "Identifier", "span": { "start": 1961, - "end": 1966, + "end": 1962, "ctxt": 0 }, "value": "y", @@ -6253,7 +6253,7 @@ "type": "Identifier", "span": { "start": 2695, - "end": 2700, + "end": 2696, "ctxt": 0 }, "value": "x", @@ -6396,7 +6396,7 @@ "type": "Identifier", "span": { "start": 2724, - "end": 2728, + "end": 2725, "ctxt": 0 }, "value": "x", @@ -6539,7 +6539,7 @@ "type": "Identifier", "span": { "start": 2752, - "end": 2756, + "end": 2753, "ctxt": 0 }, "value": "x", @@ -6576,7 +6576,7 @@ "type": "Identifier", "span": { "start": 2758, - "end": 2763, + "end": 2759, "ctxt": 0 }, "value": "y", @@ -6719,7 +6719,7 @@ "type": "Identifier", "span": { "start": 2787, - "end": 2792, + "end": 2788, "ctxt": 0 }, "value": "x", @@ -6756,7 +6756,7 @@ "type": "Identifier", "span": { "start": 2794, - "end": 2799, + "end": 2795, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentGenericLookupTypeNarrowing.json b/crates/swc_ecma_parser/tests/tsc/assignmentGenericLookupTypeNarrowing.json index c8dad43549ce..0a107b4b43d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentGenericLookupTypeNarrowing.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentGenericLookupTypeNarrowing.json @@ -248,7 +248,7 @@ "type": "Identifier", "span": { "start": 123, - "end": 127, + "end": 124, "ctxt": 0 }, "value": "x", @@ -398,7 +398,7 @@ "type": "Identifier", "span": { "start": 171, - "end": 177, + "end": 174, "ctxt": 0 }, "value": "key", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentLHSIsReference.json b/crates/swc_ecma_parser/tests/tsc/assignmentLHSIsReference.json index 115c86a5c520..338bb64dd085 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentLHSIsReference.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentLHSIsReference.json @@ -168,7 +168,7 @@ "type": "Identifier", "span": { "start": 99, - "end": 109, + "end": 101, "ctxt": 0 }, "value": "x2", @@ -532,7 +532,7 @@ "type": "Identifier", "span": { "start": 291, - "end": 301, + "end": 293, "ctxt": 0 }, "value": "x4", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentToParenthesizedIdentifiers.json b/crates/swc_ecma_parser/tests/tsc/assignmentToParenthesizedIdentifiers.json index 6f6d0832d3aa..b63dc8d2d3fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentToParenthesizedIdentifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentToParenthesizedIdentifiers.json @@ -1654,7 +1654,7 @@ "type": "Identifier", "span": { "start": 685, - "end": 694, + "end": 686, "ctxt": 0 }, "value": "x", @@ -1690,7 +1690,7 @@ "type": "Identifier", "span": { "start": 696, - "end": 712, + "end": 697, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/asyncGeneratorGenericNonWrappedReturn.json b/crates/swc_ecma_parser/tests/tsc/asyncGeneratorGenericNonWrappedReturn.json index b7c4b60b3ebf..0e0a0d7f6403 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncGeneratorGenericNonWrappedReturn.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncGeneratorGenericNonWrappedReturn.json @@ -39,7 +39,7 @@ "type": "Identifier", "span": { "start": 97, - "end": 101, + "end": 98, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es6.json index aa19bdf31f5f..deddf3dc92d2 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es6.json @@ -4270,7 +4270,7 @@ "type": "Identifier", "span": { "start": 4454, - "end": 4460, + "end": 4455, "ctxt": 0 }, "value": "x", @@ -4425,7 +4425,7 @@ "type": "Identifier", "span": { "start": 4510, - "end": 4519, + "end": 4511, "ctxt": 0 }, "value": "x", @@ -4524,7 +4524,7 @@ "type": "Identifier", "span": { "start": 4552, - "end": 4558, + "end": 4553, "ctxt": 0 }, "value": "x", @@ -4679,7 +4679,7 @@ "type": "Identifier", "span": { "start": 4622, - "end": 4631, + "end": 4623, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/asyncUnParenthesizedArrowFunction_es2017.json b/crates/swc_ecma_parser/tests/tsc/asyncUnParenthesizedArrowFunction_es2017.json index f1f8b8784b63..e9cf0dbfe869 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncUnParenthesizedArrowFunction_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncUnParenthesizedArrowFunction_es2017.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 80, - "end": 86, + "end": 81, "ctxt": 0 }, "value": "i", diff --git a/crates/swc_ecma_parser/tests/tsc/asyncUnParenthesizedArrowFunction_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncUnParenthesizedArrowFunction_es5.json index b54c64a0f240..e77601d161bf 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncUnParenthesizedArrowFunction_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncUnParenthesizedArrowFunction_es5.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 105, - "end": 111, + "end": 106, "ctxt": 0 }, "value": "i", diff --git a/crates/swc_ecma_parser/tests/tsc/asyncUnParenthesizedArrowFunction_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncUnParenthesizedArrowFunction_es6.json index 0214a17a4143..3e573166d04b 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncUnParenthesizedArrowFunction_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncUnParenthesizedArrowFunction_es6.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 77, - "end": 83, + "end": 78, "ctxt": 0 }, "value": "i", diff --git a/crates/swc_ecma_parser/tests/tsc/asyncWithVarShadowing_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncWithVarShadowing_es6.json index 6489ab88e7ba..d49ef5275eca 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncWithVarShadowing_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncWithVarShadowing_es6.json @@ -3976,7 +3976,7 @@ "type": "Identifier", "span": { "start": 1957, - "end": 1966, + "end": 1958, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression1_es2017.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression1_es2017.json index ffeeb4ce8fda..e1d933c32baa 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression1_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression1_es2017.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 134, + "end": 125, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 136, - "end": 149, + "end": 140, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 164, + "end": 155, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 206, + "end": 197, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 208, - "end": 221, + "end": 212, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 223, - "end": 236, + "end": 227, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 276, - "end": 289, + "end": 280, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 291, - "end": 304, + "end": 295, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 306, - "end": 319, + "end": 310, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 374, + "end": 365, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 376, - "end": 389, + "end": 380, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 391, - "end": 404, + "end": 395, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression1_es5.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression1_es5.json index 927184668b64..c0cc3f66610c 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression1_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression1_es5.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 159, + "end": 150, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 161, - "end": 174, + "end": 165, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 176, - "end": 189, + "end": 180, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 231, + "end": 222, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 233, - "end": 246, + "end": 237, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 261, + "end": 252, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 301, - "end": 314, + "end": 305, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 329, + "end": 320, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 331, - "end": 344, + "end": 335, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 386, - "end": 399, + "end": 390, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 401, - "end": 414, + "end": 405, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 416, - "end": 429, + "end": 420, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression1_es6.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression1_es6.json index ecca9e005877..fba0b065ff4f 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression1_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression1_es6.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 118, - "end": 131, + "end": 122, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 146, + "end": 137, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 161, + "end": 152, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 190, - "end": 203, + "end": 194, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 205, - "end": 218, + "end": 209, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 220, - "end": 233, + "end": 224, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 273, - "end": 286, + "end": 277, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 288, - "end": 301, + "end": 292, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 303, - "end": 316, + "end": 307, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 371, + "end": 362, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 373, - "end": 386, + "end": 377, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 388, - "end": 401, + "end": 392, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression2_es2017.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression2_es2017.json index 27130e4d907e..f4f3d041fbd6 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression2_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression2_es2017.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 134, + "end": 125, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 136, - "end": 149, + "end": 140, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 164, + "end": 155, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 206, + "end": 197, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 208, - "end": 221, + "end": 212, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 223, - "end": 236, + "end": 227, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 276, - "end": 289, + "end": 280, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 291, - "end": 304, + "end": 295, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 306, - "end": 319, + "end": 310, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 374, + "end": 365, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 376, - "end": 389, + "end": 380, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 391, - "end": 404, + "end": 395, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression2_es5.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression2_es5.json index d6297f992348..cb8d4de3e953 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression2_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression2_es5.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 159, + "end": 150, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 161, - "end": 174, + "end": 165, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 176, - "end": 189, + "end": 180, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 231, + "end": 222, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 233, - "end": 246, + "end": 237, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 261, + "end": 252, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 301, - "end": 314, + "end": 305, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 329, + "end": 320, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 331, - "end": 344, + "end": 335, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 386, - "end": 399, + "end": 390, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 401, - "end": 414, + "end": 405, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 416, - "end": 429, + "end": 420, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression2_es6.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression2_es6.json index 3d045233ac4c..49c2eb4fb741 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression2_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression2_es6.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 118, - "end": 131, + "end": 122, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 146, + "end": 137, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 161, + "end": 152, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 190, - "end": 203, + "end": 194, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 205, - "end": 218, + "end": 209, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 220, - "end": 233, + "end": 224, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 273, - "end": 286, + "end": 277, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 288, - "end": 301, + "end": 292, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 303, - "end": 316, + "end": 307, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 371, + "end": 362, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 373, - "end": 386, + "end": 377, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 388, - "end": 401, + "end": 392, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression3_es2017.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression3_es2017.json index b70a57b7fc04..df891820ec68 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression3_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression3_es2017.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 134, + "end": 125, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 136, - "end": 149, + "end": 140, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 164, + "end": 155, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 206, + "end": 197, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 208, - "end": 221, + "end": 212, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 223, - "end": 236, + "end": 227, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 276, - "end": 289, + "end": 280, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 291, - "end": 304, + "end": 295, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 306, - "end": 319, + "end": 310, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 374, + "end": 365, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 376, - "end": 389, + "end": 380, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 391, - "end": 404, + "end": 395, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression3_es5.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression3_es5.json index aee452747918..76a34903e28a 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression3_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression3_es5.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 159, + "end": 150, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 161, - "end": 174, + "end": 165, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 176, - "end": 189, + "end": 180, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 231, + "end": 222, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 233, - "end": 246, + "end": 237, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 261, + "end": 252, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 301, - "end": 314, + "end": 305, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 329, + "end": 320, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 331, - "end": 344, + "end": 335, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 386, - "end": 399, + "end": 390, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 401, - "end": 414, + "end": 405, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 416, - "end": 429, + "end": 420, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression3_es6.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression3_es6.json index 080b78e5b7f6..26961f081e02 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression3_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression3_es6.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 118, - "end": 131, + "end": 122, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 146, + "end": 137, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 161, + "end": 152, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 190, - "end": 203, + "end": 194, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 205, - "end": 218, + "end": 209, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 220, - "end": 233, + "end": 224, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 273, - "end": 286, + "end": 277, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 288, - "end": 301, + "end": 292, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 303, - "end": 316, + "end": 307, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 371, + "end": 362, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 373, - "end": 386, + "end": 377, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 388, - "end": 401, + "end": 392, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression4_es2017.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression4_es2017.json index a1b7bdb26117..e46c86f2b1b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression4_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression4_es2017.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 134, + "end": 125, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 136, - "end": 149, + "end": 140, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 164, + "end": 155, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 206, + "end": 197, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 208, - "end": 221, + "end": 212, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 223, - "end": 236, + "end": 227, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 276, - "end": 289, + "end": 280, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 291, - "end": 304, + "end": 295, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 306, - "end": 319, + "end": 310, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 374, + "end": 365, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 376, - "end": 389, + "end": 380, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 391, - "end": 404, + "end": 395, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression4_es5.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression4_es5.json index 935cba2fa94e..e0c8eeaa15e2 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression4_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression4_es5.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 159, + "end": 150, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 161, - "end": 174, + "end": 165, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 176, - "end": 189, + "end": 180, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 231, + "end": 222, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 233, - "end": 246, + "end": 237, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 261, + "end": 252, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 301, - "end": 314, + "end": 305, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 329, + "end": 320, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 331, - "end": 344, + "end": 335, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 386, - "end": 399, + "end": 390, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 401, - "end": 414, + "end": 405, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 416, - "end": 429, + "end": 420, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression4_es6.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression4_es6.json index f6597aa61559..6857e5b6c393 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression4_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression4_es6.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 118, - "end": 131, + "end": 122, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 146, + "end": 137, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 161, + "end": 152, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 190, - "end": 203, + "end": 194, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 205, - "end": 218, + "end": 209, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 220, - "end": 233, + "end": 224, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 273, - "end": 286, + "end": 277, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 288, - "end": 301, + "end": 292, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 303, - "end": 316, + "end": 307, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 371, + "end": 362, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 373, - "end": 386, + "end": 377, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 388, - "end": 401, + "end": 392, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es2017.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es2017.json index 1db077a12de6..349df0371431 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es2017.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 134, + "end": 125, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 136, - "end": 149, + "end": 140, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 164, + "end": 155, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 206, + "end": 197, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 208, - "end": 221, + "end": 212, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 223, - "end": 236, + "end": 227, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 276, - "end": 289, + "end": 280, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 291, - "end": 304, + "end": 295, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 306, - "end": 319, + "end": 310, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 374, + "end": 365, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 376, - "end": 389, + "end": 380, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 391, - "end": 404, + "end": 395, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es5.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es5.json index 4f47124c9d07..d6b4661446cc 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es5.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 159, + "end": 150, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 161, - "end": 174, + "end": 165, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 176, - "end": 189, + "end": 180, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 231, + "end": 222, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 233, - "end": 246, + "end": 237, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 261, + "end": 252, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 301, - "end": 314, + "end": 305, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 329, + "end": 320, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 331, - "end": 344, + "end": 335, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 386, - "end": 399, + "end": 390, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 401, - "end": 414, + "end": 405, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 416, - "end": 429, + "end": 420, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es6.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es6.json index fce2ca9502f7..3757cd551579 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es6.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 118, - "end": 131, + "end": 122, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 146, + "end": 137, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 161, + "end": 152, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 190, - "end": 203, + "end": 194, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 205, - "end": 218, + "end": 209, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 220, - "end": 233, + "end": 224, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 273, - "end": 286, + "end": 277, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 288, - "end": 301, + "end": 292, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 303, - "end": 316, + "end": 307, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 371, + "end": 362, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 373, - "end": 386, + "end": 377, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 388, - "end": 401, + "end": 392, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es2017.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es2017.json index f0f214b9d60c..fad11b065494 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es2017.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 134, + "end": 125, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 136, - "end": 149, + "end": 140, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 164, + "end": 155, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 206, + "end": 197, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 208, - "end": 221, + "end": 212, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 223, - "end": 236, + "end": 227, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 276, - "end": 289, + "end": 280, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 291, - "end": 304, + "end": 295, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 306, - "end": 319, + "end": 310, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 374, + "end": 365, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 376, - "end": 389, + "end": 380, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 391, - "end": 404, + "end": 395, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es5.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es5.json index 99a75e21bc0a..19def506173e 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es5.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 159, + "end": 150, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 161, - "end": 174, + "end": 165, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 176, - "end": 189, + "end": 180, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 231, + "end": 222, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 233, - "end": 246, + "end": 237, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 261, + "end": 252, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 301, - "end": 314, + "end": 305, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 329, + "end": 320, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 331, - "end": 344, + "end": 335, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 386, - "end": 399, + "end": 390, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 401, - "end": 414, + "end": 405, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 416, - "end": 429, + "end": 420, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es6.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es6.json index 0c321d9f69c7..db394582bf60 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es6.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 118, - "end": 131, + "end": 122, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 146, + "end": 137, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 161, + "end": 152, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 190, - "end": 203, + "end": 194, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 205, - "end": 218, + "end": 209, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 220, - "end": 233, + "end": 224, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 273, - "end": 286, + "end": 277, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 288, - "end": 301, + "end": 292, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 303, - "end": 316, + "end": 307, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 371, + "end": 362, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 373, - "end": 386, + "end": 377, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 388, - "end": 401, + "end": 392, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es2017.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es2017.json index a619f520f6a4..9d026c65c5a3 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es2017.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 134, + "end": 125, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 136, - "end": 149, + "end": 140, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 164, + "end": 155, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 206, + "end": 197, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 208, - "end": 221, + "end": 212, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 223, - "end": 236, + "end": 227, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 276, - "end": 289, + "end": 280, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 291, - "end": 304, + "end": 295, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 306, - "end": 319, + "end": 310, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 374, + "end": 365, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 376, - "end": 389, + "end": 380, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 391, - "end": 404, + "end": 395, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es5.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es5.json index 62b8064db299..1f3021f5ba92 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es5.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 159, + "end": 150, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 161, - "end": 174, + "end": 165, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 176, - "end": 189, + "end": 180, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 231, + "end": 222, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 233, - "end": 246, + "end": 237, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 261, + "end": 252, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 301, - "end": 314, + "end": 305, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 329, + "end": 320, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 331, - "end": 344, + "end": 335, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 386, - "end": 399, + "end": 390, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 401, - "end": 414, + "end": 405, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 416, - "end": 429, + "end": 420, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es6.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es6.json index b2a05d561e56..9e6d33ebe2b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es6.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 118, - "end": 131, + "end": 122, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 146, + "end": 137, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 161, + "end": 152, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 190, - "end": 203, + "end": 194, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 205, - "end": 218, + "end": 209, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 220, - "end": 233, + "end": 224, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 273, - "end": 286, + "end": 277, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 288, - "end": 301, + "end": 292, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 303, - "end": 316, + "end": 307, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 371, + "end": 362, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 373, - "end": 386, + "end": 377, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 388, - "end": 401, + "end": 392, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es2017.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es2017.json index 9a75f0aec2f3..6ac60f9e0813 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es2017.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 134, + "end": 125, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 136, - "end": 149, + "end": 140, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 164, + "end": 155, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 206, + "end": 197, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 208, - "end": 221, + "end": 212, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 223, - "end": 236, + "end": 227, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 276, - "end": 289, + "end": 280, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 291, - "end": 304, + "end": 295, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 306, - "end": 319, + "end": 310, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 374, + "end": 365, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 376, - "end": 389, + "end": 380, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 391, - "end": 404, + "end": 395, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es5.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es5.json index 53a1129f2d60..602e10477a42 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es5.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 159, + "end": 150, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 161, - "end": 174, + "end": 165, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 176, - "end": 189, + "end": 180, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 231, + "end": 222, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 233, - "end": 246, + "end": 237, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 261, + "end": 252, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 301, - "end": 314, + "end": 305, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 329, + "end": 320, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 331, - "end": 344, + "end": 335, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 386, - "end": 399, + "end": 390, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 401, - "end": 414, + "end": 405, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 416, - "end": 429, + "end": 420, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es6.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es6.json index 208dd79dd7d3..e79daf1a3556 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es6.json @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 118, - "end": 131, + "end": 122, "ctxt": 0 }, "value": "arg0", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 146, + "end": 137, "ctxt": 0 }, "value": "arg1", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 161, + "end": 152, "ctxt": 0 }, "value": "arg2", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 190, - "end": 203, + "end": 194, "ctxt": 0 }, "value": "arg0", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 205, - "end": 218, + "end": 209, "ctxt": 0 }, "value": "arg1", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 220, - "end": 233, + "end": 224, "ctxt": 0 }, "value": "arg2", @@ -533,7 +533,7 @@ "type": "Identifier", "span": { "start": 273, - "end": 286, + "end": 277, "ctxt": 0 }, "value": "arg0", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 288, - "end": 301, + "end": 292, "ctxt": 0 }, "value": "arg1", @@ -587,7 +587,7 @@ "type": "Identifier", "span": { "start": 303, - "end": 316, + "end": 307, "ctxt": 0 }, "value": "arg2", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 371, + "end": 362, "ctxt": 0 }, "value": "arg0", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 373, - "end": 386, + "end": 377, "ctxt": 0 }, "value": "arg1", @@ -787,7 +787,7 @@ "type": "Identifier", "span": { "start": 388, - "end": 401, + "end": 392, "ctxt": 0 }, "value": "arg2", diff --git a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions.json b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions.json index 9284940e9469..dbaf9c2dca13 100644 --- a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions.json +++ b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions.json @@ -1160,7 +1160,7 @@ "type": "Identifier", "span": { "start": 629, - "end": 638, + "end": 630, "ctxt": 0 }, "value": "x", @@ -1695,7 +1695,7 @@ "type": "Identifier", "span": { "start": 932, - "end": 936, + "end": 933, "ctxt": 0 }, "value": "t", @@ -1741,7 +1741,7 @@ "type": "Identifier", "span": { "start": 938, - "end": 942, + "end": 939, "ctxt": 0 }, "value": "u", diff --git a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions2.json b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions2.json index e070cea1040e..6ffeadb1d811 100644 --- a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions2.json +++ b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions2.json @@ -581,7 +581,7 @@ "type": "Identifier", "span": { "start": 425, - "end": 429, + "end": 426, "ctxt": 0 }, "value": "t", @@ -627,7 +627,7 @@ "type": "Identifier", "span": { "start": 431, - "end": 435, + "end": 432, "ctxt": 0 }, "value": "u", @@ -809,7 +809,7 @@ "type": "Identifier", "span": { "start": 497, - "end": 501, + "end": 498, "ctxt": 0 }, "value": "t", @@ -855,7 +855,7 @@ "type": "Identifier", "span": { "start": 503, - "end": 507, + "end": 504, "ctxt": 0 }, "value": "u", @@ -1055,7 +1055,7 @@ "type": "Identifier", "span": { "start": 654, - "end": 658, + "end": 655, "ctxt": 0 }, "value": "t", @@ -1101,7 +1101,7 @@ "type": "Identifier", "span": { "start": 660, - "end": 664, + "end": 661, "ctxt": 0 }, "value": "u", diff --git a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple.json b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple.json index 6f2410ccbbc5..0ed1c01e64a2 100644 --- a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple.json +++ b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 13, - "end": 22, + "end": 14, "ctxt": 0 }, "value": "x", @@ -138,7 +138,7 @@ "type": "Identifier", "span": { "start": 63, - "end": 72, + "end": 64, "ctxt": 0 }, "value": "x", @@ -244,7 +244,7 @@ "type": "Identifier", "span": { "start": 110, - "end": 119, + "end": 111, "ctxt": 0 }, "value": "x", @@ -466,7 +466,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 202, + "end": 194, "ctxt": 0 }, "value": "x", @@ -530,7 +530,7 @@ "type": "Identifier", "span": { "start": 216, - "end": 225, + "end": 217, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/bivariantInferences.json b/crates/swc_ecma_parser/tests/tsc/bivariantInferences.json index 9f850665ab76..e5d6ea6f50a3 100644 --- a/crates/swc_ecma_parser/tests/tsc/bivariantInferences.json +++ b/crates/swc_ecma_parser/tests/tsc/bivariantInferences.json @@ -91,7 +91,7 @@ "type": "Identifier", "span": { "start": 83, - "end": 105, + "end": 87, "ctxt": 0 }, "value": "this", @@ -156,7 +156,7 @@ "type": "Identifier", "span": { "start": 107, - "end": 130, + "end": 112, "ctxt": 0 }, "value": "other", diff --git a/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes1.json b/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes1.json index 1df6ca722269..de8d4f8ff118 100644 --- a/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes1.json @@ -481,7 +481,7 @@ "type": "Identifier", "span": { "start": 161, - "end": 176, + "end": 162, "ctxt": 0 }, "value": "a", @@ -552,7 +552,7 @@ "type": "Identifier", "span": { "start": 178, - "end": 188, + "end": 179, "ctxt": 0 }, "value": "b", @@ -700,7 +700,7 @@ "type": "Identifier", "span": { "start": 229, - "end": 244, + "end": 230, "ctxt": 0 }, "value": "a", @@ -771,7 +771,7 @@ "type": "Identifier", "span": { "start": 246, - "end": 261, + "end": 247, "ctxt": 0 }, "value": "b", @@ -1051,7 +1051,7 @@ "type": "Identifier", "span": { "start": 336, - "end": 343, + "end": 337, "ctxt": 0 }, "value": "t", @@ -1095,7 +1095,7 @@ "type": "Identifier", "span": { "start": 345, - "end": 353, + "end": 346, "ctxt": 0 }, "value": "f", @@ -1521,7 +1521,7 @@ "type": "Identifier", "span": { "start": 497, - "end": 504, + "end": 498, "ctxt": 0 }, "value": "x", @@ -1608,7 +1608,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 542, + "end": 535, "ctxt": 0 }, "value": "x", @@ -1695,7 +1695,7 @@ "type": "Identifier", "span": { "start": 573, - "end": 583, + "end": 574, "ctxt": 0 }, "value": "x", @@ -1774,7 +1774,7 @@ "type": "Identifier", "span": { "start": 607, - "end": 617, + "end": 608, "ctxt": 0 }, "value": "b", @@ -2042,7 +2042,7 @@ "type": "Identifier", "span": { "start": 709, - "end": 717, + "end": 710, "ctxt": 0 }, "value": "x", @@ -2172,7 +2172,7 @@ "type": "Identifier", "span": { "start": 785, - "end": 800, + "end": 786, "ctxt": 0 }, "value": "x", @@ -2373,7 +2373,7 @@ "type": "Identifier", "span": { "start": 913, - "end": 928, + "end": 914, "ctxt": 0 }, "value": "x", @@ -2616,7 +2616,7 @@ "type": "Identifier", "span": { "start": 1068, - "end": 1083, + "end": 1069, "ctxt": 0 }, "value": "x", @@ -2797,7 +2797,7 @@ "type": "Identifier", "span": { "start": 1161, - "end": 1176, + "end": 1162, "ctxt": 0 }, "value": "x", @@ -3226,7 +3226,7 @@ "type": "Identifier", "span": { "start": 1340, - "end": 1347, + "end": 1341, "ctxt": 0 }, "value": "x", @@ -3456,7 +3456,7 @@ "type": "Identifier", "span": { "start": 1458, - "end": 1465, + "end": 1459, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes2.json b/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes2.json index 49d70d301f5c..746c1a195756 100644 --- a/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes2.json @@ -481,7 +481,7 @@ "type": "Identifier", "span": { "start": 189, - "end": 204, + "end": 190, "ctxt": 0 }, "value": "a", @@ -552,7 +552,7 @@ "type": "Identifier", "span": { "start": 206, - "end": 216, + "end": 207, "ctxt": 0 }, "value": "b", @@ -700,7 +700,7 @@ "type": "Identifier", "span": { "start": 257, - "end": 272, + "end": 258, "ctxt": 0 }, "value": "a", @@ -771,7 +771,7 @@ "type": "Identifier", "span": { "start": 274, - "end": 289, + "end": 275, "ctxt": 0 }, "value": "b", @@ -1051,7 +1051,7 @@ "type": "Identifier", "span": { "start": 364, - "end": 371, + "end": 365, "ctxt": 0 }, "value": "t", @@ -1095,7 +1095,7 @@ "type": "Identifier", "span": { "start": 373, - "end": 381, + "end": 374, "ctxt": 0 }, "value": "f", @@ -1521,7 +1521,7 @@ "type": "Identifier", "span": { "start": 525, - "end": 532, + "end": 526, "ctxt": 0 }, "value": "x", @@ -1608,7 +1608,7 @@ "type": "Identifier", "span": { "start": 562, - "end": 570, + "end": 563, "ctxt": 0 }, "value": "x", @@ -1695,7 +1695,7 @@ "type": "Identifier", "span": { "start": 601, - "end": 611, + "end": 602, "ctxt": 0 }, "value": "x", @@ -1774,7 +1774,7 @@ "type": "Identifier", "span": { "start": 635, - "end": 645, + "end": 636, "ctxt": 0 }, "value": "b", @@ -2042,7 +2042,7 @@ "type": "Identifier", "span": { "start": 737, - "end": 745, + "end": 738, "ctxt": 0 }, "value": "x", @@ -2172,7 +2172,7 @@ "type": "Identifier", "span": { "start": 813, - "end": 828, + "end": 814, "ctxt": 0 }, "value": "x", @@ -2373,7 +2373,7 @@ "type": "Identifier", "span": { "start": 941, - "end": 956, + "end": 942, "ctxt": 0 }, "value": "x", @@ -2616,7 +2616,7 @@ "type": "Identifier", "span": { "start": 1096, - "end": 1111, + "end": 1097, "ctxt": 0 }, "value": "x", @@ -2797,7 +2797,7 @@ "type": "Identifier", "span": { "start": 1189, - "end": 1204, + "end": 1190, "ctxt": 0 }, "value": "x", @@ -3226,7 +3226,7 @@ "type": "Identifier", "span": { "start": 1368, - "end": 1375, + "end": 1369, "ctxt": 0 }, "value": "x", @@ -3456,7 +3456,7 @@ "type": "Identifier", "span": { "start": 1486, - "end": 1493, + "end": 1487, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/bundlerSyntaxRestrictions.json b/crates/swc_ecma_parser/tests/tsc/bundlerSyntaxRestrictions.json index 9b004c4fa525..0a82dfec46a6 100644 --- a/crates/swc_ecma_parser/tests/tsc/bundlerSyntaxRestrictions.json +++ b/crates/swc_ecma_parser/tests/tsc/bundlerSyntaxRestrictions.json @@ -183,7 +183,7 @@ "type": "Identifier", "span": { "start": 294, - "end": 306, + "end": 298, "ctxt": 0 }, "value": "path", @@ -219,7 +219,7 @@ "type": "Identifier", "span": { "start": 308, - "end": 325, + "end": 316, "ctxt": 0 }, "value": "encoding", diff --git a/crates/swc_ecma_parser/tests/tsc/callChain.3.json b/crates/swc_ecma_parser/tests/tsc/callChain.3.json index 91d374c737be..e7056c37ba8c 100644 --- a/crates/swc_ecma_parser/tests/tsc/callChain.3.json +++ b/crates/swc_ecma_parser/tests/tsc/callChain.3.json @@ -164,7 +164,7 @@ "type": "Identifier", "span": { "start": 77, - "end": 88, + "end": 80, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/tsc/callChain.json b/crates/swc_ecma_parser/tests/tsc/callChain.json index 9d37061be313..eccd94933c37 100644 --- a/crates/swc_ecma_parser/tests/tsc/callChain.json +++ b/crates/swc_ecma_parser/tests/tsc/callChain.json @@ -3133,7 +3133,7 @@ "type": "Identifier", "span": { "start": 694, - "end": 708, + "end": 695, "ctxt": 0 }, "value": "f", @@ -3157,7 +3157,7 @@ "type": "Identifier", "span": { "start": 698, - "end": 702, + "end": 699, "ctxt": 0 }, "value": "a", @@ -3320,7 +3320,7 @@ "type": "Identifier", "span": { "start": 739, - "end": 748, + "end": 740, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/callChainInference.json b/crates/swc_ecma_parser/tests/tsc/callChainInference.json index cf1f7a4da9fc..8d654f212ec0 100644 --- a/crates/swc_ecma_parser/tests/tsc/callChainInference.json +++ b/crates/swc_ecma_parser/tests/tsc/callChainInference.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 73, + "end": 70, "ctxt": 0 }, "value": "this", @@ -96,7 +96,7 @@ "type": "Identifier", "span": { "start": 75, - "end": 87, + "end": 78, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithIncorrectNumberOfTypeArguments.json b/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithIncorrectNumberOfTypeArguments.json index 0510593a55eb..f34ca31895b9 100644 --- a/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithIncorrectNumberOfTypeArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithIncorrectNumberOfTypeArguments.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 125, + "end": 122, "ctxt": 0 }, "value": "x", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 127, - "end": 131, + "end": 128, "ctxt": 0 }, "value": "y", @@ -935,7 +935,7 @@ "type": "Identifier", "span": { "start": 367, - "end": 371, + "end": 368, "ctxt": 0 }, "value": "x", @@ -972,7 +972,7 @@ "type": "Identifier", "span": { "start": 373, - "end": 377, + "end": 374, "ctxt": 0 }, "value": "y", @@ -1362,7 +1362,7 @@ "type": "Identifier", "span": { "start": 481, - "end": 485, + "end": 482, "ctxt": 0 }, "value": "x", @@ -1408,7 +1408,7 @@ "type": "Identifier", "span": { "start": 487, - "end": 491, + "end": 488, "ctxt": 0 }, "value": "y", @@ -1912,7 +1912,7 @@ "type": "Identifier", "span": { "start": 645, - "end": 649, + "end": 646, "ctxt": 0 }, "value": "x", @@ -1949,7 +1949,7 @@ "type": "Identifier", "span": { "start": 651, - "end": 655, + "end": 652, "ctxt": 0 }, "value": "y", @@ -2428,7 +2428,7 @@ "type": "Identifier", "span": { "start": 772, - "end": 776, + "end": 773, "ctxt": 0 }, "value": "x", @@ -2474,7 +2474,7 @@ "type": "Identifier", "span": { "start": 778, - "end": 782, + "end": 779, "ctxt": 0 }, "value": "y", @@ -3033,7 +3033,7 @@ "type": "Identifier", "span": { "start": 939, - "end": 943, + "end": 940, "ctxt": 0 }, "value": "x", @@ -3070,7 +3070,7 @@ "type": "Identifier", "span": { "start": 945, - "end": 949, + "end": 946, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithZeroTypeArguments.json b/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithZeroTypeArguments.json index dc4facde07db..0a912403a7a3 100644 --- a/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithZeroTypeArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithZeroTypeArguments.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 100, - "end": 104, + "end": 101, "ctxt": 0 }, "value": "x", @@ -514,7 +514,7 @@ "type": "Identifier", "span": { "start": 214, - "end": 218, + "end": 215, "ctxt": 0 }, "value": "x", @@ -735,7 +735,7 @@ "type": "Identifier", "span": { "start": 262, - "end": 266, + "end": 263, "ctxt": 0 }, "value": "x", @@ -1034,7 +1034,7 @@ "type": "Identifier", "span": { "start": 351, - "end": 355, + "end": 352, "ctxt": 0 }, "value": "x", @@ -1326,7 +1326,7 @@ "type": "Identifier", "span": { "start": 411, - "end": 415, + "end": 412, "ctxt": 0 }, "value": "x", @@ -1657,7 +1657,7 @@ "type": "Identifier", "span": { "start": 502, - "end": 506, + "end": 503, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/callNonGenericFunctionWithTypeArguments.json b/crates/swc_ecma_parser/tests/tsc/callNonGenericFunctionWithTypeArguments.json index 063b1992d336..3b43b686d829 100644 --- a/crates/swc_ecma_parser/tests/tsc/callNonGenericFunctionWithTypeArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/callNonGenericFunctionWithTypeArguments.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 125, - "end": 134, + "end": 126, "ctxt": 0 }, "value": "x", @@ -414,7 +414,7 @@ "type": "Identifier", "span": { "start": 253, - "end": 262, + "end": 254, "ctxt": 0 }, "value": "x", @@ -601,7 +601,7 @@ "type": "Identifier", "span": { "start": 313, - "end": 322, + "end": 314, "ctxt": 0 }, "value": "x", @@ -850,7 +850,7 @@ "type": "Identifier", "span": { "start": 409, - "end": 418, + "end": 410, "ctxt": 0 }, "value": "x", @@ -1108,7 +1108,7 @@ "type": "Identifier", "span": { "start": 481, - "end": 490, + "end": 482, "ctxt": 0 }, "value": "x", @@ -1357,7 +1357,7 @@ "type": "Identifier", "span": { "start": 579, - "end": 588, + "end": 580, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/callOverload.json b/crates/swc_ecma_parser/tests/tsc/callOverload.json index 4da9bd268472..3f8e0db19359 100644 --- a/crates/swc_ecma_parser/tests/tsc/callOverload.json +++ b/crates/swc_ecma_parser/tests/tsc/callOverload.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 21, - "end": 27, + "end": 22, "ctxt": 0 }, "value": "x", @@ -111,7 +111,7 @@ "type": "Identifier", "span": { "start": 61, - "end": 67, + "end": 62, "ctxt": 0 }, "value": "x", @@ -147,7 +147,7 @@ "type": "Identifier", "span": { "start": 69, - "end": 75, + "end": 70, "ctxt": 0 }, "value": "y", @@ -226,7 +226,7 @@ "type": "Identifier", "span": { "start": 110, - "end": 116, + "end": 111, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance.json b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance.json index 8a4d3a9136b7..266534d089bc 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance.json @@ -73,7 +73,7 @@ "type": "Identifier", "span": { "start": 74, - "end": 83, + "end": 75, "ctxt": 0 }, "value": "x", @@ -128,7 +128,7 @@ "type": "Identifier", "span": { "start": 101, - "end": 110, + "end": 102, "ctxt": 0 }, "value": "x", @@ -155,7 +155,7 @@ "type": "Identifier", "span": { "start": 112, - "end": 121, + "end": 113, "ctxt": 0 }, "value": "y", @@ -261,7 +261,7 @@ "type": "Identifier", "span": { "start": 203, - "end": 212, + "end": 204, "ctxt": 0 }, "value": "x", @@ -316,7 +316,7 @@ "type": "Identifier", "span": { "start": 264, - "end": 273, + "end": 265, "ctxt": 0 }, "value": "x", @@ -343,7 +343,7 @@ "type": "Identifier", "span": { "start": 275, - "end": 284, + "end": 276, "ctxt": 0 }, "value": "y", @@ -398,7 +398,7 @@ "type": "Identifier", "span": { "start": 340, - "end": 344, + "end": 341, "ctxt": 0 }, "value": "x", @@ -526,7 +526,7 @@ "type": "Identifier", "span": { "start": 445, - "end": 454, + "end": 446, "ctxt": 0 }, "value": "x", @@ -632,7 +632,7 @@ "type": "Identifier", "span": { "start": 540, - "end": 549, + "end": 541, "ctxt": 0 }, "value": "x", @@ -738,7 +738,7 @@ "type": "Identifier", "span": { "start": 678, - "end": 682, + "end": 679, "ctxt": 0 }, "value": "x", @@ -925,7 +925,7 @@ "type": "Identifier", "span": { "start": 821, - "end": 830, + "end": 822, "ctxt": 0 }, "value": "x", @@ -1012,7 +1012,7 @@ "type": "Identifier", "span": { "start": 854, - "end": 863, + "end": 855, "ctxt": 0 }, "value": "x", @@ -1039,7 +1039,7 @@ "type": "Identifier", "span": { "start": 865, - "end": 874, + "end": 866, "ctxt": 0 }, "value": "y", @@ -1126,7 +1126,7 @@ "type": "Identifier", "span": { "start": 901, - "end": 905, + "end": 902, "ctxt": 0 }, "value": "x", @@ -1306,7 +1306,7 @@ "type": "Identifier", "span": { "start": 992, - "end": 1001, + "end": 993, "ctxt": 0 }, "value": "x", @@ -1393,7 +1393,7 @@ "type": "Identifier", "span": { "start": 1059, - "end": 1068, + "end": 1060, "ctxt": 0 }, "value": "x", @@ -1420,7 +1420,7 @@ "type": "Identifier", "span": { "start": 1070, - "end": 1079, + "end": 1071, "ctxt": 0 }, "value": "y", @@ -1507,7 +1507,7 @@ "type": "Identifier", "span": { "start": 1141, - "end": 1145, + "end": 1142, "ctxt": 0 }, "value": "x", @@ -1667,7 +1667,7 @@ "type": "Identifier", "span": { "start": 1251, - "end": 1260, + "end": 1252, "ctxt": 0 }, "value": "x", @@ -1754,7 +1754,7 @@ "type": "Identifier", "span": { "start": 1289, - "end": 1293, + "end": 1290, "ctxt": 0 }, "value": "x", @@ -1944,7 +1944,7 @@ "type": "Identifier", "span": { "start": 1379, - "end": 1388, + "end": 1380, "ctxt": 0 }, "value": "x", @@ -2082,7 +2082,7 @@ "type": "Identifier", "span": { "start": 1523, - "end": 1527, + "end": 1524, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance2.json b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance2.json index b254b7e0510a..42d39a0a9660 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance2.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance2.json @@ -390,7 +390,7 @@ "type": "Identifier", "span": { "start": 312, - "end": 321, + "end": 313, "ctxt": 0 }, "value": "x", @@ -485,7 +485,7 @@ "type": "Identifier", "span": { "start": 345, - "end": 354, + "end": 346, "ctxt": 0 }, "value": "x", @@ -580,7 +580,7 @@ "type": "Identifier", "span": { "start": 378, - "end": 387, + "end": 379, "ctxt": 0 }, "value": "x", @@ -667,7 +667,7 @@ "type": "Identifier", "span": { "start": 407, - "end": 416, + "end": 408, "ctxt": 0 }, "value": "x", @@ -694,7 +694,7 @@ "type": "Identifier", "span": { "start": 418, - "end": 427, + "end": 419, "ctxt": 0 }, "value": "y", @@ -781,7 +781,7 @@ "type": "Identifier", "span": { "start": 449, - "end": 475, + "end": 450, "ctxt": 0 }, "value": "x", @@ -805,7 +805,7 @@ "type": "Identifier", "span": { "start": 453, - "end": 464, + "end": 456, "ctxt": 0 }, "value": "arg", @@ -914,7 +914,7 @@ "type": "Identifier", "span": { "start": 497, - "end": 522, + "end": 498, "ctxt": 0 }, "value": "x", @@ -938,7 +938,7 @@ "type": "Identifier", "span": { "start": 501, - "end": 510, + "end": 504, "ctxt": 0 }, "value": "arg", @@ -1077,7 +1077,7 @@ "type": "Identifier", "span": { "start": 542, - "end": 567, + "end": 543, "ctxt": 0 }, "value": "x", @@ -1101,7 +1101,7 @@ "type": "Identifier", "span": { "start": 546, - "end": 555, + "end": 549, "ctxt": 0 }, "value": "arg", @@ -1187,7 +1187,7 @@ "type": "Identifier", "span": { "start": 573, - "end": 580, + "end": 574, "ctxt": 0 }, "value": "r", @@ -1296,7 +1296,7 @@ "type": "Identifier", "span": { "start": 603, - "end": 628, + "end": 604, "ctxt": 0 }, "value": "x", @@ -1320,7 +1320,7 @@ "type": "Identifier", "span": { "start": 607, - "end": 616, + "end": 610, "ctxt": 0 }, "value": "arg", @@ -1389,7 +1389,7 @@ "type": "Identifier", "span": { "start": 630, - "end": 656, + "end": 631, "ctxt": 0 }, "value": "y", @@ -1413,7 +1413,7 @@ "type": "Identifier", "span": { "start": 634, - "end": 644, + "end": 638, "ctxt": 0 }, "value": "arg2", @@ -1499,7 +1499,7 @@ "type": "Identifier", "span": { "start": 662, - "end": 669, + "end": 663, "ctxt": 0 }, "value": "r", @@ -1608,7 +1608,7 @@ "type": "Identifier", "span": { "start": 692, - "end": 717, + "end": 693, "ctxt": 0 }, "value": "x", @@ -1632,7 +1632,7 @@ "type": "Identifier", "span": { "start": 696, - "end": 705, + "end": 699, "ctxt": 0 }, "value": "arg", @@ -1701,7 +1701,7 @@ "type": "Identifier", "span": { "start": 719, - "end": 745, + "end": 720, "ctxt": 0 }, "value": "y", @@ -1725,7 +1725,7 @@ "type": "Identifier", "span": { "start": 723, - "end": 733, + "end": 727, "ctxt": 0 }, "value": "arg2", @@ -1811,7 +1811,7 @@ "type": "Identifier", "span": { "start": 751, - "end": 758, + "end": 752, "ctxt": 0 }, "value": "r", @@ -2049,7 +2049,7 @@ "type": "Identifier", "span": { "start": 821, - "end": 839, + "end": 822, "ctxt": 0 }, "value": "x", @@ -2118,7 +2118,7 @@ "type": "Identifier", "span": { "start": 841, - "end": 872, + "end": 842, "ctxt": 0 }, "value": "y", @@ -2298,7 +2298,7 @@ "type": "Identifier", "span": { "start": 893, - "end": 907, + "end": 894, "ctxt": 0 }, "value": "x", @@ -2363,7 +2363,7 @@ "type": "Identifier", "span": { "start": 909, - "end": 927, + "end": 910, "ctxt": 0 }, "value": "y", @@ -2526,7 +2526,7 @@ "type": "Identifier", "span": { "start": 958, - "end": 972, + "end": 959, "ctxt": 0 }, "value": "x", @@ -2591,7 +2591,7 @@ "type": "Identifier", "span": { "start": 974, - "end": 991, + "end": 975, "ctxt": 0 }, "value": "y", @@ -2754,7 +2754,7 @@ "type": "Identifier", "span": { "start": 1022, - "end": 1049, + "end": 1023, "ctxt": 0 }, "value": "x", @@ -2942,7 +2942,7 @@ "type": "Identifier", "span": { "start": 1082, - "end": 1091, + "end": 1083, "ctxt": 0 }, "value": "x", @@ -3005,7 +3005,7 @@ "type": "Identifier", "span": { "start": 1113, - "end": 1122, + "end": 1114, "ctxt": 0 }, "value": "x", @@ -3110,7 +3110,7 @@ "type": "Identifier", "span": { "start": 1181, - "end": 1185, + "end": 1182, "ctxt": 0 }, "value": "x", @@ -3233,7 +3233,7 @@ "type": "Identifier", "span": { "start": 1223, - "end": 1227, + "end": 1224, "ctxt": 0 }, "value": "x", @@ -3398,7 +3398,7 @@ "type": "Identifier", "span": { "start": 1267, - "end": 1291, + "end": 1268, "ctxt": 0 }, "value": "x", @@ -3422,7 +3422,7 @@ "type": "Identifier", "span": { "start": 1271, - "end": 1280, + "end": 1272, "ctxt": 0 }, "value": "a", @@ -3507,7 +3507,7 @@ "type": "Identifier", "span": { "start": 1313, - "end": 1337, + "end": 1314, "ctxt": 0 }, "value": "x", @@ -3531,7 +3531,7 @@ "type": "Identifier", "span": { "start": 1317, - "end": 1326, + "end": 1318, "ctxt": 0 }, "value": "a", @@ -3658,7 +3658,7 @@ "type": "Identifier", "span": { "start": 1377, - "end": 1457, + "end": 1378, "ctxt": 0 }, "value": "x", @@ -3690,7 +3690,7 @@ "type": "Identifier", "span": { "start": 1395, - "end": 1404, + "end": 1396, "ctxt": 0 }, "value": "a", @@ -3745,7 +3745,7 @@ "type": "Identifier", "span": { "start": 1428, - "end": 1437, + "end": 1429, "ctxt": 0 }, "value": "a", @@ -3832,7 +3832,7 @@ "type": "Identifier", "span": { "start": 1476, - "end": 1554, + "end": 1477, "ctxt": 0 }, "value": "x", @@ -3864,7 +3864,7 @@ "type": "Identifier", "span": { "start": 1494, - "end": 1504, + "end": 1495, "ctxt": 0 }, "value": "a", @@ -3919,7 +3919,7 @@ "type": "Identifier", "span": { "start": 1529, - "end": 1536, + "end": 1530, "ctxt": 0 }, "value": "a", @@ -4111,7 +4111,7 @@ "type": "Identifier", "span": { "start": 1627, - "end": 1631, + "end": 1628, "ctxt": 0 }, "value": "x", @@ -4258,7 +4258,7 @@ "type": "Identifier", "span": { "start": 1710, - "end": 1714, + "end": 1711, "ctxt": 0 }, "value": "x", @@ -4395,7 +4395,7 @@ "type": "Identifier", "span": { "start": 1747, - "end": 1751, + "end": 1748, "ctxt": 0 }, "value": "x", @@ -4534,7 +4534,7 @@ "type": "Identifier", "span": { "start": 1804, - "end": 1808, + "end": 1805, "ctxt": 0 }, "value": "x", @@ -4571,7 +4571,7 @@ "type": "Identifier", "span": { "start": 1810, - "end": 1814, + "end": 1811, "ctxt": 0 }, "value": "y", @@ -4733,7 +4733,7 @@ "type": "Identifier", "span": { "start": 1907, - "end": 1923, + "end": 1908, "ctxt": 0 }, "value": "x", @@ -4757,7 +4757,7 @@ "type": "Identifier", "span": { "start": 1911, - "end": 1917, + "end": 1914, "ctxt": 0 }, "value": "arg", @@ -4951,7 +4951,7 @@ "type": "Identifier", "span": { "start": 2037, - "end": 2053, + "end": 2038, "ctxt": 0 }, "value": "x", @@ -4975,7 +4975,7 @@ "type": "Identifier", "span": { "start": 2041, - "end": 2047, + "end": 2044, "ctxt": 0 }, "value": "arg", @@ -5205,7 +5205,7 @@ "type": "Identifier", "span": { "start": 2154, - "end": 2170, + "end": 2155, "ctxt": 0 }, "value": "x", @@ -5229,7 +5229,7 @@ "type": "Identifier", "span": { "start": 2158, - "end": 2164, + "end": 2161, "ctxt": 0 }, "value": "arg", @@ -5406,7 +5406,7 @@ "type": "Identifier", "span": { "start": 2176, - "end": 2180, + "end": 2177, "ctxt": 0 }, "value": "r", @@ -5515,7 +5515,7 @@ "type": "Identifier", "span": { "start": 2238, - "end": 2254, + "end": 2239, "ctxt": 0 }, "value": "x", @@ -5539,7 +5539,7 @@ "type": "Identifier", "span": { "start": 2242, - "end": 2248, + "end": 2245, "ctxt": 0 }, "value": "arg", @@ -5608,7 +5608,7 @@ "type": "Identifier", "span": { "start": 2256, - "end": 2273, + "end": 2257, "ctxt": 0 }, "value": "y", @@ -5632,7 +5632,7 @@ "type": "Identifier", "span": { "start": 2260, - "end": 2267, + "end": 2264, "ctxt": 0 }, "value": "arg2", @@ -5809,7 +5809,7 @@ "type": "Identifier", "span": { "start": 2279, - "end": 2283, + "end": 2280, "ctxt": 0 }, "value": "r", @@ -5918,7 +5918,7 @@ "type": "Identifier", "span": { "start": 2341, - "end": 2357, + "end": 2342, "ctxt": 0 }, "value": "x", @@ -5942,7 +5942,7 @@ "type": "Identifier", "span": { "start": 2345, - "end": 2351, + "end": 2348, "ctxt": 0 }, "value": "arg", @@ -6011,7 +6011,7 @@ "type": "Identifier", "span": { "start": 2359, - "end": 2404, + "end": 2360, "ctxt": 0 }, "value": "y", @@ -6035,7 +6035,7 @@ "type": "Identifier", "span": { "start": 2363, - "end": 2398, + "end": 2367, "ctxt": 0 }, "value": "arg2", @@ -6285,7 +6285,7 @@ "type": "Identifier", "span": { "start": 2410, - "end": 2414, + "end": 2411, "ctxt": 0 }, "value": "r", @@ -6573,7 +6573,7 @@ "type": "Identifier", "span": { "start": 2549, - "end": 2553, + "end": 2550, "ctxt": 0 }, "value": "x", @@ -6610,7 +6610,7 @@ "type": "Identifier", "span": { "start": 2555, - "end": 2559, + "end": 2556, "ctxt": 0 }, "value": "y", @@ -6767,7 +6767,7 @@ "type": "Identifier", "span": { "start": 2606, - "end": 2620, + "end": 2607, "ctxt": 0 }, "value": "x", @@ -6832,7 +6832,7 @@ "type": "Identifier", "span": { "start": 2622, - "end": 2626, + "end": 2623, "ctxt": 0 }, "value": "y", @@ -7045,7 +7045,7 @@ "type": "Identifier", "span": { "start": 2719, - "end": 2733, + "end": 2720, "ctxt": 0 }, "value": "x", @@ -7110,7 +7110,7 @@ "type": "Identifier", "span": { "start": 2735, - "end": 2739, + "end": 2736, "ctxt": 0 }, "value": "y", @@ -7295,7 +7295,7 @@ "type": "Identifier", "span": { "start": 2856, - "end": 2873, + "end": 2857, "ctxt": 0 }, "value": "x", @@ -7550,7 +7550,7 @@ "type": "Identifier", "span": { "start": 2900, - "end": 2904, + "end": 2901, "ctxt": 0 }, "value": "x", @@ -7697,7 +7697,7 @@ "type": "Identifier", "span": { "start": 2946, - "end": 2950, + "end": 2947, "ctxt": 0 }, "value": "x", @@ -7852,7 +7852,7 @@ "type": "Identifier", "span": { "start": 2984, - "end": 2998, + "end": 2985, "ctxt": 0 }, "value": "x", @@ -7876,7 +7876,7 @@ "type": "Identifier", "span": { "start": 2988, - "end": 2992, + "end": 2989, "ctxt": 0 }, "value": "a", @@ -8055,7 +8055,7 @@ "type": "Identifier", "span": { "start": 3027, - "end": 3041, + "end": 3028, "ctxt": 0 }, "value": "x", @@ -8079,7 +8079,7 @@ "type": "Identifier", "span": { "start": 3031, - "end": 3035, + "end": 3032, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance3.json b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance3.json index 8295cde91dc3..376bb35b49ed 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance3.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance3.json @@ -444,7 +444,7 @@ "type": "Identifier", "span": { "start": 462, - "end": 471, + "end": 463, "ctxt": 0 }, "value": "x", @@ -539,7 +539,7 @@ "type": "Identifier", "span": { "start": 503, - "end": 528, + "end": 504, "ctxt": 0 }, "value": "x", @@ -563,7 +563,7 @@ "type": "Identifier", "span": { "start": 507, - "end": 516, + "end": 510, "ctxt": 0 }, "value": "arg", @@ -649,7 +649,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 541, + "end": 535, "ctxt": 0 }, "value": "r", @@ -758,7 +758,7 @@ "type": "Identifier", "span": { "start": 573, - "end": 598, + "end": 574, "ctxt": 0 }, "value": "x", @@ -782,7 +782,7 @@ "type": "Identifier", "span": { "start": 577, - "end": 586, + "end": 580, "ctxt": 0 }, "value": "arg", @@ -851,7 +851,7 @@ "type": "Identifier", "span": { "start": 600, - "end": 626, + "end": 601, "ctxt": 0 }, "value": "y", @@ -875,7 +875,7 @@ "type": "Identifier", "span": { "start": 604, - "end": 614, + "end": 608, "ctxt": 0 }, "value": "arg2", @@ -961,7 +961,7 @@ "type": "Identifier", "span": { "start": 632, - "end": 639, + "end": 633, "ctxt": 0 }, "value": "r", @@ -1199,7 +1199,7 @@ "type": "Identifier", "span": { "start": 712, - "end": 730, + "end": 713, "ctxt": 0 }, "value": "x", @@ -1268,7 +1268,7 @@ "type": "Identifier", "span": { "start": 732, - "end": 763, + "end": 733, "ctxt": 0 }, "value": "y", @@ -1448,7 +1448,7 @@ "type": "Identifier", "span": { "start": 792, - "end": 806, + "end": 793, "ctxt": 0 }, "value": "x", @@ -1513,7 +1513,7 @@ "type": "Identifier", "span": { "start": 808, - "end": 826, + "end": 809, "ctxt": 0 }, "value": "y", @@ -1684,7 +1684,7 @@ "type": "Identifier", "span": { "start": 883, - "end": 892, + "end": 884, "ctxt": 0 }, "value": "x", @@ -1747,7 +1747,7 @@ "type": "Identifier", "span": { "start": 922, - "end": 931, + "end": 923, "ctxt": 0 }, "value": "x", @@ -1844,7 +1844,7 @@ "type": "Identifier", "span": { "start": 977, - "end": 1004, + "end": 978, "ctxt": 0 }, "value": "x", @@ -2022,7 +2022,7 @@ "type": "Identifier", "span": { "start": 1159, - "end": 1264, + "end": 1160, "ctxt": 0 }, "value": "x", @@ -2054,7 +2054,7 @@ "type": "Identifier", "span": { "start": 1185, - "end": 1194, + "end": 1186, "ctxt": 0 }, "value": "a", @@ -2109,7 +2109,7 @@ "type": "Identifier", "span": { "start": 1226, - "end": 1236, + "end": 1227, "ctxt": 0 }, "value": "a", @@ -2196,7 +2196,7 @@ "type": "Identifier", "span": { "start": 1294, - "end": 1403, + "end": 1295, "ctxt": 0 }, "value": "x", @@ -2228,7 +2228,7 @@ "type": "Identifier", "span": { "start": 1320, - "end": 1330, + "end": 1321, "ctxt": 0 }, "value": "a", @@ -2283,7 +2283,7 @@ "type": "Identifier", "span": { "start": 1363, - "end": 1374, + "end": 1364, "ctxt": 0 }, "value": "a", @@ -2412,7 +2412,7 @@ "type": "Identifier", "span": { "start": 1468, - "end": 1587, + "end": 1469, "ctxt": 0 }, "value": "x", @@ -2444,7 +2444,7 @@ "type": "Identifier", "span": { "start": 1513, - "end": 1517, + "end": 1514, "ctxt": 0 }, "value": "a", @@ -2569,7 +2569,7 @@ "type": "Identifier", "span": { "start": 1560, - "end": 1564, + "end": 1561, "ctxt": 0 }, "value": "a", @@ -2726,7 +2726,7 @@ "type": "Identifier", "span": { "start": 1614, - "end": 1734, + "end": 1615, "ctxt": 0 }, "value": "x", @@ -2758,7 +2758,7 @@ "type": "Identifier", "span": { "start": 1660, - "end": 1664, + "end": 1661, "ctxt": 0 }, "value": "a", @@ -2883,7 +2883,7 @@ "type": "Identifier", "span": { "start": 1707, - "end": 1711, + "end": 1708, "ctxt": 0 }, "value": "a", @@ -3125,7 +3125,7 @@ "type": "Identifier", "span": { "start": 1825, - "end": 1829, + "end": 1826, "ctxt": 0 }, "value": "x", @@ -3401,7 +3401,7 @@ "type": "Identifier", "span": { "start": 2017, - "end": 2021, + "end": 2018, "ctxt": 0 }, "value": "x", @@ -3567,7 +3567,7 @@ "type": "Identifier", "span": { "start": 2291, - "end": 2307, + "end": 2292, "ctxt": 0 }, "value": "x", @@ -3591,7 +3591,7 @@ "type": "Identifier", "span": { "start": 2295, - "end": 2301, + "end": 2298, "ctxt": 0 }, "value": "arg", @@ -3809,7 +3809,7 @@ "type": "Identifier", "span": { "start": 2313, - "end": 2317, + "end": 2314, "ctxt": 0 }, "value": "r", @@ -3969,7 +3969,7 @@ "type": "Identifier", "span": { "start": 2421, - "end": 2437, + "end": 2422, "ctxt": 0 }, "value": "x", @@ -3993,7 +3993,7 @@ "type": "Identifier", "span": { "start": 2425, - "end": 2431, + "end": 2428, "ctxt": 0 }, "value": "arg", @@ -4062,7 +4062,7 @@ "type": "Identifier", "span": { "start": 2439, - "end": 2471, + "end": 2440, "ctxt": 0 }, "value": "y", @@ -4086,7 +4086,7 @@ "type": "Identifier", "span": { "start": 2443, - "end": 2465, + "end": 2447, "ctxt": 0 }, "value": "arg2", @@ -4295,7 +4295,7 @@ "type": "Identifier", "span": { "start": 2477, - "end": 2481, + "end": 2478, "ctxt": 0 }, "value": "r", @@ -4685,7 +4685,7 @@ "type": "Identifier", "span": { "start": 2777, - "end": 2781, + "end": 2778, "ctxt": 0 }, "value": "x", @@ -4722,7 +4722,7 @@ "type": "Identifier", "span": { "start": 2783, - "end": 2787, + "end": 2784, "ctxt": 0 }, "value": "y", @@ -4930,7 +4930,7 @@ "type": "Identifier", "span": { "start": 2993, - "end": 3007, + "end": 2994, "ctxt": 0 }, "value": "x", @@ -4995,7 +4995,7 @@ "type": "Identifier", "span": { "start": 3009, - "end": 3023, + "end": 3010, "ctxt": 0 }, "value": "y", @@ -5259,7 +5259,7 @@ "type": "Identifier", "span": { "start": 3155, - "end": 3172, + "end": 3156, "ctxt": 0 }, "value": "x", @@ -5542,7 +5542,7 @@ "type": "Identifier", "span": { "start": 3314, - "end": 3331, + "end": 3315, "ctxt": 0 }, "value": "x", @@ -5833,7 +5833,7 @@ "type": "Identifier", "span": { "start": 3644, - "end": 3658, + "end": 3645, "ctxt": 0 }, "value": "x", @@ -5857,7 +5857,7 @@ "type": "Identifier", "span": { "start": 3648, - "end": 3652, + "end": 3649, "ctxt": 0 }, "value": "a", @@ -6087,7 +6087,7 @@ "type": "Identifier", "span": { "start": 3733, - "end": 3747, + "end": 3734, "ctxt": 0 }, "value": "x", @@ -6111,7 +6111,7 @@ "type": "Identifier", "span": { "start": 3737, - "end": 3741, + "end": 3738, "ctxt": 0 }, "value": "a", @@ -6341,7 +6341,7 @@ "type": "Identifier", "span": { "start": 4027, - "end": 4031, + "end": 4028, "ctxt": 0 }, "value": "x", @@ -6539,7 +6539,7 @@ "type": "Identifier", "span": { "start": 4105, - "end": 4109, + "end": 4106, "ctxt": 0 }, "value": "x", @@ -6707,7 +6707,7 @@ "type": "Identifier", "span": { "start": 4234, - "end": 4238, + "end": 4235, "ctxt": 0 }, "value": "x", @@ -6895,7 +6895,7 @@ "type": "Identifier", "span": { "start": 4317, - "end": 4321, + "end": 4318, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance4.json b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance4.json index 3a30b034f0e1..39f69c5ded94 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance4.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance4.json @@ -390,7 +390,7 @@ "type": "Identifier", "span": { "start": 315, - "end": 319, + "end": 316, "ctxt": 0 }, "value": "x", @@ -537,7 +537,7 @@ "type": "Identifier", "span": { "start": 341, - "end": 345, + "end": 342, "ctxt": 0 }, "value": "x", @@ -674,7 +674,7 @@ "type": "Identifier", "span": { "start": 372, - "end": 376, + "end": 373, "ctxt": 0 }, "value": "x", @@ -803,7 +803,7 @@ "type": "Identifier", "span": { "start": 401, - "end": 405, + "end": 402, "ctxt": 0 }, "value": "x", @@ -840,7 +840,7 @@ "type": "Identifier", "span": { "start": 407, - "end": 411, + "end": 408, "ctxt": 0 }, "value": "y", @@ -992,7 +992,7 @@ "type": "Identifier", "span": { "start": 438, - "end": 454, + "end": 439, "ctxt": 0 }, "value": "x", @@ -1016,7 +1016,7 @@ "type": "Identifier", "span": { "start": 442, - "end": 448, + "end": 445, "ctxt": 0 }, "value": "arg", @@ -1210,7 +1210,7 @@ "type": "Identifier", "span": { "start": 487, - "end": 509, + "end": 488, "ctxt": 0 }, "value": "x", @@ -1234,7 +1234,7 @@ "type": "Identifier", "span": { "start": 491, - "end": 497, + "end": 494, "ctxt": 0 }, "value": "arg", @@ -1423,7 +1423,7 @@ "type": "Identifier", "span": { "start": 530, - "end": 543, + "end": 531, "ctxt": 0 }, "value": "x", @@ -1502,7 +1502,7 @@ "type": "Identifier", "span": { "start": 545, - "end": 566, + "end": 546, "ctxt": 0 }, "value": "y", @@ -1734,7 +1734,7 @@ "type": "Identifier", "span": { "start": 590, - "end": 607, + "end": 591, "ctxt": 0 }, "value": "x", @@ -1974,7 +1974,7 @@ "type": "Identifier", "span": { "start": 643, - "end": 660, + "end": 644, "ctxt": 0 }, "value": "x", @@ -2240,7 +2240,7 @@ "type": "Identifier", "span": { "start": 709, - "end": 723, + "end": 710, "ctxt": 0 }, "value": "x", @@ -2264,7 +2264,7 @@ "type": "Identifier", "span": { "start": 713, - "end": 717, + "end": 714, "ctxt": 0 }, "value": "a", @@ -2429,7 +2429,7 @@ "type": "Identifier", "span": { "start": 756, - "end": 770, + "end": 757, "ctxt": 0 }, "value": "x", @@ -2453,7 +2453,7 @@ "type": "Identifier", "span": { "start": 760, - "end": 764, + "end": 761, "ctxt": 0 }, "value": "a", @@ -2660,7 +2660,7 @@ "type": "Identifier", "span": { "start": 813, - "end": 908, + "end": 814, "ctxt": 0 }, "value": "x", @@ -2692,7 +2692,7 @@ "type": "Identifier", "span": { "start": 850, - "end": 854, + "end": 851, "ctxt": 0 }, "value": "a", @@ -2817,7 +2817,7 @@ "type": "Identifier", "span": { "start": 889, - "end": 893, + "end": 890, "ctxt": 0 }, "value": "a", @@ -2974,7 +2974,7 @@ "type": "Identifier", "span": { "start": 927, - "end": 1023, + "end": 928, "ctxt": 0 }, "value": "x", @@ -3006,7 +3006,7 @@ "type": "Identifier", "span": { "start": 965, - "end": 969, + "end": 966, "ctxt": 0 }, "value": "a", @@ -3131,7 +3131,7 @@ "type": "Identifier", "span": { "start": 1004, - "end": 1008, + "end": 1005, "ctxt": 0 }, "value": "a", @@ -3373,7 +3373,7 @@ "type": "Identifier", "span": { "start": 1096, - "end": 1100, + "end": 1097, "ctxt": 0 }, "value": "x", @@ -3520,7 +3520,7 @@ "type": "Identifier", "span": { "start": 1179, - "end": 1183, + "end": 1180, "ctxt": 0 }, "value": "x", @@ -3657,7 +3657,7 @@ "type": "Identifier", "span": { "start": 1216, - "end": 1220, + "end": 1217, "ctxt": 0 }, "value": "x", @@ -3796,7 +3796,7 @@ "type": "Identifier", "span": { "start": 1273, - "end": 1277, + "end": 1274, "ctxt": 0 }, "value": "x", @@ -3833,7 +3833,7 @@ "type": "Identifier", "span": { "start": 1279, - "end": 1283, + "end": 1280, "ctxt": 0 }, "value": "y", @@ -3985,7 +3985,7 @@ "type": "Identifier", "span": { "start": 1381, - "end": 1397, + "end": 1382, "ctxt": 0 }, "value": "x", @@ -4009,7 +4009,7 @@ "type": "Identifier", "span": { "start": 1385, - "end": 1391, + "end": 1388, "ctxt": 0 }, "value": "arg", @@ -4203,7 +4203,7 @@ "type": "Identifier", "span": { "start": 1511, - "end": 1527, + "end": 1512, "ctxt": 0 }, "value": "x", @@ -4227,7 +4227,7 @@ "type": "Identifier", "span": { "start": 1515, - "end": 1521, + "end": 1518, "ctxt": 0 }, "value": "arg", @@ -4457,7 +4457,7 @@ "type": "Identifier", "span": { "start": 1600, - "end": 1613, + "end": 1601, "ctxt": 0 }, "value": "x", @@ -4536,7 +4536,7 @@ "type": "Identifier", "span": { "start": 1615, - "end": 1636, + "end": 1616, "ctxt": 0 }, "value": "y", @@ -4791,7 +4791,7 @@ "type": "Identifier", "span": { "start": 1669, - "end": 1687, + "end": 1670, "ctxt": 0 }, "value": "x", @@ -5054,7 +5054,7 @@ "type": "Identifier", "span": { "start": 1730, - "end": 1747, + "end": 1731, "ctxt": 0 }, "value": "x", @@ -5294,7 +5294,7 @@ "type": "Identifier", "span": { "start": 1805, - "end": 1819, + "end": 1806, "ctxt": 0 }, "value": "x", @@ -5318,7 +5318,7 @@ "type": "Identifier", "span": { "start": 1809, - "end": 1813, + "end": 1810, "ctxt": 0 }, "value": "a", @@ -5497,7 +5497,7 @@ "type": "Identifier", "span": { "start": 1845, - "end": 1862, + "end": 1846, "ctxt": 0 }, "value": "x", @@ -5521,7 +5521,7 @@ "type": "Identifier", "span": { "start": 1852, - "end": 1856, + "end": 1853, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance5.json b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance5.json index 5cd05d9b610c..71392eeb132e 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance5.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance5.json @@ -390,7 +390,7 @@ "type": "Identifier", "span": { "start": 417, - "end": 426, + "end": 418, "ctxt": 0 }, "value": "x", @@ -485,7 +485,7 @@ "type": "Identifier", "span": { "start": 450, - "end": 459, + "end": 451, "ctxt": 0 }, "value": "x", @@ -580,7 +580,7 @@ "type": "Identifier", "span": { "start": 483, - "end": 492, + "end": 484, "ctxt": 0 }, "value": "x", @@ -667,7 +667,7 @@ "type": "Identifier", "span": { "start": 512, - "end": 521, + "end": 513, "ctxt": 0 }, "value": "x", @@ -694,7 +694,7 @@ "type": "Identifier", "span": { "start": 523, - "end": 532, + "end": 524, "ctxt": 0 }, "value": "y", @@ -781,7 +781,7 @@ "type": "Identifier", "span": { "start": 554, - "end": 580, + "end": 555, "ctxt": 0 }, "value": "x", @@ -805,7 +805,7 @@ "type": "Identifier", "span": { "start": 558, - "end": 569, + "end": 561, "ctxt": 0 }, "value": "arg", @@ -914,7 +914,7 @@ "type": "Identifier", "span": { "start": 602, - "end": 627, + "end": 603, "ctxt": 0 }, "value": "x", @@ -938,7 +938,7 @@ "type": "Identifier", "span": { "start": 606, - "end": 615, + "end": 609, "ctxt": 0 }, "value": "arg", @@ -1077,7 +1077,7 @@ "type": "Identifier", "span": { "start": 647, - "end": 672, + "end": 648, "ctxt": 0 }, "value": "x", @@ -1101,7 +1101,7 @@ "type": "Identifier", "span": { "start": 651, - "end": 660, + "end": 654, "ctxt": 0 }, "value": "arg", @@ -1187,7 +1187,7 @@ "type": "Identifier", "span": { "start": 678, - "end": 685, + "end": 679, "ctxt": 0 }, "value": "r", @@ -1296,7 +1296,7 @@ "type": "Identifier", "span": { "start": 708, - "end": 733, + "end": 709, "ctxt": 0 }, "value": "x", @@ -1320,7 +1320,7 @@ "type": "Identifier", "span": { "start": 712, - "end": 721, + "end": 715, "ctxt": 0 }, "value": "arg", @@ -1389,7 +1389,7 @@ "type": "Identifier", "span": { "start": 735, - "end": 761, + "end": 736, "ctxt": 0 }, "value": "y", @@ -1413,7 +1413,7 @@ "type": "Identifier", "span": { "start": 739, - "end": 749, + "end": 743, "ctxt": 0 }, "value": "arg2", @@ -1499,7 +1499,7 @@ "type": "Identifier", "span": { "start": 767, - "end": 774, + "end": 768, "ctxt": 0 }, "value": "r", @@ -1608,7 +1608,7 @@ "type": "Identifier", "span": { "start": 797, - "end": 822, + "end": 798, "ctxt": 0 }, "value": "x", @@ -1632,7 +1632,7 @@ "type": "Identifier", "span": { "start": 801, - "end": 810, + "end": 804, "ctxt": 0 }, "value": "arg", @@ -1701,7 +1701,7 @@ "type": "Identifier", "span": { "start": 824, - "end": 850, + "end": 825, "ctxt": 0 }, "value": "y", @@ -1725,7 +1725,7 @@ "type": "Identifier", "span": { "start": 828, - "end": 838, + "end": 832, "ctxt": 0 }, "value": "arg2", @@ -1811,7 +1811,7 @@ "type": "Identifier", "span": { "start": 856, - "end": 863, + "end": 857, "ctxt": 0 }, "value": "r", @@ -2049,7 +2049,7 @@ "type": "Identifier", "span": { "start": 926, - "end": 944, + "end": 927, "ctxt": 0 }, "value": "x", @@ -2118,7 +2118,7 @@ "type": "Identifier", "span": { "start": 946, - "end": 977, + "end": 947, "ctxt": 0 }, "value": "y", @@ -2298,7 +2298,7 @@ "type": "Identifier", "span": { "start": 998, - "end": 1012, + "end": 999, "ctxt": 0 }, "value": "x", @@ -2363,7 +2363,7 @@ "type": "Identifier", "span": { "start": 1014, - "end": 1032, + "end": 1015, "ctxt": 0 }, "value": "y", @@ -2526,7 +2526,7 @@ "type": "Identifier", "span": { "start": 1063, - "end": 1077, + "end": 1064, "ctxt": 0 }, "value": "x", @@ -2591,7 +2591,7 @@ "type": "Identifier", "span": { "start": 1079, - "end": 1096, + "end": 1080, "ctxt": 0 }, "value": "y", @@ -2754,7 +2754,7 @@ "type": "Identifier", "span": { "start": 1127, - "end": 1154, + "end": 1128, "ctxt": 0 }, "value": "x", @@ -2985,7 +2985,7 @@ "type": "Identifier", "span": { "start": 1205, - "end": 1209, + "end": 1206, "ctxt": 0 }, "value": "x", @@ -3183,7 +3183,7 @@ "type": "Identifier", "span": { "start": 1275, - "end": 1279, + "end": 1276, "ctxt": 0 }, "value": "x", @@ -3330,7 +3330,7 @@ "type": "Identifier", "span": { "start": 1358, - "end": 1362, + "end": 1359, "ctxt": 0 }, "value": "x", @@ -3467,7 +3467,7 @@ "type": "Identifier", "span": { "start": 1395, - "end": 1399, + "end": 1396, "ctxt": 0 }, "value": "x", @@ -3606,7 +3606,7 @@ "type": "Identifier", "span": { "start": 1452, - "end": 1456, + "end": 1453, "ctxt": 0 }, "value": "x", @@ -3643,7 +3643,7 @@ "type": "Identifier", "span": { "start": 1458, - "end": 1462, + "end": 1459, "ctxt": 0 }, "value": "y", @@ -3805,7 +3805,7 @@ "type": "Identifier", "span": { "start": 1555, - "end": 1571, + "end": 1556, "ctxt": 0 }, "value": "x", @@ -3829,7 +3829,7 @@ "type": "Identifier", "span": { "start": 1559, - "end": 1565, + "end": 1562, "ctxt": 0 }, "value": "arg", @@ -4023,7 +4023,7 @@ "type": "Identifier", "span": { "start": 1685, - "end": 1701, + "end": 1686, "ctxt": 0 }, "value": "x", @@ -4047,7 +4047,7 @@ "type": "Identifier", "span": { "start": 1689, - "end": 1695, + "end": 1692, "ctxt": 0 }, "value": "arg", @@ -4277,7 +4277,7 @@ "type": "Identifier", "span": { "start": 1802, - "end": 1818, + "end": 1803, "ctxt": 0 }, "value": "x", @@ -4301,7 +4301,7 @@ "type": "Identifier", "span": { "start": 1806, - "end": 1812, + "end": 1809, "ctxt": 0 }, "value": "arg", @@ -4478,7 +4478,7 @@ "type": "Identifier", "span": { "start": 1824, - "end": 1828, + "end": 1825, "ctxt": 0 }, "value": "r", @@ -4587,7 +4587,7 @@ "type": "Identifier", "span": { "start": 1886, - "end": 1902, + "end": 1887, "ctxt": 0 }, "value": "x", @@ -4611,7 +4611,7 @@ "type": "Identifier", "span": { "start": 1890, - "end": 1896, + "end": 1893, "ctxt": 0 }, "value": "arg", @@ -4680,7 +4680,7 @@ "type": "Identifier", "span": { "start": 1904, - "end": 1921, + "end": 1905, "ctxt": 0 }, "value": "y", @@ -4704,7 +4704,7 @@ "type": "Identifier", "span": { "start": 1908, - "end": 1915, + "end": 1912, "ctxt": 0 }, "value": "arg2", @@ -4881,7 +4881,7 @@ "type": "Identifier", "span": { "start": 1927, - "end": 1931, + "end": 1928, "ctxt": 0 }, "value": "r", @@ -4990,7 +4990,7 @@ "type": "Identifier", "span": { "start": 1989, - "end": 2005, + "end": 1990, "ctxt": 0 }, "value": "x", @@ -5014,7 +5014,7 @@ "type": "Identifier", "span": { "start": 1993, - "end": 1999, + "end": 1996, "ctxt": 0 }, "value": "arg", @@ -5083,7 +5083,7 @@ "type": "Identifier", "span": { "start": 2007, - "end": 2052, + "end": 2008, "ctxt": 0 }, "value": "y", @@ -5107,7 +5107,7 @@ "type": "Identifier", "span": { "start": 2011, - "end": 2046, + "end": 2015, "ctxt": 0 }, "value": "arg2", @@ -5357,7 +5357,7 @@ "type": "Identifier", "span": { "start": 2058, - "end": 2062, + "end": 2059, "ctxt": 0 }, "value": "r", @@ -5645,7 +5645,7 @@ "type": "Identifier", "span": { "start": 2197, - "end": 2201, + "end": 2198, "ctxt": 0 }, "value": "x", @@ -5682,7 +5682,7 @@ "type": "Identifier", "span": { "start": 2203, - "end": 2207, + "end": 2204, "ctxt": 0 }, "value": "y", @@ -5839,7 +5839,7 @@ "type": "Identifier", "span": { "start": 2254, - "end": 2268, + "end": 2255, "ctxt": 0 }, "value": "x", @@ -5904,7 +5904,7 @@ "type": "Identifier", "span": { "start": 2270, - "end": 2274, + "end": 2271, "ctxt": 0 }, "value": "y", @@ -6117,7 +6117,7 @@ "type": "Identifier", "span": { "start": 2367, - "end": 2381, + "end": 2368, "ctxt": 0 }, "value": "x", @@ -6182,7 +6182,7 @@ "type": "Identifier", "span": { "start": 2383, - "end": 2387, + "end": 2384, "ctxt": 0 }, "value": "y", @@ -6367,7 +6367,7 @@ "type": "Identifier", "span": { "start": 2504, - "end": 2521, + "end": 2505, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance6.json b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance6.json index 1c641367666f..a732209a6d4b 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance6.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance6.json @@ -390,7 +390,7 @@ "type": "Identifier", "span": { "start": 435, - "end": 439, + "end": 436, "ctxt": 0 }, "value": "x", @@ -537,7 +537,7 @@ "type": "Identifier", "span": { "start": 461, - "end": 465, + "end": 462, "ctxt": 0 }, "value": "x", @@ -674,7 +674,7 @@ "type": "Identifier", "span": { "start": 492, - "end": 496, + "end": 493, "ctxt": 0 }, "value": "x", @@ -803,7 +803,7 @@ "type": "Identifier", "span": { "start": 521, - "end": 525, + "end": 522, "ctxt": 0 }, "value": "x", @@ -840,7 +840,7 @@ "type": "Identifier", "span": { "start": 527, - "end": 531, + "end": 528, "ctxt": 0 }, "value": "y", @@ -992,7 +992,7 @@ "type": "Identifier", "span": { "start": 558, - "end": 574, + "end": 559, "ctxt": 0 }, "value": "x", @@ -1016,7 +1016,7 @@ "type": "Identifier", "span": { "start": 562, - "end": 568, + "end": 565, "ctxt": 0 }, "value": "arg", @@ -1210,7 +1210,7 @@ "type": "Identifier", "span": { "start": 607, - "end": 629, + "end": 608, "ctxt": 0 }, "value": "x", @@ -1234,7 +1234,7 @@ "type": "Identifier", "span": { "start": 611, - "end": 617, + "end": 614, "ctxt": 0 }, "value": "arg", @@ -1423,7 +1423,7 @@ "type": "Identifier", "span": { "start": 650, - "end": 663, + "end": 651, "ctxt": 0 }, "value": "x", @@ -1502,7 +1502,7 @@ "type": "Identifier", "span": { "start": 665, - "end": 686, + "end": 666, "ctxt": 0 }, "value": "y", @@ -1734,7 +1734,7 @@ "type": "Identifier", "span": { "start": 710, - "end": 727, + "end": 711, "ctxt": 0 }, "value": "x", @@ -1974,7 +1974,7 @@ "type": "Identifier", "span": { "start": 763, - "end": 780, + "end": 764, "ctxt": 0 }, "value": "x", @@ -2315,7 +2315,7 @@ "type": "Identifier", "span": { "start": 835, - "end": 839, + "end": 836, "ctxt": 0 }, "value": "x", @@ -2513,7 +2513,7 @@ "type": "Identifier", "span": { "start": 890, - "end": 894, + "end": 891, "ctxt": 0 }, "value": "x", @@ -2701,7 +2701,7 @@ "type": "Identifier", "span": { "start": 950, - "end": 954, + "end": 951, "ctxt": 0 }, "value": "x", @@ -2891,7 +2891,7 @@ "type": "Identifier", "span": { "start": 1005, - "end": 1009, + "end": 1006, "ctxt": 0 }, "value": "x", @@ -2928,7 +2928,7 @@ "type": "Identifier", "span": { "start": 1011, - "end": 1015, + "end": 1012, "ctxt": 0 }, "value": "y", @@ -3140,7 +3140,7 @@ "type": "Identifier", "span": { "start": 1072, - "end": 1088, + "end": 1073, "ctxt": 0 }, "value": "x", @@ -3164,7 +3164,7 @@ "type": "Identifier", "span": { "start": 1076, - "end": 1082, + "end": 1079, "ctxt": 0 }, "value": "arg", @@ -3418,7 +3418,7 @@ "type": "Identifier", "span": { "start": 1141, - "end": 1154, + "end": 1142, "ctxt": 0 }, "value": "x", @@ -3497,7 +3497,7 @@ "type": "Identifier", "span": { "start": 1156, - "end": 1177, + "end": 1157, "ctxt": 0 }, "value": "y", @@ -3812,7 +3812,7 @@ "type": "Identifier", "span": { "start": 1230, - "end": 1247, + "end": 1231, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/callSignatureWithoutReturnTypeAnnotationInference.json b/crates/swc_ecma_parser/tests/tsc/callSignatureWithoutReturnTypeAnnotationInference.json index 048920b2675d..33beb5e9a1fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignatureWithoutReturnTypeAnnotationInference.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignatureWithoutReturnTypeAnnotationInference.json @@ -451,7 +451,7 @@ "type": "Identifier", "span": { "start": 328, - "end": 332, + "end": 329, "ctxt": 0 }, "value": "x", @@ -1205,7 +1205,7 @@ "type": "Identifier", "span": { "start": 709, - "end": 718, + "end": 710, "ctxt": 0 }, "value": "x", @@ -1456,7 +1456,7 @@ "type": "Identifier", "span": { "start": 811, - "end": 820, + "end": 812, "ctxt": 0 }, "value": "x", @@ -1743,7 +1743,7 @@ "type": "Identifier", "span": { "start": 921, - "end": 930, + "end": 922, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType.json b/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType.json index 3380ca472ffa..cedc9cca8241 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType.json @@ -124,7 +124,7 @@ "type": "Identifier", "span": { "start": 227, - "end": 231, + "end": 228, "ctxt": 0 }, "value": "x", @@ -221,7 +221,7 @@ "type": "Identifier", "span": { "start": 250, - "end": 254, + "end": 251, "ctxt": 0 }, "value": "x", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 300, - "end": 304, + "end": 301, "ctxt": 0 }, "value": "x", @@ -446,7 +446,7 @@ "type": "Identifier", "span": { "start": 323, - "end": 327, + "end": 324, "ctxt": 0 }, "value": "x", @@ -606,7 +606,7 @@ "type": "Identifier", "span": { "start": 373, - "end": 377, + "end": 374, "ctxt": 0 }, "value": "x", @@ -671,7 +671,7 @@ "type": "Identifier", "span": { "start": 393, - "end": 397, + "end": 394, "ctxt": 0 }, "value": "x", @@ -940,7 +940,7 @@ "type": "Identifier", "span": { "start": 496, - "end": 500, + "end": 497, "ctxt": 0 }, "value": "x", @@ -1037,7 +1037,7 @@ "type": "Identifier", "span": { "start": 519, - "end": 523, + "end": 520, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType2.json b/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType2.json index f677b25b6d81..548542343d14 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType2.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType2.json @@ -91,7 +91,7 @@ "type": "Identifier", "span": { "start": 201, - "end": 210, + "end": 202, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType3.json b/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType3.json index 7137922a9c8c..16d4ccd29f8c 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType3.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType3.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 202, - "end": 211, + "end": 203, "ctxt": 0 }, "value": "x", @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 244, - "end": 253, + "end": 245, "ctxt": 0 }, "value": "x", @@ -250,7 +250,7 @@ "type": "Identifier", "span": { "start": 290, - "end": 299, + "end": 291, "ctxt": 0 }, "value": "x", @@ -368,7 +368,7 @@ "type": "Identifier", "span": { "start": 336, - "end": 345, + "end": 337, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/callSignaturesWithAccessibilityModifiersOnParameters.json b/crates/swc_ecma_parser/tests/tsc/callSignaturesWithAccessibilityModifiersOnParameters.json index cf2ae5ad878d..d18d9380901c 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignaturesWithAccessibilityModifiersOnParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignaturesWithAccessibilityModifiersOnParameters.json @@ -548,7 +548,7 @@ "type": "Identifier", "span": { "start": 289, - "end": 298, + "end": 290, "ctxt": 0 }, "value": "x", @@ -584,7 +584,7 @@ "type": "Identifier", "span": { "start": 307, - "end": 316, + "end": 308, "ctxt": 0 }, "value": "y", @@ -682,7 +682,7 @@ "type": "Identifier", "span": { "start": 352, - "end": 361, + "end": 353, "ctxt": 0 }, "value": "x", @@ -718,7 +718,7 @@ "type": "Identifier", "span": { "start": 370, - "end": 379, + "end": 371, "ctxt": 0 }, "value": "y", @@ -811,7 +811,7 @@ "type": "Identifier", "span": { "start": 412, - "end": 421, + "end": 413, "ctxt": 0 }, "value": "x", @@ -847,7 +847,7 @@ "type": "Identifier", "span": { "start": 430, - "end": 439, + "end": 431, "ctxt": 0 }, "value": "y", @@ -1304,7 +1304,7 @@ "type": "Identifier", "span": { "start": 606, - "end": 615, + "end": 607, "ctxt": 0 }, "value": "x", @@ -1340,7 +1340,7 @@ "type": "Identifier", "span": { "start": 625, - "end": 634, + "end": 626, "ctxt": 0 }, "value": "y", @@ -1423,7 +1423,7 @@ "type": "Identifier", "span": { "start": 659, - "end": 663, + "end": 660, "ctxt": 0 }, "value": "x", @@ -1469,7 +1469,7 @@ "type": "Identifier", "span": { "start": 673, - "end": 677, + "end": 674, "ctxt": 0 }, "value": "y", @@ -1644,7 +1644,7 @@ "type": "Identifier", "span": { "start": 740, - "end": 749, + "end": 741, "ctxt": 0 }, "value": "x", @@ -1671,7 +1671,7 @@ "type": "Identifier", "span": { "start": 758, - "end": 767, + "end": 759, "ctxt": 0 }, "value": "y", @@ -1770,7 +1770,7 @@ "type": "Identifier", "span": { "start": 815, - "end": 824, + "end": 816, "ctxt": 0 }, "value": "x", @@ -1797,7 +1797,7 @@ "type": "Identifier", "span": { "start": 826, - "end": 835, + "end": 827, "ctxt": 0 }, "value": "y", @@ -1849,7 +1849,7 @@ "type": "Identifier", "span": { "start": 850, - "end": 854, + "end": 851, "ctxt": 0 }, "value": "x", @@ -1886,7 +1886,7 @@ "type": "Identifier", "span": { "start": 864, - "end": 868, + "end": 865, "ctxt": 0 }, "value": "y", @@ -2071,7 +2071,7 @@ "type": "Identifier", "span": { "start": 930, - "end": 939, + "end": 931, "ctxt": 0 }, "value": "x", @@ -2098,7 +2098,7 @@ "type": "Identifier", "span": { "start": 948, - "end": 957, + "end": 949, "ctxt": 0 }, "value": "y", @@ -2281,7 +2281,7 @@ "type": "Identifier", "span": { "start": 1020, - "end": 1029, + "end": 1021, "ctxt": 0 }, "value": "x", @@ -2317,7 +2317,7 @@ "type": "Identifier", "span": { "start": 1039, - "end": 1048, + "end": 1040, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/callSignaturesWithDuplicateParameters.json b/crates/swc_ecma_parser/tests/tsc/callSignaturesWithDuplicateParameters.json index bd55357661a6..e483fe7dab13 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignaturesWithDuplicateParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignaturesWithDuplicateParameters.json @@ -548,7 +548,7 @@ "type": "Identifier", "span": { "start": 204, - "end": 213, + "end": 205, "ctxt": 0 }, "value": "x", @@ -584,7 +584,7 @@ "type": "Identifier", "span": { "start": 215, - "end": 224, + "end": 216, "ctxt": 0 }, "value": "x", @@ -682,7 +682,7 @@ "type": "Identifier", "span": { "start": 252, - "end": 261, + "end": 253, "ctxt": 0 }, "value": "x", @@ -718,7 +718,7 @@ "type": "Identifier", "span": { "start": 263, - "end": 272, + "end": 264, "ctxt": 0 }, "value": "x", @@ -811,7 +811,7 @@ "type": "Identifier", "span": { "start": 297, - "end": 306, + "end": 298, "ctxt": 0 }, "value": "x", @@ -847,7 +847,7 @@ "type": "Identifier", "span": { "start": 308, - "end": 317, + "end": 309, "ctxt": 0 }, "value": "x", @@ -1304,7 +1304,7 @@ "type": "Identifier", "span": { "start": 432, - "end": 441, + "end": 433, "ctxt": 0 }, "value": "x", @@ -1340,7 +1340,7 @@ "type": "Identifier", "span": { "start": 443, - "end": 452, + "end": 444, "ctxt": 0 }, "value": "x", @@ -1423,7 +1423,7 @@ "type": "Identifier", "span": { "start": 470, - "end": 474, + "end": 471, "ctxt": 0 }, "value": "x", @@ -1469,7 +1469,7 @@ "type": "Identifier", "span": { "start": 476, - "end": 480, + "end": 477, "ctxt": 0 }, "value": "x", @@ -1644,7 +1644,7 @@ "type": "Identifier", "span": { "start": 520, - "end": 529, + "end": 521, "ctxt": 0 }, "value": "x", @@ -1671,7 +1671,7 @@ "type": "Identifier", "span": { "start": 531, - "end": 540, + "end": 532, "ctxt": 0 }, "value": "x", @@ -1770,7 +1770,7 @@ "type": "Identifier", "span": { "start": 566, - "end": 575, + "end": 567, "ctxt": 0 }, "value": "x", @@ -1797,7 +1797,7 @@ "type": "Identifier", "span": { "start": 577, - "end": 586, + "end": 578, "ctxt": 0 }, "value": "x", @@ -1849,7 +1849,7 @@ "type": "Identifier", "span": { "start": 601, - "end": 605, + "end": 602, "ctxt": 0 }, "value": "x", @@ -1886,7 +1886,7 @@ "type": "Identifier", "span": { "start": 607, - "end": 611, + "end": 608, "ctxt": 0 }, "value": "x", @@ -2071,7 +2071,7 @@ "type": "Identifier", "span": { "start": 650, - "end": 659, + "end": 651, "ctxt": 0 }, "value": "x", @@ -2098,7 +2098,7 @@ "type": "Identifier", "span": { "start": 661, - "end": 670, + "end": 662, "ctxt": 0 }, "value": "x", @@ -2281,7 +2281,7 @@ "type": "Identifier", "span": { "start": 726, - "end": 735, + "end": 727, "ctxt": 0 }, "value": "x", @@ -2317,7 +2317,7 @@ "type": "Identifier", "span": { "start": 737, - "end": 746, + "end": 738, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/callSignaturesWithOptionalParameters.json b/crates/swc_ecma_parser/tests/tsc/callSignaturesWithOptionalParameters.json index 8c3d11c5eee8..d18b45f7f7ca 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignaturesWithOptionalParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignaturesWithOptionalParameters.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 77, - "end": 87, + "end": 78, "ctxt": 0 }, "value": "x", @@ -130,7 +130,7 @@ "type": "Identifier", "span": { "start": 114, - "end": 124, + "end": 115, "ctxt": 0 }, "value": "x", @@ -576,7 +576,7 @@ "type": "Identifier", "span": { "start": 233, - "end": 243, + "end": 234, "ctxt": 0 }, "value": "x", @@ -840,7 +840,7 @@ "type": "Identifier", "span": { "start": 301, - "end": 311, + "end": 302, "ctxt": 0 }, "value": "x", @@ -892,7 +892,7 @@ "type": "Identifier", "span": { "start": 322, - "end": 331, + "end": 323, "ctxt": 0 }, "value": "x", @@ -919,7 +919,7 @@ "type": "Identifier", "span": { "start": 333, - "end": 343, + "end": 334, "ctxt": 0 }, "value": "y", @@ -1264,7 +1264,7 @@ "type": "Identifier", "span": { "start": 408, - "end": 418, + "end": 409, "ctxt": 0 }, "value": "x", @@ -1316,7 +1316,7 @@ "type": "Identifier", "span": { "start": 429, - "end": 439, + "end": 430, "ctxt": 0 }, "value": "x", @@ -1589,7 +1589,7 @@ "type": "Identifier", "span": { "start": 494, - "end": 504, + "end": 495, "ctxt": 0 }, "value": "x", @@ -1671,7 +1671,7 @@ "type": "Identifier", "span": { "start": 531, - "end": 540, + "end": 532, "ctxt": 0 }, "value": "x", @@ -1707,7 +1707,7 @@ "type": "Identifier", "span": { "start": 542, - "end": 552, + "end": 543, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/callSignaturesWithOptionalParameters2.json b/crates/swc_ecma_parser/tests/tsc/callSignaturesWithOptionalParameters2.json index 1ae2a28afdcb..c972e754db4d 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignaturesWithOptionalParameters2.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignaturesWithOptionalParameters2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 77, - "end": 87, + "end": 78, "ctxt": 0 }, "value": "x", @@ -95,7 +95,7 @@ "type": "Identifier", "span": { "start": 103, - "end": 113, + "end": 104, "ctxt": 0 }, "value": "x", @@ -236,7 +236,7 @@ "type": "Identifier", "span": { "start": 150, - "end": 159, + "end": 151, "ctxt": 0 }, "value": "x", @@ -299,7 +299,7 @@ "type": "Identifier", "span": { "start": 176, - "end": 185, + "end": 177, "ctxt": 0 }, "value": "x", @@ -335,7 +335,7 @@ "type": "Identifier", "span": { "start": 187, - "end": 197, + "end": 188, "ctxt": 0 }, "value": "y", @@ -398,7 +398,7 @@ "type": "Identifier", "span": { "start": 214, - "end": 223, + "end": 215, "ctxt": 0 }, "value": "x", @@ -434,7 +434,7 @@ "type": "Identifier", "span": { "start": 225, - "end": 235, + "end": 226, "ctxt": 0 }, "value": "y", @@ -627,7 +627,7 @@ "type": "Identifier", "span": { "start": 282, - "end": 292, + "end": 283, "ctxt": 0 }, "value": "x", @@ -702,7 +702,7 @@ "type": "Identifier", "span": { "start": 303, - "end": 313, + "end": 304, "ctxt": 0 }, "value": "x", @@ -785,7 +785,7 @@ "type": "Identifier", "span": { "start": 329, - "end": 338, + "end": 330, "ctxt": 0 }, "value": "x", @@ -860,7 +860,7 @@ "type": "Identifier", "span": { "start": 350, - "end": 359, + "end": 351, "ctxt": 0 }, "value": "x", @@ -896,7 +896,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 371, + "end": 362, "ctxt": 0 }, "value": "y", @@ -971,7 +971,7 @@ "type": "Identifier", "span": { "start": 383, - "end": 392, + "end": 384, "ctxt": 0 }, "value": "x", @@ -1007,7 +1007,7 @@ "type": "Identifier", "span": { "start": 394, - "end": 404, + "end": 395, "ctxt": 0 }, "value": "y", @@ -1404,7 +1404,7 @@ "type": "Identifier", "span": { "start": 488, - "end": 498, + "end": 489, "ctxt": 0 }, "value": "x", @@ -1443,7 +1443,7 @@ "type": "Identifier", "span": { "start": 506, - "end": 516, + "end": 507, "ctxt": 0 }, "value": "x", @@ -1470,7 +1470,7 @@ "type": "Identifier", "span": { "start": 518, - "end": 528, + "end": 519, "ctxt": 0 }, "value": "y", @@ -1522,7 +1522,7 @@ "type": "Identifier", "span": { "start": 539, - "end": 548, + "end": 540, "ctxt": 0 }, "value": "x", @@ -1549,7 +1549,7 @@ "type": "Identifier", "span": { "start": 550, - "end": 560, + "end": 551, "ctxt": 0 }, "value": "y", @@ -1601,7 +1601,7 @@ "type": "Identifier", "span": { "start": 571, - "end": 580, + "end": 572, "ctxt": 0 }, "value": "x", @@ -1628,7 +1628,7 @@ "type": "Identifier", "span": { "start": 582, - "end": 592, + "end": 583, "ctxt": 0 }, "value": "y", @@ -1655,7 +1655,7 @@ "type": "Identifier", "span": { "start": 594, - "end": 604, + "end": 595, "ctxt": 0 }, "value": "z", @@ -2141,7 +2141,7 @@ "type": "Identifier", "span": { "start": 694, - "end": 704, + "end": 695, "ctxt": 0 }, "value": "x", @@ -2180,7 +2180,7 @@ "type": "Identifier", "span": { "start": 712, - "end": 722, + "end": 713, "ctxt": 0 }, "value": "x", @@ -2207,7 +2207,7 @@ "type": "Identifier", "span": { "start": 724, - "end": 734, + "end": 725, "ctxt": 0 }, "value": "y", @@ -2259,7 +2259,7 @@ "type": "Identifier", "span": { "start": 745, - "end": 754, + "end": 746, "ctxt": 0 }, "value": "x", @@ -2286,7 +2286,7 @@ "type": "Identifier", "span": { "start": 756, - "end": 766, + "end": 757, "ctxt": 0 }, "value": "y", @@ -2338,7 +2338,7 @@ "type": "Identifier", "span": { "start": 777, - "end": 786, + "end": 778, "ctxt": 0 }, "value": "x", @@ -2365,7 +2365,7 @@ "type": "Identifier", "span": { "start": 788, - "end": 798, + "end": 789, "ctxt": 0 }, "value": "y", @@ -2392,7 +2392,7 @@ "type": "Identifier", "span": { "start": 800, - "end": 810, + "end": 801, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/callWithMissingVoid.json b/crates/swc_ecma_parser/tests/tsc/callWithMissingVoid.json index 580d870091b6..9a41adc0ea1e 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithMissingVoid.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithMissingVoid.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 52, - "end": 56, + "end": 53, "ctxt": 0 }, "value": "t", @@ -944,7 +944,7 @@ "type": "Identifier", "span": { "start": 700, - "end": 747, + "end": 708, "ctxt": 0 }, "value": "executor", @@ -968,7 +968,7 @@ "type": "Identifier", "span": { "start": 711, - "end": 738, + "end": 718, "ctxt": 0 }, "value": "resolve", @@ -992,7 +992,7 @@ "type": "Identifier", "span": { "start": 721, - "end": 729, + "end": 726, "ctxt": 0 }, "value": "value", @@ -1642,7 +1642,7 @@ "type": "Identifier", "span": { "start": 1187, - "end": 1196, + "end": 1188, "ctxt": 0 }, "value": "x", @@ -1678,7 +1678,7 @@ "type": "Identifier", "span": { "start": 1198, - "end": 1207, + "end": 1199, "ctxt": 0 }, "value": "y", @@ -1714,7 +1714,7 @@ "type": "Identifier", "span": { "start": 1209, - "end": 1216, + "end": 1210, "ctxt": 0 }, "value": "z", @@ -1975,7 +1975,7 @@ "type": "Identifier", "span": { "start": 1313, - "end": 1322, + "end": 1314, "ctxt": 0 }, "value": "x", @@ -2011,7 +2011,7 @@ "type": "Identifier", "span": { "start": 1324, - "end": 1333, + "end": 1325, "ctxt": 0 }, "value": "y", @@ -2047,7 +2047,7 @@ "type": "Identifier", "span": { "start": 1335, - "end": 1342, + "end": 1336, "ctxt": 0 }, "value": "z", @@ -2083,7 +2083,7 @@ "type": "Identifier", "span": { "start": 1344, - "end": 1356, + "end": 1348, "ctxt": 0 }, "value": "what", @@ -2434,7 +2434,7 @@ "type": "Identifier", "span": { "start": 1493, - "end": 1509, + "end": 1494, "ctxt": 0 }, "value": "x", @@ -2489,7 +2489,7 @@ "type": "Identifier", "span": { "start": 1511, - "end": 1518, + "end": 1512, "ctxt": 0 }, "value": "y", @@ -2525,7 +2525,7 @@ "type": "Identifier", "span": { "start": 1520, - "end": 1545, + "end": 1521, "ctxt": 0 }, "value": "z", @@ -2860,7 +2860,7 @@ "type": "Identifier", "span": { "start": 1708, - "end": 1741, + "end": 1715, "ctxt": 0 }, "value": "handler", diff --git a/crates/swc_ecma_parser/tests/tsc/callWithMissingVoidUndefinedUnknownAnyInJs.json b/crates/swc_ecma_parser/tests/tsc/callWithMissingVoidUndefinedUnknownAnyInJs.json index 4cdae99c956d..874b2a09030d 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithMissingVoidUndefinedUnknownAnyInJs.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithMissingVoidUndefinedUnknownAnyInJs.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 112, - "end": 119, + "end": 113, "ctxt": 0 }, "value": "p", @@ -111,7 +111,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 160, + "end": 149, "ctxt": 0 }, "value": "p", @@ -190,7 +190,7 @@ "type": "Identifier", "span": { "start": 189, - "end": 199, + "end": 190, "ctxt": 0 }, "value": "p", @@ -269,7 +269,7 @@ "type": "Identifier", "span": { "start": 228, - "end": 234, + "end": 229, "ctxt": 0 }, "value": "p", @@ -407,7 +407,7 @@ "type": "Identifier", "span": { "start": 263, - "end": 267, + "end": 264, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/callWithSpread.json b/crates/swc_ecma_parser/tests/tsc/callWithSpread.json index 2a7018878a6f..5d96669a23c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithSpread.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithSpread.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 23, - "end": 32, + "end": 24, "ctxt": 0 }, "value": "x", @@ -86,7 +86,7 @@ "type": "Identifier", "span": { "start": 34, - "end": 43, + "end": 35, "ctxt": 0 }, "value": "y", @@ -217,7 +217,7 @@ "type": "Identifier", "span": { "start": 81, - "end": 90, + "end": 82, "ctxt": 0 }, "value": "x", @@ -253,7 +253,7 @@ "type": "Identifier", "span": { "start": 92, - "end": 101, + "end": 93, "ctxt": 0 }, "value": "y", @@ -3012,7 +3012,7 @@ "type": "Identifier", "span": { "start": 792, - "end": 801, + "end": 793, "ctxt": 0 }, "value": "x", @@ -3048,7 +3048,7 @@ "type": "Identifier", "span": { "start": 803, - "end": 812, + "end": 804, "ctxt": 0 }, "value": "y", @@ -3334,7 +3334,7 @@ "type": "Identifier", "span": { "start": 900, - "end": 909, + "end": 901, "ctxt": 0 }, "value": "x", @@ -3370,7 +3370,7 @@ "type": "Identifier", "span": { "start": 911, - "end": 920, + "end": 912, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/callWithSpread2.json b/crates/swc_ecma_parser/tests/tsc/callWithSpread2.json index 7174800e7f3e..506b36c2f9fb 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithSpread2.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithSpread2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 22, - "end": 32, + "end": 23, "ctxt": 0 }, "value": "a", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 34, - "end": 44, + "end": 35, "ctxt": 0 }, "value": "b", @@ -147,7 +147,7 @@ "type": "Identifier", "span": { "start": 76, - "end": 95, + "end": 77, "ctxt": 0 }, "value": "a", @@ -202,7 +202,7 @@ "type": "Identifier", "span": { "start": 97, - "end": 116, + "end": 98, "ctxt": 0 }, "value": "b", @@ -300,7 +300,7 @@ "type": "Identifier", "span": { "start": 149, - "end": 158, + "end": 150, "ctxt": 0 }, "value": "s", @@ -336,7 +336,7 @@ "type": "Identifier", "span": { "start": 160, - "end": 170, + "end": 161, "ctxt": 0 }, "value": "a", @@ -372,7 +372,7 @@ "type": "Identifier", "span": { "start": 172, - "end": 182, + "end": 173, "ctxt": 0 }, "value": "b", @@ -451,7 +451,7 @@ "type": "Identifier", "span": { "start": 213, - "end": 222, + "end": 214, "ctxt": 0 }, "value": "s", @@ -487,7 +487,7 @@ "type": "Identifier", "span": { "start": 224, - "end": 234, + "end": 225, "ctxt": 0 }, "value": "a", @@ -523,7 +523,7 @@ "type": "Identifier", "span": { "start": 236, - "end": 246, + "end": 237, "ctxt": 0 }, "value": "b", @@ -660,7 +660,7 @@ "type": "Identifier", "span": { "start": 299, - "end": 308, + "end": 300, "ctxt": 0 }, "value": "s", @@ -781,7 +781,7 @@ "type": "Identifier", "span": { "start": 376, - "end": 385, + "end": 377, "ctxt": 0 }, "value": "s", @@ -817,7 +817,7 @@ "type": "Identifier", "span": { "start": 387, - "end": 396, + "end": 388, "ctxt": 0 }, "value": "n", @@ -853,7 +853,7 @@ "type": "Identifier", "span": { "start": 398, - "end": 408, + "end": 399, "ctxt": 0 }, "value": "a", @@ -889,7 +889,7 @@ "type": "Identifier", "span": { "start": 410, - "end": 420, + "end": 411, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/callWithSpread3.json b/crates/swc_ecma_parser/tests/tsc/callWithSpread3.json index 81b3c608a13c..699745f1a054 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithSpread3.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithSpread3.json @@ -576,7 +576,7 @@ "type": "Identifier", "span": { "start": 260, - "end": 269, + "end": 261, "ctxt": 0 }, "value": "a", @@ -612,7 +612,7 @@ "type": "Identifier", "span": { "start": 271, - "end": 280, + "end": 272, "ctxt": 0 }, "value": "b", @@ -691,7 +691,7 @@ "type": "Identifier", "span": { "start": 311, - "end": 320, + "end": 312, "ctxt": 0 }, "value": "a", @@ -727,7 +727,7 @@ "type": "Identifier", "span": { "start": 322, - "end": 331, + "end": 323, "ctxt": 0 }, "value": "b", @@ -864,7 +864,7 @@ "type": "Identifier", "span": { "start": 379, - "end": 388, + "end": 380, "ctxt": 0 }, "value": "a", @@ -900,7 +900,7 @@ "type": "Identifier", "span": { "start": 390, - "end": 399, + "end": 391, "ctxt": 0 }, "value": "b", @@ -1037,7 +1037,7 @@ "type": "Identifier", "span": { "start": 445, - "end": 454, + "end": 446, "ctxt": 0 }, "value": "a", @@ -1073,7 +1073,7 @@ "type": "Identifier", "span": { "start": 456, - "end": 465, + "end": 457, "ctxt": 0 }, "value": "b", @@ -1109,7 +1109,7 @@ "type": "Identifier", "span": { "start": 467, - "end": 476, + "end": 468, "ctxt": 0 }, "value": "c", @@ -1145,7 +1145,7 @@ "type": "Identifier", "span": { "start": 478, - "end": 487, + "end": 479, "ctxt": 0 }, "value": "d", @@ -1181,7 +1181,7 @@ "type": "Identifier", "span": { "start": 489, - "end": 498, + "end": 490, "ctxt": 0 }, "value": "e", diff --git a/crates/swc_ecma_parser/tests/tsc/callWithSpread4.json b/crates/swc_ecma_parser/tests/tsc/callWithSpread4.json index 77eab6b93fde..62cb9f1932ca 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithSpread4.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithSpread4.json @@ -313,7 +313,7 @@ "type": "Identifier", "span": { "start": 144, - "end": 149, + "end": 146, "ctxt": 0 }, "value": "s1", @@ -350,7 +350,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 157, + "end": 153, "ctxt": 0 }, "value": "s2", @@ -387,7 +387,7 @@ "type": "Identifier", "span": { "start": 159, - "end": 165, + "end": 161, "ctxt": 0 }, "value": "s3", @@ -424,7 +424,7 @@ "type": "Identifier", "span": { "start": 167, - "end": 173, + "end": 169, "ctxt": 0 }, "value": "s4", @@ -461,7 +461,7 @@ "type": "Identifier", "span": { "start": 175, - "end": 180, + "end": 177, "ctxt": 0 }, "value": "s5", @@ -554,7 +554,7 @@ "type": "Identifier", "span": { "start": 203, - "end": 237, + "end": 210, "ctxt": 0 }, "value": "streams", @@ -723,7 +723,7 @@ "type": "Identifier", "span": { "start": 260, - "end": 265, + "end": 262, "ctxt": 0 }, "value": "s1", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 267, - "end": 277, + "end": 269, "ctxt": 0 }, "value": "s2", @@ -1343,7 +1343,7 @@ "type": "Identifier", "span": { "start": 447, - "end": 455, + "end": 450, "ctxt": 0 }, "value": "inp", @@ -1580,7 +1580,7 @@ "type": "Identifier", "span": { "start": 591, - "end": 597, + "end": 592, "ctxt": 0 }, "value": "x", @@ -1616,7 +1616,7 @@ "type": "Identifier", "span": { "start": 599, - "end": 614, + "end": 600, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/callWithSpread5.json b/crates/swc_ecma_parser/tests/tsc/callWithSpread5.json index 1155484f8a06..ae5940f582ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithSpread5.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithSpread5.json @@ -353,7 +353,7 @@ "type": "Identifier", "span": { "start": 158, - "end": 167, + "end": 159, "ctxt": 0 }, "value": "a", @@ -389,7 +389,7 @@ "type": "Identifier", "span": { "start": 169, - "end": 178, + "end": 170, "ctxt": 0 }, "value": "b", @@ -425,7 +425,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 190, + "end": 182, "ctxt": 0 }, "value": "bb", diff --git a/crates/swc_ecma_parser/tests/tsc/callWithSpreadES6.json b/crates/swc_ecma_parser/tests/tsc/callWithSpreadES6.json index b8a7257846fc..d33fa7de9f56 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithSpreadES6.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithSpreadES6.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 40, - "end": 49, + "end": 41, "ctxt": 0 }, "value": "x", @@ -86,7 +86,7 @@ "type": "Identifier", "span": { "start": 51, - "end": 60, + "end": 52, "ctxt": 0 }, "value": "y", @@ -191,7 +191,7 @@ "type": "Identifier", "span": { "start": 95, - "end": 104, + "end": 96, "ctxt": 0 }, "value": "x", @@ -227,7 +227,7 @@ "type": "Identifier", "span": { "start": 106, - "end": 115, + "end": 107, "ctxt": 0 }, "value": "y", @@ -1948,7 +1948,7 @@ "type": "Identifier", "span": { "start": 554, - "end": 563, + "end": 555, "ctxt": 0 }, "value": "x", @@ -1984,7 +1984,7 @@ "type": "Identifier", "span": { "start": 565, - "end": 574, + "end": 566, "ctxt": 0 }, "value": "y", @@ -2270,7 +2270,7 @@ "type": "Identifier", "span": { "start": 662, - "end": 671, + "end": 663, "ctxt": 0 }, "value": "x", @@ -2306,7 +2306,7 @@ "type": "Identifier", "span": { "start": 673, - "end": 682, + "end": 674, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/chainedPrototypeAssignment.json b/crates/swc_ecma_parser/tests/tsc/chainedPrototypeAssignment.json index 4daaef2722cd..17fa86f43882 100644 --- a/crates/swc_ecma_parser/tests/tsc/chainedPrototypeAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/chainedPrototypeAssignment.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 128, - "end": 140, + "end": 132, "ctxt": 0 }, "value": "name", diff --git a/crates/swc_ecma_parser/tests/tsc/circularTypeofWithVarOrFunc.json b/crates/swc_ecma_parser/tests/tsc/circularTypeofWithVarOrFunc.json index 901140e28f71..0647aadf9cb0 100644 --- a/crates/swc_ecma_parser/tests/tsc/circularTypeofWithVarOrFunc.json +++ b/crates/swc_ecma_parser/tests/tsc/circularTypeofWithVarOrFunc.json @@ -576,7 +576,7 @@ "type": "Identifier", "span": { "start": 398, - "end": 410, + "end": 403, "ctxt": 0 }, "value": "input", diff --git a/crates/swc_ecma_parser/tests/tsc/cjsImportInES2015.json b/crates/swc_ecma_parser/tests/tsc/cjsImportInES2015.json index 4e671edab883..aff48ed92075 100644 --- a/crates/swc_ecma_parser/tests/tsc/cjsImportInES2015.json +++ b/crates/swc_ecma_parser/tests/tsc/cjsImportInES2015.json @@ -123,7 +123,7 @@ "type": "Identifier", "span": { "start": 271, - "end": 288, + "end": 274, "ctxt": 0 }, "value": "err", diff --git a/crates/swc_ecma_parser/tests/tsc/classAbstractFactoryFunction.json b/crates/swc_ecma_parser/tests/tsc/classAbstractFactoryFunction.json index 57ee42e3bede..7c3ca45d6289 100644 --- a/crates/swc_ecma_parser/tests/tsc/classAbstractFactoryFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/classAbstractFactoryFunction.json @@ -93,7 +93,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 75, + "end": 65, "ctxt": 0 }, "value": "Factory", @@ -203,7 +203,7 @@ "type": "Identifier", "span": { "start": 114, - "end": 131, + "end": 121, "ctxt": 0 }, "value": "Factory", diff --git a/crates/swc_ecma_parser/tests/tsc/classCanExtendConstructorFunction.json b/crates/swc_ecma_parser/tests/tsc/classCanExtendConstructorFunction.json index 44b555a765b9..89c3328de5fe 100644 --- a/crates/swc_ecma_parser/tests/tsc/classCanExtendConstructorFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/classCanExtendConstructorFunction.json @@ -1334,7 +1334,7 @@ "type": "Identifier", "span": { "start": 1428, - "end": 1447, + "end": 1439, "ctxt": 0 }, "value": "numberEaten", @@ -1579,7 +1579,7 @@ "type": "Identifier", "span": { "start": 1637, - "end": 1650, + "end": 1644, "ctxt": 0 }, "value": "drunkOO", @@ -1696,7 +1696,7 @@ "type": "Identifier", "span": { "start": 1779, - "end": 1803, + "end": 1785, "ctxt": 0 }, "value": "others", diff --git a/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility.json b/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility.json index cdac73f4fda7..8d542aa80156 100644 --- a/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility.json +++ b/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 64, - "end": 73, + "end": 65, "ctxt": 0 }, "value": "x", @@ -156,7 +156,7 @@ "type": "Identifier", "span": { "start": 123, - "end": 132, + "end": 124, "ctxt": 0 }, "value": "x", @@ -253,7 +253,7 @@ "type": "Identifier", "span": { "start": 184, - "end": 193, + "end": 185, "ctxt": 0 }, "value": "x", @@ -575,7 +575,7 @@ "type": "Identifier", "span": { "start": 343, - "end": 347, + "end": 344, "ctxt": 0 }, "value": "x", @@ -714,7 +714,7 @@ "type": "Identifier", "span": { "start": 412, - "end": 416, + "end": 413, "ctxt": 0 }, "value": "x", @@ -853,7 +853,7 @@ "type": "Identifier", "span": { "start": 483, - "end": 487, + "end": 484, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility2.json b/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility2.json index 55c4380725f2..9f7477f3f7fe 100644 --- a/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility2.json +++ b/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility2.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 68, - "end": 77, + "end": 69, "ctxt": 0 }, "value": "x", @@ -245,7 +245,7 @@ "type": "Identifier", "span": { "start": 172, - "end": 181, + "end": 173, "ctxt": 0 }, "value": "x", @@ -431,7 +431,7 @@ "type": "Identifier", "span": { "start": 274, - "end": 283, + "end": 275, "ctxt": 0 }, "value": "x", @@ -706,7 +706,7 @@ "type": "Identifier", "span": { "start": 431, - "end": 440, + "end": 432, "ctxt": 0 }, "value": "x", @@ -1120,7 +1120,7 @@ "type": "Identifier", "span": { "start": 648, - "end": 657, + "end": 649, "ctxt": 0 }, "value": "x", @@ -1534,7 +1534,7 @@ "type": "Identifier", "span": { "start": 886, - "end": 895, + "end": 887, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility3.json b/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility3.json index e0e31dd150d3..60dc17032711 100644 --- a/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility3.json +++ b/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility3.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 60, - "end": 69, + "end": 61, "ctxt": 0 }, "value": "x", @@ -156,7 +156,7 @@ "type": "Identifier", "span": { "start": 120, - "end": 129, + "end": 121, "ctxt": 0 }, "value": "x", @@ -253,7 +253,7 @@ "type": "Identifier", "span": { "start": 183, - "end": 192, + "end": 184, "ctxt": 0 }, "value": "x", @@ -350,7 +350,7 @@ "type": "Identifier", "span": { "start": 245, - "end": 254, + "end": 246, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/classConstructorOverloadsAccessibility.json b/crates/swc_ecma_parser/tests/tsc/classConstructorOverloadsAccessibility.json index 9a63ac1b61f4..18540e10210e 100644 --- a/crates/swc_ecma_parser/tests/tsc/classConstructorOverloadsAccessibility.json +++ b/crates/swc_ecma_parser/tests/tsc/classConstructorOverloadsAccessibility.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 54, - "end": 64, + "end": 55, "ctxt": 0 }, "value": "a", @@ -115,7 +115,7 @@ "type": "Identifier", "span": { "start": 98, - "end": 107, + "end": 99, "ctxt": 0 }, "value": "a", @@ -174,7 +174,7 @@ "type": "Identifier", "span": { "start": 139, - "end": 148, + "end": 140, "ctxt": 0 }, "value": "a", @@ -290,7 +290,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 227, + "end": 219, "ctxt": 0 }, "value": "a", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 251, - "end": 260, + "end": 252, "ctxt": 0 }, "value": "a", @@ -465,7 +465,7 @@ "type": "Identifier", "span": { "start": 322, - "end": 331, + "end": 323, "ctxt": 0 }, "value": "a", @@ -524,7 +524,7 @@ "type": "Identifier", "span": { "start": 356, - "end": 365, + "end": 357, "ctxt": 0 }, "value": "a", @@ -640,7 +640,7 @@ "type": "Identifier", "span": { "start": 427, - "end": 436, + "end": 428, "ctxt": 0 }, "value": "a", @@ -699,7 +699,7 @@ "type": "Identifier", "span": { "start": 451, - "end": 460, + "end": 452, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility.json b/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility.json index 1ca92b459ab6..9a798426d919 100644 --- a/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility.json +++ b/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 35, - "end": 44, + "end": 36, "ctxt": 0 }, "value": "x", @@ -251,7 +251,7 @@ "type": "Identifier", "span": { "start": 112, - "end": 121, + "end": 113, "ctxt": 0 }, "value": "p", @@ -443,7 +443,7 @@ "type": "Identifier", "span": { "start": 203, - "end": 212, + "end": 204, "ctxt": 0 }, "value": "p", @@ -632,7 +632,7 @@ "type": "Identifier", "span": { "start": 300, - "end": 309, + "end": 301, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility2.json b/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility2.json index 9a5b138e622b..05b989124d17 100644 --- a/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility2.json +++ b/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility2.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 35, - "end": 45, + "end": 36, "ctxt": 0 }, "value": "x", @@ -251,7 +251,7 @@ "type": "Identifier", "span": { "start": 113, - "end": 123, + "end": 114, "ctxt": 0 }, "value": "p", @@ -443,7 +443,7 @@ "type": "Identifier", "span": { "start": 205, - "end": 215, + "end": 206, "ctxt": 0 }, "value": "p", @@ -632,7 +632,7 @@ "type": "Identifier", "span": { "start": 303, - "end": 312, + "end": 304, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility3.json b/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility3.json index 08d57c1cce26..afe08836b6bc 100644 --- a/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility3.json +++ b/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility3.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 40, - "end": 49, + "end": 41, "ctxt": 0 }, "value": "p", @@ -156,7 +156,7 @@ "type": "Identifier", "span": { "start": 110, - "end": 119, + "end": 111, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/classExtendingClass.json b/crates/swc_ecma_parser/tests/tsc/classExtendingClass.json index 4bd03d8e7f86..358242dcbeb1 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExtendingClass.json +++ b/crates/swc_ecma_parser/tests/tsc/classExtendingClass.json @@ -676,7 +676,7 @@ "type": "Identifier", "span": { "start": 228, - "end": 232, + "end": 229, "ctxt": 0 }, "value": "x", @@ -769,7 +769,7 @@ "type": "Identifier", "span": { "start": 258, - "end": 262, + "end": 259, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/classExtendingClassLikeType.json b/crates/swc_ecma_parser/tests/tsc/classExtendingClassLikeType.json index e72cb96f6d44..d02999e836cf 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExtendingClassLikeType.json +++ b/crates/swc_ecma_parser/tests/tsc/classExtendingClassLikeType.json @@ -296,7 +296,7 @@ "type": "Identifier", "span": { "start": 166, - "end": 175, + "end": 167, "ctxt": 0 }, "value": "x", @@ -323,7 +323,7 @@ "type": "Identifier", "span": { "start": 177, - "end": 186, + "end": 178, "ctxt": 0 }, "value": "y", @@ -415,7 +415,7 @@ "type": "Identifier", "span": { "start": 223, - "end": 227, + "end": 224, "ctxt": 0 }, "value": "x", @@ -569,7 +569,7 @@ "type": "Identifier", "span": { "start": 254, - "end": 258, + "end": 255, "ctxt": 0 }, "value": "x", @@ -606,7 +606,7 @@ "type": "Identifier", "span": { "start": 260, - "end": 264, + "end": 261, "ctxt": 0 }, "value": "y", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 294, - "end": 298, + "end": 295, "ctxt": 0 }, "value": "x", @@ -797,7 +797,7 @@ "type": "Identifier", "span": { "start": 300, - "end": 304, + "end": 301, "ctxt": 0 }, "value": "y", @@ -1931,7 +1931,7 @@ "type": "Identifier", "span": { "start": 940, - "end": 949, + "end": 941, "ctxt": 0 }, "value": "x", @@ -2023,7 +2023,7 @@ "type": "Identifier", "span": { "start": 983, - "end": 992, + "end": 984, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlock11.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlock11.json index 3720fffeab1b..24aad8ab4d28 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlock11.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlock11.json @@ -133,7 +133,7 @@ "type": "Identifier", "span": { "start": 80, - "end": 89, + "end": 81, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlock17.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlock17.json index 4c2b63c8b350..b2417f7ea53a 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlock17.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlock17.json @@ -72,7 +72,7 @@ "type": "Identifier", "span": { "start": 41, - "end": 45, + "end": 42, "ctxt": 0 }, "value": "o", @@ -150,7 +150,7 @@ "type": "Identifier", "span": { "start": 61, - "end": 65, + "end": 62, "ctxt": 0 }, "value": "o", @@ -187,7 +187,7 @@ "type": "Identifier", "span": { "start": 67, - "end": 76, + "end": 68, "ctxt": 0 }, "value": "v", @@ -340,7 +340,7 @@ "type": "Identifier", "span": { "start": 128, - "end": 137, + "end": 129, "ctxt": 0 }, "value": "v", @@ -886,7 +886,7 @@ "type": "Identifier", "span": { "start": 343, - "end": 347, + "end": 344, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/classWithBaseClassButNoConstructor.json b/crates/swc_ecma_parser/tests/tsc/classWithBaseClassButNoConstructor.json index d86172dc539d..e879dbc8880d 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithBaseClassButNoConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithBaseClassButNoConstructor.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 30, - "end": 39, + "end": 31, "ctxt": 0 }, "value": "x", @@ -391,7 +391,7 @@ "type": "Identifier", "span": { "start": 189, - "end": 193, + "end": 190, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/classWithConstructors.json b/crates/swc_ecma_parser/tests/tsc/classWithConstructors.json index c2da808ccfb9..64d6dedc6ea2 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithConstructors.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithConstructors.json @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 55, - "end": 64, + "end": 56, "ctxt": 0 }, "value": "x", @@ -295,7 +295,7 @@ "type": "Identifier", "span": { "start": 173, - "end": 182, + "end": 174, "ctxt": 0 }, "value": "x", @@ -354,7 +354,7 @@ "type": "Identifier", "span": { "start": 205, - "end": 214, + "end": 206, "ctxt": 0 }, "value": "x", @@ -413,7 +413,7 @@ "type": "Identifier", "span": { "start": 237, - "end": 243, + "end": 238, "ctxt": 0 }, "value": "x", @@ -940,7 +940,7 @@ "type": "Identifier", "span": { "start": 525, - "end": 529, + "end": 526, "ctxt": 0 }, "value": "x", @@ -1194,7 +1194,7 @@ "type": "Identifier", "span": { "start": 643, - "end": 647, + "end": 644, "ctxt": 0 }, "value": "x", @@ -1263,7 +1263,7 @@ "type": "Identifier", "span": { "start": 670, - "end": 674, + "end": 671, "ctxt": 0 }, "value": "x", @@ -1309,7 +1309,7 @@ "type": "Identifier", "span": { "start": 676, - "end": 680, + "end": 677, "ctxt": 0 }, "value": "y", @@ -1378,7 +1378,7 @@ "type": "Identifier", "span": { "start": 703, - "end": 709, + "end": 704, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/classWithOnlyPublicMembersEquivalentToInterface.json b/crates/swc_ecma_parser/tests/tsc/classWithOnlyPublicMembersEquivalentToInterface.json index 90e2d16299ed..a51dc3d52c58 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithOnlyPublicMembersEquivalentToInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithOnlyPublicMembersEquivalentToInterface.json @@ -102,7 +102,7 @@ "type": "Identifier", "span": { "start": 85, - "end": 94, + "end": 86, "ctxt": 0 }, "value": "a", @@ -597,7 +597,7 @@ "type": "Identifier", "span": { "start": 281, - "end": 290, + "end": 282, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/classWithOnlyPublicMembersEquivalentToInterface2.json b/crates/swc_ecma_parser/tests/tsc/classWithOnlyPublicMembersEquivalentToInterface2.json index 5d62f455a445..2f99df5ed616 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithOnlyPublicMembersEquivalentToInterface2.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithOnlyPublicMembersEquivalentToInterface2.json @@ -102,7 +102,7 @@ "type": "Identifier", "span": { "start": 85, - "end": 94, + "end": 86, "ctxt": 0 }, "value": "a", @@ -642,7 +642,7 @@ "type": "Identifier", "span": { "start": 343, - "end": 352, + "end": 344, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/classWithOptionalParameter.json b/crates/swc_ecma_parser/tests/tsc/classWithOptionalParameter.json index 1e0c179be305..c7dff1a01289 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithOptionalParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithOptionalParameter.json @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 138, - "end": 142, + "end": 139, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/classWithStaticMembers.json b/crates/swc_ecma_parser/tests/tsc/classWithStaticMembers.json index 2493e2cbb2a7..b8de11922914 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithStaticMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithStaticMembers.json @@ -254,7 +254,7 @@ "type": "Identifier", "span": { "start": 124, - "end": 133, + "end": 125, "ctxt": 0 }, "value": "a", @@ -293,7 +293,7 @@ "type": "Identifier", "span": { "start": 143, - "end": 152, + "end": 144, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/classWithTwoConstructorDefinitions.json b/crates/swc_ecma_parser/tests/tsc/classWithTwoConstructorDefinitions.json index 40d80a6a6a23..7590eb83c768 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithTwoConstructorDefinitions.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithTwoConstructorDefinitions.json @@ -164,7 +164,7 @@ "type": "Identifier", "span": { "start": 106, - "end": 110, + "end": 107, "ctxt": 0 }, "value": "x", @@ -241,7 +241,7 @@ "type": "Identifier", "span": { "start": 141, - "end": 145, + "end": 142, "ctxt": 0 }, "value": "x", @@ -287,7 +287,7 @@ "type": "Identifier", "span": { "start": 147, - "end": 151, + "end": 148, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/commaOperatorOtherInvalidOperation.json b/crates/swc_ecma_parser/tests/tsc/commaOperatorOtherInvalidOperation.json index 9c5a4b562096..a02095a3e156 100644 --- a/crates/swc_ecma_parser/tests/tsc/commaOperatorOtherInvalidOperation.json +++ b/crates/swc_ecma_parser/tests/tsc/commaOperatorOtherInvalidOperation.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 129, - "end": 138, + "end": 130, "ctxt": 0 }, "value": "x", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 140, - "end": 149, + "end": 141, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/commaOperatorOtherValidOperation.json b/crates/swc_ecma_parser/tests/tsc/commaOperatorOtherValidOperation.json index fc15269ba063..c8e7fb84ab71 100644 --- a/crates/swc_ecma_parser/tests/tsc/commaOperatorOtherValidOperation.json +++ b/crates/swc_ecma_parser/tests/tsc/commaOperatorOtherValidOperation.json @@ -200,7 +200,7 @@ "type": "Identifier", "span": { "start": 171, - "end": 180, + "end": 172, "ctxt": 0 }, "value": "x", @@ -236,7 +236,7 @@ "type": "Identifier", "span": { "start": 182, - "end": 191, + "end": 183, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithIdenticalObjects.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithIdenticalObjects.json index b55da632f983..5ee68e0aea4e 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithIdenticalObjects.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithIdenticalObjects.json @@ -292,7 +292,7 @@ "type": "Identifier", "span": { "start": 134, - "end": 143, + "end": 135, "ctxt": 0 }, "value": "a", @@ -670,7 +670,7 @@ "type": "Identifier", "span": { "start": 317, - "end": 326, + "end": 318, "ctxt": 0 }, "value": "b", @@ -858,7 +858,7 @@ "type": "Identifier", "span": { "start": 419, - "end": 428, + "end": 420, "ctxt": 0 }, "value": "b", @@ -1073,7 +1073,7 @@ "type": "Identifier", "span": { "start": 539, - "end": 548, + "end": 540, "ctxt": 0 }, "value": "a", @@ -1172,7 +1172,7 @@ "type": "Identifier", "span": { "start": 578, - "end": 587, + "end": 579, "ctxt": 0 }, "value": "a", @@ -1258,7 +1258,7 @@ "type": "Identifier", "span": { "start": 621, - "end": 630, + "end": 622, "ctxt": 0 }, "value": "a", @@ -1354,7 +1354,7 @@ "type": "Identifier", "span": { "start": 659, - "end": 668, + "end": 660, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithIdenticalTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithIdenticalTypeParameter.json index 7532efda525c..535076035c62 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithIdenticalTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithIdenticalTypeParameter.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 17, - "end": 21, + "end": 18, "ctxt": 0 }, "value": "t", diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.json index 987643b4736e..15961c5f7485 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.json @@ -484,7 +484,7 @@ "type": "Identifier", "span": { "start": 192, - "end": 201, + "end": 193, "ctxt": 0 }, "value": "a", @@ -511,7 +511,7 @@ "type": "Identifier", "span": { "start": 203, - "end": 212, + "end": 204, "ctxt": 0 }, "value": "b", @@ -629,7 +629,7 @@ "type": "Identifier", "span": { "start": 236, - "end": 245, + "end": 237, "ctxt": 0 }, "value": "a", @@ -747,7 +747,7 @@ "type": "Identifier", "span": { "start": 270, - "end": 277, + "end": 271, "ctxt": 0 }, "value": "a", @@ -784,7 +784,7 @@ "type": "Identifier", "span": { "start": 279, - "end": 288, + "end": 280, "ctxt": 0 }, "value": "b", @@ -902,7 +902,7 @@ "type": "Identifier", "span": { "start": 312, - "end": 322, + "end": 313, "ctxt": 0 }, "value": "a", @@ -939,7 +939,7 @@ "type": "Identifier", "span": { "start": 324, - "end": 331, + "end": 325, "ctxt": 0 }, "value": "b", @@ -1267,7 +1267,7 @@ "type": "Identifier", "span": { "start": 402, - "end": 410, + "end": 403, "ctxt": 0 }, "value": "a", @@ -1395,7 +1395,7 @@ "type": "Identifier", "span": { "start": 434, - "end": 439, + "end": 435, "ctxt": 0 }, "value": "a", @@ -1823,7 +1823,7 @@ "type": "Identifier", "span": { "start": 537, - "end": 541, + "end": 538, "ctxt": 0 }, "value": "t", @@ -1993,7 +1993,7 @@ "type": "Identifier", "span": { "start": 565, - "end": 571, + "end": 566, "ctxt": 0 }, "value": "t", diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.json index 4e87bb2aa972..3a4393025a19 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.json @@ -471,7 +471,7 @@ "type": "Identifier", "span": { "start": 194, - "end": 203, + "end": 195, "ctxt": 0 }, "value": "a", @@ -498,7 +498,7 @@ "type": "Identifier", "span": { "start": 205, - "end": 214, + "end": 206, "ctxt": 0 }, "value": "b", @@ -613,7 +613,7 @@ "type": "Identifier", "span": { "start": 240, - "end": 249, + "end": 241, "ctxt": 0 }, "value": "a", @@ -728,7 +728,7 @@ "type": "Identifier", "span": { "start": 276, - "end": 283, + "end": 277, "ctxt": 0 }, "value": "a", @@ -765,7 +765,7 @@ "type": "Identifier", "span": { "start": 285, - "end": 294, + "end": 286, "ctxt": 0 }, "value": "b", @@ -880,7 +880,7 @@ "type": "Identifier", "span": { "start": 320, - "end": 330, + "end": 321, "ctxt": 0 }, "value": "a", @@ -917,7 +917,7 @@ "type": "Identifier", "span": { "start": 332, - "end": 339, + "end": 333, "ctxt": 0 }, "value": "b", @@ -1216,7 +1216,7 @@ "type": "Identifier", "span": { "start": 416, - "end": 424, + "end": 417, "ctxt": 0 }, "value": "a", @@ -1341,7 +1341,7 @@ "type": "Identifier", "span": { "start": 450, - "end": 455, + "end": 451, "ctxt": 0 }, "value": "a", @@ -1760,7 +1760,7 @@ "type": "Identifier", "span": { "start": 559, - "end": 563, + "end": 560, "ctxt": 0 }, "value": "t", @@ -1917,7 +1917,7 @@ "type": "Identifier", "span": { "start": 589, - "end": 595, + "end": 590, "ctxt": 0 }, "value": "t", diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.json index a07a8ecf2277..e81b3df34df7 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.json @@ -297,7 +297,7 @@ "type": "Identifier", "span": { "start": 144, - "end": 148, + "end": 145, "ctxt": 0 }, "value": "x", @@ -557,7 +557,7 @@ "type": "Identifier", "span": { "start": 199, - "end": 203, + "end": 200, "ctxt": 0 }, "value": "x", @@ -727,7 +727,7 @@ "type": "Identifier", "span": { "start": 224, - "end": 233, + "end": 225, "ctxt": 0 }, "value": "x", @@ -845,7 +845,7 @@ "type": "Identifier", "span": { "start": 263, - "end": 268, + "end": 264, "ctxt": 0 }, "value": "x", @@ -1015,7 +1015,7 @@ "type": "Identifier", "span": { "start": 289, - "end": 299, + "end": 290, "ctxt": 0 }, "value": "x", @@ -1465,7 +1465,7 @@ "type": "Identifier", "span": { "start": 403, - "end": 407, + "end": 404, "ctxt": 0 }, "value": "x", @@ -1502,7 +1502,7 @@ "type": "Identifier", "span": { "start": 409, - "end": 413, + "end": 410, "ctxt": 0 }, "value": "y", @@ -1672,7 +1672,7 @@ "type": "Identifier", "span": { "start": 434, - "end": 443, + "end": 435, "ctxt": 0 }, "value": "x", @@ -1699,7 +1699,7 @@ "type": "Identifier", "span": { "start": 445, - "end": 454, + "end": 446, "ctxt": 0 }, "value": "y", @@ -1817,7 +1817,7 @@ "type": "Identifier", "span": { "start": 497, - "end": 501, + "end": 498, "ctxt": 0 }, "value": "x", @@ -1854,7 +1854,7 @@ "type": "Identifier", "span": { "start": 503, - "end": 507, + "end": 504, "ctxt": 0 }, "value": "y", @@ -2065,7 +2065,7 @@ "type": "Identifier", "span": { "start": 528, - "end": 535, + "end": 529, "ctxt": 0 }, "value": "x", @@ -2102,7 +2102,7 @@ "type": "Identifier", "span": { "start": 537, - "end": 541, + "end": 538, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.json index 61c770cd6a40..21c996d24bbf 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.json @@ -284,7 +284,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 150, + "end": 147, "ctxt": 0 }, "value": "x", @@ -518,7 +518,7 @@ "type": "Identifier", "span": { "start": 205, - "end": 209, + "end": 206, "ctxt": 0 }, "value": "x", @@ -675,7 +675,7 @@ "type": "Identifier", "span": { "start": 232, - "end": 241, + "end": 233, "ctxt": 0 }, "value": "x", @@ -780,7 +780,7 @@ "type": "Identifier", "span": { "start": 273, - "end": 278, + "end": 274, "ctxt": 0 }, "value": "x", @@ -937,7 +937,7 @@ "type": "Identifier", "span": { "start": 301, - "end": 311, + "end": 302, "ctxt": 0 }, "value": "x", @@ -1348,7 +1348,7 @@ "type": "Identifier", "span": { "start": 421, - "end": 425, + "end": 422, "ctxt": 0 }, "value": "x", @@ -1385,7 +1385,7 @@ "type": "Identifier", "span": { "start": 427, - "end": 431, + "end": 428, "ctxt": 0 }, "value": "y", @@ -1542,7 +1542,7 @@ "type": "Identifier", "span": { "start": 454, - "end": 463, + "end": 455, "ctxt": 0 }, "value": "x", @@ -1569,7 +1569,7 @@ "type": "Identifier", "span": { "start": 465, - "end": 474, + "end": 466, "ctxt": 0 }, "value": "y", @@ -1674,7 +1674,7 @@ "type": "Identifier", "span": { "start": 519, - "end": 523, + "end": 520, "ctxt": 0 }, "value": "x", @@ -1711,7 +1711,7 @@ "type": "Identifier", "span": { "start": 525, - "end": 529, + "end": 526, "ctxt": 0 }, "value": "y", @@ -1909,7 +1909,7 @@ "type": "Identifier", "span": { "start": 552, - "end": 559, + "end": 553, "ctxt": 0 }, "value": "x", @@ -1946,7 +1946,7 @@ "type": "Identifier", "span": { "start": 561, - "end": 565, + "end": 562, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipTypeParameter.json index 4ec318662837..f06c7ba53aad 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipTypeParameter.json @@ -514,7 +514,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 150, + "end": 147, "ctxt": 0 }, "value": "t", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 152, - "end": 156, + "end": 153, "ctxt": 0 }, "value": "u", diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithOneOperandIsAny.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithOneOperandIsAny.json index 5e27200c8084..3632d7690b79 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithOneOperandIsAny.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithOneOperandIsAny.json @@ -160,7 +160,7 @@ "type": "Identifier", "span": { "start": 50, - "end": 54, + "end": 51, "ctxt": 0 }, "value": "t", diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithOneOperandIsUndefined.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithOneOperandIsUndefined.json index 98c365cc5539..77e9cd8e1a6a 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithOneOperandIsUndefined.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithOneOperandIsUndefined.json @@ -170,7 +170,7 @@ "type": "Identifier", "span": { "start": 63, - "end": 67, + "end": 64, "ctxt": 0 }, "value": "t", diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnCallSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnCallSignature.json index d59af94e1938..1a05f72a71e4 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnCallSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnCallSignature.json @@ -405,7 +405,7 @@ "type": "Identifier", "span": { "start": 155, - "end": 164, + "end": 156, "ctxt": 0 }, "value": "a", @@ -432,7 +432,7 @@ "type": "Identifier", "span": { "start": 166, - "end": 175, + "end": 167, "ctxt": 0 }, "value": "b", @@ -550,7 +550,7 @@ "type": "Identifier", "span": { "start": 199, - "end": 208, + "end": 200, "ctxt": 0 }, "value": "a", @@ -577,7 +577,7 @@ "type": "Identifier", "span": { "start": 210, - "end": 219, + "end": 211, "ctxt": 0 }, "value": "b", @@ -695,7 +695,7 @@ "type": "Identifier", "span": { "start": 244, - "end": 253, + "end": 245, "ctxt": 0 }, "value": "a", @@ -722,7 +722,7 @@ "type": "Identifier", "span": { "start": 255, - "end": 264, + "end": 256, "ctxt": 0 }, "value": "b", @@ -840,7 +840,7 @@ "type": "Identifier", "span": { "start": 288, - "end": 297, + "end": 289, "ctxt": 0 }, "value": "a", @@ -958,7 +958,7 @@ "type": "Identifier", "span": { "start": 322, - "end": 331, + "end": 323, "ctxt": 0 }, "value": "a", @@ -985,7 +985,7 @@ "type": "Identifier", "span": { "start": 333, - "end": 342, + "end": 334, "ctxt": 0 }, "value": "b", @@ -1193,7 +1193,7 @@ "type": "Identifier", "span": { "start": 391, - "end": 398, + "end": 392, "ctxt": 0 }, "value": "a", @@ -1321,7 +1321,7 @@ "type": "Identifier", "span": { "start": 422, - "end": 432, + "end": 423, "ctxt": 0 }, "value": "a", @@ -1449,7 +1449,7 @@ "type": "Identifier", "span": { "start": 457, - "end": 467, + "end": 458, "ctxt": 0 }, "value": "a", @@ -1486,7 +1486,7 @@ "type": "Identifier", "span": { "start": 469, - "end": 476, + "end": 470, "ctxt": 0 }, "value": "b", @@ -1614,7 +1614,7 @@ "type": "Identifier", "span": { "start": 500, - "end": 507, + "end": 501, "ctxt": 0 }, "value": "a", @@ -1651,7 +1651,7 @@ "type": "Identifier", "span": { "start": 509, - "end": 519, + "end": 510, "ctxt": 0 }, "value": "b", @@ -2369,7 +2369,7 @@ "type": "Identifier", "span": { "start": 695, - "end": 703, + "end": 696, "ctxt": 0 }, "value": "a", @@ -2497,7 +2497,7 @@ "type": "Identifier", "span": { "start": 728, - "end": 739, + "end": 729, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnConstructorSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnConstructorSignature.json index 27932db4db07..d314c25ddc8f 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnConstructorSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnConstructorSignature.json @@ -386,7 +386,7 @@ "type": "Identifier", "span": { "start": 161, - "end": 170, + "end": 162, "ctxt": 0 }, "value": "a", @@ -413,7 +413,7 @@ "type": "Identifier", "span": { "start": 172, - "end": 181, + "end": 173, "ctxt": 0 }, "value": "b", @@ -528,7 +528,7 @@ "type": "Identifier", "span": { "start": 207, - "end": 216, + "end": 208, "ctxt": 0 }, "value": "a", @@ -555,7 +555,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 227, + "end": 219, "ctxt": 0 }, "value": "b", @@ -670,7 +670,7 @@ "type": "Identifier", "span": { "start": 254, - "end": 263, + "end": 255, "ctxt": 0 }, "value": "a", @@ -697,7 +697,7 @@ "type": "Identifier", "span": { "start": 265, - "end": 274, + "end": 266, "ctxt": 0 }, "value": "b", @@ -812,7 +812,7 @@ "type": "Identifier", "span": { "start": 300, - "end": 309, + "end": 301, "ctxt": 0 }, "value": "a", @@ -927,7 +927,7 @@ "type": "Identifier", "span": { "start": 336, - "end": 345, + "end": 337, "ctxt": 0 }, "value": "a", @@ -954,7 +954,7 @@ "type": "Identifier", "span": { "start": 347, - "end": 356, + "end": 348, "ctxt": 0 }, "value": "b", @@ -1156,7 +1156,7 @@ "type": "Identifier", "span": { "start": 409, - "end": 416, + "end": 410, "ctxt": 0 }, "value": "a", @@ -1281,7 +1281,7 @@ "type": "Identifier", "span": { "start": 442, - "end": 452, + "end": 443, "ctxt": 0 }, "value": "a", @@ -1406,7 +1406,7 @@ "type": "Identifier", "span": { "start": 479, - "end": 489, + "end": 480, "ctxt": 0 }, "value": "a", @@ -1443,7 +1443,7 @@ "type": "Identifier", "span": { "start": 491, - "end": 498, + "end": 492, "ctxt": 0 }, "value": "b", @@ -1568,7 +1568,7 @@ "type": "Identifier", "span": { "start": 524, - "end": 531, + "end": 525, "ctxt": 0 }, "value": "a", @@ -1605,7 +1605,7 @@ "type": "Identifier", "span": { "start": 533, - "end": 543, + "end": 534, "ctxt": 0 }, "value": "b", @@ -1904,7 +1904,7 @@ "type": "Identifier", "span": { "start": 626, - "end": 634, + "end": 627, "ctxt": 0 }, "value": "a", @@ -2029,7 +2029,7 @@ "type": "Identifier", "span": { "start": 660, - "end": 671, + "end": 661, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.json index 8d311800a7b1..5be00095742e 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.json @@ -225,7 +225,7 @@ "type": "Identifier", "span": { "start": 109, - "end": 113, + "end": 110, "ctxt": 0 }, "value": "x", @@ -395,7 +395,7 @@ "type": "Identifier", "span": { "start": 134, - "end": 143, + "end": 135, "ctxt": 0 }, "value": "x", @@ -513,7 +513,7 @@ "type": "Identifier", "span": { "start": 173, - "end": 177, + "end": 174, "ctxt": 0 }, "value": "x", @@ -683,7 +683,7 @@ "type": "Identifier", "span": { "start": 198, - "end": 207, + "end": 199, "ctxt": 0 }, "value": "x", @@ -710,7 +710,7 @@ "type": "Identifier", "span": { "start": 209, - "end": 218, + "end": 210, "ctxt": 0 }, "value": "y", @@ -828,7 +828,7 @@ "type": "Identifier", "span": { "start": 251, - "end": 255, + "end": 252, "ctxt": 0 }, "value": "x", @@ -865,7 +865,7 @@ "type": "Identifier", "span": { "start": 257, - "end": 261, + "end": 258, "ctxt": 0 }, "value": "y", @@ -1058,7 +1058,7 @@ "type": "Identifier", "span": { "start": 282, - "end": 291, + "end": 283, "ctxt": 0 }, "value": "x", @@ -1085,7 +1085,7 @@ "type": "Identifier", "span": { "start": 293, - "end": 302, + "end": 294, "ctxt": 0 }, "value": "y", @@ -1203,7 +1203,7 @@ "type": "Identifier", "span": { "start": 332, - "end": 337, + "end": 333, "ctxt": 0 }, "value": "x", @@ -1373,7 +1373,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 368, + "end": 359, "ctxt": 0 }, "value": "x", @@ -1823,7 +1823,7 @@ "type": "Identifier", "span": { "start": 472, - "end": 476, + "end": 473, "ctxt": 0 }, "value": "x", @@ -1860,7 +1860,7 @@ "type": "Identifier", "span": { "start": 478, - "end": 482, + "end": 479, "ctxt": 0 }, "value": "y", @@ -2030,7 +2030,7 @@ "type": "Identifier", "span": { "start": 503, - "end": 512, + "end": 504, "ctxt": 0 }, "value": "x", @@ -2057,7 +2057,7 @@ "type": "Identifier", "span": { "start": 514, - "end": 523, + "end": 515, "ctxt": 0 }, "value": "y", @@ -2175,7 +2175,7 @@ "type": "Identifier", "span": { "start": 595, - "end": 602, + "end": 596, "ctxt": 0 }, "value": "x", @@ -2212,7 +2212,7 @@ "type": "Identifier", "span": { "start": 604, - "end": 614, + "end": 605, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.json index 6a34af851624..5bae7d6fc712 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.json @@ -212,7 +212,7 @@ "type": "Identifier", "span": { "start": 111, - "end": 115, + "end": 112, "ctxt": 0 }, "value": "x", @@ -369,7 +369,7 @@ "type": "Identifier", "span": { "start": 138, - "end": 147, + "end": 139, "ctxt": 0 }, "value": "x", @@ -474,7 +474,7 @@ "type": "Identifier", "span": { "start": 179, - "end": 183, + "end": 180, "ctxt": 0 }, "value": "x", @@ -631,7 +631,7 @@ "type": "Identifier", "span": { "start": 206, - "end": 215, + "end": 207, "ctxt": 0 }, "value": "x", @@ -658,7 +658,7 @@ "type": "Identifier", "span": { "start": 217, - "end": 226, + "end": 218, "ctxt": 0 }, "value": "y", @@ -763,7 +763,7 @@ "type": "Identifier", "span": { "start": 261, - "end": 265, + "end": 262, "ctxt": 0 }, "value": "x", @@ -800,7 +800,7 @@ "type": "Identifier", "span": { "start": 267, - "end": 271, + "end": 268, "ctxt": 0 }, "value": "y", @@ -980,7 +980,7 @@ "type": "Identifier", "span": { "start": 294, - "end": 303, + "end": 295, "ctxt": 0 }, "value": "x", @@ -1007,7 +1007,7 @@ "type": "Identifier", "span": { "start": 305, - "end": 314, + "end": 306, "ctxt": 0 }, "value": "y", @@ -1112,7 +1112,7 @@ "type": "Identifier", "span": { "start": 346, - "end": 351, + "end": 347, "ctxt": 0 }, "value": "x", @@ -1269,7 +1269,7 @@ "type": "Identifier", "span": { "start": 374, - "end": 384, + "end": 375, "ctxt": 0 }, "value": "x", @@ -1680,7 +1680,7 @@ "type": "Identifier", "span": { "start": 494, - "end": 498, + "end": 495, "ctxt": 0 }, "value": "x", @@ -1717,7 +1717,7 @@ "type": "Identifier", "span": { "start": 500, - "end": 504, + "end": 501, "ctxt": 0 }, "value": "y", @@ -1874,7 +1874,7 @@ "type": "Identifier", "span": { "start": 527, - "end": 536, + "end": 528, "ctxt": 0 }, "value": "x", @@ -1901,7 +1901,7 @@ "type": "Identifier", "span": { "start": 538, - "end": 547, + "end": 539, "ctxt": 0 }, "value": "y", @@ -2006,7 +2006,7 @@ "type": "Identifier", "span": { "start": 623, - "end": 630, + "end": 624, "ctxt": 0 }, "value": "x", @@ -2043,7 +2043,7 @@ "type": "Identifier", "span": { "start": 632, - "end": 642, + "end": 633, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithTypeParameter.json index 3a8711c49009..ca52c40c01e3 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithTypeParameter.json @@ -140,7 +140,7 @@ "type": "Identifier", "span": { "start": 78, - "end": 82, + "end": 79, "ctxt": 0 }, "value": "t", @@ -186,7 +186,7 @@ "type": "Identifier", "span": { "start": 84, - "end": 88, + "end": 85, "ctxt": 0 }, "value": "u", @@ -232,7 +232,7 @@ "type": "Identifier", "span": { "start": 90, - "end": 94, + "end": 91, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/compoundAssignmentLHSIsReference.json b/crates/swc_ecma_parser/tests/tsc/compoundAssignmentLHSIsReference.json index efd1690f7a56..5c1062a24c7d 100644 --- a/crates/swc_ecma_parser/tests/tsc/compoundAssignmentLHSIsReference.json +++ b/crates/swc_ecma_parser/tests/tsc/compoundAssignmentLHSIsReference.json @@ -190,7 +190,7 @@ "type": "Identifier", "span": { "start": 108, - "end": 118, + "end": 110, "ctxt": 0 }, "value": "x2", @@ -755,7 +755,7 @@ "type": "Identifier", "span": { "start": 369, - "end": 379, + "end": 371, "ctxt": 0 }, "value": "x4", diff --git a/crates/swc_ecma_parser/tests/tsc/compoundExponentiationAssignmentLHSIsReference.json b/crates/swc_ecma_parser/tests/tsc/compoundExponentiationAssignmentLHSIsReference.json index d783161091fd..b41660d84a18 100644 --- a/crates/swc_ecma_parser/tests/tsc/compoundExponentiationAssignmentLHSIsReference.json +++ b/crates/swc_ecma_parser/tests/tsc/compoundExponentiationAssignmentLHSIsReference.json @@ -168,7 +168,7 @@ "type": "Identifier", "span": { "start": 101, - "end": 111, + "end": 103, "ctxt": 0 }, "value": "x2", @@ -532,7 +532,7 @@ "type": "Identifier", "span": { "start": 301, - "end": 311, + "end": 303, "ctxt": 0 }, "value": "x4", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames1_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames1_ES5.json index 3b4e40f31f12..129e091e7af1 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames1_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames1_ES5.json @@ -165,7 +165,7 @@ "type": "Identifier", "span": { "start": 75, - "end": 84, + "end": 76, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames1_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames1_ES6.json index 3b4e40f31f12..129e091e7af1 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames1_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames1_ES6.json @@ -165,7 +165,7 @@ "type": "Identifier", "span": { "start": 75, - "end": 84, + "end": 76, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES5.json index 00bd42b48a1b..32b3fcebf521 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES5.json @@ -355,7 +355,7 @@ "type": "Identifier", "span": { "start": 170, - "end": 177, + "end": 171, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES6.json index 00bd42b48a1b..32b3fcebf521 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES6.json @@ -355,7 +355,7 @@ "type": "Identifier", "span": { "start": 170, - "end": 177, + "end": 171, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES5.json index f74a205c61e9..b757657a92d5 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES5.json @@ -355,7 +355,7 @@ "type": "Identifier", "span": { "start": 170, - "end": 177, + "end": 171, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES6.json index f74a205c61e9..b757657a92d5 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES6.json @@ -355,7 +355,7 @@ "type": "Identifier", "span": { "start": 170, - "end": 177, + "end": 171, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames38_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames38_ES5.json index 956cdc2b5d6c..00f011a025db 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames38_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames38_ES5.json @@ -393,7 +393,7 @@ "type": "Identifier", "span": { "start": 170, - "end": 177, + "end": 171, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames38_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames38_ES6.json index 956cdc2b5d6c..00f011a025db 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames38_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames38_ES6.json @@ -393,7 +393,7 @@ "type": "Identifier", "span": { "start": 170, - "end": 177, + "end": 171, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames39_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames39_ES5.json index 4f0fe222d68f..eaf00601869e 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames39_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames39_ES5.json @@ -393,7 +393,7 @@ "type": "Identifier", "span": { "start": 170, - "end": 177, + "end": 171, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames39_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames39_ES6.json index 4f0fe222d68f..eaf00601869e 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames39_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames39_ES6.json @@ -393,7 +393,7 @@ "type": "Identifier", "span": { "start": 170, - "end": 177, + "end": 171, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES5.json index f6daefad0fe1..b2ecf1579811 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES5.json @@ -382,7 +382,7 @@ "type": "Identifier", "span": { "start": 192, - "end": 199, + "end": 193, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES6.json index f6daefad0fe1..b2ecf1579811 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES6.json @@ -382,7 +382,7 @@ "type": "Identifier", "span": { "start": 192, - "end": 199, + "end": 193, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES5.json index 0a442fcb2444..c62e36b77d26 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES5.json @@ -382,7 +382,7 @@ "type": "Identifier", "span": { "start": 165, - "end": 171, + "end": 166, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES6.json index 0a442fcb2444..c62e36b77d26 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES6.json @@ -382,7 +382,7 @@ "type": "Identifier", "span": { "start": 165, - "end": 171, + "end": 166, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES5.json index 320559b58f1a..89cec3435721 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES5.json @@ -382,7 +382,7 @@ "type": "Identifier", "span": { "start": 252, - "end": 258, + "end": 253, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES6.json index 320559b58f1a..89cec3435721 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES6.json @@ -382,7 +382,7 @@ "type": "Identifier", "span": { "start": 252, - "end": 258, + "end": 253, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES5.json index 4bd8a3d38e0a..6b58a6af5d3e 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES5.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 52, - "end": 73, + "end": 53, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES6.json index 4bd8a3d38e0a..6b58a6af5d3e 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES6.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 52, - "end": 73, + "end": 53, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames9_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames9_ES5.json index 87a7d1852905..0ffed447c7ec 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames9_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames9_ES5.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 28, - "end": 37, + "end": 29, "ctxt": 0 }, "value": "s", @@ -111,7 +111,7 @@ "type": "Identifier", "span": { "start": 59, - "end": 68, + "end": 60, "ctxt": 0 }, "value": "n", @@ -190,7 +190,7 @@ "type": "Identifier", "span": { "start": 93, - "end": 97, + "end": 94, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames9_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames9_ES6.json index 87a7d1852905..0ffed447c7ec 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames9_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames9_ES6.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 28, - "end": 37, + "end": 29, "ctxt": 0 }, "value": "s", @@ -111,7 +111,7 @@ "type": "Identifier", "span": { "start": 59, - "end": 68, + "end": 60, "ctxt": 0 }, "value": "n", @@ -190,7 +190,7 @@ "type": "Identifier", "span": { "start": 93, - "end": 97, + "end": 94, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES5.json index c3ac98f63517..d1f8942c1cc2 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES5.json @@ -84,7 +84,7 @@ "type": "Identifier", "span": { "start": 49, - "end": 58, + "end": 50, "ctxt": 0 }, "value": "x", @@ -186,7 +186,7 @@ "type": "Identifier", "span": { "start": 89, - "end": 95, + "end": 90, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES6.json index c3ac98f63517..d1f8942c1cc2 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES6.json @@ -84,7 +84,7 @@ "type": "Identifier", "span": { "start": 49, - "end": 58, + "end": 50, "ctxt": 0 }, "value": "x", @@ -186,7 +186,7 @@ "type": "Identifier", "span": { "start": 89, - "end": 95, + "end": 90, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES5.json index 5744077241d2..3e510a4b5e85 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES5.json @@ -84,7 +84,7 @@ "type": "Identifier", "span": { "start": 49, - "end": 55, + "end": 50, "ctxt": 0 }, "value": "x", @@ -186,7 +186,7 @@ "type": "Identifier", "span": { "start": 105, - "end": 114, + "end": 106, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES6.json index 5744077241d2..3e510a4b5e85 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES6.json @@ -84,7 +84,7 @@ "type": "Identifier", "span": { "start": 49, - "end": 55, + "end": 50, "ctxt": 0 }, "value": "x", @@ -186,7 +186,7 @@ "type": "Identifier", "span": { "start": 105, - "end": 114, + "end": 106, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES5.json index 84e8206e1831..9a9b45e3879d 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES5.json @@ -84,7 +84,7 @@ "type": "Identifier", "span": { "start": 49, - "end": 58, + "end": 50, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES6.json index 84e8206e1831..9a9b45e3879d 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES6.json @@ -84,7 +84,7 @@ "type": "Identifier", "span": { "start": 49, - "end": 58, + "end": 50, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES5.json index 995b27d09a34..bb77cadfee98 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES5.json @@ -161,7 +161,7 @@ "type": "Identifier", "span": { "start": 81, - "end": 90, + "end": 84, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES6.json index 995b27d09a34..bb77cadfee98 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES6.json @@ -161,7 +161,7 @@ "type": "Identifier", "span": { "start": 81, - "end": 90, + "end": 84, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES5.json index cff4e22d7971..7d8f689829dd 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES5.json @@ -290,7 +290,7 @@ "type": "Identifier", "span": { "start": 120, - "end": 129, + "end": 123, "ctxt": 0 }, "value": "obj", @@ -449,7 +449,7 @@ "type": "Identifier", "span": { "start": 157, - "end": 166, + "end": 160, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES6.json index cff4e22d7971..7d8f689829dd 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES6.json @@ -290,7 +290,7 @@ "type": "Identifier", "span": { "start": 120, - "end": 129, + "end": 123, "ctxt": 0 }, "value": "obj", @@ -449,7 +449,7 @@ "type": "Identifier", "span": { "start": 157, - "end": 166, + "end": 160, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesWithStaticProperty.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesWithStaticProperty.json index ebbad757b840..cb121b29e023 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesWithStaticProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesWithStaticProperty.json @@ -212,7 +212,7 @@ "type": "Identifier", "span": { "start": 138, - "end": 147, + "end": 139, "ctxt": 0 }, "value": "x", @@ -605,7 +605,7 @@ "type": "Identifier", "span": { "start": 327, - "end": 336, + "end": 328, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithIdenticalBCT.json b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithIdenticalBCT.json index 819a06d46098..7ec1ea557d5a 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithIdenticalBCT.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithIdenticalBCT.json @@ -1149,7 +1149,7 @@ "type": "Identifier", "span": { "start": 612, - "end": 616, + "end": 613, "ctxt": 0 }, "value": "t", @@ -1949,7 +1949,7 @@ "type": "Identifier", "span": { "start": 1032, - "end": 1036, + "end": 1033, "ctxt": 0 }, "value": "t", @@ -2271,7 +2271,7 @@ "type": "Identifier", "span": { "start": 1220, - "end": 1224, + "end": 1221, "ctxt": 0 }, "value": "t", diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithoutIdenticalBCT.json b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithoutIdenticalBCT.json index 56bfde5cacd3..08201cdc8b57 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithoutIdenticalBCT.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithoutIdenticalBCT.json @@ -1004,7 +1004,7 @@ "type": "Identifier", "span": { "start": 570, - "end": 574, + "end": 571, "ctxt": 0 }, "value": "t", @@ -1231,7 +1231,7 @@ "type": "Identifier", "span": { "start": 652, - "end": 656, + "end": 653, "ctxt": 0 }, "value": "t", @@ -1458,7 +1458,7 @@ "type": "Identifier", "span": { "start": 734, - "end": 738, + "end": 735, "ctxt": 0 }, "value": "t", @@ -1685,7 +1685,7 @@ "type": "Identifier", "span": { "start": 818, - "end": 822, + "end": 819, "ctxt": 0 }, "value": "t", diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalTypes1.json b/crates/swc_ecma_parser/tests/tsc/conditionalTypes1.json index b4c0aa4f3782..004278310864 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalTypes1.json @@ -893,7 +893,7 @@ "type": "Identifier", "span": { "start": 539, - "end": 543, + "end": 540, "ctxt": 0 }, "value": "x", @@ -939,7 +939,7 @@ "type": "Identifier", "span": { "start": 545, - "end": 562, + "end": 546, "ctxt": 0 }, "value": "y", @@ -1157,7 +1157,7 @@ "type": "Identifier", "span": { "start": 643, - "end": 647, + "end": 644, "ctxt": 0 }, "value": "x", @@ -1203,7 +1203,7 @@ "type": "Identifier", "span": { "start": 649, - "end": 666, + "end": 650, "ctxt": 0 }, "value": "y", @@ -1564,7 +1564,7 @@ "type": "Identifier", "span": { "start": 778, - "end": 800, + "end": 779, "ctxt": 0 }, "value": "x", @@ -1675,7 +1675,7 @@ "type": "Identifier", "span": { "start": 802, - "end": 837, + "end": 803, "ctxt": 0 }, "value": "y", @@ -1958,7 +1958,7 @@ "type": "Identifier", "span": { "start": 925, - "end": 934, + "end": 926, "ctxt": 0 }, "value": "x", @@ -2031,7 +2031,7 @@ "type": "Identifier", "span": { "start": 936, - "end": 958, + "end": 937, "ctxt": 0 }, "value": "y", @@ -3752,7 +3752,7 @@ "type": "Identifier", "span": { "start": 1663, - "end": 1667, + "end": 1664, "ctxt": 0 }, "value": "p", @@ -6448,7 +6448,7 @@ "type": "Identifier", "span": { "start": 3004, - "end": 3019, + "end": 3011, "ctxt": 0 }, "value": "newName", @@ -7450,7 +7450,7 @@ "type": "Identifier", "span": { "start": 3455, - "end": 3459, + "end": 3456, "ctxt": 0 }, "value": "x", @@ -7496,7 +7496,7 @@ "type": "Identifier", "span": { "start": 3461, - "end": 3485, + "end": 3462, "ctxt": 0 }, "value": "y", @@ -7570,7 +7570,7 @@ "type": "Identifier", "span": { "start": 3487, - "end": 3514, + "end": 3488, "ctxt": 0 }, "value": "z", @@ -7940,7 +7940,7 @@ "type": "Identifier", "span": { "start": 3642, - "end": 3652, + "end": 3643, "ctxt": 0 }, "value": "x", @@ -7995,7 +7995,7 @@ "type": "Identifier", "span": { "start": 3654, - "end": 3681, + "end": 3655, "ctxt": 0 }, "value": "y", @@ -8069,7 +8069,7 @@ "type": "Identifier", "span": { "start": 3683, - "end": 3713, + "end": 3684, "ctxt": 0 }, "value": "z", @@ -9047,7 +9047,7 @@ "type": "Identifier", "span": { "start": 4148, - "end": 4172, + "end": 4152, "ctxt": 0 }, "value": "part", @@ -9985,7 +9985,7 @@ "type": "Identifier", "span": { "start": 4595, - "end": 4603, + "end": 4600, "ctxt": 0 }, "value": "value", @@ -10327,7 +10327,7 @@ "type": "Identifier", "span": { "start": 4737, - "end": 4746, + "end": 4738, "ctxt": 0 }, "value": "n", @@ -10363,7 +10363,7 @@ "type": "Identifier", "span": { "start": 4748, - "end": 4758, + "end": 4749, "ctxt": 0 }, "value": "b", @@ -10399,7 +10399,7 @@ "type": "Identifier", "span": { "start": 4760, - "end": 4779, + "end": 4761, "ctxt": 0 }, "value": "x", @@ -10454,7 +10454,7 @@ "type": "Identifier", "span": { "start": 4781, - "end": 4785, + "end": 4782, "ctxt": 0 }, "value": "y", @@ -10869,7 +10869,7 @@ "type": "Identifier", "span": { "start": 5013, - "end": 5017, + "end": 5014, "ctxt": 0 }, "value": "x", @@ -10915,7 +10915,7 @@ "type": "Identifier", "span": { "start": 5019, - "end": 5031, + "end": 5020, "ctxt": 0 }, "value": "y", @@ -15712,7 +15712,7 @@ "type": "Identifier", "span": { "start": 7111, - "end": 7149, + "end": 7112, "ctxt": 0 }, "value": "x", @@ -15985,7 +15985,7 @@ "type": "Identifier", "span": { "start": 7214, - "end": 7252, + "end": 7215, "ctxt": 0 }, "value": "x", @@ -26200,7 +26200,7 @@ "type": "Identifier", "span": { "start": 10951, - "end": 10955, + "end": 10952, "ctxt": 0 }, "value": "o", @@ -26246,7 +26246,7 @@ "type": "Identifier", "span": { "start": 10957, - "end": 10979, + "end": 10958, "ctxt": 0 }, "value": "a", @@ -26754,7 +26754,7 @@ "type": "Identifier", "span": { "start": 11139, - "end": 11143, + "end": 11140, "ctxt": 0 }, "value": "a", @@ -26867,7 +26867,7 @@ "type": "Identifier", "span": { "start": 11186, - "end": 11190, + "end": 11187, "ctxt": 0 }, "value": "a", @@ -27034,7 +27034,7 @@ "type": "Identifier", "span": { "start": 11255, - "end": 11259, + "end": 11256, "ctxt": 0 }, "value": "a", @@ -27157,7 +27157,7 @@ "type": "Identifier", "span": { "start": 11298, - "end": 11302, + "end": 11299, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalTypes2.json b/crates/swc_ecma_parser/tests/tsc/conditionalTypes2.json index 90d93b738396..44ce9a284e7d 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalTypes2.json @@ -537,7 +537,7 @@ "type": "Identifier", "span": { "start": 284, - "end": 299, + "end": 285, "ctxt": 0 }, "value": "a", @@ -611,7 +611,7 @@ "type": "Identifier", "span": { "start": 301, - "end": 316, + "end": 302, "ctxt": 0 }, "value": "b", @@ -870,7 +870,7 @@ "type": "Identifier", "span": { "start": 383, - "end": 402, + "end": 384, "ctxt": 0 }, "value": "a", @@ -944,7 +944,7 @@ "type": "Identifier", "span": { "start": 404, - "end": 423, + "end": 405, "ctxt": 0 }, "value": "b", @@ -1203,7 +1203,7 @@ "type": "Identifier", "span": { "start": 490, - "end": 505, + "end": 491, "ctxt": 0 }, "value": "a", @@ -1277,7 +1277,7 @@ "type": "Identifier", "span": { "start": 507, - "end": 522, + "end": 508, "ctxt": 0 }, "value": "b", @@ -1536,7 +1536,7 @@ "type": "Identifier", "span": { "start": 656, - "end": 664, + "end": 661, "ctxt": 0 }, "value": "value", @@ -1796,7 +1796,7 @@ "type": "Identifier", "span": { "start": 766, - "end": 773, + "end": 770, "ctxt": 0 }, "value": "item", @@ -2009,7 +2009,7 @@ "type": "Identifier", "span": { "start": 874, - "end": 878, + "end": 875, "ctxt": 0 }, "value": "x", @@ -2312,7 +2312,7 @@ "type": "Identifier", "span": { "start": 984, - "end": 1022, + "end": 985, "ctxt": 0 }, "value": "x", @@ -2519,7 +2519,7 @@ "type": "Identifier", "span": { "start": 1086, - "end": 1124, + "end": 1087, "ctxt": 0 }, "value": "x", @@ -2881,7 +2881,7 @@ "type": "Identifier", "span": { "start": 1268, - "end": 1299, + "end": 1269, "ctxt": 0 }, "value": "x", @@ -3043,7 +3043,7 @@ "type": "Identifier", "span": { "start": 1332, - "end": 1363, + "end": 1333, "ctxt": 0 }, "value": "x", @@ -3432,7 +3432,7 @@ "type": "Identifier", "span": { "start": 1462, - "end": 1494, + "end": 1463, "ctxt": 0 }, "value": "x", @@ -3572,7 +3572,7 @@ "type": "Identifier", "span": { "start": 1496, - "end": 1520, + "end": 1497, "ctxt": 0 }, "value": "y", @@ -3694,7 +3694,7 @@ "type": "Identifier", "span": { "start": 1522, - "end": 1546, + "end": 1523, "ctxt": 0 }, "value": "z", @@ -4000,7 +4000,7 @@ "type": "Identifier", "span": { "start": 1614, - "end": 1646, + "end": 1615, "ctxt": 0 }, "value": "x", @@ -4140,7 +4140,7 @@ "type": "Identifier", "span": { "start": 1648, - "end": 1672, + "end": 1649, "ctxt": 0 }, "value": "y", @@ -4262,7 +4262,7 @@ "type": "Identifier", "span": { "start": 1674, - "end": 1698, + "end": 1675, "ctxt": 0 }, "value": "z", @@ -5121,7 +5121,7 @@ "type": "Identifier", "span": { "start": 2063, - "end": 2086, + "end": 2072, "ctxt": 0 }, "value": "predicate", @@ -5145,7 +5145,7 @@ "type": "Identifier", "span": { "start": 2074, - "end": 2077, + "end": 2075, "ctxt": 0 }, "value": "v", @@ -5515,7 +5515,7 @@ "type": "Identifier", "span": { "start": 2139, - "end": 2163, + "end": 2148, "ctxt": 0 }, "value": "predicate", @@ -5539,7 +5539,7 @@ "type": "Identifier", "span": { "start": 2150, - "end": 2153, + "end": 2151, "ctxt": 0 }, "value": "x", @@ -5775,7 +5775,7 @@ "type": "Identifier", "span": { "start": 2217, - "end": 2241, + "end": 2226, "ctxt": 0 }, "value": "predicate", @@ -5799,7 +5799,7 @@ "type": "Identifier", "span": { "start": 2228, - "end": 2231, + "end": 2229, "ctxt": 0 }, "value": "v", @@ -6691,7 +6691,7 @@ "type": "Identifier", "span": { "start": 2493, - "end": 2517, + "end": 2498, "ctxt": 0 }, "value": "value", @@ -6799,7 +6799,7 @@ "type": "Identifier", "span": { "start": 2556, - "end": 2571, + "end": 2561, "ctxt": 0 }, "value": "value", @@ -6888,7 +6888,7 @@ "type": "Identifier", "span": { "start": 2600, - "end": 2608, + "end": 2605, "ctxt": 0 }, "value": "value", @@ -12469,7 +12469,7 @@ "type": "Identifier", "span": { "start": 4879, - "end": 4911, + "end": 4888, "ctxt": 0 }, "value": "_response", @@ -12618,7 +12618,7 @@ "type": "Identifier", "span": { "start": 4985, - "end": 5027, + "end": 4999, "ctxt": 0 }, "value": "functionToCall", @@ -12813,7 +12813,7 @@ "type": "Identifier", "span": { "start": 5078, - "end": 5112, + "end": 5086, "ctxt": 0 }, "value": "response", @@ -13422,7 +13422,7 @@ "type": "Identifier", "span": { "start": 5415, - "end": 5460, + "end": 5419, "ctxt": 0 }, "value": "name", @@ -14115,7 +14115,7 @@ "type": "Identifier", "span": { "start": 5835, - "end": 5850, + "end": 5836, "ctxt": 0 }, "value": "x", @@ -14222,7 +14222,7 @@ "type": "Identifier", "span": { "start": 5882, - "end": 5905, + "end": 5883, "ctxt": 0 }, "value": "f", @@ -14246,7 +14246,7 @@ "type": "Identifier", "span": { "start": 5886, - "end": 5896, + "end": 5887, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalTypesExcessProperties.json b/crates/swc_ecma_parser/tests/tsc/conditionalTypesExcessProperties.json index a51a5c11e0de..d33ba2d009df 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalTypesExcessProperties.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalTypesExcessProperties.json @@ -301,7 +301,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 150, + "end": 147, "ctxt": 0 }, "value": "a", @@ -347,7 +347,7 @@ "type": "Identifier", "span": { "start": 152, - "end": 168, + "end": 154, "ctxt": 0 }, "value": "sa", diff --git a/crates/swc_ecma_parser/tests/tsc/constEnum3.json b/crates/swc_ecma_parser/tests/tsc/constEnum3.json index f9d6b9064c86..06217cd5bd82 100644 --- a/crates/swc_ecma_parser/tests/tsc/constEnum3.json +++ b/crates/swc_ecma_parser/tests/tsc/constEnum3.json @@ -140,7 +140,7 @@ "type": "Identifier", "span": { "start": 89, - "end": 100, + "end": 90, "ctxt": 0 }, "value": "f", @@ -221,7 +221,7 @@ "type": "Identifier", "span": { "start": 118, - "end": 132, + "end": 119, "ctxt": 0 }, "value": "f", diff --git a/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess1.json b/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess1.json index 51c213111ab3..1f178d0fbff4 100644 --- a/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess1.json +++ b/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess1.json @@ -768,7 +768,7 @@ "type": "Identifier", "span": { "start": 532, - "end": 541, + "end": 533, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess2.json b/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess2.json index 6f8efe95b55b..58305d180d46 100644 --- a/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess2.json +++ b/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess2.json @@ -429,7 +429,7 @@ "type": "Identifier", "span": { "start": 465, - "end": 469, + "end": 466, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithAny.json b/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithAny.json index 5829f1e60b68..d6aa053b816a 100644 --- a/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithAny.json +++ b/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithAny.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 125, - "end": 129, + "end": 126, "ctxt": 0 }, "value": "x", @@ -206,7 +206,7 @@ "type": "Identifier", "span": { "start": 190, - "end": 194, + "end": 191, "ctxt": 0 }, "value": "x", @@ -412,7 +412,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 320, + "end": 317, "ctxt": 0 }, "value": "x", @@ -521,7 +521,7 @@ "type": "Identifier", "span": { "start": 301, - "end": 305, + "end": 302, "ctxt": 0 }, "value": "x", @@ -1079,7 +1079,7 @@ "type": "Identifier", "span": { "start": 629, - "end": 633, + "end": 630, "ctxt": 0 }, "value": "x", @@ -1386,7 +1386,7 @@ "type": "Identifier", "span": { "start": 745, - "end": 749, + "end": 746, "ctxt": 0 }, "value": "x", @@ -1725,7 +1725,7 @@ "type": "Identifier", "span": { "start": 981, - "end": 985, + "end": 982, "ctxt": 0 }, "value": "x", @@ -1815,7 +1815,7 @@ "type": "Identifier", "span": { "start": 945, - "end": 948, + "end": 946, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithAny2.json b/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithAny2.json index e6dd17abad50..dae181b13808 100644 --- a/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithAny2.json +++ b/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithAny2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 239, - "end": 243, + "end": 240, "ctxt": 0 }, "value": "y", @@ -139,7 +139,7 @@ "type": "Identifier", "span": { "start": 227, - "end": 231, + "end": 228, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithEmptyObject.json b/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithEmptyObject.json index 0444925d892a..c044bdaa38ed 100644 --- a/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithEmptyObject.json +++ b/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithEmptyObject.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 117, - "end": 121, + "end": 118, "ctxt": 0 }, "value": "x", @@ -361,7 +361,7 @@ "type": "Identifier", "span": { "start": 225, - "end": 229, + "end": 226, "ctxt": 0 }, "value": "x", @@ -765,7 +765,7 @@ "type": "Identifier", "span": { "start": 363, - "end": 367, + "end": 364, "ctxt": 0 }, "value": "x", @@ -1084,7 +1084,7 @@ "type": "Identifier", "span": { "start": 470, - "end": 474, + "end": 471, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance.json b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance.json index 5ec6d322677a..ebfee3bb9302 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance.json @@ -73,7 +73,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 155, + "end": 147, "ctxt": 0 }, "value": "x", @@ -128,7 +128,7 @@ "type": "Identifier", "span": { "start": 191, - "end": 200, + "end": 192, "ctxt": 0 }, "value": "x", @@ -155,7 +155,7 @@ "type": "Identifier", "span": { "start": 202, - "end": 211, + "end": 203, "ctxt": 0 }, "value": "y", @@ -261,7 +261,7 @@ "type": "Identifier", "span": { "start": 299, - "end": 308, + "end": 300, "ctxt": 0 }, "value": "x", @@ -316,7 +316,7 @@ "type": "Identifier", "span": { "start": 388, - "end": 397, + "end": 389, "ctxt": 0 }, "value": "x", @@ -343,7 +343,7 @@ "type": "Identifier", "span": { "start": 399, - "end": 408, + "end": 400, "ctxt": 0 }, "value": "y", @@ -429,7 +429,7 @@ "type": "Identifier", "span": { "start": 562, - "end": 571, + "end": 563, "ctxt": 0 }, "value": "x", @@ -535,7 +535,7 @@ "type": "Identifier", "span": { "start": 661, - "end": 670, + "end": 662, "ctxt": 0 }, "value": "x", @@ -641,7 +641,7 @@ "type": "Identifier", "span": { "start": 805, - "end": 809, + "end": 806, "ctxt": 0 }, "value": "x", @@ -828,7 +828,7 @@ "type": "Identifier", "span": { "start": 957, - "end": 966, + "end": 958, "ctxt": 0 }, "value": "x", @@ -916,7 +916,7 @@ "type": "Identifier", "span": { "start": 994, - "end": 1003, + "end": 995, "ctxt": 0 }, "value": "x", @@ -943,7 +943,7 @@ "type": "Identifier", "span": { "start": 1005, - "end": 1014, + "end": 1006, "ctxt": 0 }, "value": "y", @@ -1031,7 +1031,7 @@ "type": "Identifier", "span": { "start": 1045, - "end": 1049, + "end": 1046, "ctxt": 0 }, "value": "x", @@ -1355,7 +1355,7 @@ "type": "Identifier", "span": { "start": 1182, - "end": 1191, + "end": 1183, "ctxt": 0 }, "value": "x", @@ -1443,7 +1443,7 @@ "type": "Identifier", "span": { "start": 1253, - "end": 1262, + "end": 1254, "ctxt": 0 }, "value": "x", @@ -1470,7 +1470,7 @@ "type": "Identifier", "span": { "start": 1264, - "end": 1273, + "end": 1265, "ctxt": 0 }, "value": "y", @@ -1558,7 +1558,7 @@ "type": "Identifier", "span": { "start": 1339, - "end": 1343, + "end": 1340, "ctxt": 0 }, "value": "x", @@ -1719,7 +1719,7 @@ "type": "Identifier", "span": { "start": 1453, - "end": 1462, + "end": 1454, "ctxt": 0 }, "value": "x", @@ -1807,7 +1807,7 @@ "type": "Identifier", "span": { "start": 1495, - "end": 1499, + "end": 1496, "ctxt": 0 }, "value": "x", @@ -1998,7 +1998,7 @@ "type": "Identifier", "span": { "start": 1589, - "end": 1598, + "end": 1590, "ctxt": 0 }, "value": "x", @@ -2137,7 +2137,7 @@ "type": "Identifier", "span": { "start": 1737, - "end": 1741, + "end": 1738, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance2.json b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance2.json index 71c513963e01..a0c7a1f92299 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance2.json @@ -390,7 +390,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 325, + "end": 317, "ctxt": 0 }, "value": "x", @@ -486,7 +486,7 @@ "type": "Identifier", "span": { "start": 353, - "end": 362, + "end": 354, "ctxt": 0 }, "value": "x", @@ -582,7 +582,7 @@ "type": "Identifier", "span": { "start": 390, - "end": 399, + "end": 391, "ctxt": 0 }, "value": "x", @@ -670,7 +670,7 @@ "type": "Identifier", "span": { "start": 423, - "end": 432, + "end": 424, "ctxt": 0 }, "value": "x", @@ -697,7 +697,7 @@ "type": "Identifier", "span": { "start": 434, - "end": 443, + "end": 435, "ctxt": 0 }, "value": "y", @@ -785,7 +785,7 @@ "type": "Identifier", "span": { "start": 469, - "end": 495, + "end": 470, "ctxt": 0 }, "value": "x", @@ -809,7 +809,7 @@ "type": "Identifier", "span": { "start": 473, - "end": 484, + "end": 476, "ctxt": 0 }, "value": "arg", @@ -919,7 +919,7 @@ "type": "Identifier", "span": { "start": 521, - "end": 546, + "end": 522, "ctxt": 0 }, "value": "x", @@ -943,7 +943,7 @@ "type": "Identifier", "span": { "start": 525, - "end": 534, + "end": 528, "ctxt": 0 }, "value": "arg", @@ -1083,7 +1083,7 @@ "type": "Identifier", "span": { "start": 570, - "end": 595, + "end": 571, "ctxt": 0 }, "value": "x", @@ -1107,7 +1107,7 @@ "type": "Identifier", "span": { "start": 574, - "end": 583, + "end": 577, "ctxt": 0 }, "value": "arg", @@ -1193,7 +1193,7 @@ "type": "Identifier", "span": { "start": 601, - "end": 608, + "end": 602, "ctxt": 0 }, "value": "r", @@ -1303,7 +1303,7 @@ "type": "Identifier", "span": { "start": 635, - "end": 660, + "end": 636, "ctxt": 0 }, "value": "x", @@ -1327,7 +1327,7 @@ "type": "Identifier", "span": { "start": 639, - "end": 648, + "end": 642, "ctxt": 0 }, "value": "arg", @@ -1396,7 +1396,7 @@ "type": "Identifier", "span": { "start": 662, - "end": 688, + "end": 663, "ctxt": 0 }, "value": "y", @@ -1420,7 +1420,7 @@ "type": "Identifier", "span": { "start": 666, - "end": 676, + "end": 670, "ctxt": 0 }, "value": "arg2", @@ -1506,7 +1506,7 @@ "type": "Identifier", "span": { "start": 694, - "end": 701, + "end": 695, "ctxt": 0 }, "value": "r", @@ -1616,7 +1616,7 @@ "type": "Identifier", "span": { "start": 728, - "end": 753, + "end": 729, "ctxt": 0 }, "value": "x", @@ -1640,7 +1640,7 @@ "type": "Identifier", "span": { "start": 732, - "end": 741, + "end": 735, "ctxt": 0 }, "value": "arg", @@ -1709,7 +1709,7 @@ "type": "Identifier", "span": { "start": 755, - "end": 781, + "end": 756, "ctxt": 0 }, "value": "y", @@ -1733,7 +1733,7 @@ "type": "Identifier", "span": { "start": 759, - "end": 769, + "end": 763, "ctxt": 0 }, "value": "arg2", @@ -1819,7 +1819,7 @@ "type": "Identifier", "span": { "start": 787, - "end": 794, + "end": 788, "ctxt": 0 }, "value": "r", @@ -2059,7 +2059,7 @@ "type": "Identifier", "span": { "start": 865, - "end": 883, + "end": 866, "ctxt": 0 }, "value": "x", @@ -2128,7 +2128,7 @@ "type": "Identifier", "span": { "start": 885, - "end": 916, + "end": 886, "ctxt": 0 }, "value": "y", @@ -2309,7 +2309,7 @@ "type": "Identifier", "span": { "start": 941, - "end": 955, + "end": 942, "ctxt": 0 }, "value": "x", @@ -2374,7 +2374,7 @@ "type": "Identifier", "span": { "start": 957, - "end": 975, + "end": 958, "ctxt": 0 }, "value": "y", @@ -2538,7 +2538,7 @@ "type": "Identifier", "span": { "start": 1010, - "end": 1024, + "end": 1011, "ctxt": 0 }, "value": "x", @@ -2603,7 +2603,7 @@ "type": "Identifier", "span": { "start": 1026, - "end": 1043, + "end": 1027, "ctxt": 0 }, "value": "y", @@ -2767,7 +2767,7 @@ "type": "Identifier", "span": { "start": 1078, - "end": 1105, + "end": 1079, "ctxt": 0 }, "value": "x", @@ -2956,7 +2956,7 @@ "type": "Identifier", "span": { "start": 1142, - "end": 1151, + "end": 1143, "ctxt": 0 }, "value": "x", @@ -3019,7 +3019,7 @@ "type": "Identifier", "span": { "start": 1177, - "end": 1186, + "end": 1178, "ctxt": 0 }, "value": "x", @@ -3124,7 +3124,7 @@ "type": "Identifier", "span": { "start": 1249, - "end": 1253, + "end": 1250, "ctxt": 0 }, "value": "x", @@ -3247,7 +3247,7 @@ "type": "Identifier", "span": { "start": 1295, - "end": 1299, + "end": 1296, "ctxt": 0 }, "value": "x", @@ -3412,7 +3412,7 @@ "type": "Identifier", "span": { "start": 1343, - "end": 1371, + "end": 1344, "ctxt": 0 }, "value": "x", @@ -3436,7 +3436,7 @@ "type": "Identifier", "span": { "start": 1351, - "end": 1360, + "end": 1352, "ctxt": 0 }, "value": "a", @@ -3522,7 +3522,7 @@ "type": "Identifier", "span": { "start": 1397, - "end": 1425, + "end": 1398, "ctxt": 0 }, "value": "x", @@ -3546,7 +3546,7 @@ "type": "Identifier", "span": { "start": 1405, - "end": 1414, + "end": 1406, "ctxt": 0 }, "value": "a", @@ -3674,7 +3674,7 @@ "type": "Identifier", "span": { "start": 1469, - "end": 1557, + "end": 1470, "ctxt": 0 }, "value": "x", @@ -3706,7 +3706,7 @@ "type": "Identifier", "span": { "start": 1491, - "end": 1500, + "end": 1492, "ctxt": 0 }, "value": "a", @@ -3761,7 +3761,7 @@ "type": "Identifier", "span": { "start": 1528, - "end": 1537, + "end": 1529, "ctxt": 0 }, "value": "a", @@ -3848,7 +3848,7 @@ "type": "Identifier", "span": { "start": 1580, - "end": 1666, + "end": 1581, "ctxt": 0 }, "value": "x", @@ -3880,7 +3880,7 @@ "type": "Identifier", "span": { "start": 1602, - "end": 1612, + "end": 1603, "ctxt": 0 }, "value": "a", @@ -3935,7 +3935,7 @@ "type": "Identifier", "span": { "start": 1641, - "end": 1648, + "end": 1642, "ctxt": 0 }, "value": "a", @@ -4127,7 +4127,7 @@ "type": "Identifier", "span": { "start": 1743, - "end": 1747, + "end": 1744, "ctxt": 0 }, "value": "x", @@ -4275,7 +4275,7 @@ "type": "Identifier", "span": { "start": 1830, - "end": 1834, + "end": 1831, "ctxt": 0 }, "value": "x", @@ -4413,7 +4413,7 @@ "type": "Identifier", "span": { "start": 1871, - "end": 1875, + "end": 1872, "ctxt": 0 }, "value": "x", @@ -4553,7 +4553,7 @@ "type": "Identifier", "span": { "start": 1932, - "end": 1936, + "end": 1933, "ctxt": 0 }, "value": "x", @@ -4590,7 +4590,7 @@ "type": "Identifier", "span": { "start": 1938, - "end": 1942, + "end": 1939, "ctxt": 0 }, "value": "y", @@ -4753,7 +4753,7 @@ "type": "Identifier", "span": { "start": 2039, - "end": 2055, + "end": 2040, "ctxt": 0 }, "value": "x", @@ -4777,7 +4777,7 @@ "type": "Identifier", "span": { "start": 2043, - "end": 2049, + "end": 2046, "ctxt": 0 }, "value": "arg", @@ -4972,7 +4972,7 @@ "type": "Identifier", "span": { "start": 2173, - "end": 2189, + "end": 2174, "ctxt": 0 }, "value": "x", @@ -4996,7 +4996,7 @@ "type": "Identifier", "span": { "start": 2177, - "end": 2183, + "end": 2180, "ctxt": 0 }, "value": "arg", @@ -5227,7 +5227,7 @@ "type": "Identifier", "span": { "start": 2294, - "end": 2310, + "end": 2295, "ctxt": 0 }, "value": "x", @@ -5251,7 +5251,7 @@ "type": "Identifier", "span": { "start": 2298, - "end": 2304, + "end": 2301, "ctxt": 0 }, "value": "arg", @@ -5428,7 +5428,7 @@ "type": "Identifier", "span": { "start": 2316, - "end": 2320, + "end": 2317, "ctxt": 0 }, "value": "r", @@ -5538,7 +5538,7 @@ "type": "Identifier", "span": { "start": 2382, - "end": 2398, + "end": 2383, "ctxt": 0 }, "value": "x", @@ -5562,7 +5562,7 @@ "type": "Identifier", "span": { "start": 2386, - "end": 2392, + "end": 2389, "ctxt": 0 }, "value": "arg", @@ -5631,7 +5631,7 @@ "type": "Identifier", "span": { "start": 2400, - "end": 2417, + "end": 2401, "ctxt": 0 }, "value": "y", @@ -5655,7 +5655,7 @@ "type": "Identifier", "span": { "start": 2404, - "end": 2411, + "end": 2408, "ctxt": 0 }, "value": "arg2", @@ -5832,7 +5832,7 @@ "type": "Identifier", "span": { "start": 2423, - "end": 2427, + "end": 2424, "ctxt": 0 }, "value": "r", @@ -5942,7 +5942,7 @@ "type": "Identifier", "span": { "start": 2489, - "end": 2505, + "end": 2490, "ctxt": 0 }, "value": "x", @@ -5966,7 +5966,7 @@ "type": "Identifier", "span": { "start": 2493, - "end": 2499, + "end": 2496, "ctxt": 0 }, "value": "arg", @@ -6035,7 +6035,7 @@ "type": "Identifier", "span": { "start": 2507, - "end": 2552, + "end": 2508, "ctxt": 0 }, "value": "y", @@ -6059,7 +6059,7 @@ "type": "Identifier", "span": { "start": 2511, - "end": 2546, + "end": 2515, "ctxt": 0 }, "value": "arg2", @@ -6309,7 +6309,7 @@ "type": "Identifier", "span": { "start": 2558, - "end": 2562, + "end": 2559, "ctxt": 0 }, "value": "r", @@ -6599,7 +6599,7 @@ "type": "Identifier", "span": { "start": 2705, - "end": 2709, + "end": 2706, "ctxt": 0 }, "value": "x", @@ -6636,7 +6636,7 @@ "type": "Identifier", "span": { "start": 2711, - "end": 2715, + "end": 2712, "ctxt": 0 }, "value": "y", @@ -6794,7 +6794,7 @@ "type": "Identifier", "span": { "start": 2766, - "end": 2780, + "end": 2767, "ctxt": 0 }, "value": "x", @@ -6859,7 +6859,7 @@ "type": "Identifier", "span": { "start": 2782, - "end": 2786, + "end": 2783, "ctxt": 0 }, "value": "y", @@ -7073,7 +7073,7 @@ "type": "Identifier", "span": { "start": 2883, - "end": 2897, + "end": 2884, "ctxt": 0 }, "value": "x", @@ -7138,7 +7138,7 @@ "type": "Identifier", "span": { "start": 2899, - "end": 2903, + "end": 2900, "ctxt": 0 }, "value": "y", @@ -7324,7 +7324,7 @@ "type": "Identifier", "span": { "start": 3024, - "end": 3041, + "end": 3025, "ctxt": 0 }, "value": "x", @@ -7580,7 +7580,7 @@ "type": "Identifier", "span": { "start": 3072, - "end": 3076, + "end": 3073, "ctxt": 0 }, "value": "x", @@ -7728,7 +7728,7 @@ "type": "Identifier", "span": { "start": 3122, - "end": 3126, + "end": 3123, "ctxt": 0 }, "value": "x", @@ -7884,7 +7884,7 @@ "type": "Identifier", "span": { "start": 3164, - "end": 3182, + "end": 3165, "ctxt": 0 }, "value": "x", @@ -7908,7 +7908,7 @@ "type": "Identifier", "span": { "start": 3172, - "end": 3176, + "end": 3173, "ctxt": 0 }, "value": "a", @@ -8089,7 +8089,7 @@ "type": "Identifier", "span": { "start": 3215, - "end": 3233, + "end": 3216, "ctxt": 0 }, "value": "x", @@ -8113,7 +8113,7 @@ "type": "Identifier", "span": { "start": 3223, - "end": 3227, + "end": 3224, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance3.json b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance3.json index d35c789f5ef1..c2ba517ca78e 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance3.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance3.json @@ -444,7 +444,7 @@ "type": "Identifier", "span": { "start": 466, - "end": 475, + "end": 467, "ctxt": 0 }, "value": "x", @@ -540,7 +540,7 @@ "type": "Identifier", "span": { "start": 511, - "end": 536, + "end": 512, "ctxt": 0 }, "value": "x", @@ -564,7 +564,7 @@ "type": "Identifier", "span": { "start": 515, - "end": 524, + "end": 518, "ctxt": 0 }, "value": "arg", @@ -650,7 +650,7 @@ "type": "Identifier", "span": { "start": 542, - "end": 549, + "end": 543, "ctxt": 0 }, "value": "r", @@ -760,7 +760,7 @@ "type": "Identifier", "span": { "start": 585, - "end": 610, + "end": 586, "ctxt": 0 }, "value": "x", @@ -784,7 +784,7 @@ "type": "Identifier", "span": { "start": 589, - "end": 598, + "end": 592, "ctxt": 0 }, "value": "arg", @@ -853,7 +853,7 @@ "type": "Identifier", "span": { "start": 612, - "end": 638, + "end": 613, "ctxt": 0 }, "value": "y", @@ -877,7 +877,7 @@ "type": "Identifier", "span": { "start": 616, - "end": 626, + "end": 620, "ctxt": 0 }, "value": "arg2", @@ -963,7 +963,7 @@ "type": "Identifier", "span": { "start": 644, - "end": 651, + "end": 645, "ctxt": 0 }, "value": "r", @@ -1203,7 +1203,7 @@ "type": "Identifier", "span": { "start": 732, - "end": 750, + "end": 733, "ctxt": 0 }, "value": "x", @@ -1272,7 +1272,7 @@ "type": "Identifier", "span": { "start": 752, - "end": 783, + "end": 753, "ctxt": 0 }, "value": "y", @@ -1453,7 +1453,7 @@ "type": "Identifier", "span": { "start": 816, - "end": 830, + "end": 817, "ctxt": 0 }, "value": "x", @@ -1518,7 +1518,7 @@ "type": "Identifier", "span": { "start": 832, - "end": 850, + "end": 833, "ctxt": 0 }, "value": "y", @@ -1690,7 +1690,7 @@ "type": "Identifier", "span": { "start": 911, - "end": 920, + "end": 912, "ctxt": 0 }, "value": "x", @@ -1753,7 +1753,7 @@ "type": "Identifier", "span": { "start": 954, - "end": 963, + "end": 955, "ctxt": 0 }, "value": "x", @@ -1850,7 +1850,7 @@ "type": "Identifier", "span": { "start": 1013, - "end": 1040, + "end": 1014, "ctxt": 0 }, "value": "x", @@ -2029,7 +2029,7 @@ "type": "Identifier", "span": { "start": 1199, - "end": 1312, + "end": 1200, "ctxt": 0 }, "value": "x", @@ -2061,7 +2061,7 @@ "type": "Identifier", "span": { "start": 1229, - "end": 1238, + "end": 1230, "ctxt": 0 }, "value": "a", @@ -2116,7 +2116,7 @@ "type": "Identifier", "span": { "start": 1274, - "end": 1284, + "end": 1275, "ctxt": 0 }, "value": "a", @@ -2203,7 +2203,7 @@ "type": "Identifier", "span": { "start": 1346, - "end": 1463, + "end": 1347, "ctxt": 0 }, "value": "x", @@ -2235,7 +2235,7 @@ "type": "Identifier", "span": { "start": 1376, - "end": 1386, + "end": 1377, "ctxt": 0 }, "value": "a", @@ -2290,7 +2290,7 @@ "type": "Identifier", "span": { "start": 1423, - "end": 1434, + "end": 1424, "ctxt": 0 }, "value": "a", @@ -2462,7 +2462,7 @@ "type": "Identifier", "span": { "start": 1562, - "end": 1566, + "end": 1563, "ctxt": 0 }, "value": "x", @@ -2739,7 +2739,7 @@ "type": "Identifier", "span": { "start": 1758, - "end": 1762, + "end": 1759, "ctxt": 0 }, "value": "x", @@ -2906,7 +2906,7 @@ "type": "Identifier", "span": { "start": 2036, - "end": 2052, + "end": 2037, "ctxt": 0 }, "value": "x", @@ -2930,7 +2930,7 @@ "type": "Identifier", "span": { "start": 2040, - "end": 2046, + "end": 2043, "ctxt": 0 }, "value": "arg", @@ -3148,7 +3148,7 @@ "type": "Identifier", "span": { "start": 2058, - "end": 2062, + "end": 2059, "ctxt": 0 }, "value": "r", @@ -3309,7 +3309,7 @@ "type": "Identifier", "span": { "start": 2170, - "end": 2186, + "end": 2171, "ctxt": 0 }, "value": "x", @@ -3333,7 +3333,7 @@ "type": "Identifier", "span": { "start": 2174, - "end": 2180, + "end": 2177, "ctxt": 0 }, "value": "arg", @@ -3402,7 +3402,7 @@ "type": "Identifier", "span": { "start": 2188, - "end": 2220, + "end": 2189, "ctxt": 0 }, "value": "y", @@ -3426,7 +3426,7 @@ "type": "Identifier", "span": { "start": 2192, - "end": 2214, + "end": 2196, "ctxt": 0 }, "value": "arg2", @@ -3635,7 +3635,7 @@ "type": "Identifier", "span": { "start": 2226, - "end": 2230, + "end": 2227, "ctxt": 0 }, "value": "r", @@ -4027,7 +4027,7 @@ "type": "Identifier", "span": { "start": 2534, - "end": 2538, + "end": 2535, "ctxt": 0 }, "value": "x", @@ -4064,7 +4064,7 @@ "type": "Identifier", "span": { "start": 2540, - "end": 2544, + "end": 2541, "ctxt": 0 }, "value": "y", @@ -4273,7 +4273,7 @@ "type": "Identifier", "span": { "start": 2754, - "end": 2768, + "end": 2755, "ctxt": 0 }, "value": "x", @@ -4338,7 +4338,7 @@ "type": "Identifier", "span": { "start": 2770, - "end": 2784, + "end": 2771, "ctxt": 0 }, "value": "y", @@ -4603,7 +4603,7 @@ "type": "Identifier", "span": { "start": 2920, - "end": 2937, + "end": 2921, "ctxt": 0 }, "value": "x", @@ -4887,7 +4887,7 @@ "type": "Identifier", "span": { "start": 3083, - "end": 3100, + "end": 3084, "ctxt": 0 }, "value": "x", @@ -5179,7 +5179,7 @@ "type": "Identifier", "span": { "start": 3417, - "end": 3435, + "end": 3418, "ctxt": 0 }, "value": "x", @@ -5203,7 +5203,7 @@ "type": "Identifier", "span": { "start": 3425, - "end": 3429, + "end": 3426, "ctxt": 0 }, "value": "a", @@ -5445,7 +5445,7 @@ "type": "Identifier", "span": { "start": 3601, - "end": 3605, + "end": 3602, "ctxt": 0 }, "value": "x", @@ -5644,7 +5644,7 @@ "type": "Identifier", "span": { "start": 3683, - "end": 3687, + "end": 3684, "ctxt": 0 }, "value": "x", @@ -5813,7 +5813,7 @@ "type": "Identifier", "span": { "start": 3816, - "end": 3820, + "end": 3817, "ctxt": 0 }, "value": "x", @@ -6002,7 +6002,7 @@ "type": "Identifier", "span": { "start": 3903, - "end": 3907, + "end": 3904, "ctxt": 0 }, "value": "x", @@ -6189,7 +6189,7 @@ "type": "Identifier", "span": { "start": 4083, - "end": 4087, + "end": 4084, "ctxt": 0 }, "value": "x", @@ -6312,7 +6312,7 @@ "type": "Identifier", "span": { "start": 4137, - "end": 4141, + "end": 4138, "ctxt": 0 }, "value": "x", @@ -6520,7 +6520,7 @@ "type": "Identifier", "span": { "start": 4251, - "end": 4255, + "end": 4252, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance4.json b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance4.json index 7985b6ca0a54..9ac8d2d97557 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance4.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance4.json @@ -390,7 +390,7 @@ "type": "Identifier", "span": { "start": 319, - "end": 323, + "end": 320, "ctxt": 0 }, "value": "x", @@ -538,7 +538,7 @@ "type": "Identifier", "span": { "start": 349, - "end": 353, + "end": 350, "ctxt": 0 }, "value": "x", @@ -676,7 +676,7 @@ "type": "Identifier", "span": { "start": 384, - "end": 388, + "end": 385, "ctxt": 0 }, "value": "x", @@ -806,7 +806,7 @@ "type": "Identifier", "span": { "start": 418, - "end": 422, + "end": 419, "ctxt": 0 }, "value": "x", @@ -843,7 +843,7 @@ "type": "Identifier", "span": { "start": 424, - "end": 428, + "end": 425, "ctxt": 0 }, "value": "y", @@ -996,7 +996,7 @@ "type": "Identifier", "span": { "start": 460, - "end": 476, + "end": 461, "ctxt": 0 }, "value": "x", @@ -1020,7 +1020,7 @@ "type": "Identifier", "span": { "start": 464, - "end": 470, + "end": 467, "ctxt": 0 }, "value": "arg", @@ -1215,7 +1215,7 @@ "type": "Identifier", "span": { "start": 513, - "end": 535, + "end": 514, "ctxt": 0 }, "value": "x", @@ -1239,7 +1239,7 @@ "type": "Identifier", "span": { "start": 517, - "end": 523, + "end": 520, "ctxt": 0 }, "value": "arg", @@ -1429,7 +1429,7 @@ "type": "Identifier", "span": { "start": 560, - "end": 573, + "end": 561, "ctxt": 0 }, "value": "x", @@ -1508,7 +1508,7 @@ "type": "Identifier", "span": { "start": 575, - "end": 596, + "end": 576, "ctxt": 0 }, "value": "y", @@ -1741,7 +1741,7 @@ "type": "Identifier", "span": { "start": 624, - "end": 641, + "end": 625, "ctxt": 0 }, "value": "x", @@ -1982,7 +1982,7 @@ "type": "Identifier", "span": { "start": 681, - "end": 698, + "end": 682, "ctxt": 0 }, "value": "x", @@ -2249,7 +2249,7 @@ "type": "Identifier", "span": { "start": 748, - "end": 752, + "end": 749, "ctxt": 0 }, "value": "x", @@ -2382,7 +2382,7 @@ "type": "Identifier", "span": { "start": 792, - "end": 796, + "end": 793, "ctxt": 0 }, "value": "x", @@ -2557,7 +2557,7 @@ "type": "Identifier", "span": { "start": 854, - "end": 858, + "end": 855, "ctxt": 0 }, "value": "x", @@ -2680,7 +2680,7 @@ "type": "Identifier", "span": { "start": 900, - "end": 904, + "end": 901, "ctxt": 0 }, "value": "x", @@ -2845,7 +2845,7 @@ "type": "Identifier", "span": { "start": 967, - "end": 985, + "end": 968, "ctxt": 0 }, "value": "x", @@ -2869,7 +2869,7 @@ "type": "Identifier", "span": { "start": 975, - "end": 979, + "end": 976, "ctxt": 0 }, "value": "a", @@ -3035,7 +3035,7 @@ "type": "Identifier", "span": { "start": 1022, - "end": 1040, + "end": 1023, "ctxt": 0 }, "value": "x", @@ -3059,7 +3059,7 @@ "type": "Identifier", "span": { "start": 1030, - "end": 1034, + "end": 1031, "ctxt": 0 }, "value": "a", @@ -3267,7 +3267,7 @@ "type": "Identifier", "span": { "start": 1079, - "end": 1182, + "end": 1080, "ctxt": 0 }, "value": "x", @@ -3299,7 +3299,7 @@ "type": "Identifier", "span": { "start": 1120, - "end": 1124, + "end": 1121, "ctxt": 0 }, "value": "a", @@ -3424,7 +3424,7 @@ "type": "Identifier", "span": { "start": 1163, - "end": 1167, + "end": 1164, "ctxt": 0 }, "value": "a", @@ -3581,7 +3581,7 @@ "type": "Identifier", "span": { "start": 1205, - "end": 1309, + "end": 1206, "ctxt": 0 }, "value": "x", @@ -3613,7 +3613,7 @@ "type": "Identifier", "span": { "start": 1243, - "end": 1247, + "end": 1244, "ctxt": 0 }, "value": "a", @@ -3738,7 +3738,7 @@ "type": "Identifier", "span": { "start": 1290, - "end": 1294, + "end": 1291, "ctxt": 0 }, "value": "a", @@ -3980,7 +3980,7 @@ "type": "Identifier", "span": { "start": 1386, - "end": 1390, + "end": 1387, "ctxt": 0 }, "value": "x", @@ -4128,7 +4128,7 @@ "type": "Identifier", "span": { "start": 1473, - "end": 1477, + "end": 1474, "ctxt": 0 }, "value": "x", @@ -4266,7 +4266,7 @@ "type": "Identifier", "span": { "start": 1514, - "end": 1518, + "end": 1515, "ctxt": 0 }, "value": "x", @@ -4406,7 +4406,7 @@ "type": "Identifier", "span": { "start": 1575, - "end": 1579, + "end": 1576, "ctxt": 0 }, "value": "x", @@ -4443,7 +4443,7 @@ "type": "Identifier", "span": { "start": 1581, - "end": 1585, + "end": 1582, "ctxt": 0 }, "value": "y", @@ -4596,7 +4596,7 @@ "type": "Identifier", "span": { "start": 1687, - "end": 1703, + "end": 1688, "ctxt": 0 }, "value": "x", @@ -4620,7 +4620,7 @@ "type": "Identifier", "span": { "start": 1691, - "end": 1697, + "end": 1694, "ctxt": 0 }, "value": "arg", @@ -4815,7 +4815,7 @@ "type": "Identifier", "span": { "start": 1821, - "end": 1837, + "end": 1822, "ctxt": 0 }, "value": "x", @@ -4839,7 +4839,7 @@ "type": "Identifier", "span": { "start": 1825, - "end": 1831, + "end": 1828, "ctxt": 0 }, "value": "arg", @@ -5070,7 +5070,7 @@ "type": "Identifier", "span": { "start": 1914, - "end": 1927, + "end": 1915, "ctxt": 0 }, "value": "x", @@ -5149,7 +5149,7 @@ "type": "Identifier", "span": { "start": 1929, - "end": 1950, + "end": 1930, "ctxt": 0 }, "value": "y", @@ -5405,7 +5405,7 @@ "type": "Identifier", "span": { "start": 1987, - "end": 2005, + "end": 1988, "ctxt": 0 }, "value": "x", @@ -5669,7 +5669,7 @@ "type": "Identifier", "span": { "start": 2052, - "end": 2069, + "end": 2053, "ctxt": 0 }, "value": "x", @@ -5910,7 +5910,7 @@ "type": "Identifier", "span": { "start": 2144, - "end": 2148, + "end": 2145, "ctxt": 0 }, "value": "x", @@ -6076,7 +6076,7 @@ "type": "Identifier", "span": { "start": 2223, - "end": 2227, + "end": 2224, "ctxt": 0 }, "value": "x", @@ -6232,7 +6232,7 @@ "type": "Identifier", "span": { "start": 2307, - "end": 2325, + "end": 2308, "ctxt": 0 }, "value": "x", @@ -6256,7 +6256,7 @@ "type": "Identifier", "span": { "start": 2315, - "end": 2319, + "end": 2316, "ctxt": 0 }, "value": "a", @@ -6455,7 +6455,7 @@ "type": "Identifier", "span": { "start": 2355, - "end": 2389, + "end": 2356, "ctxt": 0 }, "value": "x", @@ -6479,7 +6479,7 @@ "type": "Identifier", "span": { "start": 2379, - "end": 2383, + "end": 2380, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance5.json b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance5.json index c81525c264fe..f9885758a414 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance5.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance5.json @@ -390,7 +390,7 @@ "type": "Identifier", "span": { "start": 426, - "end": 435, + "end": 427, "ctxt": 0 }, "value": "x", @@ -486,7 +486,7 @@ "type": "Identifier", "span": { "start": 463, - "end": 472, + "end": 464, "ctxt": 0 }, "value": "x", @@ -582,7 +582,7 @@ "type": "Identifier", "span": { "start": 500, - "end": 509, + "end": 501, "ctxt": 0 }, "value": "x", @@ -670,7 +670,7 @@ "type": "Identifier", "span": { "start": 533, - "end": 542, + "end": 534, "ctxt": 0 }, "value": "x", @@ -697,7 +697,7 @@ "type": "Identifier", "span": { "start": 544, - "end": 553, + "end": 545, "ctxt": 0 }, "value": "y", @@ -785,7 +785,7 @@ "type": "Identifier", "span": { "start": 579, - "end": 605, + "end": 580, "ctxt": 0 }, "value": "x", @@ -809,7 +809,7 @@ "type": "Identifier", "span": { "start": 583, - "end": 594, + "end": 586, "ctxt": 0 }, "value": "arg", @@ -919,7 +919,7 @@ "type": "Identifier", "span": { "start": 631, - "end": 656, + "end": 632, "ctxt": 0 }, "value": "x", @@ -943,7 +943,7 @@ "type": "Identifier", "span": { "start": 635, - "end": 644, + "end": 638, "ctxt": 0 }, "value": "arg", @@ -1083,7 +1083,7 @@ "type": "Identifier", "span": { "start": 680, - "end": 705, + "end": 681, "ctxt": 0 }, "value": "x", @@ -1107,7 +1107,7 @@ "type": "Identifier", "span": { "start": 684, - "end": 693, + "end": 687, "ctxt": 0 }, "value": "arg", @@ -1193,7 +1193,7 @@ "type": "Identifier", "span": { "start": 711, - "end": 718, + "end": 712, "ctxt": 0 }, "value": "r", @@ -1303,7 +1303,7 @@ "type": "Identifier", "span": { "start": 745, - "end": 770, + "end": 746, "ctxt": 0 }, "value": "x", @@ -1327,7 +1327,7 @@ "type": "Identifier", "span": { "start": 749, - "end": 758, + "end": 752, "ctxt": 0 }, "value": "arg", @@ -1396,7 +1396,7 @@ "type": "Identifier", "span": { "start": 772, - "end": 798, + "end": 773, "ctxt": 0 }, "value": "y", @@ -1420,7 +1420,7 @@ "type": "Identifier", "span": { "start": 776, - "end": 786, + "end": 780, "ctxt": 0 }, "value": "arg2", @@ -1506,7 +1506,7 @@ "type": "Identifier", "span": { "start": 804, - "end": 811, + "end": 805, "ctxt": 0 }, "value": "r", @@ -1616,7 +1616,7 @@ "type": "Identifier", "span": { "start": 838, - "end": 863, + "end": 839, "ctxt": 0 }, "value": "x", @@ -1640,7 +1640,7 @@ "type": "Identifier", "span": { "start": 842, - "end": 851, + "end": 845, "ctxt": 0 }, "value": "arg", @@ -1709,7 +1709,7 @@ "type": "Identifier", "span": { "start": 865, - "end": 891, + "end": 866, "ctxt": 0 }, "value": "y", @@ -1733,7 +1733,7 @@ "type": "Identifier", "span": { "start": 869, - "end": 879, + "end": 873, "ctxt": 0 }, "value": "arg2", @@ -1819,7 +1819,7 @@ "type": "Identifier", "span": { "start": 897, - "end": 904, + "end": 898, "ctxt": 0 }, "value": "r", @@ -2059,7 +2059,7 @@ "type": "Identifier", "span": { "start": 975, - "end": 993, + "end": 976, "ctxt": 0 }, "value": "x", @@ -2128,7 +2128,7 @@ "type": "Identifier", "span": { "start": 995, - "end": 1026, + "end": 996, "ctxt": 0 }, "value": "y", @@ -2309,7 +2309,7 @@ "type": "Identifier", "span": { "start": 1051, - "end": 1065, + "end": 1052, "ctxt": 0 }, "value": "x", @@ -2374,7 +2374,7 @@ "type": "Identifier", "span": { "start": 1067, - "end": 1085, + "end": 1068, "ctxt": 0 }, "value": "y", @@ -2538,7 +2538,7 @@ "type": "Identifier", "span": { "start": 1120, - "end": 1134, + "end": 1121, "ctxt": 0 }, "value": "x", @@ -2603,7 +2603,7 @@ "type": "Identifier", "span": { "start": 1136, - "end": 1153, + "end": 1137, "ctxt": 0 }, "value": "y", @@ -2767,7 +2767,7 @@ "type": "Identifier", "span": { "start": 1188, - "end": 1215, + "end": 1189, "ctxt": 0 }, "value": "x", @@ -2999,7 +2999,7 @@ "type": "Identifier", "span": { "start": 1270, - "end": 1274, + "end": 1271, "ctxt": 0 }, "value": "x", @@ -3198,7 +3198,7 @@ "type": "Identifier", "span": { "start": 1344, - "end": 1348, + "end": 1345, "ctxt": 0 }, "value": "x", @@ -3346,7 +3346,7 @@ "type": "Identifier", "span": { "start": 1431, - "end": 1435, + "end": 1432, "ctxt": 0 }, "value": "x", @@ -3484,7 +3484,7 @@ "type": "Identifier", "span": { "start": 1472, - "end": 1476, + "end": 1473, "ctxt": 0 }, "value": "x", @@ -3624,7 +3624,7 @@ "type": "Identifier", "span": { "start": 1533, - "end": 1537, + "end": 1534, "ctxt": 0 }, "value": "x", @@ -3661,7 +3661,7 @@ "type": "Identifier", "span": { "start": 1539, - "end": 1543, + "end": 1540, "ctxt": 0 }, "value": "y", @@ -3824,7 +3824,7 @@ "type": "Identifier", "span": { "start": 1640, - "end": 1656, + "end": 1641, "ctxt": 0 }, "value": "x", @@ -3848,7 +3848,7 @@ "type": "Identifier", "span": { "start": 1644, - "end": 1650, + "end": 1647, "ctxt": 0 }, "value": "arg", @@ -4043,7 +4043,7 @@ "type": "Identifier", "span": { "start": 1774, - "end": 1790, + "end": 1775, "ctxt": 0 }, "value": "x", @@ -4067,7 +4067,7 @@ "type": "Identifier", "span": { "start": 1778, - "end": 1784, + "end": 1781, "ctxt": 0 }, "value": "arg", @@ -4298,7 +4298,7 @@ "type": "Identifier", "span": { "start": 1895, - "end": 1911, + "end": 1896, "ctxt": 0 }, "value": "x", @@ -4322,7 +4322,7 @@ "type": "Identifier", "span": { "start": 1899, - "end": 1905, + "end": 1902, "ctxt": 0 }, "value": "arg", @@ -4499,7 +4499,7 @@ "type": "Identifier", "span": { "start": 1917, - "end": 1921, + "end": 1918, "ctxt": 0 }, "value": "r", @@ -4609,7 +4609,7 @@ "type": "Identifier", "span": { "start": 1983, - "end": 1999, + "end": 1984, "ctxt": 0 }, "value": "x", @@ -4633,7 +4633,7 @@ "type": "Identifier", "span": { "start": 1987, - "end": 1993, + "end": 1990, "ctxt": 0 }, "value": "arg", @@ -4702,7 +4702,7 @@ "type": "Identifier", "span": { "start": 2001, - "end": 2018, + "end": 2002, "ctxt": 0 }, "value": "y", @@ -4726,7 +4726,7 @@ "type": "Identifier", "span": { "start": 2005, - "end": 2012, + "end": 2009, "ctxt": 0 }, "value": "arg2", @@ -4903,7 +4903,7 @@ "type": "Identifier", "span": { "start": 2024, - "end": 2028, + "end": 2025, "ctxt": 0 }, "value": "r", @@ -5013,7 +5013,7 @@ "type": "Identifier", "span": { "start": 2090, - "end": 2106, + "end": 2091, "ctxt": 0 }, "value": "x", @@ -5037,7 +5037,7 @@ "type": "Identifier", "span": { "start": 2094, - "end": 2100, + "end": 2097, "ctxt": 0 }, "value": "arg", @@ -5106,7 +5106,7 @@ "type": "Identifier", "span": { "start": 2108, - "end": 2153, + "end": 2109, "ctxt": 0 }, "value": "y", @@ -5130,7 +5130,7 @@ "type": "Identifier", "span": { "start": 2112, - "end": 2147, + "end": 2116, "ctxt": 0 }, "value": "arg2", @@ -5380,7 +5380,7 @@ "type": "Identifier", "span": { "start": 2159, - "end": 2163, + "end": 2160, "ctxt": 0 }, "value": "r", @@ -5670,7 +5670,7 @@ "type": "Identifier", "span": { "start": 2306, - "end": 2310, + "end": 2307, "ctxt": 0 }, "value": "x", @@ -5707,7 +5707,7 @@ "type": "Identifier", "span": { "start": 2312, - "end": 2316, + "end": 2313, "ctxt": 0 }, "value": "y", @@ -5865,7 +5865,7 @@ "type": "Identifier", "span": { "start": 2367, - "end": 2381, + "end": 2368, "ctxt": 0 }, "value": "x", @@ -5930,7 +5930,7 @@ "type": "Identifier", "span": { "start": 2383, - "end": 2387, + "end": 2384, "ctxt": 0 }, "value": "y", @@ -6144,7 +6144,7 @@ "type": "Identifier", "span": { "start": 2484, - "end": 2498, + "end": 2485, "ctxt": 0 }, "value": "x", @@ -6209,7 +6209,7 @@ "type": "Identifier", "span": { "start": 2500, - "end": 2504, + "end": 2501, "ctxt": 0 }, "value": "y", @@ -6395,7 +6395,7 @@ "type": "Identifier", "span": { "start": 2625, - "end": 2642, + "end": 2626, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance6.json b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance6.json index fc912c21b26f..c65bf11dff80 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance6.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance6.json @@ -390,7 +390,7 @@ "type": "Identifier", "span": { "start": 444, - "end": 448, + "end": 445, "ctxt": 0 }, "value": "x", @@ -538,7 +538,7 @@ "type": "Identifier", "span": { "start": 474, - "end": 478, + "end": 475, "ctxt": 0 }, "value": "x", @@ -676,7 +676,7 @@ "type": "Identifier", "span": { "start": 509, - "end": 513, + "end": 510, "ctxt": 0 }, "value": "x", @@ -806,7 +806,7 @@ "type": "Identifier", "span": { "start": 543, - "end": 547, + "end": 544, "ctxt": 0 }, "value": "x", @@ -843,7 +843,7 @@ "type": "Identifier", "span": { "start": 549, - "end": 553, + "end": 550, "ctxt": 0 }, "value": "y", @@ -996,7 +996,7 @@ "type": "Identifier", "span": { "start": 585, - "end": 601, + "end": 586, "ctxt": 0 }, "value": "x", @@ -1020,7 +1020,7 @@ "type": "Identifier", "span": { "start": 589, - "end": 595, + "end": 592, "ctxt": 0 }, "value": "arg", @@ -1215,7 +1215,7 @@ "type": "Identifier", "span": { "start": 638, - "end": 660, + "end": 639, "ctxt": 0 }, "value": "x", @@ -1239,7 +1239,7 @@ "type": "Identifier", "span": { "start": 642, - "end": 648, + "end": 645, "ctxt": 0 }, "value": "arg", @@ -1429,7 +1429,7 @@ "type": "Identifier", "span": { "start": 685, - "end": 698, + "end": 686, "ctxt": 0 }, "value": "x", @@ -1508,7 +1508,7 @@ "type": "Identifier", "span": { "start": 700, - "end": 721, + "end": 701, "ctxt": 0 }, "value": "y", @@ -1741,7 +1741,7 @@ "type": "Identifier", "span": { "start": 749, - "end": 766, + "end": 750, "ctxt": 0 }, "value": "x", @@ -1982,7 +1982,7 @@ "type": "Identifier", "span": { "start": 806, - "end": 823, + "end": 807, "ctxt": 0 }, "value": "x", @@ -2324,7 +2324,7 @@ "type": "Identifier", "span": { "start": 882, - "end": 886, + "end": 883, "ctxt": 0 }, "value": "x", @@ -2523,7 +2523,7 @@ "type": "Identifier", "span": { "start": 941, - "end": 945, + "end": 942, "ctxt": 0 }, "value": "x", @@ -2712,7 +2712,7 @@ "type": "Identifier", "span": { "start": 1005, - "end": 1009, + "end": 1006, "ctxt": 0 }, "value": "x", @@ -2903,7 +2903,7 @@ "type": "Identifier", "span": { "start": 1064, - "end": 1068, + "end": 1065, "ctxt": 0 }, "value": "x", @@ -2940,7 +2940,7 @@ "type": "Identifier", "span": { "start": 1070, - "end": 1074, + "end": 1071, "ctxt": 0 }, "value": "y", @@ -3153,7 +3153,7 @@ "type": "Identifier", "span": { "start": 1135, - "end": 1151, + "end": 1136, "ctxt": 0 }, "value": "x", @@ -3177,7 +3177,7 @@ "type": "Identifier", "span": { "start": 1139, - "end": 1145, + "end": 1142, "ctxt": 0 }, "value": "arg", @@ -3432,7 +3432,7 @@ "type": "Identifier", "span": { "start": 1208, - "end": 1221, + "end": 1209, "ctxt": 0 }, "value": "x", @@ -3511,7 +3511,7 @@ "type": "Identifier", "span": { "start": 1223, - "end": 1244, + "end": 1224, "ctxt": 0 }, "value": "y", @@ -3827,7 +3827,7 @@ "type": "Identifier", "span": { "start": 1301, - "end": 1318, + "end": 1302, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithIdenticalOverloads.json b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithIdenticalOverloads.json index 19a98c787085..98fbfa439e3a 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithIdenticalOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithIdenticalOverloads.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 98, - "end": 107, + "end": 99, "ctxt": 0 }, "value": "x", @@ -92,7 +92,7 @@ "type": "Identifier", "span": { "start": 109, - "end": 118, + "end": 110, "ctxt": 0 }, "value": "y", @@ -151,7 +151,7 @@ "type": "Identifier", "span": { "start": 137, - "end": 146, + "end": 138, "ctxt": 0 }, "value": "x", @@ -187,7 +187,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 157, + "end": 149, "ctxt": 0 }, "value": "y", @@ -246,7 +246,7 @@ "type": "Identifier", "span": { "start": 185, - "end": 194, + "end": 186, "ctxt": 0 }, "value": "x", @@ -419,7 +419,7 @@ "type": "Identifier", "span": { "start": 257, - "end": 261, + "end": 258, "ctxt": 0 }, "value": "x", @@ -465,7 +465,7 @@ "type": "Identifier", "span": { "start": 263, - "end": 272, + "end": 264, "ctxt": 0 }, "value": "y", @@ -524,7 +524,7 @@ "type": "Identifier", "span": { "start": 291, - "end": 295, + "end": 292, "ctxt": 0 }, "value": "x", @@ -570,7 +570,7 @@ "type": "Identifier", "span": { "start": 297, - "end": 306, + "end": 298, "ctxt": 0 }, "value": "y", @@ -629,7 +629,7 @@ "type": "Identifier", "span": { "start": 334, - "end": 338, + "end": 335, "ctxt": 0 }, "value": "x", @@ -834,7 +834,7 @@ "type": "Identifier", "span": { "start": 395, - "end": 404, + "end": 396, "ctxt": 0 }, "value": "x", @@ -861,7 +861,7 @@ "type": "Identifier", "span": { "start": 406, - "end": 415, + "end": 407, "ctxt": 0 }, "value": "y", @@ -926,7 +926,7 @@ "type": "Identifier", "span": { "start": 430, - "end": 439, + "end": 431, "ctxt": 0 }, "value": "x", @@ -953,7 +953,7 @@ "type": "Identifier", "span": { "start": 441, - "end": 450, + "end": 442, "ctxt": 0 }, "value": "y", @@ -1219,7 +1219,7 @@ "type": "Identifier", "span": { "start": 529, - "end": 533, + "end": 530, "ctxt": 0 }, "value": "x", @@ -1256,7 +1256,7 @@ "type": "Identifier", "span": { "start": 535, - "end": 544, + "end": 536, "ctxt": 0 }, "value": "y", @@ -1349,7 +1349,7 @@ "type": "Identifier", "span": { "start": 563, - "end": 567, + "end": 564, "ctxt": 0 }, "value": "x", @@ -1386,7 +1386,7 @@ "type": "Identifier", "span": { "start": 569, - "end": 578, + "end": 570, "ctxt": 0 }, "value": "y", @@ -1479,7 +1479,7 @@ "type": "Identifier", "span": { "start": 609, - "end": 613, + "end": 610, "ctxt": 0 }, "value": "x", @@ -1516,7 +1516,7 @@ "type": "Identifier", "span": { "start": 615, - "end": 624, + "end": 616, "ctxt": 0 }, "value": "y", @@ -1641,7 +1641,7 @@ "type": "Identifier", "span": { "start": 646, - "end": 650, + "end": 647, "ctxt": 0 }, "value": "x", @@ -1678,7 +1678,7 @@ "type": "Identifier", "span": { "start": 652, - "end": 661, + "end": 653, "ctxt": 0 }, "value": "y", @@ -2003,7 +2003,7 @@ "type": "Identifier", "span": { "start": 746, - "end": 755, + "end": 747, "ctxt": 0 }, "value": "x", @@ -2030,7 +2030,7 @@ "type": "Identifier", "span": { "start": 757, - "end": 766, + "end": 758, "ctxt": 0 }, "value": "y", @@ -2095,7 +2095,7 @@ "type": "Identifier", "span": { "start": 781, - "end": 790, + "end": 782, "ctxt": 0 }, "value": "x", @@ -2122,7 +2122,7 @@ "type": "Identifier", "span": { "start": 792, - "end": 801, + "end": 793, "ctxt": 0 }, "value": "y", @@ -2316,7 +2316,7 @@ "type": "Identifier", "span": { "start": 864, - "end": 868, + "end": 865, "ctxt": 0 }, "value": "x", @@ -2353,7 +2353,7 @@ "type": "Identifier", "span": { "start": 870, - "end": 879, + "end": 871, "ctxt": 0 }, "value": "y", @@ -2478,7 +2478,7 @@ "type": "Identifier", "span": { "start": 901, - "end": 905, + "end": 902, "ctxt": 0 }, "value": "x", @@ -2515,7 +2515,7 @@ "type": "Identifier", "span": { "start": 907, - "end": 916, + "end": 908, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads.json b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads.json index dde51eec4ad9..15310603b71a 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 94, - "end": 103, + "end": 95, "ctxt": 0 }, "value": "x", @@ -92,7 +92,7 @@ "type": "Identifier", "span": { "start": 105, - "end": 115, + "end": 106, "ctxt": 0 }, "value": "y", @@ -151,7 +151,7 @@ "type": "Identifier", "span": { "start": 134, - "end": 143, + "end": 135, "ctxt": 0 }, "value": "x", @@ -187,7 +187,7 @@ "type": "Identifier", "span": { "start": 145, - "end": 154, + "end": 146, "ctxt": 0 }, "value": "y", @@ -246,7 +246,7 @@ "type": "Identifier", "span": { "start": 173, - "end": 182, + "end": 174, "ctxt": 0 }, "value": "x", @@ -419,7 +419,7 @@ "type": "Identifier", "span": { "start": 245, - "end": 249, + "end": 246, "ctxt": 0 }, "value": "x", @@ -465,7 +465,7 @@ "type": "Identifier", "span": { "start": 251, - "end": 261, + "end": 252, "ctxt": 0 }, "value": "y", @@ -524,7 +524,7 @@ "type": "Identifier", "span": { "start": 280, - "end": 284, + "end": 281, "ctxt": 0 }, "value": "x", @@ -570,7 +570,7 @@ "type": "Identifier", "span": { "start": 286, - "end": 295, + "end": 287, "ctxt": 0 }, "value": "y", @@ -629,7 +629,7 @@ "type": "Identifier", "span": { "start": 314, - "end": 318, + "end": 315, "ctxt": 0 }, "value": "x", @@ -834,7 +834,7 @@ "type": "Identifier", "span": { "start": 374, - "end": 383, + "end": 375, "ctxt": 0 }, "value": "x", @@ -861,7 +861,7 @@ "type": "Identifier", "span": { "start": 385, - "end": 395, + "end": 386, "ctxt": 0 }, "value": "y", @@ -926,7 +926,7 @@ "type": "Identifier", "span": { "start": 409, - "end": 418, + "end": 410, "ctxt": 0 }, "value": "x", @@ -953,7 +953,7 @@ "type": "Identifier", "span": { "start": 420, - "end": 429, + "end": 421, "ctxt": 0 }, "value": "y", @@ -1219,7 +1219,7 @@ "type": "Identifier", "span": { "start": 499, - "end": 503, + "end": 500, "ctxt": 0 }, "value": "x", @@ -1256,7 +1256,7 @@ "type": "Identifier", "span": { "start": 505, - "end": 515, + "end": 506, "ctxt": 0 }, "value": "y", @@ -1349,7 +1349,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 538, + "end": 535, "ctxt": 0 }, "value": "x", @@ -1386,7 +1386,7 @@ "type": "Identifier", "span": { "start": 540, - "end": 549, + "end": 541, "ctxt": 0 }, "value": "y", @@ -1479,7 +1479,7 @@ "type": "Identifier", "span": { "start": 571, - "end": 575, + "end": 572, "ctxt": 0 }, "value": "x", @@ -1516,7 +1516,7 @@ "type": "Identifier", "span": { "start": 577, - "end": 587, + "end": 578, "ctxt": 0 }, "value": "y", @@ -1641,7 +1641,7 @@ "type": "Identifier", "span": { "start": 609, - "end": 613, + "end": 610, "ctxt": 0 }, "value": "x", @@ -1678,7 +1678,7 @@ "type": "Identifier", "span": { "start": 615, - "end": 624, + "end": 616, "ctxt": 0 }, "value": "y", @@ -2003,7 +2003,7 @@ "type": "Identifier", "span": { "start": 700, - "end": 709, + "end": 701, "ctxt": 0 }, "value": "x", @@ -2030,7 +2030,7 @@ "type": "Identifier", "span": { "start": 711, - "end": 721, + "end": 712, "ctxt": 0 }, "value": "y", @@ -2095,7 +2095,7 @@ "type": "Identifier", "span": { "start": 735, - "end": 744, + "end": 736, "ctxt": 0 }, "value": "x", @@ -2122,7 +2122,7 @@ "type": "Identifier", "span": { "start": 746, - "end": 755, + "end": 747, "ctxt": 0 }, "value": "y", @@ -2316,7 +2316,7 @@ "type": "Identifier", "span": { "start": 808, - "end": 812, + "end": 809, "ctxt": 0 }, "value": "x", @@ -2353,7 +2353,7 @@ "type": "Identifier", "span": { "start": 814, - "end": 824, + "end": 815, "ctxt": 0 }, "value": "y", @@ -2478,7 +2478,7 @@ "type": "Identifier", "span": { "start": 845, - "end": 849, + "end": 846, "ctxt": 0 }, "value": "x", @@ -2515,7 +2515,7 @@ "type": "Identifier", "span": { "start": 851, - "end": 860, + "end": 852, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads2.json b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads2.json index eb63b3986577..d948f1ea63fa 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads2.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 131, - "end": 140, + "end": 132, "ctxt": 0 }, "value": "x", @@ -92,7 +92,7 @@ "type": "Identifier", "span": { "start": 142, - "end": 152, + "end": 143, "ctxt": 0 }, "value": "y", @@ -151,7 +151,7 @@ "type": "Identifier", "span": { "start": 171, - "end": 180, + "end": 172, "ctxt": 0 }, "value": "x", @@ -187,7 +187,7 @@ "type": "Identifier", "span": { "start": 182, - "end": 191, + "end": 183, "ctxt": 0 }, "value": "y", @@ -246,7 +246,7 @@ "type": "Identifier", "span": { "start": 210, - "end": 219, + "end": 211, "ctxt": 0 }, "value": "x", @@ -499,7 +499,7 @@ "type": "Identifier", "span": { "start": 317, - "end": 321, + "end": 318, "ctxt": 0 }, "value": "x", @@ -545,7 +545,7 @@ "type": "Identifier", "span": { "start": 323, - "end": 333, + "end": 324, "ctxt": 0 }, "value": "y", @@ -604,7 +604,7 @@ "type": "Identifier", "span": { "start": 352, - "end": 356, + "end": 353, "ctxt": 0 }, "value": "x", @@ -650,7 +650,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 367, + "end": 359, "ctxt": 0 }, "value": "y", @@ -709,7 +709,7 @@ "type": "Identifier", "span": { "start": 386, - "end": 390, + "end": 387, "ctxt": 0 }, "value": "x", @@ -994,7 +994,7 @@ "type": "Identifier", "span": { "start": 504, - "end": 513, + "end": 505, "ctxt": 0 }, "value": "x", @@ -1021,7 +1021,7 @@ "type": "Identifier", "span": { "start": 515, - "end": 525, + "end": 516, "ctxt": 0 }, "value": "y", @@ -1086,7 +1086,7 @@ "type": "Identifier", "span": { "start": 540, - "end": 549, + "end": 541, "ctxt": 0 }, "value": "x", @@ -1113,7 +1113,7 @@ "type": "Identifier", "span": { "start": 551, - "end": 560, + "end": 552, "ctxt": 0 }, "value": "y", @@ -1241,7 +1241,7 @@ "type": "Identifier", "span": { "start": 595, - "end": 599, + "end": 596, "ctxt": 0 }, "value": "x", @@ -1278,7 +1278,7 @@ "type": "Identifier", "span": { "start": 601, - "end": 611, + "end": 602, "ctxt": 0 }, "value": "y", @@ -1371,7 +1371,7 @@ "type": "Identifier", "span": { "start": 630, - "end": 634, + "end": 631, "ctxt": 0 }, "value": "x", @@ -1408,7 +1408,7 @@ "type": "Identifier", "span": { "start": 636, - "end": 645, + "end": 637, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.json b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.json index 761004f6e1a6..ddea905fb99a 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 101, - "end": 110, + "end": 102, "ctxt": 0 }, "value": "x", @@ -150,7 +150,7 @@ "type": "Identifier", "span": { "start": 149, - "end": 153, + "end": 150, "ctxt": 0 }, "value": "x", @@ -196,7 +196,7 @@ "type": "Identifier", "span": { "start": 155, - "end": 165, + "end": 156, "ctxt": 0 }, "value": "y", @@ -312,7 +312,7 @@ "type": "Identifier", "span": { "start": 196, - "end": 205, + "end": 197, "ctxt": 0 }, "value": "x", @@ -339,7 +339,7 @@ "type": "Identifier", "span": { "start": 207, - "end": 216, + "end": 208, "ctxt": 0 }, "value": "y", @@ -404,7 +404,7 @@ "type": "Identifier", "span": { "start": 230, - "end": 239, + "end": 231, "ctxt": 0 }, "value": "x", @@ -431,7 +431,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 250, + "end": 242, "ctxt": 0 }, "value": "y", @@ -577,7 +577,7 @@ "type": "Identifier", "span": { "start": 304, - "end": 308, + "end": 305, "ctxt": 0 }, "value": "x", @@ -614,7 +614,7 @@ "type": "Identifier", "span": { "start": 310, - "end": 319, + "end": 311, "ctxt": 0 }, "value": "y", @@ -697,7 +697,7 @@ "type": "Identifier", "span": { "start": 343, - "end": 347, + "end": 344, "ctxt": 0 }, "value": "x", @@ -734,7 +734,7 @@ "type": "Identifier", "span": { "start": 349, - "end": 358, + "end": 350, "ctxt": 0 }, "value": "y", @@ -799,7 +799,7 @@ "type": "Identifier", "span": { "start": 385, - "end": 389, + "end": 386, "ctxt": 0 }, "value": "x", @@ -836,7 +836,7 @@ "type": "Identifier", "span": { "start": 391, - "end": 400, + "end": 392, "ctxt": 0 }, "value": "y", @@ -961,7 +961,7 @@ "type": "Identifier", "span": { "start": 422, - "end": 426, + "end": 423, "ctxt": 0 }, "value": "x", @@ -998,7 +998,7 @@ "type": "Identifier", "span": { "start": 428, - "end": 437, + "end": 429, "ctxt": 0 }, "value": "y", @@ -1139,7 +1139,7 @@ "type": "Identifier", "span": { "start": 474, - "end": 483, + "end": 475, "ctxt": 0 }, "value": "x", @@ -1166,7 +1166,7 @@ "type": "Identifier", "span": { "start": 485, - "end": 494, + "end": 486, "ctxt": 0 }, "value": "y", @@ -1249,7 +1249,7 @@ "type": "Identifier", "span": { "start": 518, - "end": 527, + "end": 519, "ctxt": 0 }, "value": "x", @@ -1276,7 +1276,7 @@ "type": "Identifier", "span": { "start": 529, - "end": 538, + "end": 530, "ctxt": 0 }, "value": "y", @@ -1391,7 +1391,7 @@ "type": "Identifier", "span": { "start": 577, - "end": 581, + "end": 578, "ctxt": 0 }, "value": "x", @@ -1428,7 +1428,7 @@ "type": "Identifier", "span": { "start": 583, - "end": 592, + "end": 584, "ctxt": 0 }, "value": "y", @@ -1553,7 +1553,7 @@ "type": "Identifier", "span": { "start": 614, - "end": 618, + "end": 615, "ctxt": 0 }, "value": "x", @@ -1590,7 +1590,7 @@ "type": "Identifier", "span": { "start": 620, - "end": 629, + "end": 621, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/constructorFunctionTypeIsAssignableToBaseType2.json b/crates/swc_ecma_parser/tests/tsc/constructorFunctionTypeIsAssignableToBaseType2.json index 93827265e158..49fc296fed54 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorFunctionTypeIsAssignableToBaseType2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorFunctionTypeIsAssignableToBaseType2.json @@ -153,7 +153,7 @@ "type": "Identifier", "span": { "start": 179, - "end": 188, + "end": 180, "ctxt": 0 }, "value": "x", @@ -344,7 +344,7 @@ "type": "Identifier", "span": { "start": 302, - "end": 311, + "end": 303, "ctxt": 0 }, "value": "x", @@ -575,7 +575,7 @@ "type": "Identifier", "span": { "start": 493, - "end": 499, + "end": 494, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/constructorFunctions2.json b/crates/swc_ecma_parser/tests/tsc/constructorFunctions2.json index 960563719174..b3e51b01802b 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorFunctions2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorFunctions2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 124, - "end": 134, + "end": 126, "ctxt": 0 }, "value": "id", diff --git a/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues.json b/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues.json index f70edeb362c9..303a0df4d7b0 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues.json @@ -288,7 +288,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 136, + "end": 134, "ctxt": 0 }, "value": "x", @@ -526,7 +526,7 @@ "type": "Identifier", "span": { "start": 237, - "end": 241, + "end": 238, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues2.json b/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues2.json index e535f06585cc..04b236dc53ed 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues2.json @@ -109,7 +109,7 @@ "type": "Identifier", "span": { "start": 54, - "end": 63, + "end": 55, "ctxt": 0 }, "value": "x", @@ -257,7 +257,7 @@ "type": "Identifier", "span": { "start": 140, - "end": 144, + "end": 141, "ctxt": 0 }, "value": "x", @@ -303,7 +303,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 150, + "end": 147, "ctxt": 0 }, "value": "y", @@ -379,7 +379,7 @@ "type": "Identifier", "span": { "start": 169, - "end": 173, + "end": 170, "ctxt": 0 }, "value": "x", @@ -446,7 +446,7 @@ "type": "Identifier", "span": { "start": 186, - "end": 190, + "end": 187, "ctxt": 0 }, "value": "y", @@ -709,7 +709,7 @@ "type": "Identifier", "span": { "start": 297, - "end": 301, + "end": 298, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/constructorOverloadsWithOptionalParameters.json b/crates/swc_ecma_parser/tests/tsc/constructorOverloadsWithOptionalParameters.json index 99641c3d82ce..ffbaaa95c42d 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorOverloadsWithOptionalParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorOverloadsWithOptionalParameters.json @@ -121,7 +121,7 @@ "type": "Identifier", "span": { "start": 48, - "end": 57, + "end": 49, "ctxt": 0 }, "value": "y", @@ -310,7 +310,7 @@ "type": "Identifier", "span": { "start": 140, - "end": 149, + "end": 141, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/constructorParameterProperties.json b/crates/swc_ecma_parser/tests/tsc/constructorParameterProperties.json index b6a7deedad4e..a376d99d1516 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorParameterProperties.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorParameterProperties.json @@ -104,7 +104,7 @@ "type": "Identifier", "span": { "start": 50, - "end": 59, + "end": 51, "ctxt": 0 }, "value": "x", @@ -143,7 +143,7 @@ "type": "Identifier", "span": { "start": 71, - "end": 80, + "end": 72, "ctxt": 0 }, "value": "z", @@ -531,7 +531,7 @@ "type": "Identifier", "span": { "start": 198, - "end": 202, + "end": 199, "ctxt": 0 }, "value": "a", @@ -580,7 +580,7 @@ "type": "Identifier", "span": { "start": 212, - "end": 216, + "end": 213, "ctxt": 0 }, "value": "x", @@ -629,7 +629,7 @@ "type": "Identifier", "span": { "start": 228, - "end": 232, + "end": 229, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/constructorParameterProperties2.json b/crates/swc_ecma_parser/tests/tsc/constructorParameterProperties2.json index 1523c260a949..5bf44fd43f0c 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorParameterProperties2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorParameterProperties2.json @@ -101,7 +101,7 @@ "type": "Identifier", "span": { "start": 42, - "end": 51, + "end": 43, "ctxt": 0 }, "value": "y", @@ -362,7 +362,7 @@ "type": "Identifier", "span": { "start": 138, - "end": 147, + "end": 139, "ctxt": 0 }, "value": "y", @@ -623,7 +623,7 @@ "type": "Identifier", "span": { "start": 239, - "end": 248, + "end": 240, "ctxt": 0 }, "value": "y", @@ -884,7 +884,7 @@ "type": "Identifier", "span": { "start": 351, - "end": 360, + "end": 352, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes.json b/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes.json index 01e1ec73ed25..ab14ab55cd79 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes.json @@ -136,7 +136,7 @@ "type": "Identifier", "span": { "start": 515, - "end": 524, + "end": 516, "ctxt": 0 }, "value": "x", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 690, - "end": 699, + "end": 691, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes2.json b/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes2.json index cf2a6e686ee0..0784fff8cbfd 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes2.json @@ -136,7 +136,7 @@ "type": "Identifier", "span": { "start": 667, - "end": 676, + "end": 668, "ctxt": 0 }, "value": "x", @@ -310,7 +310,7 @@ "type": "Identifier", "span": { "start": 743, - "end": 752, + "end": 744, "ctxt": 0 }, "value": "x", @@ -485,7 +485,7 @@ "type": "Identifier", "span": { "start": 832, - "end": 841, + "end": 833, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/constructorWithExpressionLessReturn.json b/crates/swc_ecma_parser/tests/tsc/constructorWithExpressionLessReturn.json index 9784aaf273f6..7d3065b9687b 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorWithExpressionLessReturn.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorWithExpressionLessReturn.json @@ -238,7 +238,7 @@ "type": "Identifier", "span": { "start": 159, - "end": 168, + "end": 160, "ctxt": 0 }, "value": "x", @@ -345,7 +345,7 @@ "type": "Identifier", "span": { "start": 233, - "end": 237, + "end": 234, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/contextualIntersectionType.json b/crates/swc_ecma_parser/tests/tsc/contextualIntersectionType.json index 5628d0f0125c..3a8c6cac34ad 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualIntersectionType.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualIntersectionType.json @@ -96,7 +96,7 @@ "type": "Identifier", "span": { "start": 14, - "end": 23, + "end": 15, "ctxt": 0 }, "value": "s", @@ -193,7 +193,7 @@ "type": "Identifier", "span": { "start": 45, - "end": 54, + "end": 46, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/contextualSignatureInstantiation.json b/crates/swc_ecma_parser/tests/tsc/contextualSignatureInstantiation.json index 967c38ae3dcf..679dc174d09e 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualSignatureInstantiation.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualSignatureInstantiation.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 520, - "end": 551, + "end": 522, "ctxt": 0 }, "value": "cb", @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 525, - "end": 534, + "end": 526, "ctxt": 0 }, "value": "x", @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 536, - "end": 545, + "end": 537, "ctxt": 0 }, "value": "y", @@ -236,7 +236,7 @@ "type": "Identifier", "span": { "start": 587, - "end": 591, + "end": 588, "ctxt": 0 }, "value": "x", @@ -282,7 +282,7 @@ "type": "Identifier", "span": { "start": 593, - "end": 597, + "end": 594, "ctxt": 0 }, "value": "y", @@ -328,7 +328,7 @@ "type": "Identifier", "span": { "start": 599, - "end": 620, + "end": 601, "ctxt": 0 }, "value": "cb", @@ -352,7 +352,7 @@ "type": "Identifier", "span": { "start": 604, - "end": 608, + "end": 605, "ctxt": 0 }, "value": "x", @@ -389,7 +389,7 @@ "type": "Identifier", "span": { "start": 610, - "end": 614, + "end": 611, "ctxt": 0 }, "value": "y", @@ -598,7 +598,7 @@ "type": "Identifier", "span": { "start": 653, - "end": 657, + "end": 654, "ctxt": 0 }, "value": "x", @@ -644,7 +644,7 @@ "type": "Identifier", "span": { "start": 659, - "end": 663, + "end": 660, "ctxt": 0 }, "value": "y", @@ -690,7 +690,7 @@ "type": "Identifier", "span": { "start": 665, - "end": 686, + "end": 667, "ctxt": 0 }, "value": "cb", @@ -714,7 +714,7 @@ "type": "Identifier", "span": { "start": 670, - "end": 674, + "end": 671, "ctxt": 0 }, "value": "x", @@ -751,7 +751,7 @@ "type": "Identifier", "span": { "start": 676, - "end": 680, + "end": 677, "ctxt": 0 }, "value": "y", @@ -937,7 +937,7 @@ "type": "Identifier", "span": { "start": 715, - "end": 719, + "end": 716, "ctxt": 0 }, "value": "x", @@ -983,7 +983,7 @@ "type": "Identifier", "span": { "start": 721, - "end": 725, + "end": 722, "ctxt": 0 }, "value": "y", @@ -1114,7 +1114,7 @@ "type": "Identifier", "span": { "start": 756, - "end": 760, + "end": 757, "ctxt": 0 }, "value": "x", @@ -1160,7 +1160,7 @@ "type": "Identifier", "span": { "start": 762, - "end": 766, + "end": 763, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/contextualThisType.json b/crates/swc_ecma_parser/tests/tsc/contextualThisType.json index bca3ff9bc1bf..f5153365d0c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualThisType.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualThisType.json @@ -75,7 +75,7 @@ "type": "Identifier", "span": { "start": 23, - "end": 30, + "end": 24, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeTupleEnd.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeTupleEnd.json index 48c49d5c6fce..7fffc20fa9de 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeTupleEnd.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeTupleEnd.json @@ -74,7 +74,7 @@ "type": "Identifier", "span": { "start": 55, - "end": 66, + "end": 58, "ctxt": 0 }, "value": "arg", @@ -141,7 +141,7 @@ "type": "Identifier", "span": { "start": 81, - "end": 92, + "end": 84, "ctxt": 0 }, "value": "arg", @@ -214,7 +214,7 @@ "type": "Identifier", "span": { "start": 126, - "end": 135, + "end": 127, "ctxt": 0 }, "value": "x", @@ -293,7 +293,7 @@ "type": "Identifier", "span": { "start": 165, - "end": 174, + "end": 166, "ctxt": 0 }, "value": "x", @@ -1649,7 +1649,7 @@ "type": "Identifier", "span": { "start": 559, - "end": 571, + "end": 564, "ctxt": 0 }, "value": "state", @@ -2106,7 +2106,7 @@ "type": "Identifier", "span": { "start": 808, - "end": 814, + "end": 809, "ctxt": 0 }, "value": "x", @@ -2584,7 +2584,7 @@ "type": "Identifier", "span": { "start": 985, - "end": 994, + "end": 986, "ctxt": 0 }, "value": "n", @@ -2651,7 +2651,7 @@ "type": "Identifier", "span": { "start": 1009, - "end": 1015, + "end": 1010, "ctxt": 0 }, "value": "x", @@ -3027,7 +3027,7 @@ "type": "Identifier", "span": { "start": 1174, - "end": 1185, + "end": 1177, "ctxt": 0 }, "value": "arg", @@ -3094,7 +3094,7 @@ "type": "Identifier", "span": { "start": 1200, - "end": 1211, + "end": 1203, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeCallSignatures.json index 4b9a886886f3..2370d927bd55 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeCallSignatures.json @@ -118,7 +118,7 @@ "type": "Identifier", "span": { "start": 618, - "end": 627, + "end": 619, "ctxt": 0 }, "value": "a", @@ -204,7 +204,7 @@ "type": "Identifier", "span": { "start": 678, - "end": 687, + "end": 679, "ctxt": 0 }, "value": "a", @@ -290,7 +290,7 @@ "type": "Identifier", "span": { "start": 738, - "end": 747, + "end": 739, "ctxt": 0 }, "value": "b", @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 798, - "end": 807, + "end": 799, "ctxt": 0 }, "value": "a", @@ -431,7 +431,7 @@ "type": "Identifier", "span": { "start": 823, - "end": 832, + "end": 824, "ctxt": 0 }, "value": "a", @@ -458,7 +458,7 @@ "type": "Identifier", "span": { "start": 834, - "end": 843, + "end": 835, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeIndexSignatures.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeIndexSignatures.json index 7142a94c1e28..5c9cfa821171 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeIndexSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeIndexSignatures.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 228, - "end": 237, + "end": 229, "ctxt": 0 }, "value": "a", @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 277, - "end": 286, + "end": 278, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeMembers.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeMembers.json index 2fa82b02bd5a..485cb3ce7582 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeMembers.json @@ -91,7 +91,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 250, + "end": 242, "ctxt": 0 }, "value": "a", @@ -200,7 +200,7 @@ "type": "Identifier", "span": { "start": 327, - "end": 331, + "end": 328, "ctxt": 0 }, "value": "a", @@ -288,7 +288,7 @@ "type": "Identifier", "span": { "start": 357, - "end": 366, + "end": 358, "ctxt": 0 }, "value": "a", @@ -460,7 +460,7 @@ "type": "Identifier", "span": { "start": 448, - "end": 457, + "end": 449, "ctxt": 0 }, "value": "a", @@ -569,7 +569,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 538, + "end": 535, "ctxt": 0 }, "value": "a", @@ -657,7 +657,7 @@ "type": "Identifier", "span": { "start": 564, - "end": 573, + "end": 565, "ctxt": 0 }, "value": "a", @@ -3124,7 +3124,7 @@ "type": "Identifier", "span": { "start": 2432, - "end": 2441, + "end": 2433, "ctxt": 0 }, "value": "a", @@ -3151,7 +3151,7 @@ "type": "Identifier", "span": { "start": 2443, - "end": 2452, + "end": 2444, "ctxt": 0 }, "value": "b", @@ -3291,7 +3291,7 @@ "type": "Identifier", "span": { "start": 2558, - "end": 2567, + "end": 2559, "ctxt": 0 }, "value": "a", @@ -3318,7 +3318,7 @@ "type": "Identifier", "span": { "start": 2569, - "end": 2578, + "end": 2570, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeObjectLiteral.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeObjectLiteral.json index 813dfdd0e9fc..0d5d4377cf5f 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeObjectLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeObjectLiteral.json @@ -2153,7 +2153,7 @@ "type": "Identifier", "span": { "start": 1497, - "end": 1506, + "end": 1498, "ctxt": 0 }, "value": "a", @@ -2180,7 +2180,7 @@ "type": "Identifier", "span": { "start": 1508, - "end": 1517, + "end": 1509, "ctxt": 0 }, "value": "b", @@ -2279,7 +2279,7 @@ "type": "Identifier", "span": { "start": 1582, - "end": 1591, + "end": 1583, "ctxt": 0 }, "value": "a", @@ -2306,7 +2306,7 @@ "type": "Identifier", "span": { "start": 1593, - "end": 1602, + "end": 1594, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionReturnType.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionReturnType.json index 07d5094a9fe9..f1e7d4395baa 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionReturnType.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionReturnType.json @@ -892,7 +892,7 @@ "type": "Identifier", "span": { "start": 543, - "end": 552, + "end": 546, "ctxt": 0 }, "value": "err", @@ -967,7 +967,7 @@ "type": "Identifier", "span": { "start": 576, - "end": 589, + "end": 580, "ctxt": 0 }, "value": "this", @@ -1004,7 +1004,7 @@ "type": "Identifier", "span": { "start": 591, - "end": 601, + "end": 595, "ctxt": 0 }, "value": "done", @@ -1089,7 +1089,7 @@ "type": "Identifier", "span": { "start": 630, - "end": 643, + "end": 634, "ctxt": 0 }, "value": "this", @@ -1211,7 +1211,7 @@ "type": "Identifier", "span": { "start": 695, - "end": 703, + "end": 697, "ctxt": 0 }, "value": "fn", @@ -1276,7 +1276,7 @@ "type": "Identifier", "span": { "start": 715, - "end": 728, + "end": 717, "ctxt": 0 }, "value": "fn", @@ -1341,7 +1341,7 @@ "type": "Identifier", "span": { "start": 740, - "end": 753, + "end": 745, "ctxt": 0 }, "value": "title", @@ -1368,7 +1368,7 @@ "type": "Identifier", "span": { "start": 755, - "end": 764, + "end": 757, "ctxt": 0 }, "value": "fn", @@ -1433,7 +1433,7 @@ "type": "Identifier", "span": { "start": 776, - "end": 789, + "end": 781, "ctxt": 0 }, "value": "title", @@ -1460,7 +1460,7 @@ "type": "Identifier", "span": { "start": 791, - "end": 805, + "end": 793, "ctxt": 0 }, "value": "fn", @@ -1862,7 +1862,7 @@ "type": "Identifier", "span": { "start": 1030, - "end": 1045, + "end": 1037, "ctxt": 0 }, "value": "rootPid", @@ -1898,7 +1898,7 @@ "type": "Identifier", "span": { "start": 1049, - "end": 1090, + "end": 1057, "ctxt": 0 }, "value": "callback", @@ -1922,7 +1922,7 @@ "type": "Identifier", "span": { "start": 1060, - "end": 1081, + "end": 1064, "ctxt": 0 }, "value": "tree", @@ -2595,7 +2595,7 @@ "type": "Identifier", "span": { "start": 1520, - "end": 1542, + "end": 1525, "ctxt": 0 }, "value": "local", @@ -2741,7 +2741,7 @@ "type": "Identifier", "span": { "start": 1611, - "end": 1644, + "end": 1625, "ctxt": 0 }, "value": "fromExtensions", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeCommaOperator01.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeCommaOperator01.json index 74247bf4d7e7..7317e038c395 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeCommaOperator01.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeCommaOperator01.json @@ -51,7 +51,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 74, + "end": 66, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeCommaOperator02.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeCommaOperator02.json index 1a7fde3ea024..677f95bbaf43 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeCommaOperator02.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeCommaOperator02.json @@ -51,7 +51,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 74, + "end": 66, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeCommaOperator03.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeCommaOperator03.json index 6c95c5b94dfc..29074d08d814 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeCommaOperator03.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeCommaOperator03.json @@ -51,7 +51,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 74, + "end": 66, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeLogicalAnd01.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeLogicalAnd01.json index 4bf44f067a04..0b3bd0b61501 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeLogicalAnd01.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeLogicalAnd01.json @@ -51,7 +51,7 @@ "type": "Identifier", "span": { "start": 34, - "end": 43, + "end": 35, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeLogicalAnd02.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeLogicalAnd02.json index 48d6abe96bb9..8bf4038dd0bb 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeLogicalAnd02.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeLogicalAnd02.json @@ -51,7 +51,7 @@ "type": "Identifier", "span": { "start": 34, - "end": 43, + "end": 35, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeLogicalAnd03.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeLogicalAnd03.json index 6b938a9723dd..47944d34c82b 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeLogicalAnd03.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeLogicalAnd03.json @@ -51,7 +51,7 @@ "type": "Identifier", "span": { "start": 34, - "end": 43, + "end": 35, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializer.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializer.json index 94c859d67a88..348c1723a9bd 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializer.json @@ -75,7 +75,7 @@ "type": "Identifier", "span": { "start": 53, - "end": 62, + "end": 54, "ctxt": 0 }, "value": "x", @@ -1438,7 +1438,7 @@ "type": "Identifier", "span": { "start": 607, - "end": 616, + "end": 608, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializerNegative.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializerNegative.json index c13a20a4a3cf..0bcaca3d2c18 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializerNegative.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializerNegative.json @@ -75,7 +75,7 @@ "type": "Identifier", "span": { "start": 53, - "end": 62, + "end": 54, "ctxt": 0 }, "value": "x", @@ -886,7 +886,7 @@ "type": "Identifier", "span": { "start": 392, - "end": 401, + "end": 393, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration01.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration01.json index 8a0399329322..226ac5d86efa 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration01.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration01.json @@ -203,7 +203,7 @@ "type": "Identifier", "span": { "start": 131, - "end": 137, + "end": 134, "ctxt": 0 }, "value": "arg", @@ -281,7 +281,7 @@ "type": "Identifier", "span": { "start": 158, - "end": 164, + "end": 161, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration02.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration02.json index b6df92c335ed..afd4e9c84eff 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration02.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration02.json @@ -271,7 +271,7 @@ "type": "Identifier", "span": { "start": 167, - "end": 173, + "end": 170, "ctxt": 0 }, "value": "arg", @@ -349,7 +349,7 @@ "type": "Identifier", "span": { "start": 194, - "end": 200, + "end": 197, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedFunctionExpressionsAndReturnAnnotations.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedFunctionExpressionsAndReturnAnnotations.json index d0eaf3aa8ac1..514187c1bf3d 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedFunctionExpressionsAndReturnAnnotations.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedFunctionExpressionsAndReturnAnnotations.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 22, - "end": 60, + "end": 23, "ctxt": 0 }, "value": "x", @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 26, - "end": 35, + "end": 27, "ctxt": 0 }, "value": "y", @@ -100,7 +100,7 @@ "type": "Identifier", "span": { "start": 41, - "end": 51, + "end": 43, "ctxt": 0 }, "value": "y2", @@ -340,7 +340,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 156, + "end": 148, "ctxt": 0 }, "value": "y2", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedObjectLiteralMethodDeclaration01.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedObjectLiteralMethodDeclaration01.json index 4a8b22a00f3b..9bf8131f9bfb 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedObjectLiteralMethodDeclaration01.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedObjectLiteralMethodDeclaration01.json @@ -203,7 +203,7 @@ "type": "Identifier", "span": { "start": 131, - "end": 137, + "end": 134, "ctxt": 0 }, "value": "arg", @@ -281,7 +281,7 @@ "type": "Identifier", "span": { "start": 158, - "end": 164, + "end": 161, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowAliasing.json b/crates/swc_ecma_parser/tests/tsc/controlFlowAliasing.json index 1d7a28886341..f288c34f2ccc 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowAliasing.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowAliasing.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 103, - "end": 121, + "end": 104, "ctxt": 0 }, "value": "x", @@ -347,7 +347,7 @@ "type": "Identifier", "span": { "start": 282, - "end": 292, + "end": 283, "ctxt": 0 }, "value": "x", @@ -576,7 +576,7 @@ "type": "Identifier", "span": { "start": 409, - "end": 437, + "end": 410, "ctxt": 0 }, "value": "x", @@ -1008,7 +1008,7 @@ "type": "Identifier", "span": { "start": 664, - "end": 692, + "end": 665, "ctxt": 0 }, "value": "x", @@ -1482,7 +1482,7 @@ "type": "Identifier", "span": { "start": 966, - "end": 994, + "end": 967, "ctxt": 0 }, "value": "x", @@ -1724,7 +1724,7 @@ "type": "Identifier", "span": { "start": 1104, - "end": 1140, + "end": 1107, "ctxt": 0 }, "value": "obj", @@ -2050,7 +2050,7 @@ "type": "Identifier", "span": { "start": 1265, - "end": 1301, + "end": 1268, "ctxt": 0 }, "value": "obj", @@ -2437,7 +2437,7 @@ "type": "Identifier", "span": { "start": 1504, - "end": 1535, + "end": 1507, "ctxt": 0 }, "value": "obj", @@ -2765,7 +2765,7 @@ "type": "Identifier", "span": { "start": 1662, - "end": 1693, + "end": 1665, "ctxt": 0 }, "value": "obj", @@ -3144,7 +3144,7 @@ "type": "Identifier", "span": { "start": 1893, - "end": 1957, + "end": 1896, "ctxt": 0 }, "value": "obj", @@ -3608,7 +3608,7 @@ "type": "Identifier", "span": { "start": 2089, - "end": 2153, + "end": 2092, "ctxt": 0 }, "value": "obj", @@ -4088,7 +4088,7 @@ "type": "Identifier", "span": { "start": 2396, - "end": 2460, + "end": 2399, "ctxt": 0 }, "value": "obj", @@ -4552,7 +4552,7 @@ "type": "Identifier", "span": { "start": 2674, - "end": 2738, + "end": 2677, "ctxt": 0 }, "value": "obj", @@ -5054,7 +5054,7 @@ "type": "Identifier", "span": { "start": 3001, - "end": 3065, + "end": 3004, "ctxt": 0 }, "value": "arg", @@ -5560,7 +5560,7 @@ "type": "Identifier", "span": { "start": 3218, - "end": 3282, + "end": 3221, "ctxt": 0 }, "value": "arg", @@ -6066,7 +6066,7 @@ "type": "Identifier", "span": { "start": 3433, - "end": 3517, + "end": 3438, "ctxt": 0 }, "value": "outer", @@ -6626,7 +6626,7 @@ "type": "Identifier", "span": { "start": 3667, - "end": 3742, + "end": 3672, "ctxt": 0 }, "value": "outer", @@ -7186,7 +7186,7 @@ "type": "Identifier", "span": { "start": 3972, - "end": 4037, + "end": 3975, "ctxt": 0 }, "value": "obj", @@ -7787,7 +7787,7 @@ "type": "Identifier", "span": { "start": 4281, - "end": 4345, + "end": 4284, "ctxt": 0 }, "value": "obj", @@ -8251,7 +8251,7 @@ "type": "Identifier", "span": { "start": 4475, - "end": 4539, + "end": 4478, "ctxt": 0 }, "value": "obj", @@ -8718,7 +8718,7 @@ "type": "Identifier", "span": { "start": 4668, - "end": 4732, + "end": 4671, "ctxt": 0 }, "value": "obj", @@ -9189,7 +9189,7 @@ "type": "Identifier", "span": { "start": 4861, - "end": 4925, + "end": 4864, "ctxt": 0 }, "value": "obj", @@ -9704,7 +9704,7 @@ "type": "Identifier", "span": { "start": 5094, - "end": 5112, + "end": 5095, "ctxt": 0 }, "value": "x", @@ -10166,7 +10166,7 @@ "type": "Identifier", "span": { "start": 5393, - "end": 5411, + "end": 5394, "ctxt": 0 }, "value": "x", @@ -10701,7 +10701,7 @@ "type": "Identifier", "span": { "start": 5867, - "end": 5933, + "end": 5870, "ctxt": 0 }, "value": "obj", @@ -11474,7 +11474,7 @@ "type": "Identifier", "span": { "start": 6240, - "end": 6249, + "end": 6243, "ctxt": 0 }, "value": "obj", @@ -12279,7 +12279,7 @@ "type": "Identifier", "span": { "start": 6736, - "end": 6744, + "end": 6741, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowBinaryOrExpression.json b/crates/swc_ecma_parser/tests/tsc/controlFlowBinaryOrExpression.json index 39e0508f5936..7a20978cdc1b 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowBinaryOrExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowBinaryOrExpression.json @@ -550,7 +550,7 @@ "type": "Identifier", "span": { "start": 283, - "end": 297, + "end": 292, "ctxt": 0 }, "value": "sourceObj", @@ -666,7 +666,7 @@ "type": "Identifier", "span": { "start": 357, - "end": 371, + "end": 366, "ctxt": 0 }, "value": "sourceObj", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowCommaOperator.json b/crates/swc_ecma_parser/tests/tsc/controlFlowCommaOperator.json index fc258f65ef4a..5d2e169e4b64 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowCommaOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowCommaOperator.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 12, - "end": 40, + "end": 13, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowComputedPropertyNames.json b/crates/swc_ecma_parser/tests/tsc/controlFlowComputedPropertyNames.json index 2a11a61d8e21..553d02a681bd 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowComputedPropertyNames.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowComputedPropertyNames.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 48, - "end": 76, + "end": 51, "ctxt": 0 }, "value": "obj", @@ -105,7 +105,7 @@ "type": "Identifier", "span": { "start": 78, - "end": 89, + "end": 81, "ctxt": 0 }, "value": "key", @@ -332,7 +332,7 @@ "type": "Identifier", "span": { "start": 186, - "end": 225, + "end": 189, "ctxt": 0 }, "value": "obj", @@ -424,7 +424,7 @@ "type": "Identifier", "span": { "start": 227, - "end": 238, + "end": 230, "ctxt": 0 }, "value": "key", @@ -1209,7 +1209,7 @@ "type": "Identifier", "span": { "start": 585, - "end": 595, + "end": 588, "ctxt": 0 }, "value": "obj", @@ -1255,7 +1255,7 @@ "type": "Identifier", "span": { "start": 597, - "end": 613, + "end": 600, "ctxt": 0 }, "value": "key", @@ -1730,7 +1730,7 @@ "type": "Identifier", "span": { "start": 866, - "end": 900, + "end": 869, "ctxt": 0 }, "value": "obj", @@ -1832,7 +1832,7 @@ "type": "Identifier", "span": { "start": 902, - "end": 908, + "end": 905, "ctxt": 0 }, "value": "key", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccessNoCrash1.json b/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccessNoCrash1.json index e10631f8eb61..6ada279976d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccessNoCrash1.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccessNoCrash1.json @@ -510,7 +510,7 @@ "type": "Identifier", "span": { "start": 387, - "end": 408, + "end": 392, "ctxt": 0 }, "value": "input", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowGenericTypes.json b/crates/swc_ecma_parser/tests/tsc/controlFlowGenericTypes.json index a7333cd5cc97..c0a13cad951f 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowGenericTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowGenericTypes.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 61, - "end": 65, + "end": 62, "ctxt": 0 }, "value": "x", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 67, - "end": 78, + "end": 68, "ctxt": 0 }, "value": "y", @@ -166,7 +166,7 @@ "type": "Identifier", "span": { "start": 80, - "end": 86, + "end": 81, "ctxt": 0 }, "value": "z", @@ -759,7 +759,7 @@ "type": "Identifier", "span": { "start": 327, - "end": 367, + "end": 328, "ctxt": 0 }, "value": "x", @@ -1197,7 +1197,7 @@ "type": "Identifier", "span": { "start": 526, - "end": 532, + "end": 527, "ctxt": 0 }, "value": "x", @@ -1331,7 +1331,7 @@ "type": "Identifier", "span": { "start": 583, - "end": 593, + "end": 584, "ctxt": 0 }, "value": "x", @@ -1437,7 +1437,7 @@ "type": "Identifier", "span": { "start": 638, - "end": 647, + "end": 639, "ctxt": 0 }, "value": "x", @@ -1596,7 +1596,7 @@ "type": "Identifier", "span": { "start": 696, - "end": 700, + "end": 697, "ctxt": 0 }, "value": "x", @@ -1870,7 +1870,7 @@ "type": "Identifier", "span": { "start": 793, - "end": 797, + "end": 794, "ctxt": 0 }, "value": "x", @@ -2153,7 +2153,7 @@ "type": "Identifier", "span": { "start": 897, - "end": 901, + "end": 898, "ctxt": 0 }, "value": "x", @@ -2436,7 +2436,7 @@ "type": "Identifier", "span": { "start": 1005, - "end": 1009, + "end": 1006, "ctxt": 0 }, "value": "x", @@ -2710,7 +2710,7 @@ "type": "Identifier", "span": { "start": 1121, - "end": 1129, + "end": 1124, "ctxt": 0 }, "value": "val", @@ -2805,7 +2805,7 @@ "type": "Identifier", "span": { "start": 1193, - "end": 1202, + "end": 1198, "ctxt": 0 }, "value": "value", @@ -4539,7 +4539,7 @@ "type": "Identifier", "span": { "start": 2020, - "end": 2029, + "end": 2026, "ctxt": 0 }, "value": "object", @@ -4871,7 +4871,7 @@ "type": "Identifier", "span": { "start": 2185, - "end": 2191, + "end": 2188, "ctxt": 0 }, "value": "key", @@ -4917,7 +4917,7 @@ "type": "Identifier", "span": { "start": 2193, - "end": 2199, + "end": 2196, "ctxt": 0 }, "value": "obj", @@ -5566,7 +5566,7 @@ "type": "Identifier", "span": { "start": 2484, - "end": 2501, + "end": 2498, "ctxt": 0 }, "value": "emittingObject", @@ -5612,7 +5612,7 @@ "type": "Identifier", "span": { "start": 2503, - "end": 2522, + "end": 2512, "ctxt": 0 }, "value": "eventName", @@ -5993,7 +5993,7 @@ "type": "Identifier", "span": { "start": 2950, - "end": 2956, + "end": 2953, "ctxt": 0 }, "value": "obj", @@ -6039,7 +6039,7 @@ "type": "Identifier", "span": { "start": 2958, - "end": 2964, + "end": 2961, "ctxt": 0 }, "value": "key", @@ -6358,7 +6358,7 @@ "type": "Identifier", "span": { "start": 3095, - "end": 3101, + "end": 3098, "ctxt": 0 }, "value": "obj", @@ -6404,7 +6404,7 @@ "type": "Identifier", "span": { "start": 3103, - "end": 3109, + "end": 3106, "ctxt": 0 }, "value": "key", @@ -6787,7 +6787,7 @@ "type": "Identifier", "span": { "start": 3252, - "end": 3258, + "end": 3255, "ctxt": 0 }, "value": "obj", @@ -6833,7 +6833,7 @@ "type": "Identifier", "span": { "start": 3260, - "end": 3266, + "end": 3263, "ctxt": 0 }, "value": "key", @@ -7995,7 +7995,7 @@ "type": "Identifier", "span": { "start": 3970, - "end": 3974, + "end": 3971, "ctxt": 0 }, "value": "x", @@ -8041,7 +8041,7 @@ "type": "Identifier", "span": { "start": 3976, - "end": 3989, + "end": 3977, "ctxt": 0 }, "value": "y", @@ -8482,7 +8482,7 @@ "type": "Identifier", "span": { "start": 4137, - "end": 4167, + "end": 4141, "ctxt": 0 }, "value": "_row", @@ -8647,7 +8647,7 @@ "type": "Identifier", "span": { "start": 4204, - "end": 4224, + "end": 4207, "ctxt": 0 }, "value": "row", @@ -9173,7 +9173,7 @@ "type": "Identifier", "span": { "start": 4509, - "end": 4532, + "end": 4516, "ctxt": 0 }, "value": "control", @@ -9238,7 +9238,7 @@ "type": "Identifier", "span": { "start": 4534, - "end": 4540, + "end": 4537, "ctxt": 0 }, "value": "key", @@ -9284,7 +9284,7 @@ "type": "Identifier", "span": { "start": 4542, - "end": 4553, + "end": 4547, "ctxt": 0 }, "value": "value", @@ -9918,7 +9918,7 @@ "type": "Identifier", "span": { "start": 4790, - "end": 4807, + "end": 4796, "ctxt": 0 }, "value": "column", @@ -9992,7 +9992,7 @@ "type": "Identifier", "span": { "start": 4809, - "end": 4829, + "end": 4812, "ctxt": 0 }, "value": "key", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowIfStatement.json b/crates/swc_ecma_parser/tests/tsc/controlFlowIfStatement.json index ed1107b25e78..b32a4a67a326 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowIfStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowIfStatement.json @@ -927,7 +927,7 @@ "type": "Identifier", "span": { "start": 547, - "end": 563, + "end": 551, "ctxt": 0 }, "value": "data", @@ -1230,7 +1230,7 @@ "type": "Identifier", "span": { "start": 714, - "end": 730, + "end": 718, "ctxt": 0 }, "value": "data", @@ -1627,7 +1627,7 @@ "type": "Identifier", "span": { "start": 909, - "end": 924, + "end": 910, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowInOperator.json b/crates/swc_ecma_parser/tests/tsc/controlFlowInOperator.json index 62917dd8b92d..9a54273822d0 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowInOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowInOperator.json @@ -740,7 +740,7 @@ "type": "Identifier", "span": { "start": 402, - "end": 424, + "end": 404, "ctxt": 0 }, "value": "id", @@ -795,7 +795,7 @@ "type": "Identifier", "span": { "start": 428, - "end": 462, + "end": 435, "ctxt": 0 }, "value": "seenIDs", @@ -1458,7 +1458,7 @@ "type": "Identifier", "span": { "start": 778, - "end": 797, + "end": 780, "ctxt": 0 }, "value": "id", @@ -1513,7 +1513,7 @@ "type": "Identifier", "span": { "start": 799, - "end": 814, + "end": 806, "ctxt": 0 }, "value": "seenIDs", @@ -1855,7 +1855,7 @@ "type": "Identifier", "span": { "start": 956, - "end": 975, + "end": 958, "ctxt": 0 }, "value": "id", @@ -1910,7 +1910,7 @@ "type": "Identifier", "span": { "start": 977, - "end": 992, + "end": 984, "ctxt": 0 }, "value": "seenIDs", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceOfGuardPrimitives.json b/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceOfGuardPrimitives.json index b25fb3f238f0..868fc340f062 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceOfGuardPrimitives.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceOfGuardPrimitives.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 22, - "end": 51, + "end": 27, "ctxt": 0 }, "value": "thing", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrors.json b/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrors.json index 85d8a00e9e22..692a98641bd3 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrors.json @@ -81,7 +81,7 @@ "type": "Identifier", "span": { "start": 59, - "end": 68, + "end": 60, "ctxt": 0 }, "value": "s", @@ -741,7 +741,7 @@ "type": "Identifier", "span": { "start": 381, - "end": 390, + "end": 382, "ctxt": 0 }, "value": "x", @@ -820,7 +820,7 @@ "type": "Identifier", "span": { "start": 422, - "end": 431, + "end": 423, "ctxt": 0 }, "value": "x", @@ -1451,7 +1451,7 @@ "type": "Identifier", "span": { "start": 725, - "end": 743, + "end": 726, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrorsAsync.json b/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrorsAsync.json index eefc863cf4f3..dfbc9da1d719 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrorsAsync.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrorsAsync.json @@ -81,7 +81,7 @@ "type": "Identifier", "span": { "start": 91, - "end": 100, + "end": 92, "ctxt": 0 }, "value": "s", @@ -757,7 +757,7 @@ "type": "Identifier", "span": { "start": 437, - "end": 446, + "end": 438, "ctxt": 0 }, "value": "x", @@ -864,7 +864,7 @@ "type": "Identifier", "span": { "start": 487, - "end": 496, + "end": 488, "ctxt": 0 }, "value": "x", @@ -1539,7 +1539,7 @@ "type": "Identifier", "span": { "start": 829, - "end": 847, + "end": 830, "ctxt": 0 }, "value": "x", @@ -2920,7 +2920,7 @@ "type": "Identifier", "span": { "start": 1551, - "end": 1572, + "end": 1552, "ctxt": 0 }, "value": "_", @@ -3401,7 +3401,7 @@ "type": "Identifier", "span": { "start": 1853, - "end": 1874, + "end": 1854, "ctxt": 0 }, "value": "x", @@ -3775,7 +3775,7 @@ "type": "Identifier", "span": { "start": 2089, - "end": 2126, + "end": 2094, "ctxt": 0 }, "value": "input", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain.json b/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain.json index 0bb1dc01b988..6c4414e978f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain.json @@ -1055,7 +1055,7 @@ "type": "Identifier", "span": { "start": 417, - "end": 423, + "end": 418, "ctxt": 0 }, "value": "x", @@ -1582,7 +1582,7 @@ "type": "Identifier", "span": { "start": 621, - "end": 627, + "end": 622, "ctxt": 0 }, "value": "x", @@ -5994,7 +5994,7 @@ "type": "Identifier", "span": { "start": 1840, - "end": 1848, + "end": 1845, "ctxt": 0 }, "value": "value", @@ -6196,7 +6196,7 @@ "type": "Identifier", "span": { "start": 1911, - "end": 1925, + "end": 1916, "ctxt": 0 }, "value": "value", @@ -6342,7 +6342,7 @@ "type": "Identifier", "span": { "start": 1998, - "end": 2012, + "end": 2003, "ctxt": 0 }, "value": "value", @@ -6542,7 +6542,7 @@ "type": "Identifier", "span": { "start": 2110, - "end": 2120, + "end": 2111, "ctxt": 0 }, "value": "x", @@ -7273,7 +7273,7 @@ "type": "Identifier", "span": { "start": 2485, - "end": 2505, + "end": 2486, "ctxt": 0 }, "value": "o", @@ -7338,7 +7338,7 @@ "type": "Identifier", "span": { "start": 2507, - "end": 2520, + "end": 2512, "ctxt": 0 }, "value": "value", @@ -8146,7 +8146,7 @@ "type": "Identifier", "span": { "start": 2849, - "end": 2864, + "end": 2850, "ctxt": 0 }, "value": "o", @@ -8211,7 +8211,7 @@ "type": "Identifier", "span": { "start": 2866, - "end": 2879, + "end": 2871, "ctxt": 0 }, "value": "value", @@ -9019,7 +9019,7 @@ "type": "Identifier", "span": { "start": 3208, - "end": 3228, + "end": 3209, "ctxt": 0 }, "value": "o", @@ -9084,7 +9084,7 @@ "type": "Identifier", "span": { "start": 3230, - "end": 3255, + "end": 3235, "ctxt": 0 }, "value": "value", @@ -9911,7 +9911,7 @@ "type": "Identifier", "span": { "start": 3645, - "end": 3665, + "end": 3646, "ctxt": 0 }, "value": "o", @@ -9976,7 +9976,7 @@ "type": "Identifier", "span": { "start": 3667, - "end": 3687, + "end": 3672, "ctxt": 0 }, "value": "value", @@ -10803,7 +10803,7 @@ "type": "Identifier", "span": { "start": 4046, - "end": 4066, + "end": 4047, "ctxt": 0 }, "value": "o", @@ -11640,7 +11640,7 @@ "type": "Identifier", "span": { "start": 4420, - "end": 4440, + "end": 4421, "ctxt": 0 }, "value": "o", @@ -12465,7 +12465,7 @@ "type": "Identifier", "span": { "start": 4793, - "end": 4808, + "end": 4794, "ctxt": 0 }, "value": "o", @@ -12934,7 +12934,7 @@ "type": "Identifier", "span": { "start": 4996, - "end": 5016, + "end": 4997, "ctxt": 0 }, "value": "o", @@ -12999,7 +12999,7 @@ "type": "Identifier", "span": { "start": 5018, - "end": 5031, + "end": 5023, "ctxt": 0 }, "value": "value", @@ -13695,7 +13695,7 @@ "type": "Identifier", "span": { "start": 5414, - "end": 5434, + "end": 5415, "ctxt": 0 }, "value": "o", @@ -13760,7 +13760,7 @@ "type": "Identifier", "span": { "start": 5436, - "end": 5450, + "end": 5441, "ctxt": 0 }, "value": "value", @@ -14456,7 +14456,7 @@ "type": "Identifier", "span": { "start": 5872, - "end": 5892, + "end": 5873, "ctxt": 0 }, "value": "o", @@ -15181,7 +15181,7 @@ "type": "Identifier", "span": { "start": 6290, - "end": 6310, + "end": 6291, "ctxt": 0 }, "value": "o", @@ -15788,7 +15788,7 @@ "type": "Identifier", "span": { "start": 6572, - "end": 6587, + "end": 6573, "ctxt": 0 }, "value": "o", @@ -16395,7 +16395,7 @@ "type": "Identifier", "span": { "start": 6849, - "end": 6869, + "end": 6850, "ctxt": 0 }, "value": "o", @@ -17156,7 +17156,7 @@ "type": "Identifier", "span": { "start": 7291, - "end": 7311, + "end": 7292, "ctxt": 0 }, "value": "o", @@ -17917,7 +17917,7 @@ "type": "Identifier", "span": { "start": 7756, - "end": 7766, + "end": 7757, "ctxt": 0 }, "value": "x", @@ -18007,7 +18007,7 @@ "type": "Identifier", "span": { "start": 7814, - "end": 7818, + "end": 7815, "ctxt": 0 }, "value": "x", @@ -18193,7 +18193,7 @@ "type": "Identifier", "span": { "start": 7864, - "end": 7884, + "end": 7865, "ctxt": 0 }, "value": "o", @@ -18945,7 +18945,7 @@ "type": "Identifier", "span": { "start": 8190, - "end": 8210, + "end": 8191, "ctxt": 0 }, "value": "o", @@ -19344,7 +19344,7 @@ "type": "Identifier", "span": { "start": 8508, - "end": 8528, + "end": 8509, "ctxt": 0 }, "value": "o", @@ -20025,7 +20025,7 @@ "type": "Identifier", "span": { "start": 8985, - "end": 8998, + "end": 8990, "ctxt": 0 }, "value": "shape", @@ -20591,7 +20591,7 @@ "type": "Identifier", "span": { "start": 9347, - "end": 9357, + "end": 9348, "ctxt": 0 }, "value": "f", @@ -21001,7 +21001,7 @@ "type": "Identifier", "span": { "start": 9614, - "end": 9656, + "end": 9632, "ctxt": 0 }, "value": "someOptionalObject", @@ -22216,7 +22216,7 @@ "type": "Identifier", "span": { "start": 10346, - "end": 10356, + "end": 10349, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain2.json b/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain2.json index 8ff9f6bdd5f2..6b217fb90f19 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain2.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain2.json @@ -233,7 +233,7 @@ "type": "Identifier", "span": { "start": 116, - "end": 138, + "end": 119, "ctxt": 0 }, "value": "arg", @@ -518,7 +518,7 @@ "type": "Identifier", "span": { "start": 244, - "end": 261, + "end": 247, "ctxt": 0 }, "value": "arg", @@ -1175,7 +1175,7 @@ "type": "Identifier", "span": { "start": 461, - "end": 481, + "end": 462, "ctxt": 0 }, "value": "x", @@ -1415,7 +1415,7 @@ "type": "Identifier", "span": { "start": 600, - "end": 620, + "end": 601, "ctxt": 0 }, "value": "x", @@ -1655,7 +1655,7 @@ "type": "Identifier", "span": { "start": 739, - "end": 754, + "end": 740, "ctxt": 0 }, "value": "x", @@ -1895,7 +1895,7 @@ "type": "Identifier", "span": { "start": 868, - "end": 883, + "end": 869, "ctxt": 0 }, "value": "x", @@ -2135,7 +2135,7 @@ "type": "Identifier", "span": { "start": 997, - "end": 1017, + "end": 998, "ctxt": 0 }, "value": "x", @@ -2373,7 +2373,7 @@ "type": "Identifier", "span": { "start": 1139, - "end": 1159, + "end": 1140, "ctxt": 0 }, "value": "x", @@ -2611,7 +2611,7 @@ "type": "Identifier", "span": { "start": 1273, - "end": 1288, + "end": 1274, "ctxt": 0 }, "value": "x", @@ -2849,7 +2849,7 @@ "type": "Identifier", "span": { "start": 1405, - "end": 1420, + "end": 1406, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowParameter.json b/crates/swc_ecma_parser/tests/tsc/controlFlowParameter.json index ce58dbb30ae3..1ded9332bacc 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowParameter.json @@ -39,7 +39,7 @@ "type": "Identifier", "span": { "start": 75, - "end": 92, + "end": 83, "ctxt": 0 }, "value": "required", @@ -255,7 +255,7 @@ "type": "Identifier", "span": { "start": 233, - "end": 263, + "end": 234, "ctxt": 0 }, "value": "a", @@ -326,7 +326,7 @@ "type": "Identifier", "span": { "start": 267, - "end": 284, + "end": 275, "ctxt": 0 }, "value": "required", @@ -503,7 +503,7 @@ "type": "Identifier", "span": { "start": 382, - "end": 412, + "end": 383, "ctxt": 0 }, "value": "a", @@ -585,7 +585,7 @@ "type": "Identifier", "span": { "start": 420, - "end": 437, + "end": 428, "ctxt": 0 }, "value": "required", @@ -762,7 +762,7 @@ "type": "Identifier", "span": { "start": 524, - "end": 554, + "end": 525, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowTruthiness.json b/crates/swc_ecma_parser/tests/tsc/controlFlowTruthiness.json index 2b194115f406..c1700435e29c 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowTruthiness.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowTruthiness.json @@ -1602,7 +1602,7 @@ "type": "Identifier", "span": { "start": 1173, - "end": 1178, + "end": 1174, "ctxt": 0 }, "value": "x", @@ -1748,7 +1748,7 @@ "type": "Identifier", "span": { "start": 1270, - "end": 1274, + "end": 1271, "ctxt": 0 }, "value": "x", @@ -1936,7 +1936,7 @@ "type": "Identifier", "span": { "start": 1381, - "end": 1385, + "end": 1382, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowTypeofObject.json b/crates/swc_ecma_parser/tests/tsc/controlFlowTypeofObject.json index 31d5d0cabe75..48117f63b751 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowTypeofObject.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowTypeofObject.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 62, - "end": 71, + "end": 63, "ctxt": 0 }, "value": "x", @@ -111,7 +111,7 @@ "type": "Identifier", "span": { "start": 93, - "end": 103, + "end": 94, "ctxt": 0 }, "value": "x", @@ -329,7 +329,7 @@ "type": "Identifier", "span": { "start": 213, - "end": 223, + "end": 214, "ctxt": 0 }, "value": "x", @@ -555,7 +555,7 @@ "type": "Identifier", "span": { "start": 341, - "end": 351, + "end": 342, "ctxt": 0 }, "value": "x", @@ -781,7 +781,7 @@ "type": "Identifier", "span": { "start": 468, - "end": 478, + "end": 469, "ctxt": 0 }, "value": "x", @@ -1009,7 +1009,7 @@ "type": "Identifier", "span": { "start": 600, - "end": 610, + "end": 601, "ctxt": 0 }, "value": "x", @@ -1337,7 +1337,7 @@ "type": "Identifier", "span": { "start": 829, - "end": 839, + "end": 830, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowWhileStatement.json b/crates/swc_ecma_parser/tests/tsc/controlFlowWhileStatement.json index de2e8ff25756..1699225f3aa9 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowWhileStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowWhileStatement.json @@ -2450,7 +2450,7 @@ "type": "Identifier", "span": { "start": 1558, - "end": 1576, + "end": 1559, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/covariantCallbacks.json b/crates/swc_ecma_parser/tests/tsc/covariantCallbacks.json index 5ba08277798e..0301ea79a490 100644 --- a/crates/swc_ecma_parser/tests/tsc/covariantCallbacks.json +++ b/crates/swc_ecma_parser/tests/tsc/covariantCallbacks.json @@ -91,7 +91,7 @@ "type": "Identifier", "span": { "start": 122, - "end": 144, + "end": 124, "ctxt": 0 }, "value": "cb", @@ -115,7 +115,7 @@ "type": "Identifier", "span": { "start": 127, - "end": 135, + "end": 132, "ctxt": 0 }, "value": "value", @@ -391,7 +391,7 @@ "type": "Identifier", "span": { "start": 232, - "end": 239, + "end": 233, "ctxt": 0 }, "value": "a", @@ -465,7 +465,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 248, + "end": 242, "ctxt": 0 }, "value": "b", @@ -651,7 +651,7 @@ "type": "Identifier", "span": { "start": 299, - "end": 312, + "end": 300, "ctxt": 0 }, "value": "a", @@ -725,7 +725,7 @@ "type": "Identifier", "span": { "start": 314, - "end": 327, + "end": 315, "ctxt": 0 }, "value": "b", @@ -938,7 +938,7 @@ "type": "Identifier", "span": { "start": 397, - "end": 418, + "end": 399, "ctxt": 0 }, "value": "cb", @@ -962,7 +962,7 @@ "type": "Identifier", "span": { "start": 402, - "end": 409, + "end": 406, "ctxt": 0 }, "value": "item", @@ -1093,7 +1093,7 @@ "type": "Identifier", "span": { "start": 461, - "end": 482, + "end": 463, "ctxt": 0 }, "value": "cb", @@ -1117,7 +1117,7 @@ "type": "Identifier", "span": { "start": 466, - "end": 473, + "end": 470, "ctxt": 0 }, "value": "item", @@ -1221,7 +1221,7 @@ "type": "Identifier", "span": { "start": 507, - "end": 516, + "end": 508, "ctxt": 0 }, "value": "a", @@ -1267,7 +1267,7 @@ "type": "Identifier", "span": { "start": 518, - "end": 527, + "end": 519, "ctxt": 0 }, "value": "b", @@ -1452,7 +1452,7 @@ "type": "Identifier", "span": { "start": 597, - "end": 621, + "end": 599, "ctxt": 0 }, "value": "cb", @@ -1476,7 +1476,7 @@ "type": "Identifier", "span": { "start": 602, - "end": 609, + "end": 606, "ctxt": 0 }, "value": "item", @@ -1607,7 +1607,7 @@ "type": "Identifier", "span": { "start": 664, - "end": 685, + "end": 666, "ctxt": 0 }, "value": "cb", @@ -1631,7 +1631,7 @@ "type": "Identifier", "span": { "start": 669, - "end": 676, + "end": 673, "ctxt": 0 }, "value": "item", @@ -1735,7 +1735,7 @@ "type": "Identifier", "span": { "start": 710, - "end": 719, + "end": 711, "ctxt": 0 }, "value": "a", @@ -1781,7 +1781,7 @@ "type": "Identifier", "span": { "start": 721, - "end": 730, + "end": 722, "ctxt": 0 }, "value": "b", @@ -1966,7 +1966,7 @@ "type": "Identifier", "span": { "start": 800, - "end": 821, + "end": 802, "ctxt": 0 }, "value": "cb", @@ -1990,7 +1990,7 @@ "type": "Identifier", "span": { "start": 805, - "end": 812, + "end": 809, "ctxt": 0 }, "value": "item", @@ -2121,7 +2121,7 @@ "type": "Identifier", "span": { "start": 864, - "end": 899, + "end": 866, "ctxt": 0 }, "value": "cb", @@ -2145,7 +2145,7 @@ "type": "Identifier", "span": { "start": 869, - "end": 876, + "end": 873, "ctxt": 0 }, "value": "item", @@ -2182,7 +2182,7 @@ "type": "Identifier", "span": { "start": 878, - "end": 890, + "end": 885, "ctxt": 0 }, "value": "context", @@ -2276,7 +2276,7 @@ "type": "Identifier", "span": { "start": 924, - "end": 933, + "end": 925, "ctxt": 0 }, "value": "a", @@ -2322,7 +2322,7 @@ "type": "Identifier", "span": { "start": 935, - "end": 944, + "end": 936, "ctxt": 0 }, "value": "b", @@ -2507,7 +2507,7 @@ "type": "Identifier", "span": { "start": 1014, - "end": 1032, + "end": 1016, "ctxt": 0 }, "value": "cb", @@ -2531,7 +2531,7 @@ "type": "Identifier", "span": { "start": 1019, - "end": 1026, + "end": 1023, "ctxt": 0 }, "value": "item", @@ -2672,7 +2672,7 @@ "type": "Identifier", "span": { "start": 1075, - "end": 1093, + "end": 1077, "ctxt": 0 }, "value": "cb", @@ -2696,7 +2696,7 @@ "type": "Identifier", "span": { "start": 1080, - "end": 1087, + "end": 1084, "ctxt": 0 }, "value": "item", @@ -2810,7 +2810,7 @@ "type": "Identifier", "span": { "start": 1118, - "end": 1127, + "end": 1119, "ctxt": 0 }, "value": "a", @@ -2856,7 +2856,7 @@ "type": "Identifier", "span": { "start": 1129, - "end": 1138, + "end": 1130, "ctxt": 0 }, "value": "b", @@ -3072,7 +3072,7 @@ "type": "Identifier", "span": { "start": 1221, - "end": 1229, + "end": 1226, "ctxt": 0 }, "value": "value", @@ -3428,7 +3428,7 @@ "type": "Identifier", "span": { "start": 1346, - "end": 1356, + "end": 1347, "ctxt": 0 }, "value": "x", @@ -3551,7 +3551,7 @@ "type": "Identifier", "span": { "start": 1392, - "end": 1401, + "end": 1393, "ctxt": 0 }, "value": "x", @@ -3764,7 +3764,7 @@ "type": "Identifier", "span": { "start": 1459, - "end": 1467, + "end": 1464, "ctxt": 0 }, "value": "value", @@ -3904,7 +3904,7 @@ "type": "Identifier", "span": { "start": 1500, - "end": 1508, + "end": 1505, "ctxt": 0 }, "value": "value", @@ -4030,7 +4030,7 @@ "type": "Identifier", "span": { "start": 1545, - "end": 1555, + "end": 1546, "ctxt": 0 }, "value": "x", @@ -4153,7 +4153,7 @@ "type": "Identifier", "span": { "start": 1593, - "end": 1602, + "end": 1594, "ctxt": 0 }, "value": "x", @@ -4366,7 +4366,7 @@ "type": "Identifier", "span": { "start": 1665, - "end": 1673, + "end": 1670, "ctxt": 0 }, "value": "value", @@ -4542,7 +4542,7 @@ "type": "Identifier", "span": { "start": 1720, - "end": 1730, + "end": 1721, "ctxt": 0 }, "value": "x", @@ -4665,7 +4665,7 @@ "type": "Identifier", "span": { "start": 1768, - "end": 1777, + "end": 1769, "ctxt": 0 }, "value": "x", @@ -4878,7 +4878,7 @@ "type": "Identifier", "span": { "start": 1843, - "end": 1851, + "end": 1848, "ctxt": 0 }, "value": "value", @@ -5068,7 +5068,7 @@ "type": "Identifier", "span": { "start": 1896, - "end": 1904, + "end": 1901, "ctxt": 0 }, "value": "value", @@ -5244,7 +5244,7 @@ "type": "Identifier", "span": { "start": 1951, - "end": 1961, + "end": 1952, "ctxt": 0 }, "value": "x", @@ -5367,7 +5367,7 @@ "type": "Identifier", "span": { "start": 1999, - "end": 2008, + "end": 2000, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicates01.json b/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicates01.json index fd09b6716c87..dc72907e6261 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicates01.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicates01.json @@ -39,7 +39,7 @@ "type": "Identifier", "span": { "start": 63, - "end": 69, + "end": 64, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicatesWithPrivateName01.json b/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicatesWithPrivateName01.json index 6a5a4b71a889..ab254177c833 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicatesWithPrivateName01.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicatesWithPrivateName01.json @@ -111,7 +111,7 @@ "type": "Identifier", "span": { "start": 95, - "end": 101, + "end": 96, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/declarationEmitReadonly.json b/crates/swc_ecma_parser/tests/tsc/declarationEmitReadonly.json index b3d805aec441..8f4720151ca8 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationEmitReadonly.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationEmitReadonly.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 59, - "end": 68, + "end": 60, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/declarationEmitWorkWithInlineComments.json b/crates/swc_ecma_parser/tests/tsc/declarationEmitWorkWithInlineComments.json index 63cd9f1979be..d9991090fd41 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationEmitWorkWithInlineComments.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationEmitWorkWithInlineComments.json @@ -66,7 +66,7 @@ "type": "Identifier", "span": { "start": 113, - "end": 132, + "end": 124, "ctxt": 0 }, "value": "isInternal1", @@ -105,7 +105,7 @@ "type": "Identifier", "span": { "start": 162, - "end": 181, + "end": 173, "ctxt": 0 }, "value": "isInternal2", @@ -144,7 +144,7 @@ "type": "Identifier", "span": { "start": 211, - "end": 230, + "end": 222, "ctxt": 0 }, "value": "isInternal3", @@ -183,7 +183,7 @@ "type": "Identifier", "span": { "start": 260, - "end": 279, + "end": 271, "ctxt": 0 }, "value": "isInternal4", @@ -222,7 +222,7 @@ "type": "Identifier", "span": { "start": 328, - "end": 347, + "end": 339, "ctxt": 0 }, "value": "isInternal5", @@ -261,7 +261,7 @@ "type": "Identifier", "span": { "start": 376, - "end": 395, + "end": 387, "ctxt": 0 }, "value": "isInternal6", @@ -300,7 +300,7 @@ "type": "Identifier", "span": { "start": 439, - "end": 458, + "end": 450, "ctxt": 0 }, "value": "isInternal7", @@ -339,7 +339,7 @@ "type": "Identifier", "span": { "start": 504, - "end": 524, + "end": 516, "ctxt": 0 }, "value": "notInternal1", @@ -378,7 +378,7 @@ "type": "Identifier", "span": { "start": 573, - "end": 593, + "end": 585, "ctxt": 0 }, "value": "notInternal2", @@ -417,7 +417,7 @@ "type": "Identifier", "span": { "start": 661, - "end": 681, + "end": 673, "ctxt": 0 }, "value": "notInternal3", @@ -522,7 +522,7 @@ "type": "Identifier", "span": { "start": 750, - "end": 769, + "end": 761, "ctxt": 0 }, "value": "isInternal1", @@ -627,7 +627,7 @@ "type": "Identifier", "span": { "start": 837, - "end": 855, + "end": 847, "ctxt": 0 }, "value": "isInternal", diff --git a/crates/swc_ecma_parser/tests/tsc/declarationFiles.json b/crates/swc_ecma_parser/tests/tsc/declarationFiles.json index f3aaed9c6685..23a812e95d1d 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationFiles.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationFiles.json @@ -101,7 +101,7 @@ "type": "Identifier", "span": { "start": 54, - "end": 61, + "end": 55, "ctxt": 0 }, "value": "x", @@ -216,7 +216,7 @@ "type": "Identifier", "span": { "start": 107, - "end": 114, + "end": 108, "ctxt": 0 }, "value": "x", @@ -898,7 +898,7 @@ "type": "Identifier", "span": { "start": 319, - "end": 326, + "end": 320, "ctxt": 0 }, "value": "x", @@ -987,7 +987,7 @@ "type": "Identifier", "span": { "start": 349, - "end": 356, + "end": 350, "ctxt": 0 }, "value": "x", @@ -1265,7 +1265,7 @@ "type": "Identifier", "span": { "start": 426, - "end": 432, + "end": 427, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/declarationsAndAssignments.json b/crates/swc_ecma_parser/tests/tsc/declarationsAndAssignments.json index eca139c00830..62a7b65ae80e 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationsAndAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationsAndAssignments.json @@ -8597,7 +8597,7 @@ "type": "Identifier", "span": { "start": 3325, - "end": 3352, + "end": 3326, "ctxt": 0 }, "value": "v", @@ -9838,7 +9838,7 @@ "type": "Identifier", "span": { "start": 3723, - "end": 3751, + "end": 3724, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsCommonJS1.json b/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsCommonJS1.json index 3afb34a25ad2..aaba77e06520 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsCommonJS1.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsCommonJS1.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 157, + "end": 152, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsCommonJS2.json b/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsCommonJS2.json index 6f65146400c6..2e17d785c851 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsCommonJS2.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsCommonJS2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 157, + "end": 152, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsSystem1.json b/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsSystem1.json index 6ddfb1dde957..7e5092bb726d 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsSystem1.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsSystem1.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 149, - "end": 155, + "end": 150, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsSystem2.json b/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsSystem2.json index d75cacf7a861..3eca87fa0ff6 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsSystem2.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsSystem2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 149, - "end": 155, + "end": 150, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorMetadata.json b/crates/swc_ecma_parser/tests/tsc/decoratorMetadata.json index 50c5abefbcf0..4344f23506b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorMetadata.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorMetadata.json @@ -201,7 +201,7 @@ "type": "Identifier", "span": { "start": 305, - "end": 321, + "end": 312, "ctxt": 0 }, "value": "Service", @@ -279,7 +279,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 365, + "end": 359, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport.json b/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport.json index 60b2843a5a28..39e1078de7d6 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport.json @@ -204,7 +204,7 @@ "type": "Identifier", "span": { "start": 306, - "end": 322, + "end": 313, "ctxt": 0 }, "value": "Service", @@ -282,7 +282,7 @@ "type": "Identifier", "span": { "start": 359, - "end": 366, + "end": 360, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorOnClassConstructor4.json b/crates/swc_ecma_parser/tests/tsc/decoratorOnClassConstructor4.json index 37a8e42404ab..07b7c67ea6bb 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorOnClassConstructor4.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorOnClassConstructor4.json @@ -169,7 +169,7 @@ "type": "Identifier", "span": { "start": 175, - "end": 184, + "end": 176, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod11.json b/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod11.json index 8b9cd3f6e1a8..2b44643c5232 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod11.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod11.json @@ -84,7 +84,7 @@ "type": "Identifier", "span": { "start": 93, - "end": 107, + "end": 99, "ctxt": 0 }, "value": "target", @@ -130,7 +130,7 @@ "type": "Identifier", "span": { "start": 109, - "end": 120, + "end": 112, "ctxt": 0 }, "value": "key", diff --git a/crates/swc_ecma_parser/tests/tsc/defaultExportWithOverloads01.json b/crates/swc_ecma_parser/tests/tsc/defaultExportWithOverloads01.json index 13c428264bbd..5bd0e0d6aed2 100644 --- a/crates/swc_ecma_parser/tests/tsc/defaultExportWithOverloads01.json +++ b/crates/swc_ecma_parser/tests/tsc/defaultExportWithOverloads01.json @@ -71,7 +71,7 @@ "type": "Identifier", "span": { "start": 94, - "end": 103, + "end": 95, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/defineProperty.json b/crates/swc_ecma_parser/tests/tsc/defineProperty.json index d27a8451056b..ff414eacb304 100644 --- a/crates/swc_ecma_parser/tests/tsc/defineProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/defineProperty.json @@ -376,7 +376,7 @@ "type": "Identifier", "span": { "start": 201, - "end": 210, + "end": 202, "ctxt": 0 }, "value": "y", @@ -695,7 +695,7 @@ "type": "Identifier", "span": { "start": 364, - "end": 374, + "end": 366, "ctxt": 0 }, "value": "ka", diff --git a/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariables.json b/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariables.json index 76addbdf935f..2aeedeea49d8 100644 --- a/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariables.json +++ b/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariables.json @@ -575,7 +575,7 @@ "type": "Identifier", "span": { "start": 347, - "end": 361, + "end": 353, "ctxt": 0 }, "value": "action", @@ -1611,7 +1611,7 @@ "type": "Identifier", "span": { "start": 1006, - "end": 1010, + "end": 1007, "ctxt": 0 }, "value": "t", @@ -2624,7 +2624,7 @@ "type": "Identifier", "span": { "start": 1509, - "end": 1524, + "end": 1515, "ctxt": 0 }, "value": "action", @@ -3006,7 +3006,7 @@ "type": "Identifier", "span": { "start": 1749, - "end": 1764, + "end": 1755, "ctxt": 0 }, "value": "action", @@ -5468,7 +5468,7 @@ "type": "Identifier", "span": { "start": 3076, - "end": 3080, + "end": 3077, "ctxt": 0 }, "value": "t", @@ -5589,7 +5589,7 @@ "type": "Identifier", "span": { "start": 3125, - "end": 3136, + "end": 3126, "ctxt": 0 }, "value": "t", @@ -5738,7 +5738,7 @@ "type": "Identifier", "span": { "start": 3169, - "end": 3178, + "end": 3171, "ctxt": 0 }, "value": "ab", @@ -7067,7 +7067,7 @@ "type": "Identifier", "span": { "start": 3885, - "end": 3912, + "end": 3887, "ctxt": 0 }, "value": "cb", @@ -8303,7 +8303,7 @@ "type": "Identifier", "span": { "start": 4476, - "end": 4488, + "end": 4480, "ctxt": 0 }, "value": "path", @@ -8339,7 +8339,7 @@ "type": "Identifier", "span": { "start": 4490, - "end": 4579, + "end": 4498, "ctxt": 0 }, "value": "callback", @@ -10053,7 +10053,7 @@ "type": "Identifier", "span": { "start": 5345, - "end": 5354, + "end": 5346, "ctxt": 0 }, "value": "e", @@ -10174,7 +10174,7 @@ "type": "Identifier", "span": { "start": 5390, - "end": 5399, + "end": 5391, "ctxt": 0 }, "value": "e", @@ -10692,7 +10692,7 @@ "type": "Identifier", "span": { "start": 5616, - "end": 5625, + "end": 5617, "ctxt": 0 }, "value": "e", @@ -10813,7 +10813,7 @@ "type": "Identifier", "span": { "start": 5661, - "end": 5670, + "end": 5662, "ctxt": 0 }, "value": "e", @@ -11359,7 +11359,7 @@ "type": "Identifier", "span": { "start": 5909, - "end": 5918, + "end": 5910, "ctxt": 0 }, "value": "e", @@ -11480,7 +11480,7 @@ "type": "Identifier", "span": { "start": 5954, - "end": 5963, + "end": 5955, "ctxt": 0 }, "value": "e", @@ -12044,7 +12044,7 @@ "type": "Identifier", "span": { "start": 6210, - "end": 6219, + "end": 6211, "ctxt": 0 }, "value": "e", @@ -12165,7 +12165,7 @@ "type": "Identifier", "span": { "start": 6255, - "end": 6264, + "end": 6256, "ctxt": 0 }, "value": "e", @@ -13635,7 +13635,7 @@ "type": "Identifier", "span": { "start": 7067, - "end": 7102, + "end": 7068, "ctxt": 0 }, "value": "x", @@ -14021,7 +14021,7 @@ "type": "Identifier", "span": { "start": 7316, - "end": 7383, + "end": 7317, "ctxt": 0 }, "value": "x", @@ -15154,7 +15154,7 @@ "type": "Identifier", "span": { "start": 8050, - "end": 8058, + "end": 8055, "ctxt": 0 }, "value": "event", @@ -15200,7 +15200,7 @@ "type": "Identifier", "span": { "start": 8060, - "end": 8104, + "end": 8068, "ctxt": 0 }, "value": "listener", diff --git a/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariablesFromNestedPatterns.json b/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariablesFromNestedPatterns.json index 12954244b700..a50a11840690 100644 --- a/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariablesFromNestedPatterns.json +++ b/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariablesFromNestedPatterns.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 86, - "end": 133, + "end": 89, "ctxt": 0 }, "value": "arg", @@ -644,7 +644,7 @@ "type": "Identifier", "span": { "start": 391, - "end": 402, + "end": 393, "ctxt": 0 }, "value": "fn", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers.json b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers.json index 776d1aeb627c..46ab61d9f0a0 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers.json @@ -335,7 +335,7 @@ "type": "Identifier", "span": { "start": 136, - "end": 147, + "end": 137, "ctxt": 0 }, "value": "a", @@ -493,7 +493,7 @@ "type": "Identifier", "span": { "start": 209, - "end": 220, + "end": 210, "ctxt": 0 }, "value": "v", @@ -592,7 +592,7 @@ "type": "Identifier", "span": { "start": 244, - "end": 255, + "end": 245, "ctxt": 0 }, "value": "a", @@ -742,7 +742,7 @@ "type": "Identifier", "span": { "start": 324, - "end": 335, + "end": 325, "ctxt": 0 }, "value": "a", @@ -900,7 +900,7 @@ "type": "Identifier", "span": { "start": 411, - "end": 422, + "end": 412, "ctxt": 0 }, "value": "v", @@ -999,7 +999,7 @@ "type": "Identifier", "span": { "start": 453, - "end": 464, + "end": 454, "ctxt": 0 }, "value": "a", @@ -1093,7 +1093,7 @@ "type": "Identifier", "span": { "start": 492, - "end": 503, + "end": 493, "ctxt": 0 }, "value": "a", @@ -1253,7 +1253,7 @@ "type": "Identifier", "span": { "start": 584, - "end": 595, + "end": 585, "ctxt": 0 }, "value": "a", @@ -1411,7 +1411,7 @@ "type": "Identifier", "span": { "start": 657, - "end": 668, + "end": 658, "ctxt": 0 }, "value": "v", @@ -1510,7 +1510,7 @@ "type": "Identifier", "span": { "start": 692, - "end": 703, + "end": 693, "ctxt": 0 }, "value": "a", @@ -1660,7 +1660,7 @@ "type": "Identifier", "span": { "start": 772, - "end": 783, + "end": 773, "ctxt": 0 }, "value": "a", @@ -1818,7 +1818,7 @@ "type": "Identifier", "span": { "start": 859, - "end": 870, + "end": 860, "ctxt": 0 }, "value": "a", @@ -1917,7 +1917,7 @@ "type": "Identifier", "span": { "start": 901, - "end": 912, + "end": 902, "ctxt": 0 }, "value": "a", @@ -2011,7 +2011,7 @@ "type": "Identifier", "span": { "start": 940, - "end": 951, + "end": 941, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers2.json b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers2.json index 6f36eb6fe5e5..83979c7c2e58 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers2.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers2.json @@ -335,7 +335,7 @@ "type": "Identifier", "span": { "start": 135, - "end": 146, + "end": 136, "ctxt": 0 }, "value": "a", @@ -493,7 +493,7 @@ "type": "Identifier", "span": { "start": 208, - "end": 219, + "end": 209, "ctxt": 0 }, "value": "v", @@ -592,7 +592,7 @@ "type": "Identifier", "span": { "start": 243, - "end": 254, + "end": 244, "ctxt": 0 }, "value": "a", @@ -742,7 +742,7 @@ "type": "Identifier", "span": { "start": 324, - "end": 335, + "end": 325, "ctxt": 0 }, "value": "a", @@ -900,7 +900,7 @@ "type": "Identifier", "span": { "start": 411, - "end": 422, + "end": 412, "ctxt": 0 }, "value": "v", @@ -999,7 +999,7 @@ "type": "Identifier", "span": { "start": 453, - "end": 464, + "end": 454, "ctxt": 0 }, "value": "a", @@ -1093,7 +1093,7 @@ "type": "Identifier", "span": { "start": 489, - "end": 500, + "end": 490, "ctxt": 0 }, "value": "a", @@ -1253,7 +1253,7 @@ "type": "Identifier", "span": { "start": 619, - "end": 630, + "end": 620, "ctxt": 0 }, "value": "a", @@ -1411,7 +1411,7 @@ "type": "Identifier", "span": { "start": 672, - "end": 683, + "end": 673, "ctxt": 0 }, "value": "v", @@ -1510,7 +1510,7 @@ "type": "Identifier", "span": { "start": 697, - "end": 708, + "end": 698, "ctxt": 0 }, "value": "a", @@ -1660,7 +1660,7 @@ "type": "Identifier", "span": { "start": 757, - "end": 768, + "end": 758, "ctxt": 0 }, "value": "a", @@ -1818,7 +1818,7 @@ "type": "Identifier", "span": { "start": 824, - "end": 835, + "end": 825, "ctxt": 0 }, "value": "a", @@ -1917,7 +1917,7 @@ "type": "Identifier", "span": { "start": 856, - "end": 867, + "end": 857, "ctxt": 0 }, "value": "a", @@ -2011,7 +2011,7 @@ "type": "Identifier", "span": { "start": 895, - "end": 906, + "end": 896, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers3.json b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers3.json index dcfd87d83c29..5596c20496fd 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers3.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers3.json @@ -335,7 +335,7 @@ "type": "Identifier", "span": { "start": 116, - "end": 127, + "end": 117, "ctxt": 0 }, "value": "a", @@ -493,7 +493,7 @@ "type": "Identifier", "span": { "start": 169, - "end": 180, + "end": 170, "ctxt": 0 }, "value": "v", @@ -592,7 +592,7 @@ "type": "Identifier", "span": { "start": 194, - "end": 205, + "end": 195, "ctxt": 0 }, "value": "a", @@ -742,7 +742,7 @@ "type": "Identifier", "span": { "start": 254, - "end": 265, + "end": 255, "ctxt": 0 }, "value": "a", @@ -900,7 +900,7 @@ "type": "Identifier", "span": { "start": 321, - "end": 332, + "end": 322, "ctxt": 0 }, "value": "v", @@ -999,7 +999,7 @@ "type": "Identifier", "span": { "start": 353, - "end": 364, + "end": 354, "ctxt": 0 }, "value": "a", @@ -1093,7 +1093,7 @@ "type": "Identifier", "span": { "start": 392, - "end": 403, + "end": 393, "ctxt": 0 }, "value": "a", @@ -1252,7 +1252,7 @@ "type": "Identifier", "span": { "start": 552, - "end": 563, + "end": 553, "ctxt": 0 }, "value": "a", @@ -1407,7 +1407,7 @@ "type": "Identifier", "span": { "start": 628, - "end": 639, + "end": 629, "ctxt": 0 }, "value": "a", @@ -1499,7 +1499,7 @@ "type": "Identifier", "span": { "start": 661, - "end": 672, + "end": 662, "ctxt": 0 }, "value": "a", @@ -1718,7 +1718,7 @@ "type": "Identifier", "span": { "start": 773, - "end": 784, + "end": 774, "ctxt": 0 }, "value": "a", @@ -1873,7 +1873,7 @@ "type": "Identifier", "span": { "start": 853, - "end": 864, + "end": 854, "ctxt": 0 }, "value": "v", @@ -1965,7 +1965,7 @@ "type": "Identifier", "span": { "start": 886, - "end": 897, + "end": 887, "ctxt": 0 }, "value": "a", @@ -2126,7 +2126,7 @@ "type": "Identifier", "span": { "start": 964, - "end": 975, + "end": 965, "ctxt": 0 }, "value": "a", @@ -2220,7 +2220,7 @@ "type": "Identifier", "span": { "start": 1003, - "end": 1014, + "end": 1004, "ctxt": 0 }, "value": "a", @@ -2429,7 +2429,7 @@ "type": "Identifier", "span": { "start": 1113, - "end": 1124, + "end": 1114, "ctxt": 0 }, "value": "a", @@ -2584,7 +2584,7 @@ "type": "Identifier", "span": { "start": 1196, - "end": 1207, + "end": 1197, "ctxt": 0 }, "value": "a", @@ -2676,7 +2676,7 @@ "type": "Identifier", "span": { "start": 1229, - "end": 1240, + "end": 1230, "ctxt": 0 }, "value": "a", @@ -2895,7 +2895,7 @@ "type": "Identifier", "span": { "start": 1348, - "end": 1359, + "end": 1349, "ctxt": 0 }, "value": "a", @@ -3050,7 +3050,7 @@ "type": "Identifier", "span": { "start": 1435, - "end": 1446, + "end": 1436, "ctxt": 0 }, "value": "v", @@ -3142,7 +3142,7 @@ "type": "Identifier", "span": { "start": 1468, - "end": 1479, + "end": 1469, "ctxt": 0 }, "value": "a", @@ -3303,7 +3303,7 @@ "type": "Identifier", "span": { "start": 1554, - "end": 1565, + "end": 1555, "ctxt": 0 }, "value": "a", @@ -3397,7 +3397,7 @@ "type": "Identifier", "span": { "start": 1593, - "end": 1604, + "end": 1594, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesPublicMembers.json b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesPublicMembers.json index bbc37be5f301..13274bebbb87 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesPublicMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesPublicMembers.json @@ -335,7 +335,7 @@ "type": "Identifier", "span": { "start": 99, - "end": 110, + "end": 100, "ctxt": 0 }, "value": "a", @@ -493,7 +493,7 @@ "type": "Identifier", "span": { "start": 152, - "end": 163, + "end": 153, "ctxt": 0 }, "value": "v", @@ -592,7 +592,7 @@ "type": "Identifier", "span": { "start": 177, - "end": 188, + "end": 178, "ctxt": 0 }, "value": "a", @@ -742,7 +742,7 @@ "type": "Identifier", "span": { "start": 237, - "end": 248, + "end": 238, "ctxt": 0 }, "value": "a", @@ -900,7 +900,7 @@ "type": "Identifier", "span": { "start": 304, - "end": 315, + "end": 305, "ctxt": 0 }, "value": "v", @@ -999,7 +999,7 @@ "type": "Identifier", "span": { "start": 336, - "end": 347, + "end": 337, "ctxt": 0 }, "value": "a", @@ -1093,7 +1093,7 @@ "type": "Identifier", "span": { "start": 375, - "end": 386, + "end": 376, "ctxt": 0 }, "value": "a", @@ -1253,7 +1253,7 @@ "type": "Identifier", "span": { "start": 447, - "end": 458, + "end": 448, "ctxt": 0 }, "value": "a", @@ -1411,7 +1411,7 @@ "type": "Identifier", "span": { "start": 500, - "end": 511, + "end": 501, "ctxt": 0 }, "value": "v", @@ -1510,7 +1510,7 @@ "type": "Identifier", "span": { "start": 525, - "end": 536, + "end": 526, "ctxt": 0 }, "value": "a", @@ -1660,7 +1660,7 @@ "type": "Identifier", "span": { "start": 585, - "end": 596, + "end": 586, "ctxt": 0 }, "value": "a", @@ -1818,7 +1818,7 @@ "type": "Identifier", "span": { "start": 652, - "end": 663, + "end": 653, "ctxt": 0 }, "value": "a", @@ -1917,7 +1917,7 @@ "type": "Identifier", "span": { "start": 684, - "end": 695, + "end": 685, "ctxt": 0 }, "value": "a", @@ -2011,7 +2011,7 @@ "type": "Identifier", "span": { "start": 723, - "end": 734, + "end": 724, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity.json b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity.json index ac168dbe14b1..f3c30520d722 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 130, + "end": 122, "ctxt": 0 }, "value": "x", @@ -249,7 +249,7 @@ "type": "Identifier", "span": { "start": 229, - "end": 239, + "end": 230, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity2.json b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity2.json index 5da14dffe310..fccf8ffb9374 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity2.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity2.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 130, + "end": 122, "ctxt": 0 }, "value": "x", @@ -93,7 +93,7 @@ "type": "Identifier", "span": { "start": 132, - "end": 141, + "end": 133, "ctxt": 0 }, "value": "y", @@ -203,7 +203,7 @@ "type": "Identifier", "span": { "start": 178, - "end": 187, + "end": 179, "ctxt": 0 }, "value": "x", @@ -322,7 +322,7 @@ "type": "Identifier", "span": { "start": 249, - "end": 258, + "end": 250, "ctxt": 0 }, "value": "x", @@ -358,7 +358,7 @@ "type": "Identifier", "span": { "start": 260, - "end": 270, + "end": 261, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity3.json b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity3.json index 2e85b2dbd817..f2458cb8b6e0 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity3.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity3.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 124, - "end": 128, + "end": 125, "ctxt": 0 }, "value": "x", @@ -103,7 +103,7 @@ "type": "Identifier", "span": { "start": 130, - "end": 134, + "end": 131, "ctxt": 0 }, "value": "y", @@ -255,7 +255,7 @@ "type": "Identifier", "span": { "start": 177, - "end": 181, + "end": 178, "ctxt": 0 }, "value": "x", @@ -444,7 +444,7 @@ "type": "Identifier", "span": { "start": 249, - "end": 253, + "end": 250, "ctxt": 0 }, "value": "x", @@ -490,7 +490,7 @@ "type": "Identifier", "span": { "start": 255, - "end": 265, + "end": 256, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity4.json b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity4.json index 9e42e3aa05ea..c5eccc4874a1 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity4.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity4.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 152, - "end": 161, + "end": 153, "ctxt": 0 }, "value": "x", @@ -249,7 +249,7 @@ "type": "Identifier", "span": { "start": 277, - "end": 287, + "end": 278, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor.json index 678f42ed3453..b5ff4ca7264b 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor.json @@ -94,7 +94,7 @@ "type": "Identifier", "span": { "start": 41, - "end": 50, + "end": 42, "ctxt": 0 }, "value": "x", @@ -527,7 +527,7 @@ "type": "Identifier", "span": { "start": 232, - "end": 236, + "end": 233, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor2.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor2.json index acc7d589c268..872961a37da4 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor2.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor2.json @@ -94,7 +94,7 @@ "type": "Identifier", "span": { "start": 41, - "end": 50, + "end": 42, "ctxt": 0 }, "value": "x", @@ -130,7 +130,7 @@ "type": "Identifier", "span": { "start": 52, - "end": 62, + "end": 53, "ctxt": 0 }, "value": "y", @@ -166,7 +166,7 @@ "type": "Identifier", "span": { "start": 64, - "end": 74, + "end": 65, "ctxt": 0 }, "value": "z", @@ -225,7 +225,7 @@ "type": "Identifier", "span": { "start": 93, - "end": 102, + "end": 94, "ctxt": 0 }, "value": "x", @@ -261,7 +261,7 @@ "type": "Identifier", "span": { "start": 104, - "end": 114, + "end": 105, "ctxt": 0 }, "value": "y", @@ -320,7 +320,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 142, + "end": 134, "ctxt": 0 }, "value": "x", @@ -924,7 +924,7 @@ "type": "Identifier", "span": { "start": 383, - "end": 387, + "end": 384, "ctxt": 0 }, "value": "x", @@ -970,7 +970,7 @@ "type": "Identifier", "span": { "start": 389, - "end": 394, + "end": 390, "ctxt": 0 }, "value": "y", @@ -1016,7 +1016,7 @@ "type": "Identifier", "span": { "start": 396, - "end": 401, + "end": 397, "ctxt": 0 }, "value": "z", @@ -1085,7 +1085,7 @@ "type": "Identifier", "span": { "start": 420, - "end": 424, + "end": 421, "ctxt": 0 }, "value": "x", @@ -1131,7 +1131,7 @@ "type": "Identifier", "span": { "start": 426, - "end": 431, + "end": 427, "ctxt": 0 }, "value": "y", @@ -1200,7 +1200,7 @@ "type": "Identifier", "span": { "start": 450, - "end": 454, + "end": 451, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor3.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor3.json index 13e99ac923d4..37732c28a787 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor3.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor3.json @@ -94,7 +94,7 @@ "type": "Identifier", "span": { "start": 105, - "end": 114, + "end": 106, "ctxt": 0 }, "value": "x", @@ -280,7 +280,7 @@ "type": "Identifier", "span": { "start": 192, - "end": 201, + "end": 193, "ctxt": 0 }, "value": "y", @@ -316,7 +316,7 @@ "type": "Identifier", "span": { "start": 203, - "end": 212, + "end": 204, "ctxt": 0 }, "value": "z", @@ -877,7 +877,7 @@ "type": "Identifier", "span": { "start": 467, - "end": 471, + "end": 468, "ctxt": 0 }, "value": "x", @@ -1129,7 +1129,7 @@ "type": "Identifier", "span": { "start": 551, - "end": 555, + "end": 552, "ctxt": 0 }, "value": "y", @@ -1175,7 +1175,7 @@ "type": "Identifier", "span": { "start": 557, - "end": 561, + "end": 558, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedInterfaceDoesNotHideBaseSignatures.json b/crates/swc_ecma_parser/tests/tsc/derivedInterfaceDoesNotHideBaseSignatures.json index ee29b45e5c54..568fd14339e8 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedInterfaceDoesNotHideBaseSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedInterfaceDoesNotHideBaseSignatures.json @@ -73,7 +73,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 160, + "end": 152, "ctxt": 0 }, "value": "x", @@ -206,7 +206,7 @@ "type": "Identifier", "span": { "start": 232, - "end": 241, + "end": 233, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.json index ea18132fac06..f2692f7e2e86 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 22, - "end": 38, + "end": 23, "ctxt": 0 }, "value": "x", @@ -284,7 +284,7 @@ "type": "Identifier", "span": { "start": 124, - "end": 151, + "end": 125, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment2.json b/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment2.json index b21cde86aa88..c09a0e83e60d 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment2.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment2.json @@ -1271,7 +1271,7 @@ "type": "Identifier", "span": { "start": 1277, - "end": 1288, + "end": 1280, "ctxt": 0 }, "value": "idx", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringControlFlow.json b/crates/swc_ecma_parser/tests/tsc/destructuringControlFlow.json index bbcd96ec80d5..9779496611a6 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringControlFlow.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringControlFlow.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 31, - "end": 50, + "end": 34, "ctxt": 0 }, "value": "obj", @@ -358,7 +358,7 @@ "type": "Identifier", "span": { "start": 207, - "end": 237, + "end": 210, "ctxt": 0 }, "value": "obj", @@ -1134,7 +1134,7 @@ "type": "Identifier", "span": { "start": 540, - "end": 571, + "end": 543, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5.json index ce966356e12f..39f6bf19dbf3 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5.json @@ -232,7 +232,7 @@ "type": "Identifier", "span": { "start": 379, - "end": 406, + "end": 380, "ctxt": 0 }, "value": "o", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5iterable.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5iterable.json index f6c8f807a507..39301bf5e925 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5iterable.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5iterable.json @@ -232,7 +232,7 @@ "type": "Identifier", "span": { "start": 408, - "end": 435, + "end": 409, "ctxt": 0 }, "value": "o", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES6.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES6.json index 166d5601ece3..77594b92d5b5 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES6.json @@ -232,7 +232,7 @@ "type": "Identifier", "span": { "start": 428, - "end": 455, + "end": 429, "ctxt": 0 }, "value": "o", diff --git a/crates/swc_ecma_parser/tests/tsc/directDependenceBetweenTypeAliases.json b/crates/swc_ecma_parser/tests/tsc/directDependenceBetweenTypeAliases.json index a59f01e5bd3e..4ca955b48099 100644 --- a/crates/swc_ecma_parser/tests/tsc/directDependenceBetweenTypeAliases.json +++ b/crates/swc_ecma_parser/tests/tsc/directDependenceBetweenTypeAliases.json @@ -1201,7 +1201,7 @@ "type": "Identifier", "span": { "start": 905, - "end": 911, + "end": 906, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionInference.json b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionInference.json index ba64191d0b37..194efddc3834 100644 --- a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionInference.json +++ b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionInference.json @@ -1037,7 +1037,7 @@ "type": "Identifier", "span": { "start": 370, - "end": 383, + "end": 374, "ctxt": 0 }, "value": "item", diff --git a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes1.json b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes1.json index d53c005f0eb0..27adeda788d8 100644 --- a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes1.json @@ -526,7 +526,7 @@ "type": "Identifier", "span": { "start": 268, - "end": 276, + "end": 269, "ctxt": 0 }, "value": "s", @@ -1087,7 +1087,7 @@ "type": "Identifier", "span": { "start": 570, - "end": 578, + "end": 571, "ctxt": 0 }, "value": "s", @@ -1523,7 +1523,7 @@ "type": "Identifier", "span": { "start": 795, - "end": 803, + "end": 796, "ctxt": 0 }, "value": "x", @@ -1672,7 +1672,7 @@ "type": "Identifier", "span": { "start": 880, - "end": 888, + "end": 881, "ctxt": 0 }, "value": "s", @@ -2161,7 +2161,7 @@ "type": "Identifier", "span": { "start": 1139, - "end": 1147, + "end": 1140, "ctxt": 0 }, "value": "s", @@ -2959,7 +2959,7 @@ "type": "Identifier", "span": { "start": 1485, - "end": 1495, + "end": 1486, "ctxt": 0 }, "value": "m", @@ -3235,7 +3235,7 @@ "type": "Identifier", "span": { "start": 1715, - "end": 1725, + "end": 1716, "ctxt": 0 }, "value": "m", @@ -3410,7 +3410,7 @@ "type": "Identifier", "span": { "start": 1850, - "end": 1860, + "end": 1851, "ctxt": 0 }, "value": "m", @@ -3576,7 +3576,7 @@ "type": "Identifier", "span": { "start": 1932, - "end": 1942, + "end": 1933, "ctxt": 0 }, "value": "m", @@ -3622,7 +3622,7 @@ "type": "Identifier", "span": { "start": 1944, - "end": 1956, + "end": 1945, "ctxt": 0 }, "value": "x", @@ -3815,7 +3815,7 @@ "type": "Identifier", "span": { "start": 2060, - "end": 2070, + "end": 2061, "ctxt": 0 }, "value": "m", @@ -4058,7 +4058,7 @@ "type": "Identifier", "span": { "start": 2335, - "end": 2345, + "end": 2336, "ctxt": 0 }, "value": "m", @@ -4292,7 +4292,7 @@ "type": "Identifier", "span": { "start": 2618, - "end": 2628, + "end": 2619, "ctxt": 0 }, "value": "m", @@ -4478,7 +4478,7 @@ "type": "Identifier", "span": { "start": 2789, - "end": 2799, + "end": 2790, "ctxt": 0 }, "value": "m", diff --git a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes2.json b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes2.json index 820d339108e9..e9aaddff2d75 100644 --- a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 32, - "end": 120, + "end": 33, "ctxt": 0 }, "value": "x", @@ -643,7 +643,7 @@ "type": "Identifier", "span": { "start": 268, - "end": 356, + "end": 269, "ctxt": 0 }, "value": "x", @@ -1221,7 +1221,7 @@ "type": "Identifier", "span": { "start": 549, - "end": 601, + "end": 550, "ctxt": 0 }, "value": "x", @@ -1583,7 +1583,7 @@ "type": "Identifier", "span": { "start": 670, - "end": 714, + "end": 671, "ctxt": 0 }, "value": "x", @@ -2218,7 +2218,7 @@ "type": "Identifier", "span": { "start": 854, - "end": 871, + "end": 855, "ctxt": 0 }, "value": "x", @@ -3033,7 +3033,7 @@ "type": "Identifier", "span": { "start": 1239, - "end": 1265, + "end": 1246, "ctxt": 0 }, "value": "carrier", @@ -3868,7 +3868,7 @@ "type": "Identifier", "span": { "start": 1617, - "end": 1625, + "end": 1620, "ctxt": 0 }, "value": "foo", @@ -4042,7 +4042,7 @@ "type": "Identifier", "span": { "start": 1713, - "end": 1721, + "end": 1716, "ctxt": 0 }, "value": "foo", @@ -4684,7 +4684,7 @@ "type": "Identifier", "span": { "start": 1998, - "end": 2020, + "end": 2005, "ctxt": 0 }, "value": "problem", @@ -5312,7 +5312,7 @@ "type": "Identifier", "span": { "start": 2285, - "end": 2321, + "end": 2286, "ctxt": 0 }, "value": "x", @@ -5611,7 +5611,7 @@ "type": "Identifier", "span": { "start": 2452, - "end": 2511, + "end": 2453, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunction.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunction.json index 5bd78126c66b..8b9ed48101c2 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunction.json @@ -467,7 +467,7 @@ "type": "Identifier", "span": { "start": 182, - "end": 201, + "end": 186, "ctxt": 0 }, "value": "func", diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionES6.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionES6.json index 290ec180d937..9cefda54c9ef 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionES6.json @@ -467,7 +467,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 199, + "end": 184, "ctxt": 0 }, "value": "func", diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturing.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturing.json index 1a16663887ef..408fc787e918 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturing.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturing.json @@ -276,7 +276,7 @@ "type": "Identifier", "span": { "start": 115, - "end": 134, + "end": 119, "ctxt": 0 }, "value": "func", diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturingES6.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturingES6.json index 66b1d64e6440..d82d4982b664 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturingES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturingES6.json @@ -276,7 +276,7 @@ "type": "Identifier", "span": { "start": 115, - "end": 134, + "end": 119, "ctxt": 0 }, "value": "func", diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments01.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments01.json index aaf8e21f3a48..88d7a84e7944 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments01.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments01.json @@ -469,7 +469,7 @@ "type": "Identifier", "span": { "start": 238, - "end": 259, + "end": 247, "ctxt": 0 }, "value": "inputFunc", diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments01_ES6.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments01_ES6.json index aaf8e21f3a48..88d7a84e7944 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments01_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments01_ES6.json @@ -469,7 +469,7 @@ "type": "Identifier", "span": { "start": 238, - "end": 259, + "end": 247, "ctxt": 0 }, "value": "inputFunc", diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments19.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments19.json index 10bf9b4a6fc6..097a4f6f24fa 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments19.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments19.json @@ -269,7 +269,7 @@ "type": "Identifier", "span": { "start": 406, - "end": 412, + "end": 407, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments19_ES6.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments19_ES6.json index 10bf9b4a6fc6..097a4f6f24fa 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments19_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments19_ES6.json @@ -269,7 +269,7 @@ "type": "Identifier", "span": { "start": 406, - "end": 412, + "end": 407, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationOverloadInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationOverloadInES6.json index 7625eefaff5e..2c0ea509f9d1 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationOverloadInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationOverloadInES6.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 43, - "end": 49, + "end": 44, "ctxt": 0 }, "value": "y", @@ -115,7 +115,7 @@ "type": "Identifier", "span": { "start": 67, - "end": 76, + "end": 68, "ctxt": 0 }, "value": "x", @@ -209,7 +209,7 @@ "type": "Identifier", "span": { "start": 115, - "end": 121, + "end": 116, "ctxt": 0 }, "value": "y", @@ -268,7 +268,7 @@ "type": "Identifier", "span": { "start": 139, - "end": 148, + "end": 140, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithConstructorInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithConstructorInES6.json index ab4a3eadeabe..ac59116fe08c 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithConstructorInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithConstructorInES6.json @@ -101,7 +101,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 67, + "end": 59, "ctxt": 0 }, "value": "x", @@ -169,7 +169,7 @@ "type": "Identifier", "span": { "start": 85, - "end": 91, + "end": 86, "ctxt": 0 }, "value": "a", @@ -460,7 +460,7 @@ "type": "Identifier", "span": { "start": 196, - "end": 205, + "end": 197, "ctxt": 0 }, "value": "x", @@ -743,7 +743,7 @@ "type": "Identifier", "span": { "start": 292, - "end": 301, + "end": 293, "ctxt": 0 }, "value": "z", @@ -779,7 +779,7 @@ "type": "Identifier", "span": { "start": 303, - "end": 312, + "end": 304, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionAndTypeArgumentInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionAndTypeArgumentInES6.json index 16a9b1261499..dd8b5603b176 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionAndTypeArgumentInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionAndTypeArgumentInES6.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 46, - "end": 50, + "end": 47, "ctxt": 0 }, "value": "a", @@ -245,7 +245,7 @@ "type": "Identifier", "span": { "start": 132, - "end": 138, + "end": 133, "ctxt": 0 }, "value": "a", @@ -304,7 +304,7 @@ "type": "Identifier", "span": { "start": 156, - "end": 165, + "end": 157, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionInES6.json index 698658518972..6efb61bfcadf 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionInES6.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 35, - "end": 44, + "end": 36, "ctxt": 0 }, "value": "a", @@ -251,7 +251,7 @@ "type": "Identifier", "span": { "start": 102, - "end": 111, + "end": 103, "ctxt": 0 }, "value": "a", @@ -287,7 +287,7 @@ "type": "Identifier", "span": { "start": 113, - "end": 121, + "end": 114, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithGetterSetterInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithGetterSetterInES6.json index cb86ab33c2f2..6554660c33b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithGetterSetterInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithGetterSetterInES6.json @@ -507,7 +507,7 @@ "type": "Identifier", "span": { "start": 362, - "end": 368, + "end": 363, "ctxt": 0 }, "value": "x", @@ -598,7 +598,7 @@ "type": "Identifier", "span": { "start": 404, - "end": 413, + "end": 405, "ctxt": 0 }, "value": "y", @@ -681,7 +681,7 @@ "type": "Identifier", "span": { "start": 436, - "end": 445, + "end": 437, "ctxt": 0 }, "value": "a", @@ -764,7 +764,7 @@ "type": "Identifier", "span": { "start": 470, - "end": 479, + "end": 471, "ctxt": 0 }, "value": "b", @@ -855,7 +855,7 @@ "type": "Identifier", "span": { "start": 517, - "end": 526, + "end": 518, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithMethodInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithMethodInES6.json index 37622d38bb4a..0d9146883641 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithMethodInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithMethodInES6.json @@ -210,7 +210,7 @@ "type": "Identifier", "span": { "start": 108, - "end": 117, + "end": 109, "ctxt": 0 }, "value": "a", @@ -301,7 +301,7 @@ "type": "Identifier", "span": { "start": 145, - "end": 154, + "end": 146, "ctxt": 0 }, "value": "a", @@ -516,7 +516,7 @@ "type": "Identifier", "span": { "start": 239, - "end": 245, + "end": 240, "ctxt": 0 }, "value": "a", @@ -552,7 +552,7 @@ "type": "Identifier", "span": { "start": 247, - "end": 256, + "end": 248, "ctxt": 0 }, "value": "x", @@ -732,7 +732,7 @@ "type": "Identifier", "span": { "start": 362, - "end": 371, + "end": 363, "ctxt": 0 }, "value": "a", @@ -823,7 +823,7 @@ "type": "Identifier", "span": { "start": 406, - "end": 415, + "end": 407, "ctxt": 0 }, "value": "a", @@ -1066,7 +1066,7 @@ "type": "Identifier", "span": { "start": 532, - "end": 541, + "end": 533, "ctxt": 0 }, "value": "a", @@ -1149,7 +1149,7 @@ "type": "Identifier", "span": { "start": 562, - "end": 571, + "end": 563, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithThisKeywordInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithThisKeywordInES6.json index ba9d6c23e978..d2dc70128964 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithThisKeywordInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithThisKeywordInES6.json @@ -179,7 +179,7 @@ "type": "Identifier", "span": { "start": 101, - "end": 110, + "end": 102, "ctxt": 0 }, "value": "a", @@ -466,7 +466,7 @@ "type": "Identifier", "span": { "start": 213, - "end": 222, + "end": 214, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithTypeArgumentAndOverloadInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithTypeArgumentAndOverloadInES6.json index 2175db910e2c..57599b483bed 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithTypeArgumentAndOverloadInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithTypeArgumentAndOverloadInES6.json @@ -166,7 +166,7 @@ "type": "Identifier", "span": { "start": 67, - "end": 73, + "end": 68, "ctxt": 0 }, "value": "a", @@ -225,7 +225,7 @@ "type": "Identifier", "span": { "start": 91, - "end": 97, + "end": 92, "ctxt": 0 }, "value": "a", @@ -261,7 +261,7 @@ "type": "Identifier", "span": { "start": 98, - "end": 102, + "end": 99, "ctxt": 0 }, "value": "b", @@ -330,7 +330,7 @@ "type": "Identifier", "span": { "start": 120, - "end": 124, + "end": 121, "ctxt": 0 }, "value": "a", @@ -462,7 +462,7 @@ "type": "Identifier", "span": { "start": 150, - "end": 154, + "end": 151, "ctxt": 0 }, "value": "a", @@ -547,7 +547,7 @@ "type": "Identifier", "span": { "start": 164, - "end": 170, + "end": 165, "ctxt": 0 }, "value": "a", @@ -622,7 +622,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 189, + "end": 181, "ctxt": 0 }, "value": "b", @@ -911,7 +911,7 @@ "type": "Identifier", "span": { "start": 298, - "end": 302, + "end": 299, "ctxt": 0 }, "value": "c", diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithTypeArgumentInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithTypeArgumentInES6.json index 67e1e5fcfd2b..2b50954f46b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithTypeArgumentInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithTypeArgumentInES6.json @@ -166,7 +166,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 70, + "end": 67, "ctxt": 0 }, "value": "a", @@ -512,7 +512,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 197, + "end": 194, "ctxt": 0 }, "value": "c", diff --git a/crates/swc_ecma_parser/tests/tsc/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.json b/crates/swc_ecma_parser/tests/tsc/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.json index 36f705c6efb5..43d8f5080f97 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.json +++ b/crates/swc_ecma_parser/tests/tsc/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.json @@ -74,7 +74,7 @@ "type": "Identifier", "span": { "start": 63, - "end": 74, + "end": 66, "ctxt": 0 }, "value": "max", diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunction.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunction.json index 9c7f8625d28b..e641584754c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunction.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 30, - "end": 39, + "end": 31, "ctxt": 0 }, "value": "x", @@ -141,7 +141,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 75, + "end": 67, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionES6.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionES6.json index 03b909d1a1f5..16dbe06f2c81 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionES6.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 29, - "end": 38, + "end": 30, "ctxt": 0 }, "value": "x", @@ -141,7 +141,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 74, + "end": 66, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionExpression.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionExpression.json index e3fadf784f0a..ffa7c1b204c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionExpression.json @@ -817,7 +817,7 @@ "type": "Identifier", "span": { "start": 321, - "end": 332, + "end": 324, "ctxt": 0 }, "value": "num", diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionExpressionES6.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionExpressionES6.json index 6247e87c3310..eaf1749eeaa1 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionExpressionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionExpressionES6.json @@ -817,7 +817,7 @@ "type": "Identifier", "span": { "start": 320, - "end": 331, + "end": 323, "ctxt": 0 }, "value": "num", diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionProperty.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionProperty.json index 5b4fecbc9523..1e43483f65fa 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionProperty.json @@ -245,7 +245,7 @@ "type": "Identifier", "span": { "start": 100, - "end": 109, + "end": 101, "ctxt": 0 }, "value": "x", @@ -281,7 +281,7 @@ "type": "Identifier", "span": { "start": 111, - "end": 120, + "end": 112, "ctxt": 0 }, "value": "z", @@ -389,7 +389,7 @@ "type": "Identifier", "span": { "start": 150, - "end": 159, + "end": 151, "ctxt": 0 }, "value": "x", @@ -425,7 +425,7 @@ "type": "Identifier", "span": { "start": 161, - "end": 170, + "end": 162, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionPropertyES6.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionPropertyES6.json index 962447c5bf24..f246d553dfbd 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionPropertyES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionPropertyES6.json @@ -245,7 +245,7 @@ "type": "Identifier", "span": { "start": 99, - "end": 108, + "end": 100, "ctxt": 0 }, "value": "x", @@ -281,7 +281,7 @@ "type": "Identifier", "span": { "start": 110, - "end": 119, + "end": 111, "ctxt": 0 }, "value": "z", @@ -389,7 +389,7 @@ "type": "Identifier", "span": { "start": 149, - "end": 158, + "end": 150, "ctxt": 0 }, "value": "x", @@ -425,7 +425,7 @@ "type": "Identifier", "span": { "start": 160, - "end": 169, + "end": 161, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethod.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethod.json index 8e676e0962b8..1ff44848e5a6 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethod.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 43, - "end": 53, + "end": 44, "ctxt": 0 }, "value": "t", @@ -92,7 +92,7 @@ "type": "Identifier", "span": { "start": 55, - "end": 64, + "end": 56, "ctxt": 0 }, "value": "z", @@ -128,7 +128,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 75, + "end": 67, "ctxt": 0 }, "value": "x", @@ -234,7 +234,7 @@ "type": "Identifier", "span": { "start": 110, - "end": 119, + "end": 111, "ctxt": 0 }, "value": "x", @@ -354,7 +354,7 @@ "type": "Identifier", "span": { "start": 152, - "end": 161, + "end": 153, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethodES6.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethodES6.json index 0c1cccbdd3ce..94cd601d9a8b 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethodES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethodES6.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 42, - "end": 52, + "end": 43, "ctxt": 0 }, "value": "t", @@ -92,7 +92,7 @@ "type": "Identifier", "span": { "start": 54, - "end": 63, + "end": 55, "ctxt": 0 }, "value": "z", @@ -128,7 +128,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 74, + "end": 66, "ctxt": 0 }, "value": "x", @@ -234,7 +234,7 @@ "type": "Identifier", "span": { "start": 109, - "end": 118, + "end": 110, "ctxt": 0 }, "value": "x", @@ -354,7 +354,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 160, + "end": 152, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/emitRestParametersFunction.json b/crates/swc_ecma_parser/tests/tsc/emitRestParametersFunction.json index f080d2c61f1f..ea08e3db3d26 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitRestParametersFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/emitRestParametersFunction.json @@ -101,7 +101,7 @@ "type": "Identifier", "span": { "start": 56, - "end": 65, + "end": 57, "ctxt": 0 }, "value": "x", @@ -137,7 +137,7 @@ "type": "Identifier", "span": { "start": 67, - "end": 76, + "end": 68, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/emitRestParametersFunctionES6.json b/crates/swc_ecma_parser/tests/tsc/emitRestParametersFunctionES6.json index f080d2c61f1f..ea08e3db3d26 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitRestParametersFunctionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitRestParametersFunctionES6.json @@ -101,7 +101,7 @@ "type": "Identifier", "span": { "start": 56, - "end": 65, + "end": 57, "ctxt": 0 }, "value": "x", @@ -137,7 +137,7 @@ "type": "Identifier", "span": { "start": 67, - "end": 76, + "end": 68, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethod.json b/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethod.json index 476a1ebe7e9c..19ac57a3d026 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethod.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 43, - "end": 55, + "end": 47, "ctxt": 0 }, "value": "name", @@ -239,7 +239,7 @@ "type": "Identifier", "span": { "start": 114, - "end": 123, + "end": 115, "ctxt": 0 }, "value": "x", @@ -529,7 +529,7 @@ "type": "Identifier", "span": { "start": 224, - "end": 233, + "end": 225, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethodES6.json b/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethodES6.json index 476a1ebe7e9c..19ac57a3d026 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethodES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethodES6.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 43, - "end": 55, + "end": 47, "ctxt": 0 }, "value": "name", @@ -239,7 +239,7 @@ "type": "Identifier", "span": { "start": 114, - "end": 123, + "end": 115, "ctxt": 0 }, "value": "x", @@ -529,7 +529,7 @@ "type": "Identifier", "span": { "start": 224, - "end": 233, + "end": 225, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCall.json b/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCall.json index b47fb03dec3b..941a5932b360 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCall.json +++ b/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCall.json @@ -85,7 +85,7 @@ "type": "Identifier", "span": { "start": 137, - "end": 146, + "end": 138, "ctxt": 0 }, "value": "p", @@ -361,7 +361,7 @@ "type": "Identifier", "span": { "start": 331, - "end": 340, + "end": 332, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCallWithDefineFields.json b/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCallWithDefineFields.json index 17c44b4f24f1..b80e9c07dd6e 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCallWithDefineFields.json +++ b/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCallWithDefineFields.json @@ -85,7 +85,7 @@ "type": "Identifier", "span": { "start": 136, - "end": 145, + "end": 137, "ctxt": 0 }, "value": "p", @@ -361,7 +361,7 @@ "type": "Identifier", "span": { "start": 302, - "end": 311, + "end": 303, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/enumAssignability.json b/crates/swc_ecma_parser/tests/tsc/enumAssignability.json index 0d598a1484dd..ca282fb84a69 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumAssignability.json +++ b/crates/swc_ecma_parser/tests/tsc/enumAssignability.json @@ -1476,7 +1476,7 @@ "type": "Identifier", "span": { "start": 620, - "end": 629, + "end": 621, "ctxt": 0 }, "value": "x", @@ -1822,7 +1822,7 @@ "type": "Identifier", "span": { "start": 742, - "end": 746, + "end": 743, "ctxt": 0 }, "value": "x", @@ -2095,7 +2095,7 @@ "type": "Identifier", "span": { "start": 885, - "end": 889, + "end": 886, "ctxt": 0 }, "value": "x", @@ -2141,7 +2141,7 @@ "type": "Identifier", "span": { "start": 891, - "end": 895, + "end": 892, "ctxt": 0 }, "value": "y", @@ -2187,7 +2187,7 @@ "type": "Identifier", "span": { "start": 897, - "end": 901, + "end": 898, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/enumAssignabilityInInheritance.json b/crates/swc_ecma_parser/tests/tsc/enumAssignabilityInInheritance.json index 2145b31ca709..dfac35df02c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumAssignabilityInInheritance.json +++ b/crates/swc_ecma_parser/tests/tsc/enumAssignabilityInInheritance.json @@ -221,7 +221,7 @@ "type": "Identifier", "span": { "start": 227, - "end": 231, + "end": 228, "ctxt": 0 }, "value": "x", @@ -320,7 +320,7 @@ "type": "Identifier", "span": { "start": 258, - "end": 267, + "end": 259, "ctxt": 0 }, "value": "x", @@ -399,7 +399,7 @@ "type": "Identifier", "span": { "start": 299, - "end": 305, + "end": 300, "ctxt": 0 }, "value": "x", @@ -709,7 +709,7 @@ "type": "Identifier", "span": { "start": 418, - "end": 427, + "end": 419, "ctxt": 0 }, "value": "x", @@ -788,7 +788,7 @@ "type": "Identifier", "span": { "start": 460, - "end": 464, + "end": 461, "ctxt": 0 }, "value": "x", @@ -971,7 +971,7 @@ "type": "Identifier", "span": { "start": 514, - "end": 524, + "end": 515, "ctxt": 0 }, "value": "x", @@ -1050,7 +1050,7 @@ "type": "Identifier", "span": { "start": 558, - "end": 562, + "end": 559, "ctxt": 0 }, "value": "x", @@ -1233,7 +1233,7 @@ "type": "Identifier", "span": { "start": 612, - "end": 619, + "end": 613, "ctxt": 0 }, "value": "x", @@ -1332,7 +1332,7 @@ "type": "Identifier", "span": { "start": 650, - "end": 654, + "end": 651, "ctxt": 0 }, "value": "x", @@ -1515,7 +1515,7 @@ "type": "Identifier", "span": { "start": 704, - "end": 713, + "end": 705, "ctxt": 0 }, "value": "x", @@ -1614,7 +1614,7 @@ "type": "Identifier", "span": { "start": 746, - "end": 750, + "end": 747, "ctxt": 0 }, "value": "x", @@ -1797,7 +1797,7 @@ "type": "Identifier", "span": { "start": 800, - "end": 818, + "end": 801, "ctxt": 0 }, "value": "x", @@ -1960,7 +1960,7 @@ "type": "Identifier", "span": { "start": 860, - "end": 864, + "end": 861, "ctxt": 0 }, "value": "x", @@ -2143,7 +2143,7 @@ "type": "Identifier", "span": { "start": 914, - "end": 925, + "end": 915, "ctxt": 0 }, "value": "x", @@ -2238,7 +2238,7 @@ "type": "Identifier", "span": { "start": 960, - "end": 964, + "end": 961, "ctxt": 0 }, "value": "x", @@ -2493,7 +2493,7 @@ "type": "Identifier", "span": { "start": 1044, - "end": 1049, + "end": 1045, "ctxt": 0 }, "value": "x", @@ -2592,7 +2592,7 @@ "type": "Identifier", "span": { "start": 1078, - "end": 1082, + "end": 1079, "ctxt": 0 }, "value": "x", @@ -2847,7 +2847,7 @@ "type": "Identifier", "span": { "start": 1157, - "end": 1161, + "end": 1158, "ctxt": 0 }, "value": "x", @@ -2946,7 +2946,7 @@ "type": "Identifier", "span": { "start": 1189, - "end": 1193, + "end": 1190, "ctxt": 0 }, "value": "x", @@ -3243,7 +3243,7 @@ "type": "Identifier", "span": { "start": 1268, - "end": 1281, + "end": 1269, "ctxt": 0 }, "value": "x", @@ -3378,7 +3378,7 @@ "type": "Identifier", "span": { "start": 1319, - "end": 1323, + "end": 1320, "ctxt": 0 }, "value": "x", @@ -3561,7 +3561,7 @@ "type": "Identifier", "span": { "start": 1375, - "end": 1391, + "end": 1376, "ctxt": 0 }, "value": "x", @@ -3700,7 +3700,7 @@ "type": "Identifier", "span": { "start": 1432, - "end": 1436, + "end": 1433, "ctxt": 0 }, "value": "x", @@ -3883,7 +3883,7 @@ "type": "Identifier", "span": { "start": 1488, - "end": 1505, + "end": 1489, "ctxt": 0 }, "value": "x", @@ -3907,7 +3907,7 @@ "type": "Identifier", "span": { "start": 1495, - "end": 1499, + "end": 1496, "ctxt": 0 }, "value": "x", @@ -4035,7 +4035,7 @@ "type": "Identifier", "span": { "start": 1512, - "end": 1516, + "end": 1513, "ctxt": 0 }, "value": "x", @@ -4158,7 +4158,7 @@ "type": "Identifier", "span": { "start": 1547, - "end": 1551, + "end": 1548, "ctxt": 0 }, "value": "x", @@ -4382,7 +4382,7 @@ "type": "Identifier", "span": { "start": 1617, - "end": 1622, + "end": 1618, "ctxt": 0 }, "value": "x", @@ -4481,7 +4481,7 @@ "type": "Identifier", "span": { "start": 1652, - "end": 1656, + "end": 1653, "ctxt": 0 }, "value": "x", @@ -4778,7 +4778,7 @@ "type": "Identifier", "span": { "start": 1762, - "end": 1773, + "end": 1763, "ctxt": 0 }, "value": "x", @@ -4877,7 +4877,7 @@ "type": "Identifier", "span": { "start": 1809, - "end": 1813, + "end": 1810, "ctxt": 0 }, "value": "x", @@ -5212,7 +5212,7 @@ "type": "Identifier", "span": { "start": 1928, - "end": 1933, + "end": 1929, "ctxt": 0 }, "value": "x", @@ -5311,7 +5311,7 @@ "type": "Identifier", "span": { "start": 1963, - "end": 1967, + "end": 1964, "ctxt": 0 }, "value": "x", @@ -5494,7 +5494,7 @@ "type": "Identifier", "span": { "start": 2019, - "end": 2028, + "end": 2020, "ctxt": 0 }, "value": "x", @@ -5593,7 +5593,7 @@ "type": "Identifier", "span": { "start": 2062, - "end": 2066, + "end": 2063, "ctxt": 0 }, "value": "x", @@ -5776,7 +5776,7 @@ "type": "Identifier", "span": { "start": 2118, - "end": 2123, + "end": 2119, "ctxt": 0 }, "value": "x", @@ -5855,7 +5855,7 @@ "type": "Identifier", "span": { "start": 2153, - "end": 2157, + "end": 2154, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/enumIsNotASubtypeOfAnythingButNumber.json b/crates/swc_ecma_parser/tests/tsc/enumIsNotASubtypeOfAnythingButNumber.json index 507fee5b18a4..a0db9c7d70a5 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumIsNotASubtypeOfAnythingButNumber.json +++ b/crates/swc_ecma_parser/tests/tsc/enumIsNotASubtypeOfAnythingButNumber.json @@ -2115,7 +2115,7 @@ "type": "Identifier", "span": { "start": 869, - "end": 873, + "end": 870, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes1.json b/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes1.json index 6dd77917e0a9..2a2bfa719ce2 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes1.json @@ -814,7 +814,7 @@ "type": "Identifier", "span": { "start": 315, - "end": 323, + "end": 316, "ctxt": 0 }, "value": "a", @@ -860,7 +860,7 @@ "type": "Identifier", "span": { "start": 325, - "end": 340, + "end": 326, "ctxt": 0 }, "value": "b", @@ -906,7 +906,7 @@ "type": "Identifier", "span": { "start": 342, - "end": 351, + "end": 343, "ctxt": 0 }, "value": "c", @@ -1102,7 +1102,7 @@ "type": "Identifier", "span": { "start": 403, - "end": 416, + "end": 404, "ctxt": 0 }, "value": "a", @@ -1161,7 +1161,7 @@ "type": "Identifier", "span": { "start": 418, - "end": 426, + "end": 419, "ctxt": 0 }, "value": "b", @@ -2372,7 +2372,7 @@ "type": "Identifier", "span": { "start": 805, - "end": 818, + "end": 806, "ctxt": 0 }, "value": "a", @@ -2431,7 +2431,7 @@ "type": "Identifier", "span": { "start": 820, - "end": 828, + "end": 821, "ctxt": 0 }, "value": "b", @@ -2569,7 +2569,7 @@ "type": "Identifier", "span": { "start": 872, - "end": 885, + "end": 873, "ctxt": 0 }, "value": "x", @@ -2671,7 +2671,7 @@ "type": "Identifier", "span": { "start": 915, - "end": 927, + "end": 916, "ctxt": 0 }, "value": "x", @@ -2773,7 +2773,7 @@ "type": "Identifier", "span": { "start": 958, - "end": 967, + "end": 959, "ctxt": 0 }, "value": "x", @@ -2862,7 +2862,7 @@ "type": "Identifier", "span": { "start": 991, - "end": 999, + "end": 992, "ctxt": 0 }, "value": "a", @@ -2908,7 +2908,7 @@ "type": "Identifier", "span": { "start": 1001, - "end": 1016, + "end": 1002, "ctxt": 0 }, "value": "b", @@ -2954,7 +2954,7 @@ "type": "Identifier", "span": { "start": 1018, - "end": 1027, + "end": 1019, "ctxt": 0 }, "value": "c", @@ -3402,7 +3402,7 @@ "type": "Identifier", "span": { "start": 1167, - "end": 1175, + "end": 1168, "ctxt": 0 }, "value": "x", @@ -3532,7 +3532,7 @@ "type": "Identifier", "span": { "start": 1243, - "end": 1251, + "end": 1244, "ctxt": 0 }, "value": "x", @@ -3746,7 +3746,7 @@ "type": "Identifier", "span": { "start": 1374, - "end": 1382, + "end": 1375, "ctxt": 0 }, "value": "x", @@ -4002,7 +4002,7 @@ "type": "Identifier", "span": { "start": 1532, - "end": 1547, + "end": 1533, "ctxt": 0 }, "value": "x", @@ -4158,7 +4158,7 @@ "type": "Identifier", "span": { "start": 1625, - "end": 1640, + "end": 1626, "ctxt": 0 }, "value": "x", @@ -4611,7 +4611,7 @@ "type": "Identifier", "span": { "start": 1820, - "end": 1827, + "end": 1821, "ctxt": 0 }, "value": "x", @@ -4879,7 +4879,7 @@ "type": "Identifier", "span": { "start": 1948, - "end": 1955, + "end": 1949, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes2.json b/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes2.json index 53ccc2c7c5f4..44db6dcb8887 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes2.json @@ -814,7 +814,7 @@ "type": "Identifier", "span": { "start": 343, - "end": 351, + "end": 344, "ctxt": 0 }, "value": "a", @@ -860,7 +860,7 @@ "type": "Identifier", "span": { "start": 353, - "end": 368, + "end": 354, "ctxt": 0 }, "value": "b", @@ -906,7 +906,7 @@ "type": "Identifier", "span": { "start": 370, - "end": 379, + "end": 371, "ctxt": 0 }, "value": "c", @@ -1102,7 +1102,7 @@ "type": "Identifier", "span": { "start": 431, - "end": 444, + "end": 432, "ctxt": 0 }, "value": "a", @@ -1161,7 +1161,7 @@ "type": "Identifier", "span": { "start": 446, - "end": 461, + "end": 447, "ctxt": 0 }, "value": "b", @@ -2372,7 +2372,7 @@ "type": "Identifier", "span": { "start": 840, - "end": 853, + "end": 841, "ctxt": 0 }, "value": "a", @@ -2431,7 +2431,7 @@ "type": "Identifier", "span": { "start": 855, - "end": 870, + "end": 856, "ctxt": 0 }, "value": "b", @@ -2569,7 +2569,7 @@ "type": "Identifier", "span": { "start": 914, - "end": 927, + "end": 915, "ctxt": 0 }, "value": "x", @@ -2671,7 +2671,7 @@ "type": "Identifier", "span": { "start": 957, - "end": 969, + "end": 958, "ctxt": 0 }, "value": "x", @@ -2773,7 +2773,7 @@ "type": "Identifier", "span": { "start": 1000, - "end": 1009, + "end": 1001, "ctxt": 0 }, "value": "x", @@ -2862,7 +2862,7 @@ "type": "Identifier", "span": { "start": 1033, - "end": 1041, + "end": 1034, "ctxt": 0 }, "value": "a", @@ -2908,7 +2908,7 @@ "type": "Identifier", "span": { "start": 1043, - "end": 1058, + "end": 1044, "ctxt": 0 }, "value": "b", @@ -2954,7 +2954,7 @@ "type": "Identifier", "span": { "start": 1060, - "end": 1069, + "end": 1061, "ctxt": 0 }, "value": "c", @@ -3402,7 +3402,7 @@ "type": "Identifier", "span": { "start": 1209, - "end": 1217, + "end": 1210, "ctxt": 0 }, "value": "x", @@ -3532,7 +3532,7 @@ "type": "Identifier", "span": { "start": 1285, - "end": 1293, + "end": 1286, "ctxt": 0 }, "value": "x", @@ -3746,7 +3746,7 @@ "type": "Identifier", "span": { "start": 1416, - "end": 1424, + "end": 1417, "ctxt": 0 }, "value": "x", @@ -4002,7 +4002,7 @@ "type": "Identifier", "span": { "start": 1574, - "end": 1589, + "end": 1575, "ctxt": 0 }, "value": "x", @@ -4158,7 +4158,7 @@ "type": "Identifier", "span": { "start": 1667, - "end": 1682, + "end": 1668, "ctxt": 0 }, "value": "x", @@ -4611,7 +4611,7 @@ "type": "Identifier", "span": { "start": 1862, - "end": 1869, + "end": 1863, "ctxt": 0 }, "value": "x", @@ -4879,7 +4879,7 @@ "type": "Identifier", "span": { "start": 1990, - "end": 1997, + "end": 1991, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes3.json b/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes3.json index b7f8c0ea729d..5f650644ec6f 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes3.json @@ -485,7 +485,7 @@ "type": "Identifier", "span": { "start": 213, - "end": 219, + "end": 214, "ctxt": 0 }, "value": "a", @@ -531,7 +531,7 @@ "type": "Identifier", "span": { "start": 221, - "end": 229, + "end": 222, "ctxt": 0 }, "value": "b", @@ -577,7 +577,7 @@ "type": "Identifier", "span": { "start": 231, - "end": 246, + "end": 232, "ctxt": 0 }, "value": "c", @@ -623,7 +623,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 257, + "end": 249, "ctxt": 0 }, "value": "d", @@ -857,7 +857,7 @@ "type": "Identifier", "span": { "start": 320, - "end": 326, + "end": 321, "ctxt": 0 }, "value": "a", @@ -903,7 +903,7 @@ "type": "Identifier", "span": { "start": 328, - "end": 336, + "end": 329, "ctxt": 0 }, "value": "b", @@ -949,7 +949,7 @@ "type": "Identifier", "span": { "start": 338, - "end": 353, + "end": 339, "ctxt": 0 }, "value": "c", @@ -995,7 +995,7 @@ "type": "Identifier", "span": { "start": 355, - "end": 364, + "end": 356, "ctxt": 0 }, "value": "d", @@ -1229,7 +1229,7 @@ "type": "Identifier", "span": { "start": 427, - "end": 433, + "end": 428, "ctxt": 0 }, "value": "a", @@ -1275,7 +1275,7 @@ "type": "Identifier", "span": { "start": 435, - "end": 443, + "end": 436, "ctxt": 0 }, "value": "b", @@ -1321,7 +1321,7 @@ "type": "Identifier", "span": { "start": 445, - "end": 460, + "end": 446, "ctxt": 0 }, "value": "c", @@ -1367,7 +1367,7 @@ "type": "Identifier", "span": { "start": 462, - "end": 471, + "end": 463, "ctxt": 0 }, "value": "d", @@ -1601,7 +1601,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 540, + "end": 535, "ctxt": 0 }, "value": "a", @@ -1647,7 +1647,7 @@ "type": "Identifier", "span": { "start": 542, - "end": 550, + "end": 543, "ctxt": 0 }, "value": "b", @@ -1693,7 +1693,7 @@ "type": "Identifier", "span": { "start": 552, - "end": 567, + "end": 553, "ctxt": 0 }, "value": "c", @@ -1739,7 +1739,7 @@ "type": "Identifier", "span": { "start": 569, - "end": 578, + "end": 570, "ctxt": 0 }, "value": "d", @@ -1973,7 +1973,7 @@ "type": "Identifier", "span": { "start": 641, - "end": 647, + "end": 642, "ctxt": 0 }, "value": "a", @@ -2019,7 +2019,7 @@ "type": "Identifier", "span": { "start": 649, - "end": 657, + "end": 650, "ctxt": 0 }, "value": "b", @@ -2065,7 +2065,7 @@ "type": "Identifier", "span": { "start": 659, - "end": 674, + "end": 660, "ctxt": 0 }, "value": "c", @@ -2111,7 +2111,7 @@ "type": "Identifier", "span": { "start": 676, - "end": 685, + "end": 677, "ctxt": 0 }, "value": "d", @@ -2865,7 +2865,7 @@ "type": "Identifier", "span": { "start": 956, - "end": 962, + "end": 957, "ctxt": 0 }, "value": "a", @@ -2911,7 +2911,7 @@ "type": "Identifier", "span": { "start": 964, - "end": 972, + "end": 965, "ctxt": 0 }, "value": "b", @@ -2957,7 +2957,7 @@ "type": "Identifier", "span": { "start": 974, - "end": 989, + "end": 975, "ctxt": 0 }, "value": "c", @@ -3003,7 +3003,7 @@ "type": "Identifier", "span": { "start": 991, - "end": 1000, + "end": 992, "ctxt": 0 }, "value": "d", @@ -3745,7 +3745,7 @@ "type": "Identifier", "span": { "start": 1295, - "end": 1301, + "end": 1296, "ctxt": 0 }, "value": "a", @@ -3791,7 +3791,7 @@ "type": "Identifier", "span": { "start": 1303, - "end": 1311, + "end": 1304, "ctxt": 0 }, "value": "b", @@ -3837,7 +3837,7 @@ "type": "Identifier", "span": { "start": 1313, - "end": 1328, + "end": 1314, "ctxt": 0 }, "value": "c", @@ -3883,7 +3883,7 @@ "type": "Identifier", "span": { "start": 1330, - "end": 1339, + "end": 1331, "ctxt": 0 }, "value": "d", @@ -4557,7 +4557,7 @@ "type": "Identifier", "span": { "start": 1567, - "end": 1573, + "end": 1568, "ctxt": 0 }, "value": "x", @@ -4871,7 +4871,7 @@ "type": "Identifier", "span": { "start": 1743, - "end": 1751, + "end": 1744, "ctxt": 0 }, "value": "x", @@ -5185,7 +5185,7 @@ "type": "Identifier", "span": { "start": 1923, - "end": 1938, + "end": 1924, "ctxt": 0 }, "value": "x", @@ -5499,7 +5499,7 @@ "type": "Identifier", "span": { "start": 2117, - "end": 2126, + "end": 2118, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/equalityWithEnumTypes.json b/crates/swc_ecma_parser/tests/tsc/equalityWithEnumTypes.json index 9357607d6cf0..697e39855492 100644 --- a/crates/swc_ecma_parser/tests/tsc/equalityWithEnumTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/equalityWithEnumTypes.json @@ -226,7 +226,7 @@ "type": "Identifier", "span": { "start": 152, - "end": 157, + "end": 153, "ctxt": 0 }, "value": "v", @@ -572,7 +572,7 @@ "type": "Identifier", "span": { "start": 340, - "end": 345, + "end": 341, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/equalityWithtNullishCoalescingAssignment.json b/crates/swc_ecma_parser/tests/tsc/equalityWithtNullishCoalescingAssignment.json index 9afbb74b9ba4..81ea44739b1b 100644 --- a/crates/swc_ecma_parser/tests/tsc/equalityWithtNullishCoalescingAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/equalityWithtNullishCoalescingAssignment.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 38, - "end": 49, + "end": 39, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/es2020IntlAPIs.json b/crates/swc_ecma_parser/tests/tsc/es2020IntlAPIs.json index b227e5629bb7..605744e22a36 100644 --- a/crates/swc_ecma_parser/tests/tsc/es2020IntlAPIs.json +++ b/crates/swc_ecma_parser/tests/tsc/es2020IntlAPIs.json @@ -140,7 +140,7 @@ "type": "Identifier", "span": { "start": 223, - "end": 237, + "end": 229, "ctxt": 0 }, "value": "locale", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.6.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.6.json index 3f7c4c710518..d726ea730ba6 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.6.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.6.json @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 383, - "end": 392, + "end": 384, "ctxt": 0 }, "value": "v", @@ -1035,7 +1035,7 @@ "type": "Identifier", "span": { "start": 584, - "end": 593, + "end": 585, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.7.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.7.json index 0e79b9d1a139..208d6cf46295 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.7.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.7.json @@ -334,7 +334,7 @@ "type": "Identifier", "span": { "start": 228, - "end": 239, + "end": 234, "ctxt": 0 }, "value": "method", @@ -370,7 +370,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 254, + "end": 249, "ctxt": 0 }, "value": "_context", @@ -432,7 +432,7 @@ "type": "Identifier", "span": { "start": 281, - "end": 290, + "end": 285, "ctxt": 0 }, "value": "this", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-commentPreservation.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-commentPreservation.json index 95a4d056b4e0..2342e1a5064c 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-commentPreservation.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-commentPreservation.json @@ -328,7 +328,7 @@ "type": "Identifier", "span": { "start": 404, - "end": 417, + "end": 409, "ctxt": 0 }, "value": "value", @@ -803,7 +803,7 @@ "type": "Identifier", "span": { "start": 790, - "end": 803, + "end": 795, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.json index fe98d2036111..aa27f3f07f3c 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.json @@ -126,7 +126,7 @@ "type": "Identifier", "span": { "start": 268, - "end": 281, + "end": 273, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.json index 1177a7d8ed25..06fc303b5d10 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.json @@ -175,7 +175,7 @@ "type": "Identifier", "span": { "start": 286, - "end": 299, + "end": 291, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.json index ada585e564d5..5c15cda89105 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.json @@ -126,7 +126,7 @@ "type": "Identifier", "span": { "start": 275, - "end": 288, + "end": 280, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-parameterProperties.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-parameterProperties.json index ef7d931be817..d7d18392a668 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-parameterProperties.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-parameterProperties.json @@ -108,7 +108,7 @@ "type": "Identifier", "span": { "start": 184, - "end": 199, + "end": 191, "ctxt": 0 }, "value": "message", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-sourceMap.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-sourceMap.json index c1d2754df896..eec2ab2e1e0c 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-sourceMap.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-sourceMap.json @@ -328,7 +328,7 @@ "type": "Identifier", "span": { "start": 274, - "end": 287, + "end": 279, "ctxt": 0 }, "value": "value", @@ -803,7 +803,7 @@ "type": "Identifier", "span": { "start": 495, - "end": 508, + "end": 500, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.6.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.6.json index ae86226efdfe..452d7a8912d6 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.6.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.6.json @@ -573,7 +573,7 @@ "type": "Identifier", "span": { "start": 384, - "end": 393, + "end": 385, "ctxt": 0 }, "value": "v", @@ -1048,7 +1048,7 @@ "type": "Identifier", "span": { "start": 585, - "end": 594, + "end": 586, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-commentPreservation.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-commentPreservation.json index ca9318bf4adf..102cfee5097a 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-commentPreservation.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-commentPreservation.json @@ -341,7 +341,7 @@ "type": "Identifier", "span": { "start": 379, - "end": 392, + "end": 384, "ctxt": 0 }, "value": "value", @@ -816,7 +816,7 @@ "type": "Identifier", "span": { "start": 765, - "end": 778, + "end": 770, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-contextualTypes.2.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-contextualTypes.2.json index eb8c19cca14f..a88a7fb8acd6 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-contextualTypes.2.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-contextualTypes.2.json @@ -353,7 +353,7 @@ "type": "Identifier", "span": { "start": 311, - "end": 325, + "end": 317, "ctxt": 0 }, "value": "source", @@ -461,7 +461,7 @@ "type": "Identifier", "span": { "start": 388, - "end": 433, + "end": 394, "ctxt": 0 }, "value": "target", @@ -485,7 +485,7 @@ "type": "Identifier", "span": { "start": 397, - "end": 407, + "end": 401, "ctxt": 0 }, "value": "this", @@ -614,7 +614,7 @@ "type": "Identifier", "span": { "start": 443, - "end": 524, + "end": 450, "ctxt": 0 }, "value": "context", @@ -682,7 +682,7 @@ "type": "Identifier", "span": { "start": 487, - "end": 497, + "end": 491, "ctxt": 0 }, "value": "this", @@ -1483,7 +1483,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 544, + "end": 538, "ctxt": 0 }, "value": "this", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-emitDecoratorMetadata.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-emitDecoratorMetadata.json index a4d1c66b25e3..73bba5dbc6cb 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-emitDecoratorMetadata.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-emitDecoratorMetadata.json @@ -124,7 +124,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 189, + "end": 181, "ctxt": 0 }, "value": "x", @@ -192,7 +192,7 @@ "type": "Identifier", "span": { "start": 215, - "end": 224, + "end": 216, "ctxt": 0 }, "value": "x", @@ -294,7 +294,7 @@ "type": "Identifier", "span": { "start": 249, - "end": 258, + "end": 250, "ctxt": 0 }, "value": "x", @@ -460,7 +460,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 325, + "end": 317, "ctxt": 0 }, "value": "x", @@ -562,7 +562,7 @@ "type": "Identifier", "span": { "start": 357, - "end": 366, + "end": 358, "ctxt": 0 }, "value": "x", @@ -786,7 +786,7 @@ "type": "Identifier", "span": { "start": 438, - "end": 447, + "end": 439, "ctxt": 0 }, "value": "x", @@ -854,7 +854,7 @@ "type": "Identifier", "span": { "start": 473, - "end": 482, + "end": 474, "ctxt": 0 }, "value": "x", @@ -956,7 +956,7 @@ "type": "Identifier", "span": { "start": 507, - "end": 516, + "end": 508, "ctxt": 0 }, "value": "x", @@ -1122,7 +1122,7 @@ "type": "Identifier", "span": { "start": 574, - "end": 583, + "end": 575, "ctxt": 0 }, "value": "x", @@ -1224,7 +1224,7 @@ "type": "Identifier", "span": { "start": 615, - "end": 624, + "end": 616, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata1.json b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata1.json index 778d6682ca5e..9cc96c1686f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata1.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata1.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 108, - "end": 119, + "end": 111, "ctxt": 0 }, "value": "key", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 134, + "end": 126, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata2.json b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata2.json index 9a21c3ec8f67..51896506049e 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata2.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 108, - "end": 119, + "end": 111, "ctxt": 0 }, "value": "key", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 134, + "end": 126, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata3.json b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata3.json index 5a6c30b0c8d3..987289e0e1e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata3.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata3.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 114, - "end": 125, + "end": 117, "ctxt": 0 }, "value": "key", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 127, - "end": 140, + "end": 132, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata4.json b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata4.json index d3e0fd53c661..af2d24e867ed 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata4.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata4.json @@ -84,7 +84,7 @@ "type": "Identifier", "span": { "start": 149, - "end": 160, + "end": 152, "ctxt": 0 }, "value": "key", @@ -120,7 +120,7 @@ "type": "Identifier", "span": { "start": 162, - "end": 175, + "end": 167, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/everyTypeAssignableToAny.json b/crates/swc_ecma_parser/tests/tsc/everyTypeAssignableToAny.json index 6555285fd0a7..ae37447942eb 100644 --- a/crates/swc_ecma_parser/tests/tsc/everyTypeAssignableToAny.json +++ b/crates/swc_ecma_parser/tests/tsc/everyTypeAssignableToAny.json @@ -1000,7 +1000,7 @@ "type": "Identifier", "span": { "start": 276, - "end": 285, + "end": 277, "ctxt": 0 }, "value": "x", @@ -1243,7 +1243,7 @@ "type": "Identifier", "span": { "start": 350, - "end": 354, + "end": 351, "ctxt": 0 }, "value": "x", @@ -2173,7 +2173,7 @@ "type": "Identifier", "span": { "start": 573, - "end": 577, + "end": 574, "ctxt": 0 }, "value": "x", @@ -2219,7 +2219,7 @@ "type": "Identifier", "span": { "start": 579, - "end": 583, + "end": 580, "ctxt": 0 }, "value": "y", @@ -2265,7 +2265,7 @@ "type": "Identifier", "span": { "start": 585, - "end": 589, + "end": 586, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInitializer.json b/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInitializer.json index 4895e755d215..9d4af6084276 100644 --- a/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInitializer.json @@ -504,7 +504,7 @@ "type": "Identifier", "span": { "start": 157, - "end": 166, + "end": 158, "ctxt": 0 }, "value": "x", @@ -724,7 +724,7 @@ "type": "Identifier", "span": { "start": 276, - "end": 285, + "end": 277, "ctxt": 0 }, "value": "x", @@ -1878,7 +1878,7 @@ "type": "Identifier", "span": { "start": 792, - "end": 801, + "end": 793, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInvalidInitializer.json b/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInvalidInitializer.json index dac8a6c7adc2..7d6cd13860d3 100644 --- a/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInvalidInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInvalidInitializer.json @@ -504,7 +504,7 @@ "type": "Identifier", "span": { "start": 157, - "end": 166, + "end": 158, "ctxt": 0 }, "value": "x", @@ -610,7 +610,7 @@ "type": "Identifier", "span": { "start": 203, - "end": 212, + "end": 204, "ctxt": 0 }, "value": "x", @@ -849,7 +849,7 @@ "type": "Identifier", "span": { "start": 327, - "end": 336, + "end": 328, "ctxt": 0 }, "value": "x", @@ -1101,7 +1101,7 @@ "type": "Identifier", "span": { "start": 456, - "end": 465, + "end": 457, "ctxt": 0 }, "value": "x", @@ -2021,7 +2021,7 @@ "type": "Identifier", "span": { "start": 865, - "end": 874, + "end": 866, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/everyTypeWithInitializer.json b/crates/swc_ecma_parser/tests/tsc/everyTypeWithInitializer.json index 29316c920cd4..82762f2b5e85 100644 --- a/crates/swc_ecma_parser/tests/tsc/everyTypeWithInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/everyTypeWithInitializer.json @@ -504,7 +504,7 @@ "type": "Identifier", "span": { "start": 157, - "end": 166, + "end": 158, "ctxt": 0 }, "value": "x", @@ -724,7 +724,7 @@ "type": "Identifier", "span": { "start": 276, - "end": 285, + "end": 277, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/exhaustiveSwitchStatements1.json b/crates/swc_ecma_parser/tests/tsc/exhaustiveSwitchStatements1.json index dc114deb138c..b478760cd126 100644 --- a/crates/swc_ecma_parser/tests/tsc/exhaustiveSwitchStatements1.json +++ b/crates/swc_ecma_parser/tests/tsc/exhaustiveSwitchStatements1.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 85, - "end": 93, + "end": 86, "ctxt": 0 }, "value": "x", @@ -344,7 +344,7 @@ "type": "Identifier", "span": { "start": 300, - "end": 308, + "end": 301, "ctxt": 0 }, "value": "x", @@ -674,7 +674,7 @@ "type": "Identifier", "span": { "start": 462, - "end": 470, + "end": 463, "ctxt": 0 }, "value": "x", @@ -992,7 +992,7 @@ "type": "Identifier", "span": { "start": 717, - "end": 721, + "end": 718, "ctxt": 0 }, "value": "e", @@ -1222,7 +1222,7 @@ "type": "Identifier", "span": { "start": 824, - "end": 828, + "end": 825, "ctxt": 0 }, "value": "e", @@ -2140,7 +2140,7 @@ "type": "Identifier", "span": { "start": 1305, - "end": 1313, + "end": 1306, "ctxt": 0 }, "value": "s", @@ -2932,7 +2932,7 @@ "type": "Identifier", "span": { "start": 1665, - "end": 1673, + "end": 1666, "ctxt": 0 }, "value": "s", @@ -3737,7 +3737,7 @@ "type": "Identifier", "span": { "start": 2100, - "end": 2109, + "end": 2101, "ctxt": 0 }, "value": "e", @@ -4092,7 +4092,7 @@ "type": "Identifier", "span": { "start": 2263, - "end": 2272, + "end": 2264, "ctxt": 0 }, "value": "e", @@ -4505,7 +4505,7 @@ "type": "Identifier", "span": { "start": 2473, - "end": 2482, + "end": 2474, "ctxt": 0 }, "value": "e", @@ -5503,7 +5503,7 @@ "type": "Identifier", "span": { "start": 3063, - "end": 3073, + "end": 3065, "ctxt": 0 }, "value": "s1", @@ -5549,7 +5549,7 @@ "type": "Identifier", "span": { "start": 3075, - "end": 3085, + "end": 3077, "ctxt": 0 }, "value": "s2", @@ -5886,7 +5886,7 @@ "type": "Identifier", "span": { "start": 3455, - "end": 3465, + "end": 3457, "ctxt": 0 }, "value": "s1", @@ -5932,7 +5932,7 @@ "type": "Identifier", "span": { "start": 3467, - "end": 3477, + "end": 3469, "ctxt": 0 }, "value": "s2", @@ -6240,7 +6240,7 @@ "type": "Identifier", "span": { "start": 3799, - "end": 3811, + "end": 3804, "ctxt": 0 }, "value": "value", @@ -7490,7 +7490,7 @@ "type": "Identifier", "span": { "start": 4537, - "end": 4541, + "end": 4538, "ctxt": 0 }, "value": "o", @@ -7536,7 +7536,7 @@ "type": "Identifier", "span": { "start": 4543, - "end": 4547, + "end": 4544, "ctxt": 0 }, "value": "k", @@ -7927,7 +7927,7 @@ "type": "Identifier", "span": { "start": 4739, - "end": 4743, + "end": 4740, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithTypeParameter.json index 4b5793d25d1d..40a3bf03fa5f 100644 --- a/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithTypeParameter.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 76, - "end": 80, + "end": 77, "ctxt": 0 }, "value": "t", diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignTypes.json b/crates/swc_ecma_parser/tests/tsc/exportAssignTypes.json index e0a0ddaf22a5..239389725bf9 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignTypes.json @@ -454,7 +454,7 @@ "type": "Identifier", "span": { "start": 379, - "end": 383, + "end": 380, "ctxt": 0 }, "value": "a", @@ -1267,7 +1267,7 @@ "type": "Identifier", "span": { "start": 893, - "end": 898, + "end": 895, "ctxt": 0 }, "value": "p1", diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentConstrainedGenericType.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentConstrainedGenericType.json index 110b223d42e4..829890213ff8 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentConstrainedGenericType.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentConstrainedGenericType.json @@ -111,7 +111,7 @@ "type": "Identifier", "span": { "start": 113, - "end": 117, + "end": 114, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedInterface.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedInterface.json index 2a9c9b68acd5..e7bd57f627cf 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedInterface.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 67, + "end": 59, "ctxt": 0 }, "value": "a", @@ -173,7 +173,7 @@ "type": "Identifier", "span": { "start": 108, - "end": 117, + "end": 109, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedModule.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedModule.json index 330b2aee4c1a..2094f421750c 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedModule.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedModule.json @@ -206,7 +206,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 160, + "end": 152, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/exportImportAlias.json b/crates/swc_ecma_parser/tests/tsc/exportImportAlias.json index 192c1f59d7a9..f95bc39b9574 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportImportAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/exportImportAlias.json @@ -143,7 +143,7 @@ "type": "Identifier", "span": { "start": 124, - "end": 133, + "end": 125, "ctxt": 0 }, "value": "x", @@ -182,7 +182,7 @@ "type": "Identifier", "span": { "start": 142, - "end": 151, + "end": 143, "ctxt": 0 }, "value": "y", @@ -1087,7 +1087,7 @@ "type": "Identifier", "span": { "start": 566, - "end": 575, + "end": 567, "ctxt": 0 }, "value": "x", @@ -1126,7 +1126,7 @@ "type": "Identifier", "span": { "start": 584, - "end": 593, + "end": 585, "ctxt": 0 }, "value": "y", @@ -1638,7 +1638,7 @@ "type": "Identifier", "span": { "start": 835, - "end": 847, + "end": 839, "ctxt": 0 }, "value": "name", diff --git a/crates/swc_ecma_parser/tests/tsc/exportSpellingSuggestion.json b/crates/swc_ecma_parser/tests/tsc/exportSpellingSuggestion.json index ec16a5b7b5ac..c28f6f21d035 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportSpellingSuggestion.json +++ b/crates/swc_ecma_parser/tests/tsc/exportSpellingSuggestion.json @@ -39,7 +39,7 @@ "type": "Identifier", "span": { "start": 48, - "end": 56, + "end": 49, "ctxt": 0 }, "value": "x", @@ -75,7 +75,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 69, + "end": 61, "ctxt": 0 }, "value": "msg", diff --git a/crates/swc_ecma_parser/tests/tsc/exportTypeMergedWithExportStarAsNamespace.json b/crates/swc_ecma_parser/tests/tsc/exportTypeMergedWithExportStarAsNamespace.json index 3168b1aa39a2..787ccb5293e6 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportTypeMergedWithExportStarAsNamespace.json +++ b/crates/swc_ecma_parser/tests/tsc/exportTypeMergedWithExportStarAsNamespace.json @@ -538,7 +538,7 @@ "type": "Identifier", "span": { "start": 307, - "end": 315, + "end": 312, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/extendBooleanInterface.json b/crates/swc_ecma_parser/tests/tsc/extendBooleanInterface.json index 5fca56ee4067..a8e6c8a5f66d 100644 --- a/crates/swc_ecma_parser/tests/tsc/extendBooleanInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/extendBooleanInterface.json @@ -99,7 +99,7 @@ "type": "Identifier", "span": { "start": 64, - "end": 68, + "end": 65, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/extendNumberInterface.json b/crates/swc_ecma_parser/tests/tsc/extendNumberInterface.json index f6179645a074..f3938ebef318 100644 --- a/crates/swc_ecma_parser/tests/tsc/extendNumberInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/extendNumberInterface.json @@ -99,7 +99,7 @@ "type": "Identifier", "span": { "start": 63, - "end": 66, + "end": 64, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/extendStringInterface.json b/crates/swc_ecma_parser/tests/tsc/extendStringInterface.json index 2ca3eee88308..eca7fcb807ba 100644 --- a/crates/swc_ecma_parser/tests/tsc/extendStringInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/extendStringInterface.json @@ -99,7 +99,7 @@ "type": "Identifier", "span": { "start": 63, - "end": 66, + "end": 64, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/for-inStatements.json b/crates/swc_ecma_parser/tests/tsc/for-inStatements.json index 7bf03e8e9fcc..7b6432b780b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-inStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/for-inStatements.json @@ -1570,7 +1570,7 @@ "type": "Identifier", "span": { "start": 537, - "end": 546, + "end": 538, "ctxt": 0 }, "value": "x", @@ -1606,7 +1606,7 @@ "type": "Identifier", "span": { "start": 548, - "end": 557, + "end": 549, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/for-inStatementsInvalid.json b/crates/swc_ecma_parser/tests/tsc/for-inStatementsInvalid.json index 4543f24c4327..a799c0b061a0 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-inStatementsInvalid.json +++ b/crates/swc_ecma_parser/tests/tsc/for-inStatementsInvalid.json @@ -1352,7 +1352,7 @@ "type": "Identifier", "span": { "start": 492, - "end": 501, + "end": 493, "ctxt": 0 }, "value": "x", @@ -1388,7 +1388,7 @@ "type": "Identifier", "span": { "start": 503, - "end": 512, + "end": 504, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/forStatements.json b/crates/swc_ecma_parser/tests/tsc/forStatements.json index c67e72837a4c..76d69266778d 100644 --- a/crates/swc_ecma_parser/tests/tsc/forStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/forStatements.json @@ -504,7 +504,7 @@ "type": "Identifier", "span": { "start": 189, - "end": 198, + "end": 190, "ctxt": 0 }, "value": "x", @@ -724,7 +724,7 @@ "type": "Identifier", "span": { "start": 308, - "end": 317, + "end": 309, "ctxt": 0 }, "value": "x", @@ -2132,7 +2132,7 @@ "type": "Identifier", "span": { "start": 933, - "end": 942, + "end": 934, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleInvalidDecl.json b/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleInvalidDecl.json index d7b413610abf..60c09ddb5737 100644 --- a/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleInvalidDecl.json +++ b/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleInvalidDecl.json @@ -630,7 +630,7 @@ "type": "Identifier", "span": { "start": 251, - "end": 260, + "end": 252, "ctxt": 0 }, "value": "x", @@ -850,7 +850,7 @@ "type": "Identifier", "span": { "start": 370, - "end": 379, + "end": 371, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleValidDecl.json b/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleValidDecl.json index 4ef0cf2b1d99..fec626363147 100644 --- a/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleValidDecl.json +++ b/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleValidDecl.json @@ -1406,7 +1406,7 @@ "type": "Identifier", "span": { "start": 682, - "end": 691, + "end": 683, "ctxt": 0 }, "value": "s", @@ -1640,7 +1640,7 @@ "type": "Identifier", "span": { "start": 769, - "end": 778, + "end": 770, "ctxt": 0 }, "value": "s", @@ -1762,7 +1762,7 @@ "type": "Identifier", "span": { "start": 814, - "end": 823, + "end": 815, "ctxt": 0 }, "value": "s", @@ -1888,7 +1888,7 @@ "type": "Identifier", "span": { "start": 859, - "end": 868, + "end": 860, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction.json b/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction.json index 7971dd6f1ce0..8231b64b6f92 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction.json +++ b/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 99, - "end": 103, + "end": 100, "ctxt": 0 }, "value": "x", @@ -1107,7 +1107,7 @@ "type": "Identifier", "span": { "start": 434, - "end": 445, + "end": 435, "ctxt": 0 }, "value": "x", @@ -1523,7 +1523,7 @@ "type": "Identifier", "span": { "start": 554, - "end": 558, + "end": 555, "ctxt": 0 }, "value": "x", @@ -1833,7 +1833,7 @@ "type": "Identifier", "span": { "start": 630, - "end": 634, + "end": 631, "ctxt": 0 }, "value": "x", @@ -1990,7 +1990,7 @@ "type": "Identifier", "span": { "start": 660, - "end": 664, + "end": 661, "ctxt": 0 }, "value": "x", @@ -2147,7 +2147,7 @@ "type": "Identifier", "span": { "start": 686, - "end": 690, + "end": 687, "ctxt": 0 }, "value": "x", @@ -2254,7 +2254,7 @@ "type": "Identifier", "span": { "start": 700, - "end": 704, + "end": 701, "ctxt": 0 }, "value": "x", @@ -2291,7 +2291,7 @@ "type": "Identifier", "span": { "start": 706, - "end": 710, + "end": 707, "ctxt": 0 }, "value": "y", @@ -2608,7 +2608,7 @@ "type": "Identifier", "span": { "start": 776, - "end": 780, + "end": 777, "ctxt": 0 }, "value": "x", @@ -3605,7 +3605,7 @@ "type": "Identifier", "span": { "start": 1100, - "end": 1104, + "end": 1101, "ctxt": 0 }, "value": "x", @@ -3651,7 +3651,7 @@ "type": "Identifier", "span": { "start": 1106, - "end": 1110, + "end": 1107, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction2.json b/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction2.json index 550c07a36b3e..0a63397cd042 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction2.json +++ b/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 139, - "end": 143, + "end": 140, "ctxt": 0 }, "value": "x", @@ -384,7 +384,7 @@ "type": "Identifier", "span": { "start": 257, - "end": 261, + "end": 258, "ctxt": 0 }, "value": "x", @@ -495,7 +495,7 @@ "type": "Identifier", "span": { "start": 235, - "end": 244, + "end": 236, "ctxt": 0 }, "value": "x", @@ -695,7 +695,7 @@ "type": "Identifier", "span": { "start": 325, - "end": 334, + "end": 326, "ctxt": 0 }, "value": "x", @@ -914,7 +914,7 @@ "type": "Identifier", "span": { "start": 395, - "end": 399, + "end": 396, "ctxt": 0 }, "value": "x", @@ -2074,7 +2074,7 @@ "type": "Identifier", "span": { "start": 773, - "end": 777, + "end": 774, "ctxt": 0 }, "value": "x", @@ -2120,7 +2120,7 @@ "type": "Identifier", "span": { "start": 779, - "end": 783, + "end": 780, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction3.json b/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction3.json index 90492afb1ed2..0682892532af 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction3.json +++ b/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction3.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 112, - "end": 116, + "end": 113, "ctxt": 0 }, "value": "x", @@ -143,7 +143,7 @@ "type": "Identifier", "span": { "start": 90, - "end": 99, + "end": 91, "ctxt": 0 }, "value": "x", @@ -1059,7 +1059,7 @@ "type": "Identifier", "span": { "start": 416, - "end": 425, + "end": 417, "ctxt": 0 }, "value": "x", @@ -1335,7 +1335,7 @@ "type": "Identifier", "span": { "start": 500, - "end": 504, + "end": 501, "ctxt": 0 }, "value": "x", @@ -1645,7 +1645,7 @@ "type": "Identifier", "span": { "start": 576, - "end": 580, + "end": 577, "ctxt": 0 }, "value": "x", @@ -1802,7 +1802,7 @@ "type": "Identifier", "span": { "start": 606, - "end": 610, + "end": 607, "ctxt": 0 }, "value": "x", @@ -1959,7 +1959,7 @@ "type": "Identifier", "span": { "start": 632, - "end": 636, + "end": 633, "ctxt": 0 }, "value": "x", @@ -2066,7 +2066,7 @@ "type": "Identifier", "span": { "start": 646, - "end": 650, + "end": 647, "ctxt": 0 }, "value": "x", @@ -2103,7 +2103,7 @@ "type": "Identifier", "span": { "start": 652, - "end": 656, + "end": 653, "ctxt": 0 }, "value": "y", @@ -2271,7 +2271,7 @@ "type": "Identifier", "span": { "start": 691, - "end": 695, + "end": 692, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping1.json b/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping1.json index d28a006b785d..3d180b604958 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping1.json +++ b/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping1.json @@ -111,7 +111,7 @@ "type": "Identifier", "span": { "start": 434, - "end": 443, + "end": 435, "ctxt": 0 }, "value": "n", @@ -138,7 +138,7 @@ "type": "Identifier", "span": { "start": 445, - "end": 454, + "end": 446, "ctxt": 0 }, "value": "s", @@ -447,7 +447,7 @@ "type": "Identifier", "span": { "start": 569, - "end": 585, + "end": 570, "ctxt": 0 }, "value": "c", @@ -693,7 +693,7 @@ "type": "Identifier", "span": { "start": 1088, - "end": 1097, + "end": 1089, "ctxt": 0 }, "value": "s", @@ -720,7 +720,7 @@ "type": "Identifier", "span": { "start": 1099, - "end": 1109, + "end": 1100, "ctxt": 0 }, "value": "w", @@ -783,7 +783,7 @@ "type": "Identifier", "span": { "start": 1124, - "end": 1133, + "end": 1125, "ctxt": 0 }, "value": "s", @@ -810,7 +810,7 @@ "type": "Identifier", "span": { "start": 1135, - "end": 1145, + "end": 1136, "ctxt": 0 }, "value": "w", @@ -1015,7 +1015,7 @@ "type": "Identifier", "span": { "start": 1201, - "end": 1210, + "end": 1202, "ctxt": 0 }, "value": "n", @@ -1042,7 +1042,7 @@ "type": "Identifier", "span": { "start": 1212, - "end": 1221, + "end": 1213, "ctxt": 0 }, "value": "s", @@ -1343,7 +1343,7 @@ "type": "Identifier", "span": { "start": 1322, - "end": 1334, + "end": 1326, "ctxt": 0 }, "value": "name", @@ -1370,7 +1370,7 @@ "type": "Identifier", "span": { "start": 1336, - "end": 1347, + "end": 1339, "ctxt": 0 }, "value": "num", @@ -1397,7 +1397,7 @@ "type": "Identifier", "span": { "start": 1349, - "end": 1361, + "end": 1352, "ctxt": 0 }, "value": "boo", @@ -1565,7 +1565,7 @@ "type": "Identifier", "span": { "start": 1410, - "end": 1414, + "end": 1411, "ctxt": 0 }, "value": "n", @@ -1740,7 +1740,7 @@ "type": "Identifier", "span": { "start": 1474, - "end": 1479, + "end": 1475, "ctxt": 0 }, "value": "n", @@ -1920,7 +1920,7 @@ "type": "Identifier", "span": { "start": 1711, - "end": 1720, + "end": 1712, "ctxt": 0 }, "value": "s", @@ -1947,7 +1947,7 @@ "type": "Identifier", "span": { "start": 1722, - "end": 1732, + "end": 1723, "ctxt": 0 }, "value": "w", @@ -2010,7 +2010,7 @@ "type": "Identifier", "span": { "start": 1747, - "end": 1756, + "end": 1748, "ctxt": 0 }, "value": "n", @@ -2123,7 +2123,7 @@ "type": "Identifier", "span": { "start": 1780, - "end": 1789, + "end": 1781, "ctxt": 0 }, "value": "s", @@ -2150,7 +2150,7 @@ "type": "Identifier", "span": { "start": 1791, - "end": 1801, + "end": 1792, "ctxt": 0 }, "value": "w", @@ -2213,7 +2213,7 @@ "type": "Identifier", "span": { "start": 1816, - "end": 1825, + "end": 1817, "ctxt": 0 }, "value": "s", @@ -2240,7 +2240,7 @@ "type": "Identifier", "span": { "start": 1827, - "end": 1836, + "end": 1828, "ctxt": 0 }, "value": "w", @@ -2708,7 +2708,7 @@ "type": "Identifier", "span": { "start": 2204, - "end": 2208, + "end": 2205, "ctxt": 0 }, "value": "j", @@ -2745,7 +2745,7 @@ "type": "Identifier", "span": { "start": 2210, - "end": 2214, + "end": 2211, "ctxt": 0 }, "value": "k", @@ -2873,7 +2873,7 @@ "type": "Identifier", "span": { "start": 2232, - "end": 2241, + "end": 2233, "ctxt": 0 }, "value": "j", @@ -2900,7 +2900,7 @@ "type": "Identifier", "span": { "start": 2242, - "end": 2246, + "end": 2243, "ctxt": 0 }, "value": "k", diff --git a/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping2.json b/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping2.json index b4191784daf9..26feba650cb1 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping2.json +++ b/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping2.json @@ -51,7 +51,7 @@ "type": "Identifier", "span": { "start": 672, - "end": 681, + "end": 673, "ctxt": 0 }, "value": "n", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 683, - "end": 692, + "end": 684, "ctxt": 0 }, "value": "s", @@ -207,7 +207,7 @@ "type": "Identifier", "span": { "start": 726, - "end": 735, + "end": 727, "ctxt": 0 }, "value": "n", @@ -234,7 +234,7 @@ "type": "Identifier", "span": { "start": 737, - "end": 746, + "end": 738, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping3.json b/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping3.json index 06a3ece5cf7f..f83b9448ba0c 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping3.json +++ b/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping3.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 75, + "end": 63, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/functionImplementations.json b/crates/swc_ecma_parser/tests/tsc/functionImplementations.json index e13af5cd3995..3b94db5d6531 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionImplementations.json +++ b/crates/swc_ecma_parser/tests/tsc/functionImplementations.json @@ -1351,7 +1351,7 @@ "type": "Identifier", "span": { "start": 1442, - "end": 1446, + "end": 1443, "ctxt": 0 }, "value": "x", @@ -1529,7 +1529,7 @@ "type": "Identifier", "span": { "start": 1603, - "end": 1607, + "end": 1604, "ctxt": 0 }, "value": "x", @@ -2923,7 +2923,7 @@ "type": "Identifier", "span": { "start": 3348, - "end": 3357, + "end": 3349, "ctxt": 0 }, "value": "n", @@ -3340,7 +3340,7 @@ "type": "Identifier", "span": { "start": 3931, - "end": 3940, + "end": 3932, "ctxt": 0 }, "value": "x", @@ -3600,7 +3600,7 @@ "type": "Identifier", "span": { "start": 4079, - "end": 4088, + "end": 4080, "ctxt": 0 }, "value": "x", @@ -3785,7 +3785,7 @@ "type": "Identifier", "span": { "start": 4200, - "end": 4209, + "end": 4201, "ctxt": 0 }, "value": "x", @@ -3998,7 +3998,7 @@ "type": "Identifier", "span": { "start": 4348, - "end": 4357, + "end": 4349, "ctxt": 0 }, "value": "x", @@ -4183,7 +4183,7 @@ "type": "Identifier", "span": { "start": 4487, - "end": 4496, + "end": 4488, "ctxt": 0 }, "value": "x", @@ -4368,7 +4368,7 @@ "type": "Identifier", "span": { "start": 4628, - "end": 4637, + "end": 4629, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/functionLiteral.json b/crates/swc_ecma_parser/tests/tsc/functionLiteral.json index 2575c59fa4b0..4d2ccaa86692 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/functionLiteral.json @@ -191,7 +191,7 @@ "type": "Identifier", "span": { "start": 99, - "end": 108, + "end": 100, "ctxt": 0 }, "value": "x", @@ -288,7 +288,7 @@ "type": "Identifier", "span": { "start": 130, - "end": 139, + "end": 131, "ctxt": 0 }, "value": "x", @@ -391,7 +391,7 @@ "type": "Identifier", "span": { "start": 166, - "end": 170, + "end": 167, "ctxt": 0 }, "value": "x", @@ -640,7 +640,7 @@ "type": "Identifier", "span": { "start": 210, - "end": 219, + "end": 211, "ctxt": 0 }, "value": "x", @@ -737,7 +737,7 @@ "type": "Identifier", "span": { "start": 245, - "end": 254, + "end": 246, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/functionLiteralForOverloads.json b/crates/swc_ecma_parser/tests/tsc/functionLiteralForOverloads.json index 861e3425de71..2217133dbcb7 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionLiteralForOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/functionLiteralForOverloads.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 75, + "end": 67, "ctxt": 0 }, "value": "x", @@ -114,7 +114,7 @@ "type": "Identifier", "span": { "start": 91, - "end": 100, + "end": 92, "ctxt": 0 }, "value": "x", @@ -253,7 +253,7 @@ "type": "Identifier", "span": { "start": 144, - "end": 153, + "end": 145, "ctxt": 0 }, "value": "x", @@ -340,7 +340,7 @@ "type": "Identifier", "span": { "start": 172, - "end": 181, + "end": 173, "ctxt": 0 }, "value": "x", @@ -511,7 +511,7 @@ "type": "Identifier", "span": { "start": 225, - "end": 229, + "end": 226, "ctxt": 0 }, "value": "x", @@ -608,7 +608,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 252, + "end": 249, "ctxt": 0 }, "value": "x", @@ -789,7 +789,7 @@ "type": "Identifier", "span": { "start": 296, - "end": 305, + "end": 297, "ctxt": 0 }, "value": "x", @@ -886,7 +886,7 @@ "type": "Identifier", "span": { "start": 319, - "end": 328, + "end": 320, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/functionLiteralForOverloads2.json b/crates/swc_ecma_parser/tests/tsc/functionLiteralForOverloads2.json index ca3393b0c563..dfba87b620a6 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionLiteralForOverloads2.json +++ b/crates/swc_ecma_parser/tests/tsc/functionLiteralForOverloads2.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 90, - "end": 99, + "end": 91, "ctxt": 0 }, "value": "x", @@ -115,7 +115,7 @@ "type": "Identifier", "span": { "start": 118, - "end": 127, + "end": 119, "ctxt": 0 }, "value": "x", @@ -252,7 +252,7 @@ "type": "Identifier", "span": { "start": 185, - "end": 194, + "end": 186, "ctxt": 0 }, "value": "x", @@ -311,7 +311,7 @@ "type": "Identifier", "span": { "start": 213, - "end": 222, + "end": 214, "ctxt": 0 }, "value": "x", @@ -483,7 +483,7 @@ "type": "Identifier", "span": { "start": 268, - "end": 277, + "end": 269, "ctxt": 0 }, "value": "x", @@ -548,7 +548,7 @@ "type": "Identifier", "span": { "start": 291, - "end": 300, + "end": 292, "ctxt": 0 }, "value": "x", @@ -672,7 +672,7 @@ "type": "Identifier", "span": { "start": 335, - "end": 344, + "end": 336, "ctxt": 0 }, "value": "x", @@ -769,7 +769,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 370, + "end": 362, "ctxt": 0 }, "value": "x", @@ -925,7 +925,7 @@ "type": "Identifier", "span": { "start": 405, - "end": 414, + "end": 406, "ctxt": 0 }, "value": "x", @@ -1050,7 +1050,7 @@ "type": "Identifier", "span": { "start": 434, - "end": 443, + "end": 435, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/functionLiterals.json b/crates/swc_ecma_parser/tests/tsc/functionLiterals.json index b635b4b82740..1657421f38d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/functionLiterals.json @@ -72,7 +72,7 @@ "type": "Identifier", "span": { "start": 140, - "end": 149, + "end": 141, "ctxt": 0 }, "value": "x", @@ -156,7 +156,7 @@ "type": "Identifier", "span": { "start": 200, - "end": 209, + "end": 201, "ctxt": 0 }, "value": "x", @@ -251,7 +251,7 @@ "type": "Identifier", "span": { "start": 265, - "end": 274, + "end": 266, "ctxt": 0 }, "value": "x", @@ -812,7 +812,7 @@ "type": "Identifier", "span": { "start": 462, - "end": 471, + "end": 463, "ctxt": 0 }, "value": "x", @@ -880,7 +880,7 @@ "type": "Identifier", "span": { "start": 492, - "end": 501, + "end": 493, "ctxt": 0 }, "value": "s", @@ -972,7 +972,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 543, + "end": 535, "ctxt": 0 }, "value": "x", @@ -1027,7 +1027,7 @@ "type": "Identifier", "span": { "start": 563, - "end": 572, + "end": 564, "ctxt": 0 }, "value": "s", @@ -1296,7 +1296,7 @@ "type": "Identifier", "span": { "start": 689, - "end": 693, + "end": 690, "ctxt": 0 }, "value": "x", @@ -1422,7 +1422,7 @@ "type": "Identifier", "span": { "start": 747, - "end": 751, + "end": 748, "ctxt": 0 }, "value": "x", @@ -1559,7 +1559,7 @@ "type": "Identifier", "span": { "start": 810, - "end": 814, + "end": 811, "ctxt": 0 }, "value": "x", @@ -2162,7 +2162,7 @@ "type": "Identifier", "span": { "start": 1018, - "end": 1022, + "end": 1019, "ctxt": 0 }, "value": "x", @@ -2272,7 +2272,7 @@ "type": "Identifier", "span": { "start": 1046, - "end": 1050, + "end": 1047, "ctxt": 0 }, "value": "s", @@ -2406,7 +2406,7 @@ "type": "Identifier", "span": { "start": 1086, - "end": 1090, + "end": 1087, "ctxt": 0 }, "value": "x", @@ -2503,7 +2503,7 @@ "type": "Identifier", "span": { "start": 1113, - "end": 1117, + "end": 1114, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/functionOverloadCompatibilityWithVoid01.json b/crates/swc_ecma_parser/tests/tsc/functionOverloadCompatibilityWithVoid01.json index 37d4b271d6fc..c84aac4c3e01 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionOverloadCompatibilityWithVoid01.json +++ b/crates/swc_ecma_parser/tests/tsc/functionOverloadCompatibilityWithVoid01.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 12, - "end": 21, + "end": 13, "ctxt": 0 }, "value": "x", @@ -111,7 +111,7 @@ "type": "Identifier", "span": { "start": 43, - "end": 52, + "end": 44, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/functionOverloadCompatibilityWithVoid02.json b/crates/swc_ecma_parser/tests/tsc/functionOverloadCompatibilityWithVoid02.json index c42ad81afed1..0adf8576343b 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionOverloadCompatibilityWithVoid02.json +++ b/crates/swc_ecma_parser/tests/tsc/functionOverloadCompatibilityWithVoid02.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 12, - "end": 21, + "end": 13, "ctxt": 0 }, "value": "x", @@ -111,7 +111,7 @@ "type": "Identifier", "span": { "start": 41, - "end": 50, + "end": 42, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/functionOverloadCompatibilityWithVoid03.json b/crates/swc_ecma_parser/tests/tsc/functionOverloadCompatibilityWithVoid03.json index 055d0ab2e822..a7dae885793d 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionOverloadCompatibilityWithVoid03.json +++ b/crates/swc_ecma_parser/tests/tsc/functionOverloadCompatibilityWithVoid03.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 12, - "end": 21, + "end": 13, "ctxt": 0 }, "value": "x", @@ -111,7 +111,7 @@ "type": "Identifier", "span": { "start": 41, - "end": 50, + "end": 42, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/functionOverloadErrors.json b/crates/swc_ecma_parser/tests/tsc/functionOverloadErrors.json index e152b1c125b5..d173b829b922 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionOverloadErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/functionOverloadErrors.json @@ -217,7 +217,7 @@ "type": "Identifier", "span": { "start": 217, - "end": 228, + "end": 218, "ctxt": 0 }, "value": "n", @@ -288,7 +288,7 @@ "type": "Identifier", "span": { "start": 245, - "end": 261, + "end": 246, "ctxt": 0 }, "value": "n", @@ -413,7 +413,7 @@ "type": "Identifier", "span": { "start": 370, - "end": 379, + "end": 371, "ctxt": 0 }, "value": "x", @@ -492,7 +492,7 @@ "type": "Identifier", "span": { "start": 403, - "end": 412, + "end": 404, "ctxt": 0 }, "value": "y", @@ -723,7 +723,7 @@ "type": "Identifier", "span": { "start": 585, - "end": 592, + "end": 586, "ctxt": 0 }, "value": "x", @@ -905,7 +905,7 @@ "type": "Identifier", "span": { "start": 733, - "end": 740, + "end": 734, "ctxt": 0 }, "value": "x", @@ -941,7 +941,7 @@ "type": "Identifier", "span": { "start": 742, - "end": 749, + "end": 743, "ctxt": 0 }, "value": "y", @@ -977,7 +977,7 @@ "type": "Identifier", "span": { "start": 751, - "end": 758, + "end": 752, "ctxt": 0 }, "value": "z", @@ -1074,7 +1074,7 @@ "type": "Identifier", "span": { "start": 858, - "end": 867, + "end": 859, "ctxt": 0 }, "value": "n", @@ -1169,7 +1169,7 @@ "type": "Identifier", "span": { "start": 886, - "end": 895, + "end": 887, "ctxt": 0 }, "value": "n", @@ -1298,7 +1298,7 @@ "type": "Identifier", "span": { "start": 1035, - "end": 1039, + "end": 1036, "ctxt": 0 }, "value": "n", @@ -1403,7 +1403,7 @@ "type": "Identifier", "span": { "start": 1058, - "end": 1062, + "end": 1059, "ctxt": 0 }, "value": "n", @@ -2397,7 +2397,7 @@ "type": "Identifier", "span": { "start": 1844, - "end": 1853, + "end": 1845, "ctxt": 0 }, "value": "s", @@ -2518,7 +2518,7 @@ "type": "Identifier", "span": { "start": 1883, - "end": 1892, + "end": 1884, "ctxt": 0 }, "value": "s", @@ -2740,7 +2740,7 @@ "type": "Identifier", "span": { "start": 2024, - "end": 2033, + "end": 2025, "ctxt": 0 }, "value": "n", @@ -2837,7 +2837,7 @@ "type": "Identifier", "span": { "start": 2078, - "end": 2087, + "end": 2079, "ctxt": 0 }, "value": "n", @@ -3005,7 +3005,7 @@ "type": "Identifier", "span": { "start": 2235, - "end": 2244, + "end": 2236, "ctxt": 0 }, "value": "s", @@ -3128,7 +3128,7 @@ "type": "Identifier", "span": { "start": 2307, - "end": 2316, + "end": 2308, "ctxt": 0 }, "value": "s", @@ -3251,7 +3251,7 @@ "type": "Identifier", "span": { "start": 2454, - "end": 2463, + "end": 2455, "ctxt": 0 }, "value": "n", @@ -3322,7 +3322,7 @@ "type": "Identifier", "span": { "start": 2602, - "end": 2611, + "end": 2603, "ctxt": 0 }, "value": "n", @@ -3385,7 +3385,7 @@ "type": "Identifier", "span": { "start": 2628, - "end": 2637, + "end": 2629, "ctxt": 0 }, "value": "n", @@ -3456,7 +3456,7 @@ "type": "Identifier", "span": { "start": 2748, - "end": 2757, + "end": 2749, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/functionWithMultipleReturnStatements.json b/crates/swc_ecma_parser/tests/tsc/functionWithMultipleReturnStatements.json index bd6947869bb6..fa376e0781d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionWithMultipleReturnStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/functionWithMultipleReturnStatements.json @@ -610,7 +610,7 @@ "type": "Identifier", "span": { "start": 687, - "end": 691, + "end": 688, "ctxt": 0 }, "value": "x", @@ -656,7 +656,7 @@ "type": "Identifier", "span": { "start": 693, - "end": 696, + "end": 694, "ctxt": 0 }, "value": "y", @@ -866,7 +866,7 @@ "type": "Identifier", "span": { "start": 815, - "end": 819, + "end": 816, "ctxt": 0 }, "value": "x", @@ -912,7 +912,7 @@ "type": "Identifier", "span": { "start": 821, - "end": 825, + "end": 822, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/functionWithMultipleReturnStatements2.json b/crates/swc_ecma_parser/tests/tsc/functionWithMultipleReturnStatements2.json index 68b55caf4560..46874abcfd9e 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionWithMultipleReturnStatements2.json +++ b/crates/swc_ecma_parser/tests/tsc/functionWithMultipleReturnStatements2.json @@ -516,7 +516,7 @@ "type": "Identifier", "span": { "start": 588, - "end": 592, + "end": 589, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/generatedContextualTyping.json b/crates/swc_ecma_parser/tests/tsc/generatedContextualTyping.json index 0444a3eb03d6..2424d5e20740 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatedContextualTyping.json +++ b/crates/swc_ecma_parser/tests/tsc/generatedContextualTyping.json @@ -277,7 +277,7 @@ "type": "Identifier", "span": { "start": 172, - "end": 178, + "end": 173, "ctxt": 0 }, "value": "n", @@ -1970,7 +1970,7 @@ "type": "Identifier", "span": { "start": 719, - "end": 728, + "end": 720, "ctxt": 0 }, "value": "s", @@ -4215,7 +4215,7 @@ "type": "Identifier", "span": { "start": 1452, - "end": 1461, + "end": 1453, "ctxt": 0 }, "value": "s", @@ -6377,7 +6377,7 @@ "type": "Identifier", "span": { "start": 2286, - "end": 2295, + "end": 2287, "ctxt": 0 }, "value": "s", @@ -8539,7 +8539,7 @@ "type": "Identifier", "span": { "start": 3117, - "end": 3126, + "end": 3118, "ctxt": 0 }, "value": "s", @@ -10701,7 +10701,7 @@ "type": "Identifier", "span": { "start": 3947, - "end": 3956, + "end": 3948, "ctxt": 0 }, "value": "s", @@ -12863,7 +12863,7 @@ "type": "Identifier", "span": { "start": 4865, - "end": 4874, + "end": 4866, "ctxt": 0 }, "value": "s", @@ -15025,7 +15025,7 @@ "type": "Identifier", "span": { "start": 5780, - "end": 5789, + "end": 5781, "ctxt": 0 }, "value": "s", @@ -15372,7 +15372,7 @@ "type": "Identifier", "span": { "start": 5950, - "end": 5968, + "end": 5954, "ctxt": 0 }, "value": "parm", @@ -15559,7 +15559,7 @@ "type": "Identifier", "span": { "start": 6017, - "end": 6035, + "end": 6021, "ctxt": 0 }, "value": "parm", @@ -15766,7 +15766,7 @@ "type": "Identifier", "span": { "start": 6100, - "end": 6118, + "end": 6104, "ctxt": 0 }, "value": "parm", @@ -15982,7 +15982,7 @@ "type": "Identifier", "span": { "start": 6189, - "end": 6210, + "end": 6193, "ctxt": 0 }, "value": "parm", @@ -16179,7 +16179,7 @@ "type": "Identifier", "span": { "start": 6259, - "end": 6280, + "end": 6263, "ctxt": 0 }, "value": "parm", @@ -16396,7 +16396,7 @@ "type": "Identifier", "span": { "start": 6345, - "end": 6366, + "end": 6349, "ctxt": 0 }, "value": "parm", @@ -16622,7 +16622,7 @@ "type": "Identifier", "span": { "start": 6437, - "end": 6449, + "end": 6441, "ctxt": 0 }, "value": "parm", @@ -16778,7 +16778,7 @@ "type": "Identifier", "span": { "start": 6492, - "end": 6509, + "end": 6496, "ctxt": 0 }, "value": "parm", @@ -16954,7 +16954,7 @@ "type": "Identifier", "span": { "start": 6552, - "end": 6580, + "end": 6556, "ctxt": 0 }, "value": "parm", @@ -17159,7 +17159,7 @@ "type": "Identifier", "span": { "start": 6623, - "end": 6642, + "end": 6627, "ctxt": 0 }, "value": "parm", @@ -17380,7 +17380,7 @@ "type": "Identifier", "span": { "start": 6693, - "end": 6717, + "end": 6697, "ctxt": 0 }, "value": "parm", @@ -17404,7 +17404,7 @@ "type": "Identifier", "span": { "start": 6700, - "end": 6709, + "end": 6701, "ctxt": 0 }, "value": "s", @@ -17664,7 +17664,7 @@ "type": "Identifier", "span": { "start": 6788, - "end": 6806, + "end": 6792, "ctxt": 0 }, "value": "parm", @@ -17909,7 +17909,7 @@ "type": "Identifier", "span": { "start": 6883, - "end": 6901, + "end": 6887, "ctxt": 0 }, "value": "parm", @@ -18099,7 +18099,7 @@ "type": "Identifier", "span": { "start": 6957, - "end": 6975, + "end": 6961, "ctxt": 0 }, "value": "parm", @@ -18309,7 +18309,7 @@ "type": "Identifier", "span": { "start": 7047, - "end": 7065, + "end": 7051, "ctxt": 0 }, "value": "parm", @@ -18528,7 +18528,7 @@ "type": "Identifier", "span": { "start": 7144, - "end": 7165, + "end": 7148, "ctxt": 0 }, "value": "parm", @@ -18728,7 +18728,7 @@ "type": "Identifier", "span": { "start": 7222, - "end": 7243, + "end": 7226, "ctxt": 0 }, "value": "parm", @@ -18948,7 +18948,7 @@ "type": "Identifier", "span": { "start": 7316, - "end": 7337, + "end": 7320, "ctxt": 0 }, "value": "parm", @@ -19177,7 +19177,7 @@ "type": "Identifier", "span": { "start": 7416, - "end": 7428, + "end": 7420, "ctxt": 0 }, "value": "parm", @@ -19336,7 +19336,7 @@ "type": "Identifier", "span": { "start": 7479, - "end": 7496, + "end": 7483, "ctxt": 0 }, "value": "parm", @@ -19515,7 +19515,7 @@ "type": "Identifier", "span": { "start": 7547, - "end": 7575, + "end": 7551, "ctxt": 0 }, "value": "parm", @@ -19723,7 +19723,7 @@ "type": "Identifier", "span": { "start": 7626, - "end": 7645, + "end": 7630, "ctxt": 0 }, "value": "parm", @@ -19947,7 +19947,7 @@ "type": "Identifier", "span": { "start": 7704, - "end": 7728, + "end": 7708, "ctxt": 0 }, "value": "parm", @@ -19971,7 +19971,7 @@ "type": "Identifier", "span": { "start": 7711, - "end": 7720, + "end": 7712, "ctxt": 0 }, "value": "s", @@ -20234,7 +20234,7 @@ "type": "Identifier", "span": { "start": 7807, - "end": 7825, + "end": 7811, "ctxt": 0 }, "value": "parm", @@ -20479,7 +20479,7 @@ "type": "Identifier", "span": { "start": 7904, - "end": 7922, + "end": 7908, "ctxt": 0 }, "value": "parm", @@ -20669,7 +20669,7 @@ "type": "Identifier", "span": { "start": 7980, - "end": 7998, + "end": 7984, "ctxt": 0 }, "value": "parm", @@ -20879,7 +20879,7 @@ "type": "Identifier", "span": { "start": 8072, - "end": 8090, + "end": 8076, "ctxt": 0 }, "value": "parm", @@ -21098,7 +21098,7 @@ "type": "Identifier", "span": { "start": 8170, - "end": 8191, + "end": 8174, "ctxt": 0 }, "value": "parm", @@ -21298,7 +21298,7 @@ "type": "Identifier", "span": { "start": 8249, - "end": 8270, + "end": 8253, "ctxt": 0 }, "value": "parm", @@ -21518,7 +21518,7 @@ "type": "Identifier", "span": { "start": 8344, - "end": 8365, + "end": 8348, "ctxt": 0 }, "value": "parm", @@ -21747,7 +21747,7 @@ "type": "Identifier", "span": { "start": 8445, - "end": 8457, + "end": 8449, "ctxt": 0 }, "value": "parm", @@ -21906,7 +21906,7 @@ "type": "Identifier", "span": { "start": 8509, - "end": 8526, + "end": 8513, "ctxt": 0 }, "value": "parm", @@ -22085,7 +22085,7 @@ "type": "Identifier", "span": { "start": 8578, - "end": 8606, + "end": 8582, "ctxt": 0 }, "value": "parm", @@ -22293,7 +22293,7 @@ "type": "Identifier", "span": { "start": 8658, - "end": 8677, + "end": 8662, "ctxt": 0 }, "value": "parm", @@ -22517,7 +22517,7 @@ "type": "Identifier", "span": { "start": 8737, - "end": 8761, + "end": 8741, "ctxt": 0 }, "value": "parm", @@ -22541,7 +22541,7 @@ "type": "Identifier", "span": { "start": 8744, - "end": 8753, + "end": 8745, "ctxt": 0 }, "value": "s", @@ -22804,7 +22804,7 @@ "type": "Identifier", "span": { "start": 8841, - "end": 8859, + "end": 8845, "ctxt": 0 }, "value": "parm", @@ -23022,7 +23022,7 @@ "type": "Identifier", "span": { "start": 8919, - "end": 8937, + "end": 8923, "ctxt": 0 }, "value": "parm", @@ -23186,7 +23186,7 @@ "type": "Identifier", "span": { "start": 8974, - "end": 8992, + "end": 8978, "ctxt": 0 }, "value": "parm", @@ -23370,7 +23370,7 @@ "type": "Identifier", "span": { "start": 9045, - "end": 9063, + "end": 9049, "ctxt": 0 }, "value": "parm", @@ -23563,7 +23563,7 @@ "type": "Identifier", "span": { "start": 9122, - "end": 9143, + "end": 9126, "ctxt": 0 }, "value": "parm", @@ -23737,7 +23737,7 @@ "type": "Identifier", "span": { "start": 9180, - "end": 9201, + "end": 9184, "ctxt": 0 }, "value": "parm", @@ -23931,7 +23931,7 @@ "type": "Identifier", "span": { "start": 9254, - "end": 9275, + "end": 9258, "ctxt": 0 }, "value": "parm", @@ -24134,7 +24134,7 @@ "type": "Identifier", "span": { "start": 9334, - "end": 9346, + "end": 9338, "ctxt": 0 }, "value": "parm", @@ -24267,7 +24267,7 @@ "type": "Identifier", "span": { "start": 9377, - "end": 9394, + "end": 9381, "ctxt": 0 }, "value": "parm", @@ -24420,7 +24420,7 @@ "type": "Identifier", "span": { "start": 9425, - "end": 9453, + "end": 9429, "ctxt": 0 }, "value": "parm", @@ -24602,7 +24602,7 @@ "type": "Identifier", "span": { "start": 9484, - "end": 9503, + "end": 9488, "ctxt": 0 }, "value": "parm", @@ -24800,7 +24800,7 @@ "type": "Identifier", "span": { "start": 9542, - "end": 9566, + "end": 9546, "ctxt": 0 }, "value": "parm", @@ -24824,7 +24824,7 @@ "type": "Identifier", "span": { "start": 9549, - "end": 9558, + "end": 9550, "ctxt": 0 }, "value": "s", @@ -25061,7 +25061,7 @@ "type": "Identifier", "span": { "start": 9625, - "end": 9643, + "end": 9629, "ctxt": 0 }, "value": "parm", @@ -27003,7 +27003,7 @@ "type": "Identifier", "span": { "start": 10348, - "end": 10357, + "end": 10349, "ctxt": 0 }, "value": "s", @@ -29786,7 +29786,7 @@ "type": "Identifier", "span": { "start": 11443, - "end": 11452, + "end": 11444, "ctxt": 0 }, "value": "s", @@ -32177,7 +32177,7 @@ "type": "Identifier", "span": { "start": 12417, - "end": 12426, + "end": 12418, "ctxt": 0 }, "value": "s", @@ -34671,7 +34671,7 @@ "type": "Identifier", "span": { "start": 13369, - "end": 13378, + "end": 13370, "ctxt": 0 }, "value": "s", @@ -36970,7 +36970,7 @@ "type": "Identifier", "span": { "start": 14176, - "end": 14185, + "end": 14177, "ctxt": 0 }, "value": "s", @@ -39303,7 +39303,7 @@ "type": "Identifier", "span": { "start": 15023, - "end": 15032, + "end": 15024, "ctxt": 0 }, "value": "s", @@ -44326,7 +44326,7 @@ "type": "Identifier", "span": { "start": 16697, - "end": 16706, + "end": 16698, "ctxt": 0 }, "value": "s", @@ -46957,7 +46957,7 @@ "type": "Identifier", "span": { "start": 17478, - "end": 17487, + "end": 17479, "ctxt": 0 }, "value": "s", @@ -55454,7 +55454,7 @@ "type": "Identifier", "span": { "start": 20437, - "end": 20446, + "end": 20438, "ctxt": 0 }, "value": "s", @@ -57864,7 +57864,7 @@ "type": "Identifier", "span": { "start": 21332, - "end": 21341, + "end": 21333, "ctxt": 0 }, "value": "s", @@ -60074,7 +60074,7 @@ "type": "Identifier", "span": { "start": 22174, - "end": 22183, + "end": 22175, "ctxt": 0 }, "value": "s", @@ -60527,7 +60527,7 @@ "type": "Identifier", "span": { "start": 22346, - "end": 22361, + "end": 22347, "ctxt": 0 }, "value": "n", @@ -60723,7 +60723,7 @@ "type": "Identifier", "span": { "start": 22404, - "end": 22419, + "end": 22405, "ctxt": 0 }, "value": "n", @@ -60939,7 +60939,7 @@ "type": "Identifier", "span": { "start": 22478, - "end": 22493, + "end": 22479, "ctxt": 0 }, "value": "n", @@ -61164,7 +61164,7 @@ "type": "Identifier", "span": { "start": 22558, - "end": 22576, + "end": 22559, "ctxt": 0 }, "value": "n", @@ -61370,7 +61370,7 @@ "type": "Identifier", "span": { "start": 22619, - "end": 22637, + "end": 22620, "ctxt": 0 }, "value": "n", @@ -61596,7 +61596,7 @@ "type": "Identifier", "span": { "start": 22696, - "end": 22714, + "end": 22697, "ctxt": 0 }, "value": "n", @@ -61831,7 +61831,7 @@ "type": "Identifier", "span": { "start": 22779, - "end": 22788, + "end": 22780, "ctxt": 0 }, "value": "n", @@ -61996,7 +61996,7 @@ "type": "Identifier", "span": { "start": 22825, - "end": 22839, + "end": 22826, "ctxt": 0 }, "value": "n", @@ -62181,7 +62181,7 @@ "type": "Identifier", "span": { "start": 22876, - "end": 22901, + "end": 22877, "ctxt": 0 }, "value": "n", @@ -62395,7 +62395,7 @@ "type": "Identifier", "span": { "start": 22938, - "end": 22954, + "end": 22939, "ctxt": 0 }, "value": "n", @@ -62625,7 +62625,7 @@ "type": "Identifier", "span": { "start": 22999, - "end": 23020, + "end": 23000, "ctxt": 0 }, "value": "n", @@ -62649,7 +62649,7 @@ "type": "Identifier", "span": { "start": 23003, - "end": 23012, + "end": 23004, "ctxt": 0 }, "value": "s", @@ -62918,7 +62918,7 @@ "type": "Identifier", "span": { "start": 23085, - "end": 23100, + "end": 23086, "ctxt": 0 }, "value": "n", @@ -65345,7 +65345,7 @@ "type": "Identifier", "span": { "start": 23809, - "end": 23818, + "end": 23810, "ctxt": 0 }, "value": "s", @@ -65877,7 +65877,7 @@ "type": "Identifier", "span": { "start": 23976, - "end": 23991, + "end": 23977, "ctxt": 0 }, "value": "n", @@ -66087,7 +66087,7 @@ "type": "Identifier", "span": { "start": 24040, - "end": 24055, + "end": 24041, "ctxt": 0 }, "value": "n", @@ -66317,7 +66317,7 @@ "type": "Identifier", "span": { "start": 24120, - "end": 24135, + "end": 24121, "ctxt": 0 }, "value": "n", @@ -66556,7 +66556,7 @@ "type": "Identifier", "span": { "start": 24206, - "end": 24224, + "end": 24207, "ctxt": 0 }, "value": "n", @@ -66776,7 +66776,7 @@ "type": "Identifier", "span": { "start": 24273, - "end": 24291, + "end": 24274, "ctxt": 0 }, "value": "n", @@ -67016,7 +67016,7 @@ "type": "Identifier", "span": { "start": 24356, - "end": 24374, + "end": 24357, "ctxt": 0 }, "value": "n", @@ -67265,7 +67265,7 @@ "type": "Identifier", "span": { "start": 24445, - "end": 24454, + "end": 24446, "ctxt": 0 }, "value": "n", @@ -67444,7 +67444,7 @@ "type": "Identifier", "span": { "start": 24497, - "end": 24511, + "end": 24498, "ctxt": 0 }, "value": "n", @@ -67643,7 +67643,7 @@ "type": "Identifier", "span": { "start": 24554, - "end": 24579, + "end": 24555, "ctxt": 0 }, "value": "n", @@ -67871,7 +67871,7 @@ "type": "Identifier", "span": { "start": 24622, - "end": 24638, + "end": 24623, "ctxt": 0 }, "value": "n", @@ -68115,7 +68115,7 @@ "type": "Identifier", "span": { "start": 24689, - "end": 24710, + "end": 24690, "ctxt": 0 }, "value": "n", @@ -68139,7 +68139,7 @@ "type": "Identifier", "span": { "start": 24693, - "end": 24702, + "end": 24694, "ctxt": 0 }, "value": "s", @@ -68422,7 +68422,7 @@ "type": "Identifier", "span": { "start": 24781, - "end": 24796, + "end": 24782, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorImplicitAny.json b/crates/swc_ecma_parser/tests/tsc/generatorImplicitAny.json index 6a2f0fd4e671..d65e853e5d0c 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorImplicitAny.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorImplicitAny.json @@ -108,7 +108,7 @@ "type": "Identifier", "span": { "start": 227, - "end": 235, + "end": 232, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorOverloads4.json b/crates/swc_ecma_parser/tests/tsc/generatorOverloads4.json index 0a2b5784e2ef..58f64e357d12 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorOverloads4.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorOverloads4.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 32, - "end": 41, + "end": 33, "ctxt": 0 }, "value": "s", @@ -176,7 +176,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 74, + "end": 66, "ctxt": 0 }, "value": "s", @@ -295,7 +295,7 @@ "type": "Identifier", "span": { "start": 99, - "end": 105, + "end": 100, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorOverloads5.json b/crates/swc_ecma_parser/tests/tsc/generatorOverloads5.json index 9d8843936891..3421023a50f8 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorOverloads5.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorOverloads5.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 42, - "end": 51, + "end": 43, "ctxt": 0 }, "value": "s", @@ -166,7 +166,7 @@ "type": "Identifier", "span": { "start": 84, - "end": 93, + "end": 85, "ctxt": 0 }, "value": "s", @@ -273,7 +273,7 @@ "type": "Identifier", "span": { "start": 127, - "end": 133, + "end": 128, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInference.json b/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInference.json index df627b8c78dc..00af87936c28 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInference.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInference.json @@ -1257,7 +1257,7 @@ "type": "Identifier", "span": { "start": 1439, - "end": 1448, + "end": 1440, "ctxt": 0 }, "value": "x", @@ -1336,7 +1336,7 @@ "type": "Identifier", "span": { "start": 1477, - "end": 1486, + "end": 1478, "ctxt": 0 }, "value": "x", @@ -1525,7 +1525,7 @@ "type": "Identifier", "span": { "start": 1600, - "end": 1604, + "end": 1601, "ctxt": 0 }, "value": "x", @@ -2559,7 +2559,7 @@ "type": "Identifier", "span": { "start": 2443, - "end": 2447, + "end": 2444, "ctxt": 0 }, "value": "x", @@ -2768,7 +2768,7 @@ "type": "Identifier", "span": { "start": 2540, - "end": 2544, + "end": 2541, "ctxt": 0 }, "value": "x", @@ -2814,7 +2814,7 @@ "type": "Identifier", "span": { "start": 2546, - "end": 2550, + "end": 2547, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInferenceNonStrict.json b/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInferenceNonStrict.json index cbf95c84bb1d..1351879eda20 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInferenceNonStrict.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInferenceNonStrict.json @@ -1257,7 +1257,7 @@ "type": "Identifier", "span": { "start": 1610, - "end": 1619, + "end": 1611, "ctxt": 0 }, "value": "x", @@ -1336,7 +1336,7 @@ "type": "Identifier", "span": { "start": 1648, - "end": 1657, + "end": 1649, "ctxt": 0 }, "value": "x", @@ -1525,7 +1525,7 @@ "type": "Identifier", "span": { "start": 1771, - "end": 1775, + "end": 1772, "ctxt": 0 }, "value": "x", @@ -2559,7 +2559,7 @@ "type": "Identifier", "span": { "start": 2624, - "end": 2628, + "end": 2625, "ctxt": 0 }, "value": "x", @@ -2768,7 +2768,7 @@ "type": "Identifier", "span": { "start": 2721, - "end": 2725, + "end": 2722, "ctxt": 0 }, "value": "x", @@ -2814,7 +2814,7 @@ "type": "Identifier", "span": { "start": 2727, - "end": 2731, + "end": 2728, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck26.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck26.json index d7bdde5c07ad..3b7a01202912 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck26.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck26.json @@ -297,7 +297,7 @@ "type": "Identifier", "span": { "start": 49, - "end": 58, + "end": 50, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck27.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck27.json index 16e5fe989c4a..4f8d6f7c0824 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck27.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck27.json @@ -205,7 +205,7 @@ "type": "Identifier", "span": { "start": 49, - "end": 58, + "end": 50, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck28.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck28.json index 3938bd59ce3c..50da7036d1b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck28.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck28.json @@ -240,7 +240,7 @@ "type": "Identifier", "span": { "start": 49, - "end": 58, + "end": 50, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck29.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck29.json index 93c02a8db8de..120175ce70f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck29.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck29.json @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 51, - "end": 60, + "end": 52, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck30.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck30.json index 93c02a8db8de..120175ce70f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck30.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck30.json @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 51, - "end": 60, + "end": 52, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck31.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck31.json index f8bfe7c48780..1f7d9b832df3 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck31.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck31.json @@ -246,7 +246,7 @@ "type": "Identifier", "span": { "start": 57, - "end": 66, + "end": 58, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck45.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck45.json index cb0c603f5f3c..9df786227b74 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck45.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck45.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 43, - "end": 47, + "end": 44, "ctxt": 0 }, "value": "x", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 49, - "end": 81, + "end": 52, "ctxt": 0 }, "value": "fun", @@ -143,7 +143,7 @@ "type": "Identifier", "span": { "start": 70, - "end": 74, + "end": 71, "ctxt": 0 }, "value": "x", @@ -226,7 +226,7 @@ "type": "Identifier", "span": { "start": 83, - "end": 100, + "end": 87, "ctxt": 0 }, "value": "fun2", @@ -250,7 +250,7 @@ "type": "Identifier", "span": { "start": 90, - "end": 94, + "end": 91, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck46.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck46.json index 2424bd860040..c10e5c3cdef8 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck46.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck46.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 43, - "end": 47, + "end": 44, "ctxt": 0 }, "value": "x", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 49, - "end": 81, + "end": 52, "ctxt": 0 }, "value": "fun", @@ -143,7 +143,7 @@ "type": "Identifier", "span": { "start": 70, - "end": 74, + "end": 71, "ctxt": 0 }, "value": "x", @@ -226,7 +226,7 @@ "type": "Identifier", "span": { "start": 83, - "end": 100, + "end": 87, "ctxt": 0 }, "value": "fun2", @@ -250,7 +250,7 @@ "type": "Identifier", "span": { "start": 90, - "end": 94, + "end": 91, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck62.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck62.json index d711c1780014..a249b44939b7 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck62.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck62.json @@ -119,7 +119,7 @@ "type": "Identifier", "span": { "start": 185, - "end": 202, + "end": 194, "ctxt": 0 }, "value": "stratName", @@ -155,7 +155,7 @@ "type": "Identifier", "span": { "start": 204, - "end": 250, + "end": 207, "ctxt": 0 }, "value": "gen", @@ -179,7 +179,7 @@ "type": "Identifier", "span": { "start": 210, - "end": 214, + "end": 211, "ctxt": 0 }, "value": "a", @@ -632,7 +632,7 @@ "type": "Identifier", "span": { "start": 254, - "end": 258, + "end": 255, "ctxt": 0 }, "value": "a", @@ -824,7 +824,7 @@ "type": "Identifier", "span": { "start": 539, - "end": 543, + "end": 540, "ctxt": 0 }, "value": "a", @@ -1176,7 +1176,7 @@ "type": "Identifier", "span": { "start": 721, - "end": 733, + "end": 726, "ctxt": 0 }, "value": "state", @@ -1397,7 +1397,7 @@ "type": "Identifier", "span": { "start": 831, - "end": 843, + "end": 836, "ctxt": 0 }, "value": "state", @@ -1627,7 +1627,7 @@ "type": "Identifier", "span": { "start": 941, - "end": 953, + "end": 946, "ctxt": 0 }, "value": "state", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck63.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck63.json index 3aebebec660f..d2f58f48a35f 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck63.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck63.json @@ -119,7 +119,7 @@ "type": "Identifier", "span": { "start": 185, - "end": 202, + "end": 194, "ctxt": 0 }, "value": "stratName", @@ -155,7 +155,7 @@ "type": "Identifier", "span": { "start": 204, - "end": 250, + "end": 207, "ctxt": 0 }, "value": "gen", @@ -179,7 +179,7 @@ "type": "Identifier", "span": { "start": 210, - "end": 214, + "end": 211, "ctxt": 0 }, "value": "a", @@ -632,7 +632,7 @@ "type": "Identifier", "span": { "start": 254, - "end": 258, + "end": 255, "ctxt": 0 }, "value": "a", @@ -824,7 +824,7 @@ "type": "Identifier", "span": { "start": 539, - "end": 543, + "end": 540, "ctxt": 0 }, "value": "a", @@ -1176,7 +1176,7 @@ "type": "Identifier", "span": { "start": 721, - "end": 733, + "end": 726, "ctxt": 0 }, "value": "state", @@ -1424,7 +1424,7 @@ "type": "Identifier", "span": { "start": 845, - "end": 857, + "end": 850, "ctxt": 0 }, "value": "state", @@ -1626,7 +1626,7 @@ "type": "Identifier", "span": { "start": 938, - "end": 950, + "end": 943, "ctxt": 0 }, "value": "state", @@ -1847,7 +1847,7 @@ "type": "Identifier", "span": { "start": 1045, - "end": 1057, + "end": 1050, "ctxt": 0 }, "value": "state", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorYieldContextualType.json b/crates/swc_ecma_parser/tests/tsc/generatorYieldContextualType.json index 67485e4bb668..b6786921efbd 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorYieldContextualType.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorYieldContextualType.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 83, - "end": 112, + "end": 86, "ctxt": 0 }, "value": "gen", @@ -472,7 +472,7 @@ "type": "Identifier", "span": { "start": 213, - "end": 268, + "end": 216, "ctxt": 0 }, "value": "gen", @@ -1139,7 +1139,7 @@ "type": "Identifier", "span": { "start": 471, - "end": 491, + "end": 476, "ctxt": 0 }, "value": "value", @@ -3974,7 +3974,7 @@ "type": "Identifier", "span": { "start": 2074, - "end": 2082, + "end": 2079, "ctxt": 0 }, "value": "_step", @@ -4020,7 +4020,7 @@ "type": "Identifier", "span": { "start": 2086, - "end": 2110, + "end": 2092, "ctxt": 0 }, "value": "_state", @@ -4066,7 +4066,7 @@ "type": "Identifier", "span": { "start": 2114, - "end": 2153, + "end": 2124, "ctxt": 0 }, "value": "_selection", @@ -4353,7 +4353,7 @@ "type": "Identifier", "span": { "start": 2260, - "end": 2282, + "end": 2264, "ctxt": 0 }, "value": "step", @@ -4585,7 +4585,7 @@ "type": "Identifier", "span": { "start": 2458, - "end": 2470, + "end": 2463, "ctxt": 0 }, "value": "state", @@ -4631,7 +4631,7 @@ "type": "Identifier", "span": { "start": 2472, - "end": 2489, + "end": 2480, "ctxt": 0 }, "value": "_context", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallToOverloadedMethodWithOverloadedArguments.json b/crates/swc_ecma_parser/tests/tsc/genericCallToOverloadedMethodWithOverloadedArguments.json index aae01118aced..097deccabcf9 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallToOverloadedMethodWithOverloadedArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallToOverloadedMethodWithOverloadedArguments.json @@ -118,7 +118,7 @@ "type": "Identifier", "span": { "start": 57, - "end": 81, + "end": 59, "ctxt": 0 }, "value": "cb", @@ -142,7 +142,7 @@ "type": "Identifier", "span": { "start": 62, - "end": 66, + "end": 63, "ctxt": 0 }, "value": "x", @@ -354,7 +354,7 @@ "type": "Identifier", "span": { "start": 137, - "end": 146, + "end": 138, "ctxt": 0 }, "value": "n", @@ -711,7 +711,7 @@ "type": "Identifier", "span": { "start": 354, - "end": 378, + "end": 356, "ctxt": 0 }, "value": "cb", @@ -735,7 +735,7 @@ "type": "Identifier", "span": { "start": 359, - "end": 363, + "end": 360, "ctxt": 0 }, "value": "x", @@ -947,7 +947,7 @@ "type": "Identifier", "span": { "start": 434, - "end": 443, + "end": 435, "ctxt": 0 }, "value": "n", @@ -1054,7 +1054,7 @@ "type": "Identifier", "span": { "start": 497, - "end": 506, + "end": 498, "ctxt": 0 }, "value": "s", @@ -1411,7 +1411,7 @@ "type": "Identifier", "span": { "start": 714, - "end": 738, + "end": 716, "ctxt": 0 }, "value": "cb", @@ -1435,7 +1435,7 @@ "type": "Identifier", "span": { "start": 719, - "end": 723, + "end": 720, "ctxt": 0 }, "value": "x", @@ -1643,7 +1643,7 @@ "type": "Identifier", "span": { "start": 769, - "end": 793, + "end": 771, "ctxt": 0 }, "value": "cb", @@ -1667,7 +1667,7 @@ "type": "Identifier", "span": { "start": 774, - "end": 778, + "end": 775, "ctxt": 0 }, "value": "x", @@ -1764,7 +1764,7 @@ "type": "Identifier", "span": { "start": 795, - "end": 829, + "end": 800, "ctxt": 0 }, "value": "error", @@ -1788,7 +1788,7 @@ "type": "Identifier", "span": { "start": 804, - "end": 814, + "end": 809, "ctxt": 0 }, "value": "error", @@ -1990,7 +1990,7 @@ "type": "Identifier", "span": { "start": 885, - "end": 894, + "end": 886, "ctxt": 0 }, "value": "n", @@ -2347,7 +2347,7 @@ "type": "Identifier", "span": { "start": 1102, - "end": 1126, + "end": 1104, "ctxt": 0 }, "value": "cb", @@ -2371,7 +2371,7 @@ "type": "Identifier", "span": { "start": 1107, - "end": 1111, + "end": 1108, "ctxt": 0 }, "value": "x", @@ -2579,7 +2579,7 @@ "type": "Identifier", "span": { "start": 1157, - "end": 1181, + "end": 1159, "ctxt": 0 }, "value": "cb", @@ -2603,7 +2603,7 @@ "type": "Identifier", "span": { "start": 1162, - "end": 1166, + "end": 1163, "ctxt": 0 }, "value": "x", @@ -2700,7 +2700,7 @@ "type": "Identifier", "span": { "start": 1183, - "end": 1217, + "end": 1188, "ctxt": 0 }, "value": "error", @@ -2724,7 +2724,7 @@ "type": "Identifier", "span": { "start": 1192, - "end": 1202, + "end": 1197, "ctxt": 0 }, "value": "error", @@ -2926,7 +2926,7 @@ "type": "Identifier", "span": { "start": 1273, - "end": 1282, + "end": 1274, "ctxt": 0 }, "value": "n", @@ -3033,7 +3033,7 @@ "type": "Identifier", "span": { "start": 1336, - "end": 1345, + "end": 1337, "ctxt": 0 }, "value": "s", @@ -3390,7 +3390,7 @@ "type": "Identifier", "span": { "start": 1553, - "end": 1577, + "end": 1555, "ctxt": 0 }, "value": "cb", @@ -3414,7 +3414,7 @@ "type": "Identifier", "span": { "start": 1558, - "end": 1562, + "end": 1559, "ctxt": 0 }, "value": "x", @@ -3622,7 +3622,7 @@ "type": "Identifier", "span": { "start": 1608, - "end": 1632, + "end": 1610, "ctxt": 0 }, "value": "cb", @@ -3646,7 +3646,7 @@ "type": "Identifier", "span": { "start": 1613, - "end": 1617, + "end": 1614, "ctxt": 0 }, "value": "x", @@ -3743,7 +3743,7 @@ "type": "Identifier", "span": { "start": 1634, - "end": 1668, + "end": 1639, "ctxt": 0 }, "value": "error", @@ -3767,7 +3767,7 @@ "type": "Identifier", "span": { "start": 1643, - "end": 1653, + "end": 1648, "ctxt": 0 }, "value": "error", @@ -3965,7 +3965,7 @@ "type": "Identifier", "span": { "start": 1699, - "end": 1723, + "end": 1701, "ctxt": 0 }, "value": "cb", @@ -3989,7 +3989,7 @@ "type": "Identifier", "span": { "start": 1704, - "end": 1708, + "end": 1705, "ctxt": 0 }, "value": "x", @@ -4086,7 +4086,7 @@ "type": "Identifier", "span": { "start": 1725, - "end": 1750, + "end": 1730, "ctxt": 0 }, "value": "error", @@ -4110,7 +4110,7 @@ "type": "Identifier", "span": { "start": 1734, - "end": 1744, + "end": 1739, "ctxt": 0 }, "value": "error", @@ -4169,7 +4169,7 @@ "type": "Identifier", "span": { "start": 1752, - "end": 1790, + "end": 1760, "ctxt": 0 }, "value": "progress", @@ -4193,7 +4193,7 @@ "type": "Identifier", "span": { "start": 1764, - "end": 1781, + "end": 1776, "ctxt": 0 }, "value": "preservation", @@ -4357,7 +4357,7 @@ "type": "Identifier", "span": { "start": 1846, - "end": 1855, + "end": 1847, "ctxt": 0 }, "value": "n", @@ -4464,7 +4464,7 @@ "type": "Identifier", "span": { "start": 1909, - "end": 1918, + "end": 1910, "ctxt": 0 }, "value": "s", @@ -4821,7 +4821,7 @@ "type": "Identifier", "span": { "start": 2126, - "end": 2150, + "end": 2128, "ctxt": 0 }, "value": "cb", @@ -4845,7 +4845,7 @@ "type": "Identifier", "span": { "start": 2131, - "end": 2135, + "end": 2132, "ctxt": 0 }, "value": "x", @@ -5053,7 +5053,7 @@ "type": "Identifier", "span": { "start": 2181, - "end": 2205, + "end": 2183, "ctxt": 0 }, "value": "cb", @@ -5077,7 +5077,7 @@ "type": "Identifier", "span": { "start": 2186, - "end": 2190, + "end": 2187, "ctxt": 0 }, "value": "x", @@ -5174,7 +5174,7 @@ "type": "Identifier", "span": { "start": 2207, - "end": 2241, + "end": 2212, "ctxt": 0 }, "value": "error", @@ -5198,7 +5198,7 @@ "type": "Identifier", "span": { "start": 2216, - "end": 2226, + "end": 2221, "ctxt": 0 }, "value": "error", @@ -5400,7 +5400,7 @@ "type": "Identifier", "span": { "start": 2297, - "end": 2306, + "end": 2298, "ctxt": 0 }, "value": "n", @@ -5507,7 +5507,7 @@ "type": "Identifier", "span": { "start": 2360, - "end": 2369, + "end": 2361, "ctxt": 0 }, "value": "s", @@ -5614,7 +5614,7 @@ "type": "Identifier", "span": { "start": 2423, - "end": 2433, + "end": 2424, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallTypeArgumentInference.json b/crates/swc_ecma_parser/tests/tsc/genericCallTypeArgumentInference.json index 521c09863487..de977a14a709 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallTypeArgumentInference.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallTypeArgumentInference.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 81, - "end": 85, + "end": 82, "ctxt": 0 }, "value": "t", @@ -230,7 +230,7 @@ "type": "Identifier", "span": { "start": 154, - "end": 158, + "end": 155, "ctxt": 0 }, "value": "t", @@ -276,7 +276,7 @@ "type": "Identifier", "span": { "start": 160, - "end": 164, + "end": 161, "ctxt": 0 }, "value": "u", @@ -431,7 +431,7 @@ "type": "Identifier", "span": { "start": 206, - "end": 210, + "end": 207, "ctxt": 0 }, "value": "u", @@ -817,7 +817,7 @@ "type": "Identifier", "span": { "start": 342, - "end": 346, + "end": 343, "ctxt": 0 }, "value": "t", @@ -866,7 +866,7 @@ "type": "Identifier", "span": { "start": 355, - "end": 359, + "end": 356, "ctxt": 0 }, "value": "u", @@ -944,7 +944,7 @@ "type": "Identifier", "span": { "start": 378, - "end": 382, + "end": 379, "ctxt": 0 }, "value": "t", @@ -990,7 +990,7 @@ "type": "Identifier", "span": { "start": 384, - "end": 388, + "end": 385, "ctxt": 0 }, "value": "u", @@ -1102,7 +1102,7 @@ "type": "Identifier", "span": { "start": 426, - "end": 430, + "end": 427, "ctxt": 0 }, "value": "t", @@ -1148,7 +1148,7 @@ "type": "Identifier", "span": { "start": 432, - "end": 436, + "end": 433, "ctxt": 0 }, "value": "u", @@ -1260,7 +1260,7 @@ "type": "Identifier", "span": { "start": 477, - "end": 481, + "end": 478, "ctxt": 0 }, "value": "t", @@ -1306,7 +1306,7 @@ "type": "Identifier", "span": { "start": 483, - "end": 487, + "end": 484, "ctxt": 0 }, "value": "u", @@ -1450,7 +1450,7 @@ "type": "Identifier", "span": { "start": 528, - "end": 532, + "end": 529, "ctxt": 0 }, "value": "t", @@ -1496,7 +1496,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 538, + "end": 535, "ctxt": 0 }, "value": "u", @@ -1640,7 +1640,7 @@ "type": "Identifier", "span": { "start": 581, - "end": 585, + "end": 582, "ctxt": 0 }, "value": "t", @@ -1686,7 +1686,7 @@ "type": "Identifier", "span": { "start": 587, - "end": 591, + "end": 588, "ctxt": 0 }, "value": "u", @@ -2032,7 +2032,7 @@ "type": "Identifier", "span": { "start": 697, - "end": 701, + "end": 698, "ctxt": 0 }, "value": "u", @@ -3348,7 +3348,7 @@ "type": "Identifier", "span": { "start": 1121, - "end": 1125, + "end": 1122, "ctxt": 0 }, "value": "t", @@ -3385,7 +3385,7 @@ "type": "Identifier", "span": { "start": 1127, - "end": 1131, + "end": 1128, "ctxt": 0 }, "value": "u", @@ -3447,7 +3447,7 @@ "type": "Identifier", "span": { "start": 1142, - "end": 1146, + "end": 1143, "ctxt": 0 }, "value": "t", @@ -3484,7 +3484,7 @@ "type": "Identifier", "span": { "start": 1148, - "end": 1152, + "end": 1149, "ctxt": 0 }, "value": "u", @@ -3572,7 +3572,7 @@ "type": "Identifier", "span": { "start": 1167, - "end": 1171, + "end": 1168, "ctxt": 0 }, "value": "t", @@ -3609,7 +3609,7 @@ "type": "Identifier", "span": { "start": 1173, - "end": 1177, + "end": 1174, "ctxt": 0 }, "value": "u", @@ -3697,7 +3697,7 @@ "type": "Identifier", "span": { "start": 1195, - "end": 1199, + "end": 1196, "ctxt": 0 }, "value": "t", @@ -3734,7 +3734,7 @@ "type": "Identifier", "span": { "start": 1201, - "end": 1205, + "end": 1202, "ctxt": 0 }, "value": "u", @@ -3854,7 +3854,7 @@ "type": "Identifier", "span": { "start": 1223, - "end": 1227, + "end": 1224, "ctxt": 0 }, "value": "t", @@ -3891,7 +3891,7 @@ "type": "Identifier", "span": { "start": 1229, - "end": 1233, + "end": 1230, "ctxt": 0 }, "value": "u", @@ -4011,7 +4011,7 @@ "type": "Identifier", "span": { "start": 1254, - "end": 1258, + "end": 1255, "ctxt": 0 }, "value": "t", @@ -4048,7 +4048,7 @@ "type": "Identifier", "span": { "start": 1260, - "end": 1264, + "end": 1261, "ctxt": 0 }, "value": "u", @@ -4296,7 +4296,7 @@ "type": "Identifier", "span": { "start": 1306, - "end": 1310, + "end": 1307, "ctxt": 0 }, "value": "u", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithArrayLiteralArgs.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithArrayLiteralArgs.json index d3e59b2a8b42..cf92acc70f6c 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithArrayLiteralArgs.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithArrayLiteralArgs.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 17, - "end": 21, + "end": 18, "ctxt": 0 }, "value": "t", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithConstraintsTypeArgumentInference.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithConstraintsTypeArgumentInference.json index 5d4b81567b32..6c53ad0e56ae 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithConstraintsTypeArgumentInference.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithConstraintsTypeArgumentInference.json @@ -443,7 +443,7 @@ "type": "Identifier", "span": { "start": 279, - "end": 283, + "end": 280, "ctxt": 0 }, "value": "t", @@ -725,7 +725,7 @@ "type": "Identifier", "span": { "start": 407, - "end": 411, + "end": 408, "ctxt": 0 }, "value": "t", @@ -771,7 +771,7 @@ "type": "Identifier", "span": { "start": 413, - "end": 417, + "end": 414, "ctxt": 0 }, "value": "u", @@ -962,7 +962,7 @@ "type": "Identifier", "span": { "start": 488, - "end": 492, + "end": 489, "ctxt": 0 }, "value": "u", @@ -1560,7 +1560,7 @@ "type": "Identifier", "span": { "start": 736, - "end": 740, + "end": 737, "ctxt": 0 }, "value": "t", @@ -1609,7 +1609,7 @@ "type": "Identifier", "span": { "start": 749, - "end": 753, + "end": 750, "ctxt": 0 }, "value": "u", @@ -1687,7 +1687,7 @@ "type": "Identifier", "span": { "start": 772, - "end": 776, + "end": 773, "ctxt": 0 }, "value": "t", @@ -1733,7 +1733,7 @@ "type": "Identifier", "span": { "start": 778, - "end": 782, + "end": 779, "ctxt": 0 }, "value": "u", @@ -1845,7 +1845,7 @@ "type": "Identifier", "span": { "start": 820, - "end": 824, + "end": 821, "ctxt": 0 }, "value": "t", @@ -1891,7 +1891,7 @@ "type": "Identifier", "span": { "start": 826, - "end": 830, + "end": 827, "ctxt": 0 }, "value": "u", @@ -2003,7 +2003,7 @@ "type": "Identifier", "span": { "start": 887, - "end": 891, + "end": 888, "ctxt": 0 }, "value": "t", @@ -2049,7 +2049,7 @@ "type": "Identifier", "span": { "start": 893, - "end": 897, + "end": 894, "ctxt": 0 }, "value": "u", @@ -2211,7 +2211,7 @@ "type": "Identifier", "span": { "start": 955, - "end": 959, + "end": 956, "ctxt": 0 }, "value": "t", @@ -2257,7 +2257,7 @@ "type": "Identifier", "span": { "start": 961, - "end": 965, + "end": 962, "ctxt": 0 }, "value": "u", @@ -2419,7 +2419,7 @@ "type": "Identifier", "span": { "start": 1042, - "end": 1046, + "end": 1043, "ctxt": 0 }, "value": "t", @@ -2465,7 +2465,7 @@ "type": "Identifier", "span": { "start": 1048, - "end": 1052, + "end": 1049, "ctxt": 0 }, "value": "u", @@ -2883,7 +2883,7 @@ "type": "Identifier", "span": { "start": 1220, - "end": 1224, + "end": 1221, "ctxt": 0 }, "value": "u", @@ -4443,7 +4443,7 @@ "type": "Identifier", "span": { "start": 1743, - "end": 1747, + "end": 1744, "ctxt": 0 }, "value": "t", @@ -4480,7 +4480,7 @@ "type": "Identifier", "span": { "start": 1749, - "end": 1753, + "end": 1750, "ctxt": 0 }, "value": "u", @@ -4542,7 +4542,7 @@ "type": "Identifier", "span": { "start": 1764, - "end": 1768, + "end": 1765, "ctxt": 0 }, "value": "t", @@ -4579,7 +4579,7 @@ "type": "Identifier", "span": { "start": 1770, - "end": 1774, + "end": 1771, "ctxt": 0 }, "value": "u", @@ -4667,7 +4667,7 @@ "type": "Identifier", "span": { "start": 1789, - "end": 1793, + "end": 1790, "ctxt": 0 }, "value": "t", @@ -4704,7 +4704,7 @@ "type": "Identifier", "span": { "start": 1795, - "end": 1799, + "end": 1796, "ctxt": 0 }, "value": "u", @@ -4792,7 +4792,7 @@ "type": "Identifier", "span": { "start": 1833, - "end": 1837, + "end": 1834, "ctxt": 0 }, "value": "t", @@ -4829,7 +4829,7 @@ "type": "Identifier", "span": { "start": 1839, - "end": 1843, + "end": 1840, "ctxt": 0 }, "value": "u", @@ -4967,7 +4967,7 @@ "type": "Identifier", "span": { "start": 1878, - "end": 1882, + "end": 1879, "ctxt": 0 }, "value": "t", @@ -5004,7 +5004,7 @@ "type": "Identifier", "span": { "start": 1884, - "end": 1888, + "end": 1885, "ctxt": 0 }, "value": "u", @@ -5142,7 +5142,7 @@ "type": "Identifier", "span": { "start": 1942, - "end": 1946, + "end": 1943, "ctxt": 0 }, "value": "t", @@ -5179,7 +5179,7 @@ "type": "Identifier", "span": { "start": 1948, - "end": 1952, + "end": 1949, "ctxt": 0 }, "value": "u", @@ -5499,7 +5499,7 @@ "type": "Identifier", "span": { "start": 2056, - "end": 2060, + "end": 2057, "ctxt": 0 }, "value": "u", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithConstraintsTypeArgumentInference2.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithConstraintsTypeArgumentInference2.json index 0d1677762a00..5f964704cf40 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithConstraintsTypeArgumentInference2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithConstraintsTypeArgumentInference2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 111, - "end": 115, + "end": 112, "ctxt": 0 }, "value": "t", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithConstructorTypedArguments5.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithConstructorTypedArguments5.json index 35641fa134d8..d41d0f60e78b 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithConstructorTypedArguments5.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithConstructorTypedArguments5.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 176, - "end": 203, + "end": 179, "ctxt": 0 }, "value": "arg", @@ -93,7 +93,7 @@ "type": "Identifier", "span": { "start": 191, - "end": 195, + "end": 192, "ctxt": 0 }, "value": "t", @@ -382,7 +382,7 @@ "type": "Identifier", "span": { "start": 261, - "end": 265, + "end": 262, "ctxt": 0 }, "value": "x", @@ -628,7 +628,7 @@ "type": "Identifier", "span": { "start": 353, - "end": 357, + "end": 354, "ctxt": 0 }, "value": "x", @@ -665,7 +665,7 @@ "type": "Identifier", "span": { "start": 359, - "end": 363, + "end": 360, "ctxt": 0 }, "value": "y", @@ -911,7 +911,7 @@ "type": "Identifier", "span": { "start": 428, - "end": 437, + "end": 429, "ctxt": 0 }, "value": "x", @@ -938,7 +938,7 @@ "type": "Identifier", "span": { "start": 439, - "end": 448, + "end": 440, "ctxt": 0 }, "value": "y", @@ -1086,7 +1086,7 @@ "type": "Identifier", "span": { "start": 513, - "end": 547, + "end": 516, "ctxt": 0 }, "value": "arg", @@ -1147,7 +1147,7 @@ "type": "Identifier", "span": { "start": 528, - "end": 532, + "end": 529, "ctxt": 0 }, "value": "t", @@ -1184,7 +1184,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 539, + "end": 536, "ctxt": 0 }, "value": "t2", @@ -1550,7 +1550,7 @@ "type": "Identifier", "span": { "start": 652, - "end": 661, + "end": 653, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments.json index c4b76c735a09..264f89baf06f 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 172, - "end": 186, + "end": 173, "ctxt": 0 }, "value": "x", @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 176, - "end": 180, + "end": 177, "ctxt": 0 }, "value": "a", @@ -649,7 +649,7 @@ "type": "Identifier", "span": { "start": 349, - "end": 353, + "end": 350, "ctxt": 0 }, "value": "x", @@ -695,7 +695,7 @@ "type": "Identifier", "span": { "start": 355, - "end": 370, + "end": 357, "ctxt": 0 }, "value": "cb", @@ -719,7 +719,7 @@ "type": "Identifier", "span": { "start": 360, - "end": 364, + "end": 361, "ctxt": 0 }, "value": "a", @@ -981,7 +981,7 @@ "type": "Identifier", "span": { "start": 425, - "end": 429, + "end": 426, "ctxt": 0 }, "value": "a", @@ -1414,7 +1414,7 @@ "type": "Identifier", "span": { "start": 636, - "end": 640, + "end": 637, "ctxt": 0 }, "value": "x", @@ -1460,7 +1460,7 @@ "type": "Identifier", "span": { "start": 642, - "end": 657, + "end": 644, "ctxt": 0 }, "value": "cb", @@ -1484,7 +1484,7 @@ "type": "Identifier", "span": { "start": 647, - "end": 651, + "end": 648, "ctxt": 0 }, "value": "a", @@ -1562,7 +1562,7 @@ "type": "Identifier", "span": { "start": 659, - "end": 663, + "end": 660, "ctxt": 0 }, "value": "y", @@ -2206,7 +2206,7 @@ "type": "Identifier", "span": { "start": 877, - "end": 881, + "end": 878, "ctxt": 0 }, "value": "t", @@ -2252,7 +2252,7 @@ "type": "Identifier", "span": { "start": 883, - "end": 887, + "end": 884, "ctxt": 0 }, "value": "u", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments2.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments2.json index 04fa8b28f600..1fc18c5d1fc7 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 183, - "end": 200, + "end": 184, "ctxt": 0 }, "value": "x", @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 190, - "end": 194, + "end": 191, "ctxt": 0 }, "value": "a", @@ -257,7 +257,7 @@ "type": "Identifier", "span": { "start": 257, - "end": 261, + "end": 258, "ctxt": 0 }, "value": "x", @@ -427,7 +427,7 @@ "type": "Identifier", "span": { "start": 296, - "end": 300, + "end": 297, "ctxt": 0 }, "value": "x", @@ -682,7 +682,7 @@ "type": "Identifier", "span": { "start": 359, - "end": 363, + "end": 360, "ctxt": 0 }, "value": "x", @@ -1094,7 +1094,7 @@ "type": "Identifier", "span": { "start": 505, - "end": 509, + "end": 506, "ctxt": 0 }, "value": "x", @@ -1140,7 +1140,7 @@ "type": "Identifier", "span": { "start": 511, - "end": 529, + "end": 513, "ctxt": 0 }, "value": "cb", @@ -1164,7 +1164,7 @@ "type": "Identifier", "span": { "start": 519, - "end": 523, + "end": 520, "ctxt": 0 }, "value": "a", @@ -1719,7 +1719,7 @@ "type": "Identifier", "span": { "start": 716, - "end": 720, + "end": 717, "ctxt": 0 }, "value": "x", @@ -1765,7 +1765,7 @@ "type": "Identifier", "span": { "start": 722, - "end": 740, + "end": 724, "ctxt": 0 }, "value": "cb", @@ -1789,7 +1789,7 @@ "type": "Identifier", "span": { "start": 730, - "end": 734, + "end": 731, "ctxt": 0 }, "value": "a", @@ -1868,7 +1868,7 @@ "type": "Identifier", "span": { "start": 742, - "end": 746, + "end": 743, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments3.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments3.json index 4524becef9de..adf4ecd1ea79 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments3.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments3.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 106, - "end": 116, + "end": 107, "ctxt": 0 }, "value": "x", @@ -114,7 +114,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 142, + "end": 134, "ctxt": 0 }, "value": "x", @@ -192,7 +192,7 @@ "type": "Identifier", "span": { "start": 173, - "end": 188, + "end": 175, "ctxt": 0 }, "value": "cb", @@ -216,7 +216,7 @@ "type": "Identifier", "span": { "start": 178, - "end": 182, + "end": 179, "ctxt": 0 }, "value": "x", @@ -555,7 +555,7 @@ "type": "Identifier", "span": { "start": 340, - "end": 350, + "end": 341, "ctxt": 0 }, "value": "x", @@ -652,7 +652,7 @@ "type": "Identifier", "span": { "start": 364, - "end": 368, + "end": 365, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments4.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments4.json index 81fef7b2c6c8..0a771ceb33de 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments4.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments4.json @@ -203,7 +203,7 @@ "type": "Identifier", "span": { "start": 157, - "end": 167, + "end": 158, "ctxt": 0 }, "value": "x", @@ -268,7 +268,7 @@ "type": "Identifier", "span": { "start": 181, - "end": 190, + "end": 182, "ctxt": 0 }, "value": "x", @@ -356,7 +356,7 @@ "type": "Identifier", "span": { "start": 219, - "end": 237, + "end": 221, "ctxt": 0 }, "value": "cb", @@ -380,7 +380,7 @@ "type": "Identifier", "span": { "start": 227, - "end": 231, + "end": 228, "ctxt": 0 }, "value": "x", @@ -720,7 +720,7 @@ "type": "Identifier", "span": { "start": 383, - "end": 393, + "end": 384, "ctxt": 0 }, "value": "x", @@ -817,7 +817,7 @@ "type": "Identifier", "span": { "start": 410, - "end": 414, + "end": 411, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments5.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments5.json index c83aedf64b79..5adf420f3a3d 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments5.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments5.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 176, - "end": 200, + "end": 179, "ctxt": 0 }, "value": "arg", @@ -93,7 +93,7 @@ "type": "Identifier", "span": { "start": 188, - "end": 192, + "end": 189, "ctxt": 0 }, "value": "t", @@ -905,7 +905,7 @@ "type": "Identifier", "span": { "start": 452, - "end": 483, + "end": 455, "ctxt": 0 }, "value": "arg", @@ -966,7 +966,7 @@ "type": "Identifier", "span": { "start": 464, - "end": 468, + "end": 465, "ctxt": 0 }, "value": "t", @@ -1003,7 +1003,7 @@ "type": "Identifier", "span": { "start": 470, - "end": 475, + "end": 472, "ctxt": 0 }, "value": "t2", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments.json index 99844ef8bc37..4b3adf98ea9c 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 322, - "end": 336, + "end": 323, "ctxt": 0 }, "value": "a", @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 326, - "end": 330, + "end": 327, "ctxt": 0 }, "value": "x", @@ -134,7 +134,7 @@ "type": "Identifier", "span": { "start": 338, - "end": 352, + "end": 339, "ctxt": 0 }, "value": "b", @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 342, - "end": 346, + "end": 343, "ctxt": 0 }, "value": "x", @@ -284,7 +284,7 @@ "type": "Identifier", "span": { "start": 368, - "end": 372, + "end": 369, "ctxt": 0 }, "value": "x", @@ -1691,7 +1691,7 @@ "type": "Identifier", "span": { "start": 973, - "end": 977, + "end": 974, "ctxt": 0 }, "value": "x", @@ -2115,7 +2115,7 @@ "type": "Identifier", "span": { "start": 1121, - "end": 1125, + "end": 1122, "ctxt": 0 }, "value": "x", @@ -2621,7 +2621,7 @@ "type": "Identifier", "span": { "start": 1340, - "end": 1354, + "end": 1341, "ctxt": 0 }, "value": "a", @@ -2645,7 +2645,7 @@ "type": "Identifier", "span": { "start": 1344, - "end": 1348, + "end": 1345, "ctxt": 0 }, "value": "x", @@ -2723,7 +2723,7 @@ "type": "Identifier", "span": { "start": 1356, - "end": 1370, + "end": 1357, "ctxt": 0 }, "value": "b", @@ -2747,7 +2747,7 @@ "type": "Identifier", "span": { "start": 1360, - "end": 1364, + "end": 1361, "ctxt": 0 }, "value": "x", @@ -2873,7 +2873,7 @@ "type": "Identifier", "span": { "start": 1386, - "end": 1390, + "end": 1387, "ctxt": 0 }, "value": "x", @@ -3044,7 +3044,7 @@ "type": "Identifier", "span": { "start": 1449, - "end": 1453, + "end": 1450, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments2.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments2.json index 8495748d4917..5c120ff1dcb1 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments2.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 341, - "end": 355, + "end": 342, "ctxt": 0 }, "value": "a", @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 345, - "end": 349, + "end": 346, "ctxt": 0 }, "value": "x", @@ -161,7 +161,7 @@ "type": "Identifier", "span": { "start": 357, - "end": 371, + "end": 358, "ctxt": 0 }, "value": "b", @@ -185,7 +185,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 365, + "end": 362, "ctxt": 0 }, "value": "x", @@ -311,7 +311,7 @@ "type": "Identifier", "span": { "start": 391, - "end": 395, + "end": 392, "ctxt": 0 }, "value": "x", @@ -483,7 +483,7 @@ "type": "Identifier", "span": { "start": 441, - "end": 446, + "end": 442, "ctxt": 0 }, "value": "x", @@ -687,7 +687,7 @@ "type": "Identifier", "span": { "start": 535, - "end": 539, + "end": 536, "ctxt": 0 }, "value": "x", @@ -1142,7 +1142,7 @@ "type": "Identifier", "span": { "start": 747, - "end": 761, + "end": 748, "ctxt": 0 }, "value": "a", @@ -1166,7 +1166,7 @@ "type": "Identifier", "span": { "start": 751, - "end": 755, + "end": 752, "ctxt": 0 }, "value": "x", @@ -1244,7 +1244,7 @@ "type": "Identifier", "span": { "start": 763, - "end": 777, + "end": 764, "ctxt": 0 }, "value": "b", @@ -1268,7 +1268,7 @@ "type": "Identifier", "span": { "start": 767, - "end": 771, + "end": 768, "ctxt": 0 }, "value": "x", @@ -1394,7 +1394,7 @@ "type": "Identifier", "span": { "start": 797, - "end": 801, + "end": 798, "ctxt": 0 }, "value": "x", @@ -1565,7 +1565,7 @@ "type": "Identifier", "span": { "start": 872, - "end": 876, + "end": 873, "ctxt": 0 }, "value": "x", @@ -2089,7 +2089,7 @@ "type": "Identifier", "span": { "start": 1080, - "end": 1084, + "end": 1081, "ctxt": 0 }, "value": "x", @@ -2135,7 +2135,7 @@ "type": "Identifier", "span": { "start": 1086, - "end": 1100, + "end": 1087, "ctxt": 0 }, "value": "a", @@ -2159,7 +2159,7 @@ "type": "Identifier", "span": { "start": 1090, - "end": 1094, + "end": 1091, "ctxt": 0 }, "value": "x", @@ -2237,7 +2237,7 @@ "type": "Identifier", "span": { "start": 1102, - "end": 1116, + "end": 1103, "ctxt": 0 }, "value": "b", @@ -2261,7 +2261,7 @@ "type": "Identifier", "span": { "start": 1106, - "end": 1110, + "end": 1107, "ctxt": 0 }, "value": "x", @@ -2387,7 +2387,7 @@ "type": "Identifier", "span": { "start": 1136, - "end": 1140, + "end": 1137, "ctxt": 0 }, "value": "x", @@ -2766,7 +2766,7 @@ "type": "Identifier", "span": { "start": 1268, - "end": 1282, + "end": 1269, "ctxt": 0 }, "value": "a", @@ -2790,7 +2790,7 @@ "type": "Identifier", "span": { "start": 1272, - "end": 1276, + "end": 1273, "ctxt": 0 }, "value": "x", @@ -2868,7 +2868,7 @@ "type": "Identifier", "span": { "start": 1284, - "end": 1298, + "end": 1285, "ctxt": 0 }, "value": "b", @@ -2892,7 +2892,7 @@ "type": "Identifier", "span": { "start": 1288, - "end": 1292, + "end": 1289, "ctxt": 0 }, "value": "x", @@ -3018,7 +3018,7 @@ "type": "Identifier", "span": { "start": 1318, - "end": 1322, + "end": 1319, "ctxt": 0 }, "value": "x", @@ -3213,7 +3213,7 @@ "type": "Identifier", "span": { "start": 1368, - "end": 1373, + "end": 1369, "ctxt": 0 }, "value": "x", @@ -3417,7 +3417,7 @@ "type": "Identifier", "span": { "start": 1462, - "end": 1466, + "end": 1463, "ctxt": 0 }, "value": "x", @@ -3872,7 +3872,7 @@ "type": "Identifier", "span": { "start": 1636, - "end": 1650, + "end": 1637, "ctxt": 0 }, "value": "a", @@ -3896,7 +3896,7 @@ "type": "Identifier", "span": { "start": 1640, - "end": 1644, + "end": 1641, "ctxt": 0 }, "value": "x", @@ -3974,7 +3974,7 @@ "type": "Identifier", "span": { "start": 1652, - "end": 1666, + "end": 1653, "ctxt": 0 }, "value": "b", @@ -3998,7 +3998,7 @@ "type": "Identifier", "span": { "start": 1656, - "end": 1660, + "end": 1657, "ctxt": 0 }, "value": "x", @@ -4124,7 +4124,7 @@ "type": "Identifier", "span": { "start": 1686, - "end": 1690, + "end": 1687, "ctxt": 0 }, "value": "x", @@ -4336,7 +4336,7 @@ "type": "Identifier", "span": { "start": 1761, - "end": 1765, + "end": 1762, "ctxt": 0 }, "value": "x", @@ -4860,7 +4860,7 @@ "type": "Identifier", "span": { "start": 1927, - "end": 1931, + "end": 1928, "ctxt": 0 }, "value": "x", @@ -4906,7 +4906,7 @@ "type": "Identifier", "span": { "start": 1933, - "end": 1947, + "end": 1934, "ctxt": 0 }, "value": "a", @@ -4930,7 +4930,7 @@ "type": "Identifier", "span": { "start": 1937, - "end": 1941, + "end": 1938, "ctxt": 0 }, "value": "x", @@ -5008,7 +5008,7 @@ "type": "Identifier", "span": { "start": 1949, - "end": 1963, + "end": 1950, "ctxt": 0 }, "value": "b", @@ -5032,7 +5032,7 @@ "type": "Identifier", "span": { "start": 1953, - "end": 1957, + "end": 1954, "ctxt": 0 }, "value": "x", @@ -5158,7 +5158,7 @@ "type": "Identifier", "span": { "start": 1983, - "end": 1987, + "end": 1984, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments3.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments3.json index b9c05343d9b8..9d44ce9aa805 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments3.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments3.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 322, - "end": 326, + "end": 323, "ctxt": 0 }, "value": "x", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 328, - "end": 342, + "end": 329, "ctxt": 0 }, "value": "a", @@ -102,7 +102,7 @@ "type": "Identifier", "span": { "start": 332, - "end": 336, + "end": 333, "ctxt": 0 }, "value": "x", @@ -180,7 +180,7 @@ "type": "Identifier", "span": { "start": 344, - "end": 358, + "end": 345, "ctxt": 0 }, "value": "b", @@ -204,7 +204,7 @@ "type": "Identifier", "span": { "start": 348, - "end": 352, + "end": 349, "ctxt": 0 }, "value": "x", @@ -330,7 +330,7 @@ "type": "Identifier", "span": { "start": 374, - "end": 378, + "end": 375, "ctxt": 0 }, "value": "x", @@ -1783,7 +1783,7 @@ "type": "Identifier", "span": { "start": 944, - "end": 948, + "end": 945, "ctxt": 0 }, "value": "x", @@ -1829,7 +1829,7 @@ "type": "Identifier", "span": { "start": 950, - "end": 964, + "end": 951, "ctxt": 0 }, "value": "a", @@ -1853,7 +1853,7 @@ "type": "Identifier", "span": { "start": 954, - "end": 958, + "end": 955, "ctxt": 0 }, "value": "x", @@ -1931,7 +1931,7 @@ "type": "Identifier", "span": { "start": 966, - "end": 980, + "end": 967, "ctxt": 0 }, "value": "b", @@ -1955,7 +1955,7 @@ "type": "Identifier", "span": { "start": 970, - "end": 974, + "end": 971, "ctxt": 0 }, "value": "x", @@ -2081,7 +2081,7 @@ "type": "Identifier", "span": { "start": 996, - "end": 1000, + "end": 997, "ctxt": 0 }, "value": "x", @@ -2738,7 +2738,7 @@ "type": "Identifier", "span": { "start": 1234, - "end": 1243, + "end": 1235, "ctxt": 0 }, "value": "a", @@ -2885,7 +2885,7 @@ "type": "Identifier", "span": { "start": 1281, - "end": 1290, + "end": 1282, "ctxt": 0 }, "value": "y", @@ -3036,7 +3036,7 @@ "type": "Identifier", "span": { "start": 1330, - "end": 1339, + "end": 1331, "ctxt": 0 }, "value": "z", @@ -3202,7 +3202,7 @@ "type": "Identifier", "span": { "start": 1392, - "end": 1401, + "end": 1393, "ctxt": 0 }, "value": "y", @@ -3353,7 +3353,7 @@ "type": "Identifier", "span": { "start": 1442, - "end": 1451, + "end": 1443, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithNonSymmetricSubtypes.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithNonSymmetricSubtypes.json index 91543418ccaa..3263890abbc4 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithNonSymmetricSubtypes.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithNonSymmetricSubtypes.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 235, - "end": 239, + "end": 236, "ctxt": 0 }, "value": "x", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 245, + "end": 242, "ctxt": 0 }, "value": "y", @@ -1366,7 +1366,7 @@ "type": "Identifier", "span": { "start": 763, - "end": 772, + "end": 764, "ctxt": 0 }, "value": "x", @@ -1471,7 +1471,7 @@ "type": "Identifier", "span": { "start": 794, - "end": 803, + "end": 795, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectLiteralArgs.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectLiteralArgs.json index 377ce63378a9..07062cbd0566 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectLiteralArgs.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectLiteralArgs.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 17, - "end": 38, + "end": 18, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgs.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgs.json index 7a98f5f96496..fba3e9f3f736 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgs.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgs.json @@ -290,7 +290,7 @@ "type": "Identifier", "span": { "start": 115, - "end": 122, + "end": 116, "ctxt": 0 }, "value": "t", @@ -364,7 +364,7 @@ "type": "Identifier", "span": { "start": 124, - "end": 132, + "end": 126, "ctxt": 0 }, "value": "t2", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgs2.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgs2.json index a600acd92405..985f3837a1d6 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgs2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgs2.json @@ -266,7 +266,7 @@ "type": "Identifier", "span": { "start": 184, - "end": 201, + "end": 185, "ctxt": 0 }, "value": "a", @@ -876,7 +876,7 @@ "type": "Identifier", "span": { "start": 395, - "end": 412, + "end": 396, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints.json index 0981b611175b..731a02dc07ce 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints.json @@ -335,7 +335,7 @@ "type": "Identifier", "span": { "start": 246, - "end": 253, + "end": 247, "ctxt": 0 }, "value": "t", @@ -409,7 +409,7 @@ "type": "Identifier", "span": { "start": 255, - "end": 263, + "end": 257, "ctxt": 0 }, "value": "t2", @@ -996,7 +996,7 @@ "type": "Identifier", "span": { "start": 412, - "end": 419, + "end": 413, "ctxt": 0 }, "value": "t", @@ -1070,7 +1070,7 @@ "type": "Identifier", "span": { "start": 421, - "end": 429, + "end": 423, "ctxt": 0 }, "value": "t2", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints2.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints2.json index 46edcd2f1c58..28f4fce59b3a 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints2.json @@ -185,7 +185,7 @@ "type": "Identifier", "span": { "start": 215, - "end": 236, + "end": 216, "ctxt": 0 }, "value": "x", @@ -865,7 +865,7 @@ "type": "Identifier", "span": { "start": 437, - "end": 444, + "end": 438, "ctxt": 0 }, "value": "x", @@ -1255,7 +1255,7 @@ "type": "Identifier", "span": { "start": 543, - "end": 547, + "end": 544, "ctxt": 0 }, "value": "x", @@ -1301,7 +1301,7 @@ "type": "Identifier", "span": { "start": 549, - "end": 563, + "end": 550, "ctxt": 0 }, "value": "y", @@ -1325,7 +1325,7 @@ "type": "Identifier", "span": { "start": 553, - "end": 557, + "end": 554, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints3.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints3.json index 673d8da1f2dc..15d90f795b43 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints3.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints3.json @@ -266,7 +266,7 @@ "type": "Identifier", "span": { "start": 240, - "end": 257, + "end": 241, "ctxt": 0 }, "value": "a", @@ -700,7 +700,7 @@ "type": "Identifier", "span": { "start": 451, - "end": 455, + "end": 452, "ctxt": 0 }, "value": "a", @@ -1307,7 +1307,7 @@ "type": "Identifier", "span": { "start": 640, - "end": 654, + "end": 641, "ctxt": 0 }, "value": "y", @@ -1331,7 +1331,7 @@ "type": "Identifier", "span": { "start": 644, - "end": 648, + "end": 645, "ctxt": 0 }, "value": "a", @@ -1409,7 +1409,7 @@ "type": "Identifier", "span": { "start": 656, - "end": 660, + "end": 657, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints4.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints4.json index da28d95adf07..0c9fa1d6a2e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints4.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints4.json @@ -221,7 +221,7 @@ "type": "Identifier", "span": { "start": 189, - "end": 193, + "end": 190, "ctxt": 0 }, "value": "t", @@ -267,7 +267,7 @@ "type": "Identifier", "span": { "start": 195, - "end": 200, + "end": 197, "ctxt": 0 }, "value": "t2", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints5.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints5.json index dfeacd113adc..512939791009 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints5.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints5.json @@ -221,7 +221,7 @@ "type": "Identifier", "span": { "start": 189, - "end": 193, + "end": 190, "ctxt": 0 }, "value": "t", @@ -267,7 +267,7 @@ "type": "Identifier", "span": { "start": 195, - "end": 200, + "end": 197, "ctxt": 0 }, "value": "t2", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndIndexers.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndIndexers.json index ac7f05935f56..5320a4ceda68 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndIndexers.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndIndexers.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 92, - "end": 96, + "end": 93, "ctxt": 0 }, "value": "x", @@ -412,7 +412,7 @@ "type": "Identifier", "span": { "start": 225, - "end": 231, + "end": 228, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndIndexersErrors.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndIndexersErrors.json index 707c6047578d..12493e91c560 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndIndexersErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndIndexersErrors.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 85, - "end": 89, + "end": 86, "ctxt": 0 }, "value": "x", @@ -164,7 +164,7 @@ "type": "Identifier", "span": { "start": 128, - "end": 134, + "end": 131, "ctxt": 0 }, "value": "arg", @@ -526,7 +526,7 @@ "type": "Identifier", "span": { "start": 349, - "end": 355, + "end": 352, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndInitializers.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndInitializers.json index cde21f784b81..62aa694f807a 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndInitializers.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndInitializers.json @@ -39,7 +39,7 @@ "type": "Identifier", "span": { "start": 64, - "end": 68, + "end": 65, "ctxt": 0 }, "value": "x", @@ -187,7 +187,7 @@ "type": "Identifier", "span": { "start": 114, - "end": 118, + "end": 115, "ctxt": 0 }, "value": "x", @@ -337,7 +337,7 @@ "type": "Identifier", "span": { "start": 184, - "end": 188, + "end": 185, "ctxt": 0 }, "value": "x", @@ -479,7 +479,7 @@ "type": "Identifier", "span": { "start": 237, - "end": 241, + "end": 238, "ctxt": 0 }, "value": "x", @@ -532,7 +532,7 @@ "type": "Identifier", "span": { "start": 243, - "end": 247, + "end": 244, "ctxt": 0 }, "value": "y", @@ -697,7 +697,7 @@ "type": "Identifier", "span": { "start": 296, - "end": 300, + "end": 297, "ctxt": 0 }, "value": "x", @@ -750,7 +750,7 @@ "type": "Identifier", "span": { "start": 302, - "end": 306, + "end": 303, "ctxt": 0 }, "value": "y", @@ -915,7 +915,7 @@ "type": "Identifier", "span": { "start": 365, - "end": 369, + "end": 366, "ctxt": 0 }, "value": "x", @@ -961,7 +961,7 @@ "type": "Identifier", "span": { "start": 371, - "end": 375, + "end": 372, "ctxt": 0 }, "value": "y", @@ -1014,7 +1014,7 @@ "type": "Identifier", "span": { "start": 377, - "end": 381, + "end": 378, "ctxt": 0 }, "value": "z", @@ -1220,7 +1220,7 @@ "type": "Identifier", "span": { "start": 443, - "end": 447, + "end": 444, "ctxt": 0 }, "value": "x", @@ -1273,7 +1273,7 @@ "type": "Identifier", "span": { "start": 449, - "end": 453, + "end": 450, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndNumericIndexer.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndNumericIndexer.json index cb9c588cdb75..0fc9fafd188a 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndNumericIndexer.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndNumericIndexer.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 92, - "end": 96, + "end": 93, "ctxt": 0 }, "value": "x", @@ -346,7 +346,7 @@ "type": "Identifier", "span": { "start": 182, - "end": 188, + "end": 185, "ctxt": 0 }, "value": "arg", @@ -642,7 +642,7 @@ "type": "Identifier", "span": { "start": 284, - "end": 290, + "end": 287, "ctxt": 0 }, "value": "arg", @@ -1024,7 +1024,7 @@ "type": "Identifier", "span": { "start": 416, - "end": 422, + "end": 419, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndStringIndexer.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndStringIndexer.json index 839690ad35c3..1b6f398a99f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndStringIndexer.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndStringIndexer.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 92, - "end": 96, + "end": 93, "ctxt": 0 }, "value": "x", @@ -346,7 +346,7 @@ "type": "Identifier", "span": { "start": 182, - "end": 188, + "end": 185, "ctxt": 0 }, "value": "arg", @@ -642,7 +642,7 @@ "type": "Identifier", "span": { "start": 284, - "end": 290, + "end": 287, "ctxt": 0 }, "value": "arg", @@ -1050,7 +1050,7 @@ "type": "Identifier", "span": { "start": 431, - "end": 437, + "end": 434, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedConstructorTypedArguments.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedConstructorTypedArguments.json index 1a87c08212d3..73a0fe91045a 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedConstructorTypedArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedConstructorTypedArguments.json @@ -86,7 +86,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 251, + "end": 242, "ctxt": 0 }, "value": "x", @@ -141,7 +141,7 @@ "type": "Identifier", "span": { "start": 275, - "end": 284, + "end": 276, "ctxt": 0 }, "value": "x", @@ -219,7 +219,7 @@ "type": "Identifier", "span": { "start": 320, - "end": 332, + "end": 322, "ctxt": 0 }, "value": "cb", @@ -434,7 +434,7 @@ "type": "Identifier", "span": { "start": 414, - "end": 418, + "end": 415, "ctxt": 0 }, "value": "x", @@ -660,7 +660,7 @@ "type": "Identifier", "span": { "start": 498, - "end": 542, + "end": 500, "ctxt": 0 }, "value": "cb", @@ -692,7 +692,7 @@ "type": "Identifier", "span": { "start": 508, - "end": 512, + "end": 509, "ctxt": 0 }, "value": "x", @@ -757,7 +757,7 @@ "type": "Identifier", "span": { "start": 527, - "end": 536, + "end": 528, "ctxt": 0 }, "value": "x", @@ -940,7 +940,7 @@ "type": "Identifier", "span": { "start": 598, - "end": 608, + "end": 599, "ctxt": 0 }, "value": "x", @@ -995,7 +995,7 @@ "type": "Identifier", "span": { "start": 632, - "end": 641, + "end": 633, "ctxt": 0 }, "value": "x", @@ -1166,7 +1166,7 @@ "type": "Identifier", "span": { "start": 741, - "end": 745, + "end": 742, "ctxt": 0 }, "value": "x", @@ -1263,7 +1263,7 @@ "type": "Identifier", "span": { "start": 763, - "end": 772, + "end": 764, "ctxt": 0 }, "value": "x", @@ -1449,7 +1449,7 @@ "type": "Identifier", "span": { "start": 867, - "end": 918, + "end": 869, "ctxt": 0 }, "value": "cb", @@ -1481,7 +1481,7 @@ "type": "Identifier", "span": { "start": 877, - "end": 881, + "end": 878, "ctxt": 0 }, "value": "x", @@ -1546,7 +1546,7 @@ "type": "Identifier", "span": { "start": 896, - "end": 900, + "end": 897, "ctxt": 0 }, "value": "x", @@ -1583,7 +1583,7 @@ "type": "Identifier", "span": { "start": 902, - "end": 907, + "end": 903, "ctxt": 0 }, "value": "y", @@ -1871,7 +1871,7 @@ "type": "Identifier", "span": { "start": 1074, - "end": 1077, + "end": 1075, "ctxt": 0 }, "value": "x", @@ -1917,7 +1917,7 @@ "type": "Identifier", "span": { "start": 1079, - "end": 1130, + "end": 1081, "ctxt": 0 }, "value": "cb", @@ -1949,7 +1949,7 @@ "type": "Identifier", "span": { "start": 1089, - "end": 1093, + "end": 1090, "ctxt": 0 }, "value": "x", @@ -2014,7 +2014,7 @@ "type": "Identifier", "span": { "start": 1108, - "end": 1112, + "end": 1109, "ctxt": 0 }, "value": "x", @@ -2051,7 +2051,7 @@ "type": "Identifier", "span": { "start": 1114, - "end": 1119, + "end": 1115, "ctxt": 0 }, "value": "y", @@ -2313,7 +2313,7 @@ "type": "Identifier", "span": { "start": 1258, - "end": 1262, + "end": 1259, "ctxt": 0 }, "value": "x", @@ -2410,7 +2410,7 @@ "type": "Identifier", "span": { "start": 1277, - "end": 1286, + "end": 1278, "ctxt": 0 }, "value": "x", @@ -2557,7 +2557,7 @@ "type": "Identifier", "span": { "start": 1316, - "end": 1320, + "end": 1317, "ctxt": 0 }, "value": "x", @@ -2654,7 +2654,7 @@ "type": "Identifier", "span": { "start": 1338, - "end": 1347, + "end": 1339, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedConstructorTypedArguments2.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedConstructorTypedArguments2.json index c9d7e0c7ce95..b0b59143186f 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedConstructorTypedArguments2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedConstructorTypedArguments2.json @@ -86,7 +86,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 251, + "end": 242, "ctxt": 0 }, "value": "x", @@ -141,7 +141,7 @@ "type": "Identifier", "span": { "start": 275, - "end": 284, + "end": 276, "ctxt": 0 }, "value": "x", @@ -219,7 +219,7 @@ "type": "Identifier", "span": { "start": 320, - "end": 332, + "end": 322, "ctxt": 0 }, "value": "cb", @@ -346,7 +346,7 @@ "type": "Identifier", "span": { "start": 386, - "end": 390, + "end": 387, "ctxt": 0 }, "value": "x", @@ -595,7 +595,7 @@ "type": "Identifier", "span": { "start": 475, - "end": 519, + "end": 477, "ctxt": 0 }, "value": "cb", @@ -627,7 +627,7 @@ "type": "Identifier", "span": { "start": 485, - "end": 489, + "end": 486, "ctxt": 0 }, "value": "x", @@ -692,7 +692,7 @@ "type": "Identifier", "span": { "start": 504, - "end": 513, + "end": 505, "ctxt": 0 }, "value": "x", @@ -875,7 +875,7 @@ "type": "Identifier", "span": { "start": 570, - "end": 574, + "end": 571, "ctxt": 0 }, "value": "x", @@ -1071,7 +1071,7 @@ "type": "Identifier", "span": { "start": 632, - "end": 683, + "end": 634, "ctxt": 0 }, "value": "cb", @@ -1103,7 +1103,7 @@ "type": "Identifier", "span": { "start": 642, - "end": 646, + "end": 643, "ctxt": 0 }, "value": "x", @@ -1168,7 +1168,7 @@ "type": "Identifier", "span": { "start": 661, - "end": 665, + "end": 662, "ctxt": 0 }, "value": "x", @@ -1205,7 +1205,7 @@ "type": "Identifier", "span": { "start": 667, - "end": 672, + "end": 668, "ctxt": 0 }, "value": "y", @@ -1388,7 +1388,7 @@ "type": "Identifier", "span": { "start": 734, - "end": 738, + "end": 735, "ctxt": 0 }, "value": "x", @@ -1425,7 +1425,7 @@ "type": "Identifier", "span": { "start": 740, - "end": 744, + "end": 741, "ctxt": 0 }, "value": "y", @@ -1611,7 +1611,7 @@ "type": "Identifier", "span": { "start": 811, - "end": 814, + "end": 812, "ctxt": 0 }, "value": "x", @@ -1657,7 +1657,7 @@ "type": "Identifier", "span": { "start": 816, - "end": 867, + "end": 818, "ctxt": 0 }, "value": "cb", @@ -1689,7 +1689,7 @@ "type": "Identifier", "span": { "start": 826, - "end": 830, + "end": 827, "ctxt": 0 }, "value": "x", @@ -1754,7 +1754,7 @@ "type": "Identifier", "span": { "start": 845, - "end": 849, + "end": 846, "ctxt": 0 }, "value": "x", @@ -1791,7 +1791,7 @@ "type": "Identifier", "span": { "start": 851, - "end": 856, + "end": 852, "ctxt": 0 }, "value": "y", @@ -2053,7 +2053,7 @@ "type": "Identifier", "span": { "start": 949, - "end": 953, + "end": 950, "ctxt": 0 }, "value": "x", @@ -2150,7 +2150,7 @@ "type": "Identifier", "span": { "start": 971, - "end": 980, + "end": 972, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedFunctionTypedArguments.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedFunctionTypedArguments.json index 0af039f1d7d4..784df9885b1e 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedFunctionTypedArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedFunctionTypedArguments.json @@ -86,7 +86,7 @@ "type": "Identifier", "span": { "start": 238, - "end": 248, + "end": 239, "ctxt": 0 }, "value": "x", @@ -141,7 +141,7 @@ "type": "Identifier", "span": { "start": 269, - "end": 278, + "end": 270, "ctxt": 0 }, "value": "x", @@ -219,7 +219,7 @@ "type": "Identifier", "span": { "start": 314, - "end": 326, + "end": 316, "ctxt": 0 }, "value": "cb", @@ -655,7 +655,7 @@ "type": "Identifier", "span": { "start": 493, - "end": 531, + "end": 495, "ctxt": 0 }, "value": "cb", @@ -687,7 +687,7 @@ "type": "Identifier", "span": { "start": 500, - "end": 504, + "end": 501, "ctxt": 0 }, "value": "x", @@ -752,7 +752,7 @@ "type": "Identifier", "span": { "start": 516, - "end": 525, + "end": 517, "ctxt": 0 }, "value": "x", @@ -1026,7 +1026,7 @@ "type": "Identifier", "span": { "start": 709, - "end": 713, + "end": 710, "ctxt": 0 }, "value": "x", @@ -1123,7 +1123,7 @@ "type": "Identifier", "span": { "start": 728, - "end": 737, + "end": 729, "ctxt": 0 }, "value": "x", @@ -1309,7 +1309,7 @@ "type": "Identifier", "span": { "start": 820, - "end": 865, + "end": 822, "ctxt": 0 }, "value": "cb", @@ -1341,7 +1341,7 @@ "type": "Identifier", "span": { "start": 827, - "end": 831, + "end": 828, "ctxt": 0 }, "value": "x", @@ -1406,7 +1406,7 @@ "type": "Identifier", "span": { "start": 843, - "end": 847, + "end": 844, "ctxt": 0 }, "value": "x", @@ -1443,7 +1443,7 @@ "type": "Identifier", "span": { "start": 849, - "end": 854, + "end": 850, "ctxt": 0 }, "value": "y", @@ -2025,7 +2025,7 @@ "type": "Identifier", "span": { "start": 1190, - "end": 1193, + "end": 1191, "ctxt": 0 }, "value": "x", @@ -2071,7 +2071,7 @@ "type": "Identifier", "span": { "start": 1195, - "end": 1240, + "end": 1197, "ctxt": 0 }, "value": "cb", @@ -2103,7 +2103,7 @@ "type": "Identifier", "span": { "start": 1202, - "end": 1206, + "end": 1203, "ctxt": 0 }, "value": "x", @@ -2168,7 +2168,7 @@ "type": "Identifier", "span": { "start": 1218, - "end": 1222, + "end": 1219, "ctxt": 0 }, "value": "x", @@ -2205,7 +2205,7 @@ "type": "Identifier", "span": { "start": 1224, - "end": 1229, + "end": 1225, "ctxt": 0 }, "value": "y", @@ -2654,7 +2654,7 @@ "type": "Identifier", "span": { "start": 1548, - "end": 1552, + "end": 1549, "ctxt": 0 }, "value": "x", @@ -2751,7 +2751,7 @@ "type": "Identifier", "span": { "start": 1567, - "end": 1576, + "end": 1568, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedFunctionTypedArguments2.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedFunctionTypedArguments2.json index 1259cd01edb7..efdfce0ee71f 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedFunctionTypedArguments2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedFunctionTypedArguments2.json @@ -86,7 +86,7 @@ "type": "Identifier", "span": { "start": 238, - "end": 248, + "end": 239, "ctxt": 0 }, "value": "x", @@ -141,7 +141,7 @@ "type": "Identifier", "span": { "start": 269, - "end": 278, + "end": 270, "ctxt": 0 }, "value": "x", @@ -219,7 +219,7 @@ "type": "Identifier", "span": { "start": 314, - "end": 326, + "end": 316, "ctxt": 0 }, "value": "cb", @@ -598,7 +598,7 @@ "type": "Identifier", "span": { "start": 471, - "end": 509, + "end": 473, "ctxt": 0 }, "value": "cb", @@ -630,7 +630,7 @@ "type": "Identifier", "span": { "start": 478, - "end": 482, + "end": 479, "ctxt": 0 }, "value": "x", @@ -695,7 +695,7 @@ "type": "Identifier", "span": { "start": 494, - "end": 503, + "end": 495, "ctxt": 0 }, "value": "x", @@ -1000,7 +1000,7 @@ "type": "Identifier", "span": { "start": 602, - "end": 647, + "end": 604, "ctxt": 0 }, "value": "cb", @@ -1032,7 +1032,7 @@ "type": "Identifier", "span": { "start": 609, - "end": 613, + "end": 610, "ctxt": 0 }, "value": "x", @@ -1097,7 +1097,7 @@ "type": "Identifier", "span": { "start": 625, - "end": 629, + "end": 626, "ctxt": 0 }, "value": "x", @@ -1134,7 +1134,7 @@ "type": "Identifier", "span": { "start": 631, - "end": 636, + "end": 632, "ctxt": 0 }, "value": "y", @@ -1476,7 +1476,7 @@ "type": "Identifier", "span": { "start": 751, - "end": 754, + "end": 752, "ctxt": 0 }, "value": "x", @@ -1522,7 +1522,7 @@ "type": "Identifier", "span": { "start": 756, - "end": 801, + "end": 758, "ctxt": 0 }, "value": "cb", @@ -1554,7 +1554,7 @@ "type": "Identifier", "span": { "start": 763, - "end": 767, + "end": 764, "ctxt": 0 }, "value": "x", @@ -1619,7 +1619,7 @@ "type": "Identifier", "span": { "start": 779, - "end": 783, + "end": 780, "ctxt": 0 }, "value": "x", @@ -1656,7 +1656,7 @@ "type": "Identifier", "span": { "start": 785, - "end": 790, + "end": 786, "ctxt": 0 }, "value": "y", @@ -2001,7 +2001,7 @@ "type": "Identifier", "span": { "start": 893, - "end": 897, + "end": 894, "ctxt": 0 }, "value": "x", @@ -2098,7 +2098,7 @@ "type": "Identifier", "span": { "start": 912, - "end": 921, + "end": 913, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/genericClassWithFunctionTypedMemberArguments.json b/crates/swc_ecma_parser/tests/tsc/genericClassWithFunctionTypedMemberArguments.json index be36f7c816f7..7289fe8d5703 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericClassWithFunctionTypedMemberArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/genericClassWithFunctionTypedMemberArguments.json @@ -84,7 +84,7 @@ "type": "Identifier", "span": { "start": 212, - "end": 226, + "end": 213, "ctxt": 0 }, "value": "x", @@ -108,7 +108,7 @@ "type": "Identifier", "span": { "start": 216, - "end": 220, + "end": 217, "ctxt": 0 }, "value": "a", @@ -896,7 +896,7 @@ "type": "Identifier", "span": { "start": 468, - "end": 482, + "end": 469, "ctxt": 0 }, "value": "x", @@ -920,7 +920,7 @@ "type": "Identifier", "span": { "start": 472, - "end": 476, + "end": 473, "ctxt": 0 }, "value": "a", @@ -1521,7 +1521,7 @@ "type": "Identifier", "span": { "start": 712, - "end": 716, + "end": 713, "ctxt": 0 }, "value": "x", @@ -1567,7 +1567,7 @@ "type": "Identifier", "span": { "start": 718, - "end": 733, + "end": 720, "ctxt": 0 }, "value": "cb", @@ -1591,7 +1591,7 @@ "type": "Identifier", "span": { "start": 723, - "end": 727, + "end": 724, "ctxt": 0 }, "value": "a", @@ -1994,7 +1994,7 @@ "type": "Identifier", "span": { "start": 838, - "end": 842, + "end": 839, "ctxt": 0 }, "value": "a", @@ -2488,7 +2488,7 @@ "type": "Identifier", "span": { "start": 1085, - "end": 1089, + "end": 1086, "ctxt": 0 }, "value": "x", @@ -2534,7 +2534,7 @@ "type": "Identifier", "span": { "start": 1091, - "end": 1106, + "end": 1093, "ctxt": 0 }, "value": "cb", @@ -2558,7 +2558,7 @@ "type": "Identifier", "span": { "start": 1096, - "end": 1100, + "end": 1097, "ctxt": 0 }, "value": "a", @@ -2636,7 +2636,7 @@ "type": "Identifier", "span": { "start": 1108, - "end": 1112, + "end": 1109, "ctxt": 0 }, "value": "y", @@ -3297,7 +3297,7 @@ "type": "Identifier", "span": { "start": 1354, - "end": 1358, + "end": 1355, "ctxt": 0 }, "value": "x", @@ -3343,7 +3343,7 @@ "type": "Identifier", "span": { "start": 1360, - "end": 1375, + "end": 1362, "ctxt": 0 }, "value": "cb", @@ -3367,7 +3367,7 @@ "type": "Identifier", "span": { "start": 1365, - "end": 1369, + "end": 1366, "ctxt": 0 }, "value": "a", @@ -3445,7 +3445,7 @@ "type": "Identifier", "span": { "start": 1377, - "end": 1381, + "end": 1378, "ctxt": 0 }, "value": "y", @@ -3779,7 +3779,7 @@ "type": "Identifier", "span": { "start": 1485, - "end": 1489, + "end": 1486, "ctxt": 0 }, "value": "t", @@ -3825,7 +3825,7 @@ "type": "Identifier", "span": { "start": 1491, - "end": 1495, + "end": 1492, "ctxt": 0 }, "value": "u", diff --git a/crates/swc_ecma_parser/tests/tsc/genericClassWithObjectTypeArgsAndConstraints.json b/crates/swc_ecma_parser/tests/tsc/genericClassWithObjectTypeArgsAndConstraints.json index 7203912c2c5b..0aa404b82640 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericClassWithObjectTypeArgsAndConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/genericClassWithObjectTypeArgsAndConstraints.json @@ -387,7 +387,7 @@ "type": "Identifier", "span": { "start": 299, - "end": 306, + "end": 300, "ctxt": 0 }, "value": "t", @@ -461,7 +461,7 @@ "type": "Identifier", "span": { "start": 308, - "end": 316, + "end": 310, "ctxt": 0 }, "value": "t2", @@ -1365,7 +1365,7 @@ "type": "Identifier", "span": { "start": 581, - "end": 588, + "end": 582, "ctxt": 0 }, "value": "t", @@ -1439,7 +1439,7 @@ "type": "Identifier", "span": { "start": 590, - "end": 598, + "end": 592, "ctxt": 0 }, "value": "t2", @@ -2160,7 +2160,7 @@ "type": "Identifier", "span": { "start": 842, - "end": 849, + "end": 843, "ctxt": 0 }, "value": "t", @@ -2225,7 +2225,7 @@ "type": "Identifier", "span": { "start": 851, - "end": 859, + "end": 853, "ctxt": 0 }, "value": "t2", @@ -3018,7 +3018,7 @@ "type": "Identifier", "span": { "start": 1076, - "end": 1083, + "end": 1077, "ctxt": 0 }, "value": "t", @@ -3083,7 +3083,7 @@ "type": "Identifier", "span": { "start": 1085, - "end": 1093, + "end": 1087, "ctxt": 0 }, "value": "t2", diff --git a/crates/swc_ecma_parser/tests/tsc/genericContextualTypes1.json b/crates/swc_ecma_parser/tests/tsc/genericContextualTypes1.json index 74cde6ea5ef3..0b7a3d164a3e 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericContextualTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/genericContextualTypes1.json @@ -145,7 +145,7 @@ "type": "Identifier", "span": { "start": 98, - "end": 112, + "end": 99, "ctxt": 0 }, "value": "f", @@ -169,7 +169,7 @@ "type": "Identifier", "span": { "start": 102, - "end": 106, + "end": 103, "ctxt": 0 }, "value": "a", @@ -320,7 +320,7 @@ "type": "Identifier", "span": { "start": 116, - "end": 120, + "end": 117, "ctxt": 0 }, "value": "a", @@ -411,7 +411,7 @@ "type": "Identifier", "span": { "start": 163, - "end": 177, + "end": 164, "ctxt": 0 }, "value": "f", @@ -435,7 +435,7 @@ "type": "Identifier", "span": { "start": 167, - "end": 171, + "end": 168, "ctxt": 0 }, "value": "a", @@ -513,7 +513,7 @@ "type": "Identifier", "span": { "start": 179, - "end": 193, + "end": 180, "ctxt": 0 }, "value": "g", @@ -537,7 +537,7 @@ "type": "Identifier", "span": { "start": 183, - "end": 187, + "end": 184, "ctxt": 0 }, "value": "b", @@ -711,7 +711,7 @@ "type": "Identifier", "span": { "start": 197, - "end": 201, + "end": 198, "ctxt": 0 }, "value": "a", @@ -802,7 +802,7 @@ "type": "Identifier", "span": { "start": 235, - "end": 239, + "end": 236, "ctxt": 0 }, "value": "a", @@ -941,7 +941,7 @@ "type": "Identifier", "span": { "start": 275, - "end": 281, + "end": 276, "ctxt": 0 }, "value": "a", @@ -1080,7 +1080,7 @@ "type": "Identifier", "span": { "start": 312, - "end": 316, + "end": 313, "ctxt": 0 }, "value": "x", @@ -1239,7 +1239,7 @@ "type": "Identifier", "span": { "start": 354, - "end": 363, + "end": 355, "ctxt": 0 }, "value": "x", @@ -1398,7 +1398,7 @@ "type": "Identifier", "span": { "start": 397, - "end": 403, + "end": 398, "ctxt": 0 }, "value": "a", @@ -1452,7 +1452,7 @@ "type": "Identifier", "span": { "start": 405, - "end": 419, + "end": 406, "ctxt": 0 }, "value": "f", @@ -1476,7 +1476,7 @@ "type": "Identifier", "span": { "start": 409, - "end": 413, + "end": 410, "ctxt": 0 }, "value": "x", @@ -1670,7 +1670,7 @@ "type": "Identifier", "span": { "start": 457, - "end": 461, + "end": 458, "ctxt": 0 }, "value": "x", @@ -1801,7 +1801,7 @@ "type": "Identifier", "span": { "start": 495, - "end": 499, + "end": 496, "ctxt": 0 }, "value": "a", @@ -1847,7 +1847,7 @@ "type": "Identifier", "span": { "start": 501, - "end": 505, + "end": 502, "ctxt": 0 }, "value": "b", @@ -2048,7 +2048,7 @@ "type": "Identifier", "span": { "start": 548, - "end": 568, + "end": 549, "ctxt": 0 }, "value": "f", @@ -2072,7 +2072,7 @@ "type": "Identifier", "span": { "start": 552, - "end": 556, + "end": 553, "ctxt": 0 }, "value": "x", @@ -2109,7 +2109,7 @@ "type": "Identifier", "span": { "start": 558, - "end": 562, + "end": 559, "ctxt": 0 }, "value": "y", @@ -2283,7 +2283,7 @@ "type": "Identifier", "span": { "start": 572, - "end": 576, + "end": 573, "ctxt": 0 }, "value": "y", @@ -2320,7 +2320,7 @@ "type": "Identifier", "span": { "start": 578, - "end": 582, + "end": 579, "ctxt": 0 }, "value": "x", @@ -2430,7 +2430,7 @@ "type": "Identifier", "span": { "start": 606, - "end": 610, + "end": 607, "ctxt": 0 }, "value": "x", @@ -2594,7 +2594,7 @@ "type": "Identifier", "span": { "start": 642, - "end": 646, + "end": 643, "ctxt": 0 }, "value": "x", @@ -2796,7 +2796,7 @@ "type": "Identifier", "span": { "start": 682, - "end": 686, + "end": 683, "ctxt": 0 }, "value": "x", @@ -2984,7 +2984,7 @@ "type": "Identifier", "span": { "start": 724, - "end": 728, + "end": 725, "ctxt": 0 }, "value": "x", @@ -3210,7 +3210,7 @@ "type": "Identifier", "span": { "start": 771, - "end": 775, + "end": 772, "ctxt": 0 }, "value": "x", @@ -3537,7 +3537,7 @@ "type": "Identifier", "span": { "start": 842, - "end": 846, + "end": 843, "ctxt": 0 }, "value": "x", @@ -3766,7 +3766,7 @@ "type": "Identifier", "span": { "start": 897, - "end": 908, + "end": 898, "ctxt": 0 }, "value": "x", @@ -4093,7 +4093,7 @@ "type": "Identifier", "span": { "start": 972, - "end": 983, + "end": 973, "ctxt": 0 }, "value": "x", @@ -4341,7 +4341,7 @@ "type": "Identifier", "span": { "start": 1045, - "end": 1049, + "end": 1046, "ctxt": 0 }, "value": "x", @@ -4646,7 +4646,7 @@ "type": "Identifier", "span": { "start": 1110, - "end": 1114, + "end": 1111, "ctxt": 0 }, "value": "x", @@ -4899,7 +4899,7 @@ "type": "Identifier", "span": { "start": 1169, - "end": 1180, + "end": 1170, "ctxt": 0 }, "value": "a", @@ -5086,7 +5086,7 @@ "type": "Identifier", "span": { "start": 1236, - "end": 1242, + "end": 1237, "ctxt": 0 }, "value": "a", @@ -5328,7 +5328,7 @@ "type": "Identifier", "span": { "start": 1290, - "end": 1296, + "end": 1291, "ctxt": 0 }, "value": "a", @@ -5524,7 +5524,7 @@ "type": "Identifier", "span": { "start": 1342, - "end": 1348, + "end": 1343, "ctxt": 0 }, "value": "a", @@ -5791,7 +5791,7 @@ "type": "Identifier", "span": { "start": 1409, - "end": 1420, + "end": 1410, "ctxt": 0 }, "value": "a", @@ -5997,7 +5997,7 @@ "type": "Identifier", "span": { "start": 1504, - "end": 1510, + "end": 1505, "ctxt": 0 }, "value": "a", @@ -6291,7 +6291,7 @@ "type": "Identifier", "span": { "start": 1572, - "end": 1576, + "end": 1573, "ctxt": 0 }, "value": "b", @@ -6328,7 +6328,7 @@ "type": "Identifier", "span": { "start": 1578, - "end": 1582, + "end": 1579, "ctxt": 0 }, "value": "a", @@ -6564,7 +6564,7 @@ "type": "Identifier", "span": { "start": 1644, - "end": 1648, + "end": 1645, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/genericContextualTypes2.json b/crates/swc_ecma_parser/tests/tsc/genericContextualTypes2.json index a81b6d00057c..bb48e41ea1d0 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericContextualTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericContextualTypes2.json @@ -209,7 +209,7 @@ "type": "Identifier", "span": { "start": 130, - "end": 147, + "end": 137, "ctxt": 0 }, "value": "context", @@ -637,7 +637,7 @@ "type": "Identifier", "span": { "start": 315, - "end": 328, + "end": 318, "ctxt": 0 }, "value": "ctx", @@ -847,7 +847,7 @@ "type": "Identifier", "span": { "start": 410, - "end": 423, + "end": 413, "ctxt": 0 }, "value": "arg", @@ -884,7 +884,7 @@ "type": "Identifier", "span": { "start": 425, - "end": 445, + "end": 429, "ctxt": 0 }, "value": "meta", @@ -997,7 +997,7 @@ "type": "Identifier", "span": { "start": 496, - "end": 544, + "end": 506, "ctxt": 0 }, "value": "assignment", @@ -1404,7 +1404,7 @@ "type": "Identifier", "span": { "start": 699, - "end": 723, + "end": 705, "ctxt": 0 }, "value": "config", diff --git a/crates/swc_ecma_parser/tests/tsc/genericContextualTypes3.json b/crates/swc_ecma_parser/tests/tsc/genericContextualTypes3.json index e1e923891d52..f7772e697239 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericContextualTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/genericContextualTypes3.json @@ -209,7 +209,7 @@ "type": "Identifier", "span": { "start": 130, - "end": 147, + "end": 137, "ctxt": 0 }, "value": "context", @@ -637,7 +637,7 @@ "type": "Identifier", "span": { "start": 315, - "end": 328, + "end": 318, "ctxt": 0 }, "value": "ctx", @@ -818,7 +818,7 @@ "type": "Identifier", "span": { "start": 404, - "end": 417, + "end": 407, "ctxt": 0 }, "value": "arg", @@ -855,7 +855,7 @@ "type": "Identifier", "span": { "start": 419, - "end": 439, + "end": 423, "ctxt": 0 }, "value": "meta", @@ -965,7 +965,7 @@ "type": "Identifier", "span": { "start": 488, - "end": 536, + "end": 498, "ctxt": 0 }, "value": "assignment", @@ -1372,7 +1372,7 @@ "type": "Identifier", "span": { "start": 691, - "end": 715, + "end": 697, "ctxt": 0 }, "value": "config", diff --git a/crates/swc_ecma_parser/tests/tsc/genericFunctionParameters.json b/crates/swc_ecma_parser/tests/tsc/genericFunctionParameters.json index bdc6c998fc16..483c6a71a890 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericFunctionParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/genericFunctionParameters.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 64, - "end": 82, + "end": 66, "ctxt": 0 }, "value": "cb", @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 72, - "end": 76, + "end": 73, "ctxt": 0 }, "value": "x", @@ -251,7 +251,7 @@ "type": "Identifier", "span": { "start": 111, - "end": 144, + "end": 113, "ctxt": 0 }, "value": "cb", @@ -275,7 +275,7 @@ "type": "Identifier", "span": { "start": 134, - "end": 138, + "end": 135, "ctxt": 0 }, "value": "x", @@ -478,7 +478,7 @@ "type": "Identifier", "span": { "start": 173, - "end": 208, + "end": 175, "ctxt": 0 }, "value": "cb", @@ -502,7 +502,7 @@ "type": "Identifier", "span": { "start": 198, - "end": 202, + "end": 199, "ctxt": 0 }, "value": "x", @@ -1035,7 +1035,7 @@ "type": "Identifier", "span": { "start": 355, - "end": 388, + "end": 357, "ctxt": 0 }, "value": "go", @@ -1059,7 +1059,7 @@ "type": "Identifier", "span": { "start": 363, - "end": 382, + "end": 366, "ctxt": 0 }, "value": "ops", diff --git a/crates/swc_ecma_parser/tests/tsc/genericInstantiationEquivalentToObjectLiteral.json b/crates/swc_ecma_parser/tests/tsc/genericInstantiationEquivalentToObjectLiteral.json index ccf0f2605733..be1633dde708 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericInstantiationEquivalentToObjectLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/genericInstantiationEquivalentToObjectLiteral.json @@ -514,7 +514,7 @@ "type": "Identifier", "span": { "start": 162, - "end": 175, + "end": 163, "ctxt": 0 }, "value": "x", @@ -689,7 +689,7 @@ "type": "Identifier", "span": { "start": 204, - "end": 231, + "end": 205, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/genericObjectRest.json b/crates/swc_ecma_parser/tests/tsc/genericObjectRest.json index a017484128b3..832ebf8f0982 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericObjectRest.json +++ b/crates/swc_ecma_parser/tests/tsc/genericObjectRest.json @@ -74,7 +74,7 @@ "type": "Identifier", "span": { "start": 102, - "end": 108, + "end": 105, "ctxt": 0 }, "value": "obj", @@ -951,7 +951,7 @@ "type": "Identifier", "span": { "start": 412, - "end": 418, + "end": 415, "ctxt": 0 }, "value": "obj", @@ -1288,7 +1288,7 @@ "type": "Identifier", "span": { "start": 525, - "end": 531, + "end": 528, "ctxt": 0 }, "value": "obj", @@ -1334,7 +1334,7 @@ "type": "Identifier", "span": { "start": 533, - "end": 539, + "end": 535, "ctxt": 0 }, "value": "k1", @@ -1380,7 +1380,7 @@ "type": "Identifier", "span": { "start": 541, - "end": 547, + "end": 543, "ctxt": 0 }, "value": "k2", @@ -1879,7 +1879,7 @@ "type": "Identifier", "span": { "start": 708, - "end": 717, + "end": 711, "ctxt": 0 }, "value": "obj", @@ -1925,7 +1925,7 @@ "type": "Identifier", "span": { "start": 719, - "end": 725, + "end": 721, "ctxt": 0 }, "value": "k1", @@ -1971,7 +1971,7 @@ "type": "Identifier", "span": { "start": 727, - "end": 733, + "end": 729, "ctxt": 0 }, "value": "k2", diff --git a/crates/swc_ecma_parser/tests/tsc/genericRestArity.json b/crates/swc_ecma_parser/tests/tsc/genericRestArity.json index 213cb1d9c22e..b6131b81ec2f 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericRestArity.json +++ b/crates/swc_ecma_parser/tests/tsc/genericRestArity.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 72, - "end": 102, + "end": 79, "ctxt": 0 }, "value": "handler", diff --git a/crates/swc_ecma_parser/tests/tsc/genericRestArityStrict.json b/crates/swc_ecma_parser/tests/tsc/genericRestArityStrict.json index 3f5118d8d505..4d982e5e2f1b 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericRestArityStrict.json +++ b/crates/swc_ecma_parser/tests/tsc/genericRestArityStrict.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 90, - "end": 120, + "end": 97, "ctxt": 0 }, "value": "handler", diff --git a/crates/swc_ecma_parser/tests/tsc/genericRestParameters1.json b/crates/swc_ecma_parser/tests/tsc/genericRestParameters1.json index a6abe607075f..5de2d21ce956 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericRestParameters1.json +++ b/crates/swc_ecma_parser/tests/tsc/genericRestParameters1.json @@ -215,7 +215,7 @@ "type": "Identifier", "span": { "start": 117, - "end": 127, + "end": 119, "ctxt": 0 }, "value": "x0", @@ -242,7 +242,7 @@ "type": "Identifier", "span": { "start": 129, - "end": 139, + "end": 131, "ctxt": 0 }, "value": "x1", @@ -269,7 +269,7 @@ "type": "Identifier", "span": { "start": 141, - "end": 152, + "end": 143, "ctxt": 0 }, "value": "x2", @@ -3090,7 +3090,7 @@ "type": "Identifier", "span": { "start": 1476, - "end": 1480, + "end": 1477, "ctxt": 0 }, "value": "u", @@ -3136,7 +3136,7 @@ "type": "Identifier", "span": { "start": 1482, - "end": 1486, + "end": 1483, "ctxt": 0 }, "value": "v", @@ -4568,7 +4568,7 @@ "type": "Identifier", "span": { "start": 2265, - "end": 2269, + "end": 2266, "ctxt": 0 }, "value": "u", @@ -4614,7 +4614,7 @@ "type": "Identifier", "span": { "start": 2271, - "end": 2275, + "end": 2272, "ctxt": 0 }, "value": "v", @@ -5122,7 +5122,7 @@ "type": "Identifier", "span": { "start": 2482, - "end": 2502, + "end": 2483, "ctxt": 0 }, "value": "f", @@ -5451,7 +5451,7 @@ "type": "Identifier", "span": { "start": 2583, - "end": 2590, + "end": 2587, "ctxt": 0 }, "value": "args", @@ -5497,7 +5497,7 @@ "type": "Identifier", "span": { "start": 2592, - "end": 2612, + "end": 2593, "ctxt": 0 }, "value": "f", @@ -5766,7 +5766,7 @@ "type": "Identifier", "span": { "start": 2663, - "end": 2672, + "end": 2664, "ctxt": 0 }, "value": "a", @@ -5802,7 +5802,7 @@ "type": "Identifier", "span": { "start": 2674, - "end": 2683, + "end": 2675, "ctxt": 0 }, "value": "b", @@ -5900,7 +5900,7 @@ "type": "Identifier", "span": { "start": 2730, - "end": 2734, + "end": 2731, "ctxt": 0 }, "value": "a", @@ -5946,7 +5946,7 @@ "type": "Identifier", "span": { "start": 2736, - "end": 2740, + "end": 2737, "ctxt": 0 }, "value": "b", @@ -7074,7 +7074,7 @@ "type": "Identifier", "span": { "start": 3233, - "end": 3259, + "end": 3234, "ctxt": 0 }, "value": "f", @@ -7098,7 +7098,7 @@ "type": "Identifier", "span": { "start": 3237, - "end": 3241, + "end": 3238, "ctxt": 0 }, "value": "x", @@ -7227,7 +7227,7 @@ "type": "Identifier", "span": { "start": 3261, - "end": 3265, + "end": 3262, "ctxt": 0 }, "value": "x", @@ -7546,7 +7546,7 @@ "type": "Identifier", "span": { "start": 3334, - "end": 3343, + "end": 3335, "ctxt": 0 }, "value": "x", @@ -7573,7 +7573,7 @@ "type": "Identifier", "span": { "start": 3345, - "end": 3354, + "end": 3346, "ctxt": 0 }, "value": "y", @@ -7600,7 +7600,7 @@ "type": "Identifier", "span": { "start": 3356, - "end": 3366, + "end": 3357, "ctxt": 0 }, "value": "z", @@ -8129,7 +8129,7 @@ "type": "Identifier", "span": { "start": 3642, - "end": 3651, + "end": 3643, "ctxt": 0 }, "value": "x", @@ -8156,7 +8156,7 @@ "type": "Identifier", "span": { "start": 3653, - "end": 3663, + "end": 3654, "ctxt": 0 }, "value": "y", @@ -8183,7 +8183,7 @@ "type": "Identifier", "span": { "start": 3665, - "end": 3676, + "end": 3666, "ctxt": 0 }, "value": "z", @@ -8888,7 +8888,7 @@ "type": "Identifier", "span": { "start": 4040, - "end": 4044, + "end": 4041, "ctxt": 0 }, "value": "x", @@ -9069,7 +9069,7 @@ "type": "Identifier", "span": { "start": 4023, - "end": 4027, + "end": 4024, "ctxt": 0 }, "value": "x", @@ -9392,7 +9392,7 @@ "type": "Identifier", "span": { "start": 4184, - "end": 4193, + "end": 4185, "ctxt": 0 }, "value": "x", @@ -9419,7 +9419,7 @@ "type": "Identifier", "span": { "start": 4195, - "end": 4204, + "end": 4196, "ctxt": 0 }, "value": "y", @@ -9446,7 +9446,7 @@ "type": "Identifier", "span": { "start": 4206, - "end": 4216, + "end": 4207, "ctxt": 0 }, "value": "z", @@ -9721,7 +9721,7 @@ "type": "Identifier", "span": { "start": 4335, - "end": 4344, + "end": 4336, "ctxt": 0 }, "value": "x", @@ -9748,7 +9748,7 @@ "type": "Identifier", "span": { "start": 4346, - "end": 4355, + "end": 4347, "ctxt": 0 }, "value": "y", @@ -9775,7 +9775,7 @@ "type": "Identifier", "span": { "start": 4357, - "end": 4367, + "end": 4358, "ctxt": 0 }, "value": "z", @@ -11157,7 +11157,7 @@ "type": "Identifier", "span": { "start": 4925, - "end": 4929, + "end": 4926, "ctxt": 0 }, "value": "e", @@ -12246,7 +12246,7 @@ "type": "Identifier", "span": { "start": 5299, - "end": 5307, + "end": 5300, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/genericRestParameters2.json b/crates/swc_ecma_parser/tests/tsc/genericRestParameters2.json index 3c330fe4d2ef..08175a9e25eb 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericRestParameters2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericRestParameters2.json @@ -570,7 +570,7 @@ "type": "Identifier", "span": { "start": 268, - "end": 277, + "end": 269, "ctxt": 0 }, "value": "a", @@ -743,7 +743,7 @@ "type": "Identifier", "span": { "start": 331, - "end": 340, + "end": 332, "ctxt": 0 }, "value": "a", @@ -770,7 +770,7 @@ "type": "Identifier", "span": { "start": 342, - "end": 351, + "end": 343, "ctxt": 0 }, "value": "b", @@ -925,7 +925,7 @@ "type": "Identifier", "span": { "start": 397, - "end": 406, + "end": 398, "ctxt": 0 }, "value": "a", @@ -952,7 +952,7 @@ "type": "Identifier", "span": { "start": 408, - "end": 417, + "end": 409, "ctxt": 0 }, "value": "b", @@ -979,7 +979,7 @@ "type": "Identifier", "span": { "start": 419, - "end": 429, + "end": 420, "ctxt": 0 }, "value": "c", @@ -1074,7 +1074,7 @@ "type": "Identifier", "span": { "start": 458, - "end": 467, + "end": 459, "ctxt": 0 }, "value": "a", @@ -1101,7 +1101,7 @@ "type": "Identifier", "span": { "start": 469, - "end": 478, + "end": 470, "ctxt": 0 }, "value": "b", @@ -1128,7 +1128,7 @@ "type": "Identifier", "span": { "start": 480, - "end": 490, + "end": 481, "ctxt": 0 }, "value": "c", @@ -1444,7 +1444,7 @@ "type": "Identifier", "span": { "start": 595, - "end": 604, + "end": 596, "ctxt": 0 }, "value": "a", @@ -1633,7 +1633,7 @@ "type": "Identifier", "span": { "start": 663, - "end": 672, + "end": 664, "ctxt": 0 }, "value": "a", @@ -1660,7 +1660,7 @@ "type": "Identifier", "span": { "start": 674, - "end": 683, + "end": 675, "ctxt": 0 }, "value": "b", @@ -1831,7 +1831,7 @@ "type": "Identifier", "span": { "start": 734, - "end": 743, + "end": 735, "ctxt": 0 }, "value": "a", @@ -1858,7 +1858,7 @@ "type": "Identifier", "span": { "start": 745, - "end": 754, + "end": 746, "ctxt": 0 }, "value": "b", @@ -5663,7 +5663,7 @@ "type": "Identifier", "span": { "start": 1968, - "end": 1977, + "end": 1969, "ctxt": 0 }, "value": "x", @@ -5690,7 +5690,7 @@ "type": "Identifier", "span": { "start": 1979, - "end": 1988, + "end": 1980, "ctxt": 0 }, "value": "y", @@ -6030,7 +6030,7 @@ "type": "Identifier", "span": { "start": 2129, - "end": 2138, + "end": 2130, "ctxt": 0 }, "value": "x", @@ -6057,7 +6057,7 @@ "type": "Identifier", "span": { "start": 2140, - "end": 2149, + "end": 2141, "ctxt": 0 }, "value": "y", @@ -6447,7 +6447,7 @@ "type": "Identifier", "span": { "start": 2307, - "end": 2316, + "end": 2308, "ctxt": 0 }, "value": "x", @@ -6762,7 +6762,7 @@ "type": "Identifier", "span": { "start": 2422, - "end": 2435, + "end": 2426, "ctxt": 0 }, "value": "head", @@ -7077,7 +7077,7 @@ "type": "Identifier", "span": { "start": 2510, - "end": 2519, + "end": 2511, "ctxt": 0 }, "value": "x", @@ -7104,7 +7104,7 @@ "type": "Identifier", "span": { "start": 2521, - "end": 2530, + "end": 2522, "ctxt": 0 }, "value": "y", @@ -7381,7 +7381,7 @@ "type": "Identifier", "span": { "start": 2615, - "end": 2624, + "end": 2616, "ctxt": 0 }, "value": "x", @@ -7408,7 +7408,7 @@ "type": "Identifier", "span": { "start": 2626, - "end": 2635, + "end": 2627, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/genericRestParameters3.json b/crates/swc_ecma_parser/tests/tsc/genericRestParameters3.json index b8ad9169c624..21bc2467b6c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericRestParameters3.json +++ b/crates/swc_ecma_parser/tests/tsc/genericRestParameters3.json @@ -51,7 +51,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 67, + "end": 59, "ctxt": 0 }, "value": "x", @@ -262,7 +262,7 @@ "type": "Identifier", "span": { "start": 134, - "end": 143, + "end": 135, "ctxt": 0 }, "value": "x", @@ -289,7 +289,7 @@ "type": "Identifier", "span": { "start": 145, - "end": 154, + "end": 146, "ctxt": 0 }, "value": "y", @@ -384,7 +384,7 @@ "type": "Identifier", "span": { "start": 182, - "end": 191, + "end": 183, "ctxt": 0 }, "value": "x", @@ -411,7 +411,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 202, + "end": 194, "ctxt": 0 }, "value": "y", @@ -438,7 +438,7 @@ "type": "Identifier", "span": { "start": 204, - "end": 214, + "end": 205, "ctxt": 0 }, "value": "z", @@ -2101,7 +2101,7 @@ "type": "Identifier", "span": { "start": 894, - "end": 918, + "end": 896, "ctxt": 0 }, "value": "cb", @@ -4059,7 +4059,7 @@ "type": "Identifier", "span": { "start": 1791, - "end": 1800, + "end": 1792, "ctxt": 0 }, "value": "x", @@ -4468,7 +4468,7 @@ "type": "Identifier", "span": { "start": 2020, - "end": 2029, + "end": 2021, "ctxt": 0 }, "value": "x", @@ -4718,7 +4718,7 @@ "type": "Identifier", "span": { "start": 2128, - "end": 2185, + "end": 2130, "ctxt": 0 }, "value": "s1", @@ -4933,7 +4933,7 @@ "type": "Identifier", "span": { "start": 2187, - "end": 2233, + "end": 2189, "ctxt": 0 }, "value": "s2", @@ -4957,7 +4957,7 @@ "type": "Identifier", "span": { "start": 2192, - "end": 2201, + "end": 2193, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/getSetAccessorContextualTyping.json b/crates/swc_ecma_parser/tests/tsc/getSetAccessorContextualTyping.json index c462184be854..3cc722116ade 100644 --- a/crates/swc_ecma_parser/tests/tsc/getSetAccessorContextualTyping.json +++ b/crates/swc_ecma_parser/tests/tsc/getSetAccessorContextualTyping.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 307, - "end": 316, + "end": 308, "ctxt": 0 }, "value": "x", @@ -483,7 +483,7 @@ "type": "Identifier", "span": { "start": 578, - "end": 587, + "end": 579, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/grammarAmbiguities.json b/crates/swc_ecma_parser/tests/tsc/grammarAmbiguities.json index 0e0777ee324c..4e0d1941e814 100644 --- a/crates/swc_ecma_parser/tests/tsc/grammarAmbiguities.json +++ b/crates/swc_ecma_parser/tests/tsc/grammarAmbiguities.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 12, - "end": 18, + "end": 13, "ctxt": 0 }, "value": "n", @@ -120,7 +120,7 @@ "type": "Identifier", "span": { "start": 54, - "end": 60, + "end": 55, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/heterogeneousArrayLiterals.json b/crates/swc_ecma_parser/tests/tsc/heterogeneousArrayLiterals.json index 645ca5d6e24f..76991e75927c 100644 --- a/crates/swc_ecma_parser/tests/tsc/heterogeneousArrayLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/heterogeneousArrayLiterals.json @@ -3297,7 +3297,7 @@ "type": "Identifier", "span": { "start": 1682, - "end": 1686, + "end": 1683, "ctxt": 0 }, "value": "t", @@ -3343,7 +3343,7 @@ "type": "Identifier", "span": { "start": 1688, - "end": 1692, + "end": 1689, "ctxt": 0 }, "value": "u", @@ -3962,7 +3962,7 @@ "type": "Identifier", "span": { "start": 1962, - "end": 1966, + "end": 1963, "ctxt": 0 }, "value": "t", @@ -4008,7 +4008,7 @@ "type": "Identifier", "span": { "start": 1968, - "end": 1972, + "end": 1969, "ctxt": 0 }, "value": "u", @@ -4935,7 +4935,7 @@ "type": "Identifier", "span": { "start": 2390, - "end": 2394, + "end": 2391, "ctxt": 0 }, "value": "t", @@ -4981,7 +4981,7 @@ "type": "Identifier", "span": { "start": 2396, - "end": 2400, + "end": 2397, "ctxt": 0 }, "value": "u", @@ -5908,7 +5908,7 @@ "type": "Identifier", "span": { "start": 2812, - "end": 2816, + "end": 2813, "ctxt": 0 }, "value": "t", @@ -5954,7 +5954,7 @@ "type": "Identifier", "span": { "start": 2818, - "end": 2822, + "end": 2819, "ctxt": 0 }, "value": "u", diff --git a/crates/swc_ecma_parser/tests/tsc/identicalCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/identicalCallSignatures.json index cce26949d529..402b5b0da34f 100644 --- a/crates/swc_ecma_parser/tests/tsc/identicalCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/identicalCallSignatures.json @@ -85,7 +85,7 @@ "type": "Identifier", "span": { "start": 173, - "end": 179, + "end": 174, "ctxt": 0 }, "value": "x", @@ -140,7 +140,7 @@ "type": "Identifier", "span": { "start": 198, - "end": 202, + "end": 199, "ctxt": 0 }, "value": "x", @@ -247,7 +247,7 @@ "type": "Identifier", "span": { "start": 216, - "end": 220, + "end": 217, "ctxt": 0 }, "value": "x", @@ -417,7 +417,7 @@ "type": "Identifier", "span": { "start": 261, - "end": 265, + "end": 262, "ctxt": 0 }, "value": "x", @@ -492,7 +492,7 @@ "type": "Identifier", "span": { "start": 276, - "end": 280, + "end": 277, "ctxt": 0 }, "value": "x", @@ -650,7 +650,7 @@ "type": "Identifier", "span": { "start": 329, - "end": 335, + "end": 330, "ctxt": 0 }, "value": "x", @@ -705,7 +705,7 @@ "type": "Identifier", "span": { "start": 354, - "end": 358, + "end": 355, "ctxt": 0 }, "value": "x", @@ -812,7 +812,7 @@ "type": "Identifier", "span": { "start": 372, - "end": 376, + "end": 373, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/identicalCallSignatures2.json b/crates/swc_ecma_parser/tests/tsc/identicalCallSignatures2.json index 0ff44b23d535..c52faab1e734 100644 --- a/crates/swc_ecma_parser/tests/tsc/identicalCallSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/identicalCallSignatures2.json @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 194, - "end": 203, + "end": 195, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/identicalCallSignatures3.json b/crates/swc_ecma_parser/tests/tsc/identicalCallSignatures3.json index aa798742e18e..eded98596364 100644 --- a/crates/swc_ecma_parser/tests/tsc/identicalCallSignatures3.json +++ b/crates/swc_ecma_parser/tests/tsc/identicalCallSignatures3.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 230, - "end": 239, + "end": 231, "ctxt": 0 }, "value": "x", @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 272, - "end": 281, + "end": 273, "ctxt": 0 }, "value": "x", @@ -250,7 +250,7 @@ "type": "Identifier", "span": { "start": 318, - "end": 327, + "end": 319, "ctxt": 0 }, "value": "x", @@ -368,7 +368,7 @@ "type": "Identifier", "span": { "start": 364, - "end": 373, + "end": 365, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/ifDoWhileStatements.json b/crates/swc_ecma_parser/tests/tsc/ifDoWhileStatements.json index 5220052932ec..1e45305422e1 100644 --- a/crates/swc_ecma_parser/tests/tsc/ifDoWhileStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/ifDoWhileStatements.json @@ -630,7 +630,7 @@ "type": "Identifier", "span": { "start": 251, - "end": 260, + "end": 252, "ctxt": 0 }, "value": "x", @@ -736,7 +736,7 @@ "type": "Identifier", "span": { "start": 297, - "end": 306, + "end": 298, "ctxt": 0 }, "value": "x", @@ -975,7 +975,7 @@ "type": "Identifier", "span": { "start": 421, - "end": 430, + "end": 422, "ctxt": 0 }, "value": "x", @@ -1227,7 +1227,7 @@ "type": "Identifier", "span": { "start": 550, - "end": 559, + "end": 551, "ctxt": 0 }, "value": "x", @@ -4328,7 +4328,7 @@ "type": "Identifier", "span": { "start": 2062, - "end": 2072, + "end": 2063, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/importAliasIdentifiers.json b/crates/swc_ecma_parser/tests/tsc/importAliasIdentifiers.json index d4e93adad6a1..8de23ebece39 100644 --- a/crates/swc_ecma_parser/tests/tsc/importAliasIdentifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/importAliasIdentifiers.json @@ -93,7 +93,7 @@ "type": "Identifier", "span": { "start": 70, - "end": 79, + "end": 71, "ctxt": 0 }, "value": "x", @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 88, - "end": 97, + "end": 89, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpression2ES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpression2ES2020.json index a2884ed6789e..a343ef4404a2 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpression2ES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpression2ES2020.json @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 141, - "end": 156, + "end": 142, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionDeclarationEmit1.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionDeclarationEmit1.json index aa839f1ba44c..5828a9f7d6a7 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionDeclarationEmit1.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionDeclarationEmit1.json @@ -570,7 +570,7 @@ "type": "Identifier", "span": { "start": 424, - "end": 436, + "end": 428, "ctxt": 0 }, "value": "path", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD2.json index 7d358d64dbb4..f159e4a22e2e 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD2.json @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 222, - "end": 237, + "end": 223, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS2.json index 12013118e0f9..d8f20a98d0d8 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS2.json @@ -154,7 +154,7 @@ "type": "Identifier", "span": { "start": 209, - "end": 230, + "end": 216, "ctxt": 0 }, "value": "promise", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS3.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS3.json index 992163782910..6df901ef0b9b 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS3.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS3.json @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 227, - "end": 242, + "end": 228, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem2.json index 4366d684d00f..1ad1299a0399 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem2.json @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 225, - "end": 240, + "end": 226, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD2.json index 7d358d64dbb4..f159e4a22e2e 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD2.json @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 222, - "end": 237, + "end": 223, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionReturnPromiseOfAny.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionReturnPromiseOfAny.json index a78f7bad8d6a..ceb12026f418 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionReturnPromiseOfAny.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionReturnPromiseOfAny.json @@ -1323,7 +1323,7 @@ "type": "Identifier", "span": { "start": 875, - "end": 896, + "end": 886, "ctxt": 0 }, "value": "directories", diff --git a/crates/swc_ecma_parser/tests/tsc/importStatements.json b/crates/swc_ecma_parser/tests/tsc/importStatements.json index 86ae263b25a1..fce017df5fe1 100644 --- a/crates/swc_ecma_parser/tests/tsc/importStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/importStatements.json @@ -93,7 +93,7 @@ "type": "Identifier", "span": { "start": 64, - "end": 73, + "end": 65, "ctxt": 0 }, "value": "x", @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 82, - "end": 91, + "end": 83, "ctxt": 0 }, "value": "y", @@ -853,7 +853,7 @@ "type": "Identifier", "span": { "start": 562, - "end": 572, + "end": 563, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/importStatementsInterfaces.json b/crates/swc_ecma_parser/tests/tsc/importStatementsInterfaces.json index 393159e902f0..77c2700b6d9b 100644 --- a/crates/swc_ecma_parser/tests/tsc/importStatementsInterfaces.json +++ b/crates/swc_ecma_parser/tests/tsc/importStatementsInterfaces.json @@ -935,7 +935,7 @@ "type": "Identifier", "span": { "start": 570, - "end": 582, + "end": 571, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeAmbient.json b/crates/swc_ecma_parser/tests/tsc/importTypeAmbient.json index 30d224b889d3..1f66981964a8 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeAmbient.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeAmbient.json @@ -713,7 +713,7 @@ "type": "Identifier", "span": { "start": 480, - "end": 492, + "end": 485, "ctxt": 0 }, "value": "input", @@ -1131,7 +1131,7 @@ "type": "Identifier", "span": { "start": 626, - "end": 637, + "end": 631, "ctxt": 0 }, "value": "input", diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeGenericTypes.json b/crates/swc_ecma_parser/tests/tsc/importTypeGenericTypes.json index 175965ad7fef..c03111bacfd4 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeGenericTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeGenericTypes.json @@ -842,7 +842,7 @@ "type": "Identifier", "span": { "start": 436, - "end": 451, + "end": 441, "ctxt": 0 }, "value": "input", @@ -1759,7 +1759,7 @@ "type": "Identifier", "span": { "start": 753, - "end": 764, + "end": 758, "ctxt": 0 }, "value": "input", diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeInJSDoc.json b/crates/swc_ecma_parser/tests/tsc/importTypeInJSDoc.json index 75ebaade2253..e4dc555331bd 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeInJSDoc.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeInJSDoc.json @@ -109,7 +109,7 @@ "type": "Identifier", "span": { "start": 168, - "end": 177, + "end": 169, "ctxt": 0 }, "value": "x", @@ -264,7 +264,7 @@ "type": "Identifier", "span": { "start": 256, - "end": 265, + "end": 257, "ctxt": 0 }, "value": "x", @@ -291,7 +291,7 @@ "type": "Identifier", "span": { "start": 267, - "end": 277, + "end": 268, "ctxt": 0 }, "value": "y", @@ -375,7 +375,7 @@ "type": "Identifier", "span": { "start": 304, - "end": 318, + "end": 305, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeLocal.json b/crates/swc_ecma_parser/tests/tsc/importTypeLocal.json index 73fdb5d3236a..73ae65c0c9f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeLocal.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeLocal.json @@ -565,7 +565,7 @@ "type": "Identifier", "span": { "start": 374, - "end": 386, + "end": 379, "ctxt": 0 }, "value": "input", @@ -1159,7 +1159,7 @@ "type": "Identifier", "span": { "start": 620, - "end": 631, + "end": 625, "ctxt": 0 }, "value": "input", diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeLocalMissing.json b/crates/swc_ecma_parser/tests/tsc/importTypeLocalMissing.json index aca5a1d64c69..15a457aad634 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeLocalMissing.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeLocalMissing.json @@ -565,7 +565,7 @@ "type": "Identifier", "span": { "start": 374, - "end": 386, + "end": 379, "ctxt": 0 }, "value": "input", @@ -1304,7 +1304,7 @@ "type": "Identifier", "span": { "start": 674, - "end": 685, + "end": 679, "ctxt": 0 }, "value": "input", diff --git a/crates/swc_ecma_parser/tests/tsc/importingExportingTypes.json b/crates/swc_ecma_parser/tests/tsc/importingExportingTypes.json index f996cb6e7a86..5a2a89663edf 100644 --- a/crates/swc_ecma_parser/tests/tsc/importingExportingTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/importingExportingTypes.json @@ -104,7 +104,7 @@ "type": "Identifier", "span": { "start": 195, - "end": 207, + "end": 199, "ctxt": 0 }, "value": "path", @@ -140,7 +140,7 @@ "type": "Identifier", "span": { "start": 209, - "end": 218, + "end": 213, "ctxt": 0 }, "value": "data", @@ -176,7 +176,7 @@ "type": "Identifier", "span": { "start": 220, - "end": 245, + "end": 227, "ctxt": 0 }, "value": "options", @@ -222,7 +222,7 @@ "type": "Identifier", "span": { "start": 247, - "end": 277, + "end": 255, "ctxt": 0 }, "value": "callback", @@ -246,7 +246,7 @@ "type": "Identifier", "span": { "start": 258, - "end": 268, + "end": 261, "ctxt": 0 }, "value": "err", diff --git a/crates/swc_ecma_parser/tests/tsc/inOperatorWithValidOperands.json b/crates/swc_ecma_parser/tests/tsc/inOperatorWithValidOperands.json index 7c483f1f2446..2c6b8427fd13 100644 --- a/crates/swc_ecma_parser/tests/tsc/inOperatorWithValidOperands.json +++ b/crates/swc_ecma_parser/tests/tsc/inOperatorWithValidOperands.json @@ -902,7 +902,7 @@ "type": "Identifier", "span": { "start": 541, - "end": 545, + "end": 542, "ctxt": 0 }, "value": "t", @@ -1077,7 +1077,7 @@ "type": "Identifier", "span": { "start": 599, - "end": 607, + "end": 600, "ctxt": 0 }, "value": "t", @@ -1304,7 +1304,7 @@ "type": "Identifier", "span": { "start": 659, - "end": 672, + "end": 660, "ctxt": 0 }, "value": "t", diff --git a/crates/swc_ecma_parser/tests/tsc/indexSignatureTypeInference.json b/crates/swc_ecma_parser/tests/tsc/indexSignatureTypeInference.json index 7726b2794477..31b9e10e7727 100644 --- a/crates/swc_ecma_parser/tests/tsc/indexSignatureTypeInference.json +++ b/crates/swc_ecma_parser/tests/tsc/indexSignatureTypeInference.json @@ -290,7 +290,7 @@ "type": "Identifier", "span": { "start": 142, - "end": 162, + "end": 148, "ctxt": 0 }, "value": "object", @@ -457,7 +457,7 @@ "type": "Identifier", "span": { "start": 207, - "end": 227, + "end": 213, "ctxt": 0 }, "value": "object", diff --git a/crates/swc_ecma_parser/tests/tsc/inferFromBindingPattern.json b/crates/swc_ecma_parser/tests/tsc/inferFromBindingPattern.json index 6df70bd7a2e0..968578153849 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferFromBindingPattern.json +++ b/crates/swc_ecma_parser/tests/tsc/inferFromBindingPattern.json @@ -892,7 +892,7 @@ "type": "Identifier", "span": { "start": 438, - "end": 444, + "end": 441, "ctxt": 0 }, "value": "obj", @@ -1241,7 +1241,7 @@ "type": "Identifier", "span": { "start": 587, - "end": 617, + "end": 592, "ctxt": 0 }, "value": "props", @@ -1740,7 +1740,7 @@ "type": "Identifier", "span": { "start": 838, - "end": 845, + "end": 841, "ctxt": 0 }, "value": "arg", @@ -1890,7 +1890,7 @@ "type": "Identifier", "span": { "start": 891, - "end": 898, + "end": 894, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/inferThisType.json b/crates/swc_ecma_parser/tests/tsc/inferThisType.json index bdd52e9cff12..3506e9fd2f33 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferThisType.json +++ b/crates/swc_ecma_parser/tests/tsc/inferThisType.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 23, - "end": 43, + "end": 24, "ctxt": 0 }, "value": "g", @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 27, - "end": 34, + "end": 31, "ctxt": 0 }, "value": "this", @@ -209,7 +209,7 @@ "type": "Identifier", "span": { "start": 67, - "end": 79, + "end": 71, "ctxt": 0 }, "value": "this", @@ -393,7 +393,7 @@ "type": "Identifier", "span": { "start": 155, - "end": 168, + "end": 159, "ctxt": 0 }, "value": "this", @@ -583,7 +583,7 @@ "type": "Identifier", "span": { "start": 230, - "end": 242, + "end": 234, "ctxt": 0 }, "value": "this", @@ -719,7 +719,7 @@ "type": "Identifier", "span": { "start": 302, - "end": 315, + "end": 306, "ctxt": 0 }, "value": "this", @@ -919,7 +919,7 @@ "type": "Identifier", "span": { "start": 371, - "end": 383, + "end": 375, "ctxt": 0 }, "value": "this", diff --git a/crates/swc_ecma_parser/tests/tsc/inferTypes2.json b/crates/swc_ecma_parser/tests/tsc/inferTypes2.json index f2f98bcd86e2..323813f83033 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/inferTypes2.json @@ -39,7 +39,7 @@ "type": "Identifier", "span": { "start": 95, - "end": 101, + "end": 98, "ctxt": 0 }, "value": "obj", @@ -263,7 +263,7 @@ "type": "Identifier", "span": { "start": 164, - "end": 170, + "end": 167, "ctxt": 0 }, "value": "obj", @@ -593,7 +593,7 @@ "type": "Identifier", "span": { "start": 296, - "end": 302, + "end": 299, "ctxt": 0 }, "value": "obj", @@ -956,7 +956,7 @@ "type": "Identifier", "span": { "start": 411, - "end": 417, + "end": 414, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/tsc/inferTypesWithExtends1.json b/crates/swc_ecma_parser/tests/tsc/inferTypesWithExtends1.json index 21cd948cb057..756826ecf2c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferTypesWithExtends1.json +++ b/crates/swc_ecma_parser/tests/tsc/inferTypesWithExtends1.json @@ -794,7 +794,7 @@ "type": "Identifier", "span": { "start": 421, - "end": 446, + "end": 422, "ctxt": 0 }, "value": "a", @@ -970,7 +970,7 @@ "type": "Identifier", "span": { "start": 489, - "end": 514, + "end": 490, "ctxt": 0 }, "value": "a", @@ -1176,7 +1176,7 @@ "type": "Identifier", "span": { "start": 571, - "end": 577, + "end": 572, "ctxt": 0 }, "value": "a", @@ -1288,7 +1288,7 @@ "type": "Identifier", "span": { "start": 625, - "end": 629, + "end": 626, "ctxt": 0 }, "value": "a", @@ -1400,7 +1400,7 @@ "type": "Identifier", "span": { "start": 675, - "end": 684, + "end": 676, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/inferingFromAny.json b/crates/swc_ecma_parser/tests/tsc/inferingFromAny.json index 9b33aa0e99af..51b0b34fc2ba 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferingFromAny.json +++ b/crates/swc_ecma_parser/tests/tsc/inferingFromAny.json @@ -167,7 +167,7 @@ "type": "Identifier", "span": { "start": 110, - "end": 114, + "end": 111, "ctxt": 0 }, "value": "t", @@ -298,7 +298,7 @@ "type": "Identifier", "span": { "start": 142, - "end": 148, + "end": 143, "ctxt": 0 }, "value": "t", @@ -437,7 +437,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 189, + "end": 181, "ctxt": 0 }, "value": "t", @@ -685,7 +685,7 @@ "type": "Identifier", "span": { "start": 223, - "end": 244, + "end": 224, "ctxt": 0 }, "value": "x", @@ -909,7 +909,7 @@ "type": "Identifier", "span": { "start": 273, - "end": 290, + "end": 274, "ctxt": 0 }, "value": "x", @@ -933,7 +933,7 @@ "type": "Identifier", "span": { "start": 277, - "end": 281, + "end": 278, "ctxt": 0 }, "value": "a", @@ -1086,7 +1086,7 @@ "type": "Identifier", "span": { "start": 319, - "end": 338, + "end": 320, "ctxt": 0 }, "value": "x", @@ -1110,7 +1110,7 @@ "type": "Identifier", "span": { "start": 327, - "end": 331, + "end": 328, "ctxt": 0 }, "value": "a", @@ -1264,7 +1264,7 @@ "type": "Identifier", "span": { "start": 367, - "end": 388, + "end": 368, "ctxt": 0 }, "value": "x", @@ -1288,7 +1288,7 @@ "type": "Identifier", "span": { "start": 371, - "end": 377, + "end": 372, "ctxt": 0 }, "value": "a", @@ -1468,7 +1468,7 @@ "type": "Identifier", "span": { "start": 417, - "end": 427, + "end": 418, "ctxt": 0 }, "value": "x", @@ -1617,7 +1617,7 @@ "type": "Identifier", "span": { "start": 456, - "end": 470, + "end": 457, "ctxt": 0 }, "value": "x", @@ -1767,7 +1767,7 @@ "type": "Identifier", "span": { "start": 500, - "end": 521, + "end": 501, "ctxt": 0 }, "value": "x", @@ -1955,7 +1955,7 @@ "type": "Identifier", "span": { "start": 551, - "end": 572, + "end": 552, "ctxt": 0 }, "value": "x", @@ -2143,7 +2143,7 @@ "type": "Identifier", "span": { "start": 605, - "end": 613, + "end": 606, "ctxt": 0 }, "value": "x", @@ -2373,7 +2373,7 @@ "type": "Identifier", "span": { "start": 651, - "end": 659, + "end": 652, "ctxt": 0 }, "value": "x", @@ -2603,7 +2603,7 @@ "type": "Identifier", "span": { "start": 697, - "end": 722, + "end": 698, "ctxt": 0 }, "value": "x", @@ -3017,7 +3017,7 @@ "type": "Identifier", "span": { "start": 776, - "end": 783, + "end": 777, "ctxt": 0 }, "value": "x", @@ -3176,7 +3176,7 @@ "type": "Identifier", "span": { "start": 813, - "end": 826, + "end": 814, "ctxt": 0 }, "value": "x", @@ -3335,7 +3335,7 @@ "type": "Identifier", "span": { "start": 859, - "end": 881, + "end": 860, "ctxt": 0 }, "value": "x", @@ -3550,7 +3550,7 @@ "type": "Identifier", "span": { "start": 930, - "end": 949, + "end": 931, "ctxt": 0 }, "value": "x", @@ -3811,7 +3811,7 @@ "type": "Identifier", "span": { "start": 998, - "end": 1002, + "end": 999, "ctxt": 0 }, "value": "k", @@ -3857,7 +3857,7 @@ "type": "Identifier", "span": { "start": 1004, - "end": 1011, + "end": 1005, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/infiniteExpansionThroughInstantiation.json b/crates/swc_ecma_parser/tests/tsc/infiniteExpansionThroughInstantiation.json index b9ef106279b9..926926a69cfa 100644 --- a/crates/swc_ecma_parser/tests/tsc/infiniteExpansionThroughInstantiation.json +++ b/crates/swc_ecma_parser/tests/tsc/infiniteExpansionThroughInstantiation.json @@ -676,7 +676,7 @@ "type": "Identifier", "span": { "start": 421, - "end": 425, + "end": 422, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/infiniteExpansionThroughTypeInference.json b/crates/swc_ecma_parser/tests/tsc/infiniteExpansionThroughTypeInference.json index 92e77442e876..bb2bd3f0f38e 100644 --- a/crates/swc_ecma_parser/tests/tsc/infiniteExpansionThroughTypeInference.json +++ b/crates/swc_ecma_parser/tests/tsc/infiniteExpansionThroughTypeInference.json @@ -253,7 +253,7 @@ "type": "Identifier", "span": { "start": 99, - "end": 106, + "end": 100, "ctxt": 0 }, "value": "g", diff --git a/crates/swc_ecma_parser/tests/tsc/initializationOrdering1.json b/crates/swc_ecma_parser/tests/tsc/initializationOrdering1.json index 144b86fda054..e94803268b59 100644 --- a/crates/swc_ecma_parser/tests/tsc/initializationOrdering1.json +++ b/crates/swc_ecma_parser/tests/tsc/initializationOrdering1.json @@ -173,7 +173,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 207, + "end": 199, "ctxt": 0 }, "value": "facade", diff --git a/crates/swc_ecma_parser/tests/tsc/initializerReferencingConstructorLocals.json b/crates/swc_ecma_parser/tests/tsc/initializerReferencingConstructorLocals.json index ea610e55de75..aaed0e274c8c 100644 --- a/crates/swc_ecma_parser/tests/tsc/initializerReferencingConstructorLocals.json +++ b/crates/swc_ecma_parser/tests/tsc/initializerReferencingConstructorLocals.json @@ -603,7 +603,7 @@ "type": "Identifier", "span": { "start": 490, - "end": 494, + "end": 491, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/initializerReferencingConstructorParameters.json b/crates/swc_ecma_parser/tests/tsc/initializerReferencingConstructorParameters.json index aafb9bd86532..c0b0703d37b5 100644 --- a/crates/swc_ecma_parser/tests/tsc/initializerReferencingConstructorParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/initializerReferencingConstructorParameters.json @@ -699,7 +699,7 @@ "type": "Identifier", "span": { "start": 544, - "end": 548, + "end": 545, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/instanceMemberAssignsToClassPrototype.json b/crates/swc_ecma_parser/tests/tsc/instanceMemberAssignsToClassPrototype.json index 48353c8b9569..3dc4dca7c4eb 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceMemberAssignsToClassPrototype.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceMemberAssignsToClassPrototype.json @@ -189,7 +189,7 @@ "type": "Identifier", "span": { "start": 74, - "end": 83, + "end": 75, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/instanceMemberInitialization.json b/crates/swc_ecma_parser/tests/tsc/instanceMemberInitialization.json index 14efda74a4f9..1ba42e834fe2 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceMemberInitialization.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceMemberInitialization.json @@ -380,7 +380,7 @@ "type": "Identifier", "span": { "start": 158, - "end": 184, + "end": 162, "ctxt": 0 }, "value": "Map_", diff --git a/crates/swc_ecma_parser/tests/tsc/instancePropertiesInheritedIntoClassType.json b/crates/swc_ecma_parser/tests/tsc/instancePropertiesInheritedIntoClassType.json index be76d99877cc..40a3c8489e8a 100644 --- a/crates/swc_ecma_parser/tests/tsc/instancePropertiesInheritedIntoClassType.json +++ b/crates/swc_ecma_parser/tests/tsc/instancePropertiesInheritedIntoClassType.json @@ -326,7 +326,7 @@ "type": "Identifier", "span": { "start": 182, - "end": 191, + "end": 183, "ctxt": 0 }, "value": "a", @@ -365,7 +365,7 @@ "type": "Identifier", "span": { "start": 201, - "end": 210, + "end": 202, "ctxt": 0 }, "value": "b", @@ -1083,7 +1083,7 @@ "type": "Identifier", "span": { "start": 506, - "end": 510, + "end": 507, "ctxt": 0 }, "value": "v", @@ -1241,7 +1241,7 @@ "type": "Identifier", "span": { "start": 573, - "end": 577, + "end": 574, "ctxt": 0 }, "value": "a", @@ -1290,7 +1290,7 @@ "type": "Identifier", "span": { "start": 587, - "end": 591, + "end": 588, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/instancePropertyInClassType.json b/crates/swc_ecma_parser/tests/tsc/instancePropertyInClassType.json index 888c8494f660..34495b43ea03 100644 --- a/crates/swc_ecma_parser/tests/tsc/instancePropertyInClassType.json +++ b/crates/swc_ecma_parser/tests/tsc/instancePropertyInClassType.json @@ -326,7 +326,7 @@ "type": "Identifier", "span": { "start": 182, - "end": 191, + "end": 183, "ctxt": 0 }, "value": "a", @@ -365,7 +365,7 @@ "type": "Identifier", "span": { "start": 201, - "end": 210, + "end": 202, "ctxt": 0 }, "value": "b", @@ -1002,7 +1002,7 @@ "type": "Identifier", "span": { "start": 467, - "end": 471, + "end": 468, "ctxt": 0 }, "value": "v", @@ -1160,7 +1160,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 538, + "end": 535, "ctxt": 0 }, "value": "a", @@ -1209,7 +1209,7 @@ "type": "Identifier", "span": { "start": 548, - "end": 552, + "end": 549, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.es2015.json b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.es2015.json index 4e544d21a61b..8252e8e5264e 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.es2015.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.es2015.json @@ -1986,7 +1986,7 @@ "type": "Identifier", "span": { "start": 1115, - "end": 1135, + "end": 1120, "ctxt": 0 }, "value": "value", @@ -2316,7 +2316,7 @@ "type": "Identifier", "span": { "start": 1283, - "end": 1297, + "end": 1288, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidStaticToString.json b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidStaticToString.json index 0c1a8df5dbc0..d525b45229c9 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidStaticToString.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidStaticToString.json @@ -113,7 +113,7 @@ "type": "Identifier", "span": { "start": 77, - "end": 107, + "end": 91, "ctxt": 0 }, "value": "staticToString", @@ -313,7 +313,7 @@ "type": "Identifier", "span": { "start": 242, - "end": 272, + "end": 256, "ctxt": 0 }, "value": "staticToNumber", @@ -513,7 +513,7 @@ "type": "Identifier", "span": { "start": 400, - "end": 422, + "end": 406, "ctxt": 0 }, "value": "normal", diff --git a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithLHSIsTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithLHSIsTypeParameter.json index d8374d1c42e7..fb16a11a7568 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithLHSIsTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithLHSIsTypeParameter.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 17, - "end": 21, + "end": 18, "ctxt": 0 }, "value": "t", diff --git a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithRHSHasSymbolHasInstance.json b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithRHSHasSymbolHasInstance.json index 3bf54e60704e..e1a998a4765c 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithRHSHasSymbolHasInstance.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithRHSHasSymbolHasInstance.json @@ -582,7 +582,7 @@ "type": "Identifier", "span": { "start": 265, - "end": 279, + "end": 270, "ctxt": 0 }, "value": "value", @@ -718,7 +718,7 @@ "type": "Identifier", "span": { "start": 335, - "end": 345, + "end": 340, "ctxt": 0 }, "value": "value", @@ -854,7 +854,7 @@ "type": "Identifier", "span": { "start": 401, - "end": 411, + "end": 406, "ctxt": 0 }, "value": "value", @@ -1027,7 +1027,7 @@ "type": "Identifier", "span": { "start": 474, - "end": 493, + "end": 479, "ctxt": 0 }, "value": "value", @@ -1239,7 +1239,7 @@ "type": "Identifier", "span": { "start": 556, - "end": 575, + "end": 561, "ctxt": 0 }, "value": "value", @@ -1451,7 +1451,7 @@ "type": "Identifier", "span": { "start": 637, - "end": 666, + "end": 642, "ctxt": 0 }, "value": "value", @@ -1682,7 +1682,7 @@ "type": "Identifier", "span": { "start": 731, - "end": 752, + "end": 736, "ctxt": 0 }, "value": "value", @@ -1887,7 +1887,7 @@ "type": "Identifier", "span": { "start": 826, - "end": 840, + "end": 831, "ctxt": 0 }, "value": "value", @@ -2031,7 +2031,7 @@ "type": "Identifier", "span": { "start": 903, - "end": 913, + "end": 908, "ctxt": 0 }, "value": "value", @@ -2175,7 +2175,7 @@ "type": "Identifier", "span": { "start": 976, - "end": 986, + "end": 981, "ctxt": 0 }, "value": "value", @@ -2356,7 +2356,7 @@ "type": "Identifier", "span": { "start": 1057, - "end": 1076, + "end": 1062, "ctxt": 0 }, "value": "value", @@ -2576,7 +2576,7 @@ "type": "Identifier", "span": { "start": 1147, - "end": 1166, + "end": 1152, "ctxt": 0 }, "value": "value", @@ -2796,7 +2796,7 @@ "type": "Identifier", "span": { "start": 1236, - "end": 1265, + "end": 1241, "ctxt": 0 }, "value": "value", @@ -3035,7 +3035,7 @@ "type": "Identifier", "span": { "start": 1338, - "end": 1359, + "end": 1343, "ctxt": 0 }, "value": "value", @@ -6954,7 +6954,7 @@ "type": "Identifier", "span": { "start": 3609, - "end": 3616, + "end": 3613, "ctxt": 0 }, "value": "this", @@ -7000,7 +7000,7 @@ "type": "Identifier", "span": { "start": 3618, - "end": 3632, + "end": 3623, "ctxt": 0 }, "value": "value", @@ -7910,7 +7910,7 @@ "type": "Identifier", "span": { "start": 4261, - "end": 4271, + "end": 4262, "ctxt": 0 }, "value": "x", @@ -8200,7 +8200,7 @@ "type": "Identifier", "span": { "start": 4440, - "end": 4450, + "end": 4441, "ctxt": 0 }, "value": "x", @@ -8354,7 +8354,7 @@ "type": "Identifier", "span": { "start": 4514, - "end": 4524, + "end": 4515, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersection.json b/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersection.json index d884c0f26245..7c39c0e9b6c1 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersection.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersection.json @@ -2248,7 +2248,7 @@ "type": "Identifier", "span": { "start": 954, - "end": 963, + "end": 955, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceWithOverloadedCallAndConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/interfaceWithOverloadedCallAndConstructSignatures.json index ecb8eae61ad9..d825b60326e7 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceWithOverloadedCallAndConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceWithOverloadedCallAndConstructSignatures.json @@ -73,7 +73,7 @@ "type": "Identifier", "span": { "start": 38, - "end": 47, + "end": 39, "ctxt": 0 }, "value": "x", @@ -155,7 +155,7 @@ "type": "Identifier", "span": { "start": 85, - "end": 94, + "end": 86, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyOfEveryType.json b/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyOfEveryType.json index 2aebcbfe6932..bbee9d313482 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyOfEveryType.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyOfEveryType.json @@ -607,7 +607,7 @@ "type": "Identifier", "span": { "start": 220, - "end": 229, + "end": 221, "ctxt": 0 }, "value": "x", @@ -694,7 +694,7 @@ "type": "Identifier", "span": { "start": 253, - "end": 257, + "end": 254, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceWithSpecializedCallAndConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/interfaceWithSpecializedCallAndConstructSignatures.json index 69173a4337d5..0acb42387855 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceWithSpecializedCallAndConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceWithSpecializedCallAndConstructSignatures.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 22, - "end": 28, + "end": 23, "ctxt": 0 }, "value": "x", @@ -110,7 +110,7 @@ "type": "Identifier", "span": { "start": 44, - "end": 53, + "end": 45, "ctxt": 0 }, "value": "x", @@ -165,7 +165,7 @@ "type": "Identifier", "span": { "start": 71, - "end": 77, + "end": 72, "ctxt": 0 }, "value": "x", @@ -229,7 +229,7 @@ "type": "Identifier", "span": { "start": 94, - "end": 103, + "end": 95, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionAsWeakTypeSource.json b/crates/swc_ecma_parser/tests/tsc/intersectionAsWeakTypeSource.json index 50bb6d6cf939..6ee548b7d92f 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionAsWeakTypeSource.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionAsWeakTypeSource.json @@ -743,7 +743,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 367, + "end": 364, "ctxt": 0 }, "value": "styles", diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionNarrowing.json b/crates/swc_ecma_parser/tests/tsc/intersectionNarrowing.json index 5ab132f383bc..c862a3c67d10 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionNarrowing.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionNarrowing.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 57, - "end": 86, + "end": 58, "ctxt": 0 }, "value": "x", @@ -260,7 +260,7 @@ "type": "Identifier", "span": { "start": 170, - "end": 199, + "end": 171, "ctxt": 0 }, "value": "x", @@ -534,7 +534,7 @@ "type": "Identifier", "span": { "start": 360, - "end": 386, + "end": 361, "ctxt": 0 }, "value": "x", @@ -817,7 +817,7 @@ "type": "Identifier", "span": { "start": 550, - "end": 566, + "end": 551, "ctxt": 0 }, "value": "x", @@ -1159,7 +1159,7 @@ "type": "Identifier", "span": { "start": 754, - "end": 767, + "end": 755, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionReduction.json b/crates/swc_ecma_parser/tests/tsc/intersectionReduction.json index 98a03b8a93fe..59ae0f1875dc 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionReduction.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionReduction.json @@ -5276,7 +5276,7 @@ "type": "Identifier", "span": { "start": 1961, - "end": 1974, + "end": 1962, "ctxt": 0 }, "value": "x", @@ -8397,7 +8397,7 @@ "type": "Identifier", "span": { "start": 3153, - "end": 3174, + "end": 3166, "ctxt": 0 }, "value": "alsoShouldBeB", @@ -9122,7 +9122,7 @@ "type": "Identifier", "span": { "start": 3417, - "end": 3426, + "end": 3418, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionThisTypes.json b/crates/swc_ecma_parser/tests/tsc/intersectionThisTypes.json index 241372f63d4b..983e518402c8 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionThisTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionThisTypes.json @@ -388,7 +388,7 @@ "type": "Identifier", "span": { "start": 186, - "end": 195, + "end": 187, "ctxt": 0 }, "value": "t", @@ -750,7 +750,7 @@ "type": "Identifier", "span": { "start": 312, - "end": 321, + "end": 313, "ctxt": 0 }, "value": "t", @@ -1047,7 +1047,7 @@ "type": "Identifier", "span": { "start": 410, - "end": 418, + "end": 415, "ctxt": 0 }, "value": "props", @@ -1281,7 +1281,7 @@ "type": "Identifier", "span": { "start": 506, - "end": 518, + "end": 511, "ctxt": 0 }, "value": "label", diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference.json b/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference.json index 53348dbaddb3..ac98e5f9a553 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 23, - "end": 30, + "end": 27, "ctxt": 0 }, "value": "obj1", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 32, - "end": 39, + "end": 36, "ctxt": 0 }, "value": "obj2", @@ -1001,7 +1001,7 @@ "type": "Identifier", "span": { "start": 340, - "end": 356, + "end": 343, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference2.json b/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference2.json index 6e7285519def..7b3341d6cd27 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference2.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 23, - "end": 37, + "end": 24, "ctxt": 0 }, "value": "x", @@ -551,7 +551,7 @@ "type": "Identifier", "span": { "start": 242, - "end": 269, + "end": 245, "ctxt": 0 }, "value": "obj", @@ -686,7 +686,7 @@ "type": "Identifier", "span": { "start": 271, - "end": 279, + "end": 274, "ctxt": 0 }, "value": "key", diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionTypeMembers.json b/crates/swc_ecma_parser/tests/tsc/intersectionTypeMembers.json index 0bedbdc2f528..01ac71c31265 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionTypeMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionTypeMembers.json @@ -1097,7 +1097,7 @@ "type": "Identifier", "span": { "start": 486, - "end": 495, + "end": 487, "ctxt": 0 }, "value": "x", @@ -1172,7 +1172,7 @@ "type": "Identifier", "span": { "start": 519, - "end": 528, + "end": 520, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionTypeOverloading.json b/crates/swc_ecma_parser/tests/tsc/intersectionTypeOverloading.json index d6d7b12c465c..ca6102ba36cc 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionTypeOverloading.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionTypeOverloading.json @@ -37,7 +37,7 @@ "type": "Identifier", "span": { "start": 106, - "end": 115, + "end": 107, "ctxt": 0 }, "value": "s", @@ -112,7 +112,7 @@ "type": "Identifier", "span": { "start": 138, - "end": 144, + "end": 139, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionWithUnionConstraint.json b/crates/swc_ecma_parser/tests/tsc/intersectionWithUnionConstraint.json index 238a21f6e2eb..7e5db1469944 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionWithUnionConstraint.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionWithUnionConstraint.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 85, - "end": 93, + "end": 86, "ctxt": 0 }, "value": "x", @@ -329,7 +329,7 @@ "type": "Identifier", "span": { "start": 279, - "end": 287, + "end": 280, "ctxt": 0 }, "value": "x", @@ -1149,7 +1149,7 @@ "type": "Identifier", "span": { "start": 706, - "end": 742, + "end": 707, "ctxt": 0 }, "value": "x", @@ -1431,7 +1431,7 @@ "type": "Identifier", "span": { "start": 825, - "end": 849, + "end": 826, "ctxt": 0 }, "value": "x", @@ -1676,7 +1676,7 @@ "type": "Identifier", "span": { "start": 915, - "end": 929, + "end": 916, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionsAndEmptyObjects.json b/crates/swc_ecma_parser/tests/tsc/intersectionsAndEmptyObjects.json index 2174191c193e..634be39b9832 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionsAndEmptyObjects.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionsAndEmptyObjects.json @@ -4054,7 +4054,7 @@ "type": "Identifier", "span": { "start": 1873, - "end": 1886, + "end": 1874, "ctxt": 0 }, "value": "_", diff --git a/crates/swc_ecma_parser/tests/tsc/intraExpressionInferences.json b/crates/swc_ecma_parser/tests/tsc/intraExpressionInferences.json index b5eef2038850..fb4b1c596005 100644 --- a/crates/swc_ecma_parser/tests/tsc/intraExpressionInferences.json +++ b/crates/swc_ecma_parser/tests/tsc/intraExpressionInferences.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 91, - "end": 158, + "end": 94, "ctxt": 0 }, "value": "obj", @@ -93,7 +93,7 @@ "type": "Identifier", "span": { "start": 112, - "end": 121, + "end": 113, "ctxt": 0 }, "value": "n", @@ -190,7 +190,7 @@ "type": "Identifier", "span": { "start": 143, - "end": 147, + "end": 144, "ctxt": 0 }, "value": "x", @@ -828,7 +828,7 @@ "type": "Identifier", "span": { "start": 414, - "end": 453, + "end": 417, "ctxt": 0 }, "value": "obj", @@ -868,7 +868,7 @@ "type": "Identifier", "span": { "start": 421, - "end": 430, + "end": 422, "ctxt": 0 }, "value": "n", @@ -942,7 +942,7 @@ "type": "Identifier", "span": { "start": 439, - "end": 443, + "end": 440, "ctxt": 0 }, "value": "x", @@ -1443,7 +1443,7 @@ "type": "Identifier", "span": { "start": 611, - "end": 628, + "end": 620, "ctxt": 0 }, "value": "parameter", @@ -1540,7 +1540,7 @@ "type": "Identifier", "span": { "start": 661, - "end": 671, + "end": 668, "ctxt": 0 }, "value": "generic", @@ -1968,7 +1968,7 @@ "type": "Identifier", "span": { "start": 909, - "end": 953, + "end": 910, "ctxt": 0 }, "value": "o", @@ -2080,7 +2080,7 @@ "type": "Identifier", "span": { "start": 938, - "end": 942, + "end": 939, "ctxt": 0 }, "value": "m", @@ -2412,7 +2412,7 @@ "type": "Identifier", "span": { "start": 1087, - "end": 1123, + "end": 1094, "ctxt": 0 }, "value": "options", @@ -2524,7 +2524,7 @@ "type": "Identifier", "span": { "start": 1108, - "end": 1112, + "end": 1109, "ctxt": 0 }, "value": "a", @@ -3253,7 +3253,7 @@ "type": "Identifier", "span": { "start": 1354, - "end": 1359, + "end": 1355, "ctxt": 0 }, "value": "a", @@ -3341,7 +3341,7 @@ "type": "Identifier", "span": { "start": 1372, - "end": 1377, + "end": 1373, "ctxt": 0 }, "value": "b", @@ -3423,7 +3423,7 @@ "type": "Identifier", "span": { "start": 1412, - "end": 1430, + "end": 1415, "ctxt": 0 }, "value": "foo", @@ -4817,7 +4817,7 @@ "type": "Identifier", "span": { "start": 1971, - "end": 1988, + "end": 1977, "ctxt": 0 }, "value": "inputs", @@ -4968,7 +4968,7 @@ "type": "Identifier", "span": { "start": 2092, - "end": 2119, + "end": 2095, "ctxt": 0 }, "value": "def", @@ -5694,7 +5694,7 @@ "type": "Identifier", "span": { "start": 2638, - "end": 2692, + "end": 2643, "ctxt": 0 }, "value": "props", @@ -5824,7 +5824,7 @@ "type": "Identifier", "span": { "start": 2678, - "end": 2682, + "end": 2679, "ctxt": 0 }, "value": "t", @@ -5964,7 +5964,7 @@ "type": "Identifier", "span": { "start": 2720, - "end": 2782, + "end": 2725, "ctxt": 0 }, "value": "props", @@ -6025,7 +6025,7 @@ "type": "Identifier", "span": { "start": 2741, - "end": 2749, + "end": 2744, "ctxt": 0 }, "value": "bob", @@ -6122,7 +6122,7 @@ "type": "Identifier", "span": { "start": 2768, - "end": 2772, + "end": 2769, "ctxt": 0 }, "value": "t", @@ -6262,7 +6262,7 @@ "type": "Identifier", "span": { "start": 2810, - "end": 2836, + "end": 2819, "ctxt": 0 }, "value": "generator", @@ -6286,7 +6286,7 @@ "type": "Identifier", "span": { "start": 2822, - "end": 2830, + "end": 2825, "ctxt": 0 }, "value": "bob", @@ -6354,7 +6354,7 @@ "type": "Identifier", "span": { "start": 2838, - "end": 2861, + "end": 2846, "ctxt": 0 }, "value": "receiver", @@ -6378,7 +6378,7 @@ "type": "Identifier", "span": { "start": 2849, - "end": 2853, + "end": 2850, "ctxt": 0 }, "value": "t", @@ -7242,7 +7242,7 @@ "type": "Identifier", "span": { "start": 3161, - "end": 3176, + "end": 3167, "ctxt": 0 }, "value": "params", @@ -7279,7 +7279,7 @@ "type": "Identifier", "span": { "start": 3178, - "end": 3189, + "end": 3181, "ctxt": 0 }, "value": "foo", @@ -7376,7 +7376,7 @@ "type": "Identifier", "span": { "start": 3211, - "end": 3222, + "end": 3215, "ctxt": 0 }, "value": "data", @@ -7471,7 +7471,7 @@ "type": "Identifier", "span": { "start": 3280, - "end": 3318, + "end": 3287, "ctxt": 0 }, "value": "options", @@ -8657,7 +8657,7 @@ "type": "Identifier", "span": { "start": 3842, - "end": 3900, + "end": 3843, "ctxt": 0 }, "value": "_", @@ -8769,7 +8769,7 @@ "type": "Identifier", "span": { "start": 3861, - "end": 3865, + "end": 3862, "ctxt": 0 }, "value": "t", @@ -8903,7 +8903,7 @@ "type": "Identifier", "span": { "start": 3885, - "end": 3889, + "end": 3886, "ctxt": 0 }, "value": "u", @@ -9549,7 +9549,7 @@ "type": "Identifier", "span": { "start": 4066, - "end": 4075, + "end": 4067, "ctxt": 0 }, "value": "x", @@ -9646,7 +9646,7 @@ "type": "Identifier", "span": { "start": 4089, - "end": 4095, + "end": 4092, "ctxt": 0 }, "value": "arg", @@ -9731,7 +9731,7 @@ "type": "Identifier", "span": { "start": 4133, - "end": 4148, + "end": 4138, "ctxt": 0 }, "value": "props", @@ -10082,7 +10082,7 @@ "type": "Identifier", "span": { "start": 4273, - "end": 4362, + "end": 4276, "ctxt": 0 }, "value": "arg", @@ -10180,7 +10180,7 @@ "type": "Identifier", "span": { "start": 4304, - "end": 4316, + "end": 4308, "ctxt": 0 }, "value": "arg1", @@ -10277,7 +10277,7 @@ "type": "Identifier", "span": { "start": 4338, - "end": 4345, + "end": 4342, "ctxt": 0 }, "value": "arg2", @@ -10680,7 +10680,7 @@ "type": "Identifier", "span": { "start": 4511, - "end": 4606, + "end": 4514, "ctxt": 0 }, "value": "arg", @@ -10741,7 +10741,7 @@ "type": "Identifier", "span": { "start": 4524, - "end": 4535, + "end": 4527, "ctxt": 0 }, "value": "arg", @@ -10838,7 +10838,7 @@ "type": "Identifier", "span": { "start": 4556, - "end": 4563, + "end": 4560, "ctxt": 0 }, "value": "arg1", @@ -10935,7 +10935,7 @@ "type": "Identifier", "span": { "start": 4587, - "end": 4594, + "end": 4591, "ctxt": 0 }, "value": "arg2", @@ -11314,7 +11314,7 @@ "type": "Identifier", "span": { "start": 4787, - "end": 4909, + "end": 4790, "ctxt": 0 }, "value": "arg", @@ -11375,7 +11375,7 @@ "type": "Identifier", "span": { "start": 4800, - "end": 4811, + "end": 4803, "ctxt": 0 }, "value": "arg", @@ -11472,7 +11472,7 @@ "type": "Identifier", "span": { "start": 4825, - "end": 4836, + "end": 4828, "ctxt": 0 }, "value": "arg", @@ -11569,7 +11569,7 @@ "type": "Identifier", "span": { "start": 4858, - "end": 4865, + "end": 4862, "ctxt": 0 }, "value": "arg1", @@ -11666,7 +11666,7 @@ "type": "Identifier", "span": { "start": 4889, - "end": 4897, + "end": 4893, "ctxt": 0 }, "value": "arg2", @@ -12187,7 +12187,7 @@ "type": "Identifier", "span": { "start": 5160, - "end": 5239, + "end": 5163, "ctxt": 0 }, "value": "arg", @@ -12248,7 +12248,7 @@ "type": "Identifier", "span": { "start": 5173, - "end": 5185, + "end": 5177, "ctxt": 0 }, "value": "arg1", @@ -12345,7 +12345,7 @@ "type": "Identifier", "span": { "start": 5199, - "end": 5206, + "end": 5203, "ctxt": 0 }, "value": "arg2", @@ -12452,7 +12452,7 @@ "type": "Identifier", "span": { "start": 5221, - "end": 5229, + "end": 5225, "ctxt": 0 }, "value": "arg2", @@ -13085,7 +13085,7 @@ "type": "Identifier", "span": { "start": 5483, - "end": 5607, + "end": 5486, "ctxt": 0 }, "value": "arg", @@ -13146,7 +13146,7 @@ "type": "Identifier", "span": { "start": 5496, - "end": 5508, + "end": 5500, "ctxt": 0 }, "value": "arg1", @@ -13280,7 +13280,7 @@ "type": "Identifier", "span": { "start": 5536, - "end": 5543, + "end": 5540, "ctxt": 0 }, "value": "arg2", @@ -13424,7 +13424,7 @@ "type": "Identifier", "span": { "start": 5577, - "end": 5585, + "end": 5581, "ctxt": 0 }, "value": "arg2", @@ -14058,7 +14058,7 @@ "type": "Identifier", "span": { "start": 5816, - "end": 5964, + "end": 5819, "ctxt": 0 }, "value": "arg", @@ -14119,7 +14119,7 @@ "type": "Identifier", "span": { "start": 5829, - "end": 5841, + "end": 5833, "ctxt": 0 }, "value": "arg1", @@ -14253,7 +14253,7 @@ "type": "Identifier", "span": { "start": 5869, - "end": 5876, + "end": 5873, "ctxt": 0 }, "value": "arg2", @@ -14360,7 +14360,7 @@ "type": "Identifier", "span": { "start": 5893, - "end": 5900, + "end": 5897, "ctxt": 0 }, "value": "arg3", @@ -14504,7 +14504,7 @@ "type": "Identifier", "span": { "start": 5934, - "end": 5942, + "end": 5938, "ctxt": 0 }, "value": "arg4", @@ -15261,7 +15261,7 @@ "type": "Identifier", "span": { "start": 6197, - "end": 6331, + "end": 6201, "ctxt": 0 }, "value": "args", @@ -15433,7 +15433,7 @@ "type": "Identifier", "span": { "start": 6257, - "end": 6268, + "end": 6260, "ctxt": 0 }, "value": "arg", @@ -15545,7 +15545,7 @@ "type": "Identifier", "span": { "start": 6310, - "end": 6316, + "end": 6313, "ctxt": 0 }, "value": "val", diff --git a/crates/swc_ecma_parser/tests/tsc/intrinsicKeyword.json b/crates/swc_ecma_parser/tests/tsc/intrinsicKeyword.json index 59af4f7d4906..3f020bb50d6b 100644 --- a/crates/swc_ecma_parser/tests/tsc/intrinsicKeyword.json +++ b/crates/swc_ecma_parser/tests/tsc/intrinsicKeyword.json @@ -602,7 +602,7 @@ "type": "Identifier", "span": { "start": 340, - "end": 357, + "end": 349, "ctxt": 0 }, "value": "intrinsic", diff --git a/crates/swc_ecma_parser/tests/tsc/intrinsicTypes.json b/crates/swc_ecma_parser/tests/tsc/intrinsicTypes.json index 7ee480f328e6..b116e75156fa 100644 --- a/crates/swc_ecma_parser/tests/tsc/intrinsicTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/intrinsicTypes.json @@ -2284,7 +2284,7 @@ "type": "Identifier", "span": { "start": 1522, - "end": 1531, + "end": 1523, "ctxt": 0 }, "value": "s", @@ -2320,7 +2320,7 @@ "type": "Identifier", "span": { "start": 1533, - "end": 1548, + "end": 1534, "ctxt": 0 }, "value": "x", @@ -2394,7 +2394,7 @@ "type": "Identifier", "span": { "start": 1550, - "end": 1565, + "end": 1551, "ctxt": 0 }, "value": "y", @@ -2813,7 +2813,7 @@ "type": "Identifier", "span": { "start": 1707, - "end": 1722, + "end": 1708, "ctxt": 0 }, "value": "x", @@ -3095,7 +3095,7 @@ "type": "Identifier", "span": { "start": 1799, - "end": 1814, + "end": 1800, "ctxt": 0 }, "value": "x", @@ -3262,7 +3262,7 @@ "type": "Identifier", "span": { "start": 1853, - "end": 1868, + "end": 1854, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/invalidAssignmentsToVoid.json b/crates/swc_ecma_parser/tests/tsc/invalidAssignmentsToVoid.json index 3d1658514edd..467812f9ca89 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidAssignmentsToVoid.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidAssignmentsToVoid.json @@ -725,7 +725,7 @@ "type": "Identifier", "span": { "start": 197, - "end": 201, + "end": 198, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/invalidBooleanAssignments.json b/crates/swc_ecma_parser/tests/tsc/invalidBooleanAssignments.json index 1763599ef220..43673c925ff5 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidBooleanAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidBooleanAssignments.json @@ -1007,7 +1007,7 @@ "type": "Identifier", "span": { "start": 340, - "end": 344, + "end": 341, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/invalidEnumAssignments.json b/crates/swc_ecma_parser/tests/tsc/invalidEnumAssignments.json index ba3233b78fd0..6bcdb028618d 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidEnumAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidEnumAssignments.json @@ -510,7 +510,7 @@ "type": "Identifier", "span": { "start": 142, - "end": 146, + "end": 143, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/invalidMultipleVariableDeclarations.json b/crates/swc_ecma_parser/tests/tsc/invalidMultipleVariableDeclarations.json index 150e3fc41615..37dff272bf94 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidMultipleVariableDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidMultipleVariableDeclarations.json @@ -630,7 +630,7 @@ "type": "Identifier", "span": { "start": 219, - "end": 228, + "end": 220, "ctxt": 0 }, "value": "x", @@ -850,7 +850,7 @@ "type": "Identifier", "span": { "start": 338, - "end": 347, + "end": 339, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/invalidNumberAssignments.json b/crates/swc_ecma_parser/tests/tsc/invalidNumberAssignments.json index 11c1a19dbd44..b02347ebea45 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidNumberAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidNumberAssignments.json @@ -914,7 +914,7 @@ "type": "Identifier", "span": { "start": 292, - "end": 296, + "end": 293, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/invalidStringAssignments.json b/crates/swc_ecma_parser/tests/tsc/invalidStringAssignments.json index 7e297a723a89..65aa3d329f82 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidStringAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidStringAssignments.json @@ -914,7 +914,7 @@ "type": "Identifier", "span": { "start": 293, - "end": 297, + "end": 294, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/invalidUndefinedAssignments.json b/crates/swc_ecma_parser/tests/tsc/invalidUndefinedAssignments.json index 9f696c2d3935..8471bc6cece7 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidUndefinedAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidUndefinedAssignments.json @@ -719,7 +719,7 @@ "type": "Identifier", "span": { "start": 205, - "end": 209, + "end": 206, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/invalidUndefinedValues.json b/crates/swc_ecma_parser/tests/tsc/invalidUndefinedValues.json index 50bfb817c8a6..d12ccd79dd52 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidUndefinedValues.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidUndefinedValues.json @@ -892,7 +892,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 252, + "end": 249, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/invalidVoidAssignments.json b/crates/swc_ecma_parser/tests/tsc/invalidVoidAssignments.json index 2b89aa7b58dc..db42705bc436 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidVoidAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidVoidAssignments.json @@ -921,7 +921,7 @@ "type": "Identifier", "span": { "start": 296, - "end": 300, + "end": 297, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/invalidVoidValues.json b/crates/swc_ecma_parser/tests/tsc/invalidVoidValues.json index c4f199dc47ea..7c9c03b31a3f 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidVoidValues.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidVoidValues.json @@ -856,7 +856,7 @@ "type": "Identifier", "span": { "start": 227, - "end": 231, + "end": 228, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/isomorphicMappedTypeInference.json b/crates/swc_ecma_parser/tests/tsc/isomorphicMappedTypeInference.json index 00f62b896b16..a37dfbd561b9 100644 --- a/crates/swc_ecma_parser/tests/tsc/isomorphicMappedTypeInference.json +++ b/crates/swc_ecma_parser/tests/tsc/isomorphicMappedTypeInference.json @@ -333,7 +333,7 @@ "type": "Identifier", "span": { "start": 179, - "end": 183, + "end": 180, "ctxt": 0 }, "value": "x", @@ -542,7 +542,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 250, + "end": 242, "ctxt": 0 }, "value": "x", @@ -746,7 +746,7 @@ "type": "Identifier", "span": { "start": 299, - "end": 305, + "end": 302, "ctxt": 0 }, "value": "obj", @@ -1202,7 +1202,7 @@ "type": "Identifier", "span": { "start": 480, - "end": 496, + "end": 483, "ctxt": 0 }, "value": "obj", @@ -1638,7 +1638,7 @@ "type": "Identifier", "span": { "start": 644, - "end": 660, + "end": 647, "ctxt": 0 }, "value": "obj", @@ -1712,7 +1712,7 @@ "type": "Identifier", "span": { "start": 662, - "end": 671, + "end": 668, "ctxt": 0 }, "value": "values", @@ -3341,7 +3341,7 @@ "type": "Identifier", "span": { "start": 1395, - "end": 1415, + "end": 1398, "ctxt": 0 }, "value": "obj", @@ -3556,7 +3556,7 @@ "type": "Identifier", "span": { "start": 1450, - "end": 1459, + "end": 1451, "ctxt": 0 }, "value": "s", @@ -4004,7 +4004,7 @@ "type": "Identifier", "span": { "start": 1661, - "end": 1684, + "end": 1664, "ctxt": 0 }, "value": "obj", @@ -4193,7 +4193,7 @@ "type": "Identifier", "span": { "start": 1719, - "end": 1728, + "end": 1720, "ctxt": 0 }, "value": "s", @@ -4649,7 +4649,7 @@ "type": "Identifier", "span": { "start": 1937, - "end": 1967, + "end": 1940, "ctxt": 0 }, "value": "obj", @@ -4869,7 +4869,7 @@ "type": "Identifier", "span": { "start": 1999, - "end": 2037, + "end": 2002, "ctxt": 0 }, "value": "obj", @@ -5089,7 +5089,7 @@ "type": "Identifier", "span": { "start": 2080, - "end": 2119, + "end": 2083, "ctxt": 0 }, "value": "obj", @@ -5421,7 +5421,7 @@ "type": "Identifier", "span": { "start": 2195, - "end": 2203, + "end": 2198, "ctxt": 0 }, "value": "foo", @@ -6113,7 +6113,7 @@ "type": "Identifier", "span": { "start": 2797, - "end": 2809, + "end": 2800, "ctxt": 0 }, "value": "obj", @@ -7186,7 +7186,7 @@ "type": "Identifier", "span": { "start": 3454, - "end": 3469, + "end": 3457, "ctxt": 0 }, "value": "obj", @@ -7414,7 +7414,7 @@ "type": "Identifier", "span": { "start": 3518, - "end": 3533, + "end": 3521, "ctxt": 0 }, "value": "obj", @@ -7642,7 +7642,7 @@ "type": "Identifier", "span": { "start": 3582, - "end": 3607, + "end": 3585, "ctxt": 0 }, "value": "obj", @@ -7898,7 +7898,7 @@ "type": "Identifier", "span": { "start": 3669, - "end": 3684, + "end": 3672, "ctxt": 0 }, "value": "obj", @@ -8167,7 +8167,7 @@ "type": "Identifier", "span": { "start": 3746, - "end": 3765, + "end": 3749, "ctxt": 0 }, "value": "obj", @@ -9120,7 +9120,7 @@ "type": "Identifier", "span": { "start": 4066, - "end": 4072, + "end": 4069, "ctxt": 0 }, "value": "obj", @@ -9166,7 +9166,7 @@ "type": "Identifier", "span": { "start": 4074, - "end": 4083, + "end": 4078, "ctxt": 0 }, "value": "list", diff --git a/crates/swc_ecma_parser/tests/tsc/iterableContextualTyping1.json b/crates/swc_ecma_parser/tests/tsc/iterableContextualTyping1.json index cfeac5c731dc..b6164a7e2687 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableContextualTyping1.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableContextualTyping1.json @@ -76,7 +76,7 @@ "type": "Identifier", "span": { "start": 36, - "end": 45, + "end": 37, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall.json index 45bdbaa78e52..be6f13038959 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 29, - "end": 38, + "end": 30, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall10.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall10.json index 8b35fbdc9dc2..f7f14ea4f1ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall10.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall10.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 32, - "end": 38, + "end": 33, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall2.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall2.json index f1d7a5391ce8..278a6ab99e87 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall2.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 29, - "end": 40, + "end": 30, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall4.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall4.json index fb555bcd6c09..36595acbb333 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall4.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall4.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 29, - "end": 39, + "end": 31, "ctxt": 0 }, "value": "s1", diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassImplementsGenericsSerialization.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassImplementsGenericsSerialization.json index e815f168a22b..77cffea206bb 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassImplementsGenericsSerialization.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassImplementsGenericsSerialization.json @@ -98,7 +98,7 @@ "type": "Identifier", "span": { "start": 161, - "end": 169, + "end": 166, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsInterfaces.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsInterfaces.json index 12c01e194161..edad45ebb946 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsInterfaces.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsInterfaces.json @@ -515,7 +515,7 @@ "type": "Identifier", "span": { "start": 513, - "end": 517, + "end": 514, "ctxt": 0 }, "value": "x", @@ -590,7 +590,7 @@ "type": "Identifier", "span": { "start": 531, - "end": 535, + "end": 532, "ctxt": 0 }, "value": "x", @@ -753,7 +753,7 @@ "type": "Identifier", "span": { "start": 575, - "end": 579, + "end": 576, "ctxt": 0 }, "value": "x", @@ -828,7 +828,7 @@ "type": "Identifier", "span": { "start": 597, - "end": 601, + "end": 598, "ctxt": 0 }, "value": "x", @@ -1057,7 +1057,7 @@ "type": "Identifier", "span": { "start": 660, - "end": 668, + "end": 661, "ctxt": 0 }, "value": "a", @@ -1225,7 +1225,7 @@ "type": "Identifier", "span": { "start": 694, - "end": 704, + "end": 695, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImportType.json b/crates/swc_ecma_parser/tests/tsc/jsdocImportType.json index dec6119169ec..d6cf4c145428 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImportType.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImportType.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 104, - "end": 116, + "end": 108, "ctxt": 0 }, "value": "name", diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImportType2.json b/crates/swc_ecma_parser/tests/tsc/jsdocImportType2.json index 8862604a059c..6b610dfdb765 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImportType2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImportType2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 104, - "end": 116, + "end": 108, "ctxt": 0 }, "value": "name", diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag3.json b/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag3.json index ad84bc3b4cd4..cf377b806430 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag3.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag3.json @@ -120,7 +120,7 @@ "type": "Identifier", "span": { "start": 185, - "end": 194, + "end": 186, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag4.json b/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag4.json index 1a52f434859d..9545ab4f4a92 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag4.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag4.json @@ -118,7 +118,7 @@ "type": "Identifier", "span": { "start": 183, - "end": 192, + "end": 184, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocParseBackquotedParamName.json b/crates/swc_ecma_parser/tests/tsc/jsdocParseBackquotedParamName.json index 39a651d93206..de23a92a2ff1 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocParseBackquotedParamName.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocParseBackquotedParamName.json @@ -107,7 +107,7 @@ "type": "Identifier", "span": { "start": 255, - "end": 266, + "end": 258, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocThisType.json b/crates/swc_ecma_parser/tests/tsc/jsdocThisType.json index fdf4d14f0a79..016d0691d386 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocThisType.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocThisType.json @@ -142,7 +142,7 @@ "type": "Identifier", "span": { "start": 145, - "end": 154, + "end": 149, "ctxt": 0 }, "value": "this", diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTypeTag.json b/crates/swc_ecma_parser/tests/tsc/jsdocTypeTag.json index 76f0779e5287..15404b2baf82 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTypeTag.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTypeTag.json @@ -1858,7 +1858,7 @@ "type": "Identifier", "span": { "start": 1178, - "end": 1187, + "end": 1179, "ctxt": 0 }, "value": "s", @@ -1953,7 +1953,7 @@ "type": "Identifier", "span": { "start": 1215, - "end": 1224, + "end": 1216, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/keyofAndForIn.json b/crates/swc_ecma_parser/tests/tsc/keyofAndForIn.json index ee1d9a710d0c..46147f452307 100644 --- a/crates/swc_ecma_parser/tests/tsc/keyofAndForIn.json +++ b/crates/swc_ecma_parser/tests/tsc/keyofAndForIn.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 79, - "end": 99, + "end": 82, "ctxt": 0 }, "value": "obj", @@ -130,7 +130,7 @@ "type": "Identifier", "span": { "start": 101, - "end": 105, + "end": 102, "ctxt": 0 }, "value": "k", @@ -631,7 +631,7 @@ "type": "Identifier", "span": { "start": 278, - "end": 307, + "end": 281, "ctxt": 0 }, "value": "obj", @@ -766,7 +766,7 @@ "type": "Identifier", "span": { "start": 309, - "end": 319, + "end": 310, "ctxt": 0 }, "value": "k", @@ -1254,7 +1254,7 @@ "type": "Identifier", "span": { "start": 517, - "end": 540, + "end": 520, "ctxt": 0 }, "value": "obj", @@ -1380,7 +1380,7 @@ "type": "Identifier", "span": { "start": 542, - "end": 546, + "end": 543, "ctxt": 0 }, "value": "k", diff --git a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess.json b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess.json index d4759ca65073..b4b05a5719da 100644 --- a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess.json @@ -3813,7 +3813,7 @@ "type": "Identifier", "span": { "start": 2559, - "end": 2565, + "end": 2562, "ctxt": 0 }, "value": "obj", @@ -3859,7 +3859,7 @@ "type": "Identifier", "span": { "start": 2567, - "end": 2573, + "end": 2570, "ctxt": 0 }, "value": "key", @@ -4067,7 +4067,7 @@ "type": "Identifier", "span": { "start": 2644, - "end": 2650, + "end": 2647, "ctxt": 0 }, "value": "obj", @@ -4113,7 +4113,7 @@ "type": "Identifier", "span": { "start": 2652, - "end": 2658, + "end": 2655, "ctxt": 0 }, "value": "key", @@ -4159,7 +4159,7 @@ "type": "Identifier", "span": { "start": 2660, - "end": 2671, + "end": 2665, "ctxt": 0 }, "value": "value", @@ -4414,7 +4414,7 @@ "type": "Identifier", "span": { "start": 2713, - "end": 2725, + "end": 2718, "ctxt": 0 }, "value": "shape", @@ -5048,7 +5048,7 @@ "type": "Identifier", "span": { "start": 3155, - "end": 3165, + "end": 3156, "ctxt": 0 }, "value": "a", @@ -5285,7 +5285,7 @@ "type": "Identifier", "span": { "start": 3271, - "end": 3290, + "end": 3272, "ctxt": 0 }, "value": "t", @@ -5641,7 +5641,7 @@ "type": "Identifier", "span": { "start": 3440, - "end": 3448, + "end": 3443, "ctxt": 0 }, "value": "foo", @@ -5677,7 +5677,7 @@ "type": "Identifier", "span": { "start": 3450, - "end": 3458, + "end": 3453, "ctxt": 0 }, "value": "bar", @@ -6066,7 +6066,7 @@ "type": "Identifier", "span": { "start": 3687, - "end": 3693, + "end": 3690, "ctxt": 0 }, "value": "key", @@ -6279,7 +6279,7 @@ "type": "Identifier", "span": { "start": 3777, - "end": 3783, + "end": 3780, "ctxt": 0 }, "value": "key", @@ -6325,7 +6325,7 @@ "type": "Identifier", "span": { "start": 3785, - "end": 3803, + "end": 3790, "ctxt": 0 }, "value": "value", @@ -6619,7 +6619,7 @@ "type": "Identifier", "span": { "start": 3862, - "end": 3889, + "end": 3871, "ctxt": 0 }, "value": "component", @@ -7311,7 +7311,7 @@ "type": "Identifier", "span": { "start": 4360, - "end": 4370, + "end": 4365, "ctxt": 0 }, "value": "array", @@ -7365,7 +7365,7 @@ "type": "Identifier", "span": { "start": 4372, - "end": 4378, + "end": 4375, "ctxt": 0 }, "value": "key", @@ -7640,7 +7640,7 @@ "type": "Identifier", "span": { "start": 4433, - "end": 4448, + "end": 4439, "ctxt": 0 }, "value": "shapes", @@ -7995,7 +7995,7 @@ "type": "Identifier", "span": { "start": 4691, - "end": 4697, + "end": 4694, "ctxt": 0 }, "value": "key", @@ -8339,7 +8339,7 @@ "type": "Identifier", "span": { "start": 4862, - "end": 4868, + "end": 4865, "ctxt": 0 }, "value": "key", @@ -8701,7 +8701,7 @@ "type": "Identifier", "span": { "start": 5039, - "end": 5047, + "end": 5044, "ctxt": 0 }, "value": "shape", @@ -8747,7 +8747,7 @@ "type": "Identifier", "span": { "start": 5049, - "end": 5055, + "end": 5052, "ctxt": 0 }, "value": "key", @@ -9105,7 +9105,7 @@ "type": "Identifier", "span": { "start": 5175, - "end": 5190, + "end": 5177, "ctxt": 0 }, "value": "ts", @@ -9507,7 +9507,7 @@ "type": "Identifier", "span": { "start": 5527, - "end": 5531, + "end": 5528, "ctxt": 0 }, "value": "c", @@ -10069,7 +10069,7 @@ "type": "Identifier", "span": { "start": 5686, - "end": 5696, + "end": 5687, "ctxt": 0 }, "value": "k", @@ -10124,7 +10124,7 @@ "type": "Identifier", "span": { "start": 5698, - "end": 5707, + "end": 5699, "ctxt": 0 }, "value": "s", @@ -10365,7 +10365,7 @@ "type": "Identifier", "span": { "start": 5806, - "end": 5810, + "end": 5807, "ctxt": 0 }, "value": "k", @@ -10411,7 +10411,7 @@ "type": "Identifier", "span": { "start": 5812, - "end": 5821, + "end": 5813, "ctxt": 0 }, "value": "s", @@ -10702,7 +10702,7 @@ "type": "Identifier", "span": { "start": 5901, - "end": 5930, + "end": 5904, "ctxt": 0 }, "value": "obj", @@ -10795,7 +10795,7 @@ "type": "Identifier", "span": { "start": 5932, - "end": 5959, + "end": 5933, "ctxt": 0 }, "value": "k", @@ -10887,7 +10887,7 @@ "type": "Identifier", "span": { "start": 5961, - "end": 5970, + "end": 5962, "ctxt": 0 }, "value": "s", @@ -10923,7 +10923,7 @@ "type": "Identifier", "span": { "start": 5972, - "end": 5981, + "end": 5973, "ctxt": 0 }, "value": "n", @@ -11231,7 +11231,7 @@ "type": "Identifier", "span": { "start": 6109, - "end": 6138, + "end": 6112, "ctxt": 0 }, "value": "obj", @@ -11324,7 +11324,7 @@ "type": "Identifier", "span": { "start": 6140, - "end": 6144, + "end": 6141, "ctxt": 0 }, "value": "k", @@ -11370,7 +11370,7 @@ "type": "Identifier", "span": { "start": 6146, - "end": 6155, + "end": 6147, "ctxt": 0 }, "value": "s", @@ -11406,7 +11406,7 @@ "type": "Identifier", "span": { "start": 6157, - "end": 6166, + "end": 6158, "ctxt": 0 }, "value": "n", @@ -11801,7 +11801,7 @@ "type": "Identifier", "span": { "start": 6258, - "end": 6264, + "end": 6261, "ctxt": 0 }, "value": "obj", @@ -11847,7 +11847,7 @@ "type": "Identifier", "span": { "start": 6266, - "end": 6278, + "end": 6269, "ctxt": 0 }, "value": "key", @@ -12143,7 +12143,7 @@ "type": "Identifier", "span": { "start": 6389, - "end": 6395, + "end": 6392, "ctxt": 0 }, "value": "obj", @@ -12189,7 +12189,7 @@ "type": "Identifier", "span": { "start": 6397, - "end": 6403, + "end": 6400, "ctxt": 0 }, "value": "key", @@ -12526,7 +12526,7 @@ "type": "Identifier", "span": { "start": 6495, - "end": 6504, + "end": 6501, "ctxt": 0 }, "value": "source", @@ -12572,7 +12572,7 @@ "type": "Identifier", "span": { "start": 6506, - "end": 6515, + "end": 6512, "ctxt": 0 }, "value": "target", @@ -12836,7 +12836,7 @@ "type": "Identifier", "span": { "start": 6600, - "end": 6658, + "end": 6604, "ctxt": 0 }, "value": "func", @@ -12860,7 +12860,7 @@ "type": "Identifier", "span": { "start": 6613, - "end": 6630, + "end": 6615, "ctxt": 0 }, "value": "k1", @@ -12943,7 +12943,7 @@ "type": "Identifier", "span": { "start": 6632, - "end": 6649, + "end": 6634, "ctxt": 0 }, "value": "k2", @@ -13892,7 +13892,7 @@ "type": "Identifier", "span": { "start": 6858, - "end": 6900, + "end": 6862, "ctxt": 0 }, "value": "func", @@ -13916,7 +13916,7 @@ "type": "Identifier", "span": { "start": 6871, - "end": 6875, + "end": 6872, "ctxt": 0 }, "value": "x", @@ -13953,7 +13953,7 @@ "type": "Identifier", "span": { "start": 6877, - "end": 6881, + "end": 6878, "ctxt": 0 }, "value": "y", @@ -14434,7 +14434,7 @@ "type": "Identifier", "span": { "start": 7070, - "end": 7143, + "end": 7074, "ctxt": 0 }, "value": "func", @@ -14458,7 +14458,7 @@ "type": "Identifier", "span": { "start": 7112, - "end": 7116, + "end": 7113, "ctxt": 0 }, "value": "x", @@ -14495,7 +14495,7 @@ "type": "Identifier", "span": { "start": 7118, - "end": 7122, + "end": 7119, "ctxt": 0 }, "value": "y", @@ -14532,7 +14532,7 @@ "type": "Identifier", "span": { "start": 7124, - "end": 7128, + "end": 7125, "ctxt": 0 }, "value": "k", @@ -15334,7 +15334,7 @@ "type": "Identifier", "span": { "start": 7371, - "end": 7440, + "end": 7375, "ctxt": 0 }, "value": "func", @@ -15358,7 +15358,7 @@ "type": "Identifier", "span": { "start": 7409, - "end": 7413, + "end": 7410, "ctxt": 0 }, "value": "x", @@ -15395,7 +15395,7 @@ "type": "Identifier", "span": { "start": 7415, - "end": 7419, + "end": 7416, "ctxt": 0 }, "value": "y", @@ -15432,7 +15432,7 @@ "type": "Identifier", "span": { "start": 7421, - "end": 7425, + "end": 7422, "ctxt": 0 }, "value": "k", @@ -16233,7 +16233,7 @@ "type": "Identifier", "span": { "start": 7668, - "end": 7737, + "end": 7672, "ctxt": 0 }, "value": "func", @@ -16257,7 +16257,7 @@ "type": "Identifier", "span": { "start": 7706, - "end": 7710, + "end": 7707, "ctxt": 0 }, "value": "x", @@ -16294,7 +16294,7 @@ "type": "Identifier", "span": { "start": 7712, - "end": 7716, + "end": 7713, "ctxt": 0 }, "value": "y", @@ -16331,7 +16331,7 @@ "type": "Identifier", "span": { "start": 7718, - "end": 7722, + "end": 7719, "ctxt": 0 }, "value": "k", @@ -17018,7 +17018,7 @@ "type": "Identifier", "span": { "start": 7946, - "end": 7952, + "end": 7949, "ctxt": 0 }, "value": "obj", @@ -17821,7 +17821,7 @@ "type": "Identifier", "span": { "start": 8243, - "end": 8249, + "end": 8246, "ctxt": 0 }, "value": "obj", @@ -18437,7 +18437,7 @@ "type": "Identifier", "span": { "start": 8487, - "end": 8493, + "end": 8490, "ctxt": 0 }, "value": "obj", @@ -18483,7 +18483,7 @@ "type": "Identifier", "span": { "start": 8495, - "end": 8501, + "end": 8498, "ctxt": 0 }, "value": "key", @@ -19261,7 +19261,7 @@ "type": "Identifier", "span": { "start": 8740, - "end": 8746, + "end": 8743, "ctxt": 0 }, "value": "key", @@ -19445,7 +19445,7 @@ "type": "Identifier", "span": { "start": 8812, - "end": 8818, + "end": 8815, "ctxt": 0 }, "value": "key", @@ -19491,7 +19491,7 @@ "type": "Identifier", "span": { "start": 8820, - "end": 8834, + "end": 8825, "ctxt": 0 }, "value": "value", @@ -20406,7 +20406,7 @@ "type": "Identifier", "span": { "start": 9268, - "end": 9284, + "end": 9270, "ctxt": 0 }, "value": "x1", @@ -20489,7 +20489,7 @@ "type": "Identifier", "span": { "start": 9286, - "end": 9301, + "end": 9288, "ctxt": 0 }, "value": "x2", @@ -20572,7 +20572,7 @@ "type": "Identifier", "span": { "start": 9303, - "end": 9312, + "end": 9305, "ctxt": 0 }, "value": "x3", @@ -21118,7 +21118,7 @@ "type": "Identifier", "span": { "start": 9477, - "end": 9481, + "end": 9478, "ctxt": 0 }, "value": "x", @@ -21164,7 +21164,7 @@ "type": "Identifier", "span": { "start": 9483, - "end": 9496, + "end": 9484, "ctxt": 0 }, "value": "y", @@ -21247,7 +21247,7 @@ "type": "Identifier", "span": { "start": 9498, - "end": 9505, + "end": 9499, "ctxt": 0 }, "value": "z", @@ -21602,7 +21602,7 @@ "type": "Identifier", "span": { "start": 9595, - "end": 9599, + "end": 9596, "ctxt": 0 }, "value": "x", @@ -21648,7 +21648,7 @@ "type": "Identifier", "span": { "start": 9601, - "end": 9614, + "end": 9602, "ctxt": 0 }, "value": "y", @@ -21731,7 +21731,7 @@ "type": "Identifier", "span": { "start": 9616, - "end": 9623, + "end": 9617, "ctxt": 0 }, "value": "z", @@ -22139,7 +22139,7 @@ "type": "Identifier", "span": { "start": 9763, - "end": 9770, + "end": 9767, "ctxt": 0 }, "value": "prop", @@ -22323,7 +22323,7 @@ "type": "Identifier", "span": { "start": 9837, - "end": 9844, + "end": 9841, "ctxt": 0 }, "value": "prop", @@ -22369,7 +22369,7 @@ "type": "Identifier", "span": { "start": 9846, - "end": 9860, + "end": 9851, "ctxt": 0 }, "value": "value", @@ -22660,7 +22660,7 @@ "type": "Identifier", "span": { "start": 9964, - "end": 9977, + "end": 9969, "ctxt": 0 }, "value": "parts", @@ -23011,7 +23011,7 @@ "type": "Identifier", "span": { "start": 10152, - "end": 10165, + "end": 10157, "ctxt": 0 }, "value": "parts", @@ -23248,7 +23248,7 @@ "type": "Identifier", "span": { "start": 10354, - "end": 10360, + "end": 10357, "ctxt": 0 }, "value": "obj", @@ -23294,7 +23294,7 @@ "type": "Identifier", "span": { "start": 10362, - "end": 10370, + "end": 10366, "ctxt": 0 }, "value": "key1", @@ -23503,7 +23503,7 @@ "type": "Identifier", "span": { "start": 10441, - "end": 10447, + "end": 10444, "ctxt": 0 }, "value": "obj", @@ -23549,7 +23549,7 @@ "type": "Identifier", "span": { "start": 10449, - "end": 10457, + "end": 10453, "ctxt": 0 }, "value": "key1", @@ -23595,7 +23595,7 @@ "type": "Identifier", "span": { "start": 10459, - "end": 10467, + "end": 10463, "ctxt": 0 }, "value": "key2", @@ -23910,7 +23910,7 @@ "type": "Identifier", "span": { "start": 10570, - "end": 10576, + "end": 10573, "ctxt": 0 }, "value": "obj", @@ -23956,7 +23956,7 @@ "type": "Identifier", "span": { "start": 10578, - "end": 10586, + "end": 10582, "ctxt": 0 }, "value": "key1", @@ -24002,7 +24002,7 @@ "type": "Identifier", "span": { "start": 10588, - "end": 10596, + "end": 10592, "ctxt": 0 }, "value": "key2", @@ -24048,7 +24048,7 @@ "type": "Identifier", "span": { "start": 10598, - "end": 10606, + "end": 10602, "ctxt": 0 }, "value": "key3", @@ -24497,7 +24497,7 @@ "type": "Identifier", "span": { "start": 10638, - "end": 10646, + "end": 10641, "ctxt": 0 }, "value": "obj", @@ -24661,7 +24661,7 @@ "type": "Identifier", "span": { "start": 10698, - "end": 10706, + "end": 10701, "ctxt": 0 }, "value": "obj", @@ -25215,7 +25215,7 @@ "type": "Identifier", "span": { "start": 10929, - "end": 10941, + "end": 10934, "ctxt": 0 }, "value": "thing", @@ -26161,7 +26161,7 @@ "type": "Identifier", "span": { "start": 11390, - "end": 11413, + "end": 11397, "ctxt": 0 }, "value": "handler", @@ -26185,7 +26185,7 @@ "type": "Identifier", "span": { "start": 11400, - "end": 11404, + "end": 11401, "ctxt": 0 }, "value": "t", @@ -26513,7 +26513,7 @@ "type": "Identifier", "span": { "start": 11511, - "end": 11518, + "end": 11512, "ctxt": 0 }, "value": "t", @@ -26622,7 +26622,7 @@ "type": "Identifier", "span": { "start": 11553, - "end": 11577, + "end": 11564, "ctxt": 0 }, "value": "handlerHash", @@ -27223,7 +27223,7 @@ "type": "Identifier", "span": { "start": 11870, - "end": 11903, + "end": 11877, "ctxt": 0 }, "value": "options", @@ -27340,7 +27340,7 @@ "type": "Identifier", "span": { "start": 11949, - "end": 11955, + "end": 11952, "ctxt": 0 }, "value": "key", @@ -28053,7 +28053,7 @@ "type": "Identifier", "span": { "start": 12230, - "end": 12263, + "end": 12237, "ctxt": 0 }, "value": "options", @@ -28170,7 +28170,7 @@ "type": "Identifier", "span": { "start": 12313, - "end": 12319, + "end": 12316, "ctxt": 0 }, "value": "key", @@ -28572,7 +28572,7 @@ "type": "Identifier", "span": { "start": 12431, - "end": 12435, + "end": 12432, "ctxt": 0 }, "value": "p", @@ -28985,7 +28985,7 @@ "type": "Identifier", "span": { "start": 12639, - "end": 12654, + "end": 12643, "ctxt": 0 }, "value": "name", @@ -29058,7 +29058,7 @@ "type": "Identifier", "span": { "start": 12656, - "end": 12671, + "end": 12660, "ctxt": 0 }, "value": "args", @@ -29776,7 +29776,7 @@ "type": "Identifier", "span": { "start": 13016, - "end": 13022, + "end": 13019, "ctxt": 0 }, "value": "key", @@ -30068,7 +30068,7 @@ "type": "Identifier", "span": { "start": 13115, - "end": 13128, + "end": 13119, "ctxt": 0 }, "value": "name", @@ -30162,7 +30162,7 @@ "type": "Identifier", "span": { "start": 13179, - "end": 13217, + "end": 13186, "ctxt": 0 }, "value": "handler", @@ -30425,7 +30425,7 @@ "type": "Identifier", "span": { "start": 13348, - "end": 13354, + "end": 13351, "ctxt": 0 }, "value": "obj", @@ -30471,7 +30471,7 @@ "type": "Identifier", "span": { "start": 13360, - "end": 13373, + "end": 13368, "ctxt": 0 }, "value": "idFields", @@ -30525,7 +30525,7 @@ "type": "Identifier", "span": { "start": 13379, - "end": 13417, + "end": 13388, "ctxt": 0 }, "value": "idMapping", @@ -31258,7 +31258,7 @@ "type": "Identifier", "span": { "start": 13735, - "end": 13741, + "end": 13738, "ctxt": 0 }, "value": "obj", @@ -31304,7 +31304,7 @@ "type": "Identifier", "span": { "start": 13747, - "end": 13753, + "end": 13750, "ctxt": 0 }, "value": "key", @@ -31350,7 +31350,7 @@ "type": "Identifier", "span": { "start": 13759, - "end": 13797, + "end": 13768, "ctxt": 0 }, "value": "stringMap", @@ -31738,7 +31738,7 @@ "type": "Identifier", "span": { "start": 13928, - "end": 13935, + "end": 13932, "ctxt": 0 }, "value": "list", @@ -32132,7 +32132,7 @@ "type": "Identifier", "span": { "start": 14049, - "end": 14065, + "end": 14050, "ctxt": 0 }, "value": "p", @@ -32440,7 +32440,7 @@ "type": "Identifier", "span": { "start": 14170, - "end": 14177, + "end": 14171, "ctxt": 0 }, "value": "v", @@ -32630,7 +32630,7 @@ "type": "Identifier", "span": { "start": 14229, - "end": 14236, + "end": 14233, "ctxt": 0 }, "value": "prop", @@ -32676,7 +32676,7 @@ "type": "Identifier", "span": { "start": 14238, - "end": 14249, + "end": 14243, "ctxt": 0 }, "value": "value", @@ -33082,7 +33082,7 @@ "type": "Identifier", "span": { "start": 14399, - "end": 14407, + "end": 14404, "ctxt": 0 }, "value": "props", @@ -33362,7 +33362,7 @@ "type": "Identifier", "span": { "start": 14528, - "end": 14535, + "end": 14532, "ctxt": 0 }, "value": "obj1", @@ -33408,7 +33408,7 @@ "type": "Identifier", "span": { "start": 14537, - "end": 14544, + "end": 14541, "ctxt": 0 }, "value": "obj2", @@ -33615,7 +33615,7 @@ "type": "Identifier", "span": { "start": 14630, - "end": 14638, + "end": 14635, "ctxt": 0 }, "value": "props", @@ -34120,7 +34120,7 @@ "type": "Identifier", "span": { "start": 14901, - "end": 14905, + "end": 14902, "ctxt": 0 }, "value": "t", @@ -34166,7 +34166,7 @@ "type": "Identifier", "span": { "start": 14907, - "end": 14911, + "end": 14908, "ctxt": 0 }, "value": "k", @@ -34212,7 +34212,7 @@ "type": "Identifier", "span": { "start": 14913, - "end": 14921, + "end": 14915, "ctxt": 0 }, "value": "tk", @@ -34716,7 +34716,7 @@ "type": "Identifier", "span": { "start": 15125, - "end": 15166, + "end": 15132, "ctxt": 0 }, "value": "variant", @@ -36531,7 +36531,7 @@ "type": "Identifier", "span": { "start": 15881, - "end": 15909, + "end": 15887, "ctxt": 0 }, "value": "record", @@ -36605,7 +36605,7 @@ "type": "Identifier", "span": { "start": 15911, - "end": 15924, + "end": 15916, "ctxt": 0 }, "value": "flags", @@ -37042,7 +37042,7 @@ "type": "Identifier", "span": { "start": 16134, - "end": 16163, + "end": 16140, "ctxt": 0 }, "value": "record", @@ -37116,7 +37116,7 @@ "type": "Identifier", "span": { "start": 16165, - "end": 16178, + "end": 16170, "ctxt": 0 }, "value": "flags", @@ -37388,7 +37388,7 @@ "type": "Identifier", "span": { "start": 16295, - "end": 16299, + "end": 16296, "ctxt": 0 }, "value": "p", @@ -37509,7 +37509,7 @@ "type": "Identifier", "span": { "start": 16353, - "end": 16357, + "end": 16354, "ctxt": 0 }, "value": "o", @@ -37555,7 +37555,7 @@ "type": "Identifier", "span": { "start": 16359, - "end": 16363, + "end": 16360, "ctxt": 0 }, "value": "k", @@ -37962,7 +37962,7 @@ "type": "Identifier", "span": { "start": 16481, - "end": 16494, + "end": 16482, "ctxt": 0 }, "value": "x", @@ -38364,7 +38364,7 @@ "type": "Identifier", "span": { "start": 16673, - "end": 16680, + "end": 16677, "ctxt": 0 }, "value": "type", @@ -38889,7 +38889,7 @@ "type": "Identifier", "span": { "start": 16900, - "end": 16918, + "end": 16902, "ctxt": 0 }, "value": "dd", @@ -38982,7 +38982,7 @@ "type": "Identifier", "span": { "start": 16920, - "end": 16925, + "end": 16922, "ctxt": 0 }, "value": "k1", @@ -39028,7 +39028,7 @@ "type": "Identifier", "span": { "start": 16927, - "end": 16932, + "end": 16929, "ctxt": 0 }, "value": "k2", @@ -39267,7 +39267,7 @@ "type": "Identifier", "span": { "start": 17019, - "end": 17037, + "end": 17021, "ctxt": 0 }, "value": "dd", @@ -39360,7 +39360,7 @@ "type": "Identifier", "span": { "start": 17039, - "end": 17044, + "end": 17041, "ctxt": 0 }, "value": "k1", @@ -39406,7 +39406,7 @@ "type": "Identifier", "span": { "start": 17046, - "end": 17051, + "end": 17048, "ctxt": 0 }, "value": "k2", diff --git a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess2.json b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess2.json index a0d95cb74778..c0134f55c454 100644 --- a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess2.json +++ b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 50, - "end": 89, + "end": 53, "ctxt": 0 }, "value": "obj", @@ -229,7 +229,7 @@ "type": "Identifier", "span": { "start": 91, - "end": 98, + "end": 93, "ctxt": 0 }, "value": "k0", @@ -274,7 +274,7 @@ "type": "Identifier", "span": { "start": 100, - "end": 113, + "end": 102, "ctxt": 0 }, "value": "k1", @@ -347,7 +347,7 @@ "type": "Identifier", "span": { "start": 115, - "end": 134, + "end": 117, "ctxt": 0 }, "value": "k2", @@ -1041,7 +1041,7 @@ "type": "Identifier", "span": { "start": 415, - "end": 442, + "end": 416, "ctxt": 0 }, "value": "a", @@ -1160,7 +1160,7 @@ "type": "Identifier", "span": { "start": 444, - "end": 472, + "end": 445, "ctxt": 0 }, "value": "b", @@ -1253,7 +1253,7 @@ "type": "Identifier", "span": { "start": 474, - "end": 478, + "end": 475, "ctxt": 0 }, "value": "c", @@ -1299,7 +1299,7 @@ "type": "Identifier", "span": { "start": 480, - "end": 490, + "end": 481, "ctxt": 0 }, "value": "k", @@ -2095,7 +2095,7 @@ "type": "Identifier", "span": { "start": 1104, - "end": 1127, + "end": 1105, "ctxt": 0 }, "value": "a", @@ -2183,7 +2183,7 @@ "type": "Identifier", "span": { "start": 1129, - "end": 1157, + "end": 1130, "ctxt": 0 }, "value": "b", @@ -2276,7 +2276,7 @@ "type": "Identifier", "span": { "start": 1159, - "end": 1163, + "end": 1160, "ctxt": 0 }, "value": "k", @@ -2581,7 +2581,7 @@ "type": "Identifier", "span": { "start": 1311, - "end": 1334, + "end": 1312, "ctxt": 0 }, "value": "a", @@ -2669,7 +2669,7 @@ "type": "Identifier", "span": { "start": 1336, - "end": 1364, + "end": 1337, "ctxt": 0 }, "value": "b", @@ -2747,7 +2747,7 @@ "type": "Identifier", "span": { "start": 1366, - "end": 1370, + "end": 1367, "ctxt": 0 }, "value": "k", @@ -2945,7 +2945,7 @@ "type": "Identifier", "span": { "start": 1493, - "end": 1524, + "end": 1494, "ctxt": 0 }, "value": "a", @@ -3066,7 +3066,7 @@ "type": "Identifier", "span": { "start": 1526, - "end": 1535, + "end": 1527, "ctxt": 0 }, "value": "b", @@ -3366,7 +3366,7 @@ "type": "Identifier", "span": { "start": 1647, - "end": 1653, + "end": 1650, "ctxt": 0 }, "value": "obj", @@ -3412,7 +3412,7 @@ "type": "Identifier", "span": { "start": 1655, - "end": 1665, + "end": 1657, "ctxt": 0 }, "value": "k1", @@ -3448,7 +3448,7 @@ "type": "Identifier", "span": { "start": 1667, - "end": 1681, + "end": 1669, "ctxt": 0 }, "value": "k2", @@ -3503,7 +3503,7 @@ "type": "Identifier", "span": { "start": 1683, - "end": 1694, + "end": 1685, "ctxt": 0 }, "value": "k3", @@ -3558,7 +3558,7 @@ "type": "Identifier", "span": { "start": 1696, - "end": 1701, + "end": 1698, "ctxt": 0 }, "value": "k4", @@ -4058,7 +4058,7 @@ "type": "Identifier", "span": { "start": 1888, - "end": 1897, + "end": 1891, "ctxt": 0 }, "value": "obj", @@ -4104,7 +4104,7 @@ "type": "Identifier", "span": { "start": 1899, - "end": 1913, + "end": 1901, "ctxt": 0 }, "value": "k1", @@ -4159,7 +4159,7 @@ "type": "Identifier", "span": { "start": 1915, - "end": 1920, + "end": 1917, "ctxt": 0 }, "value": "k2", @@ -4481,7 +4481,7 @@ "type": "Identifier", "span": { "start": 2036, - "end": 2042, + "end": 2039, "ctxt": 0 }, "value": "obj", @@ -4527,7 +4527,7 @@ "type": "Identifier", "span": { "start": 2044, - "end": 2058, + "end": 2046, "ctxt": 0 }, "value": "k1", @@ -4582,7 +4582,7 @@ "type": "Identifier", "span": { "start": 2060, - "end": 2071, + "end": 2062, "ctxt": 0 }, "value": "k2", @@ -4637,7 +4637,7 @@ "type": "Identifier", "span": { "start": 2073, - "end": 2078, + "end": 2075, "ctxt": 0 }, "value": "k3", @@ -5671,7 +5671,7 @@ "type": "Identifier", "span": { "start": 2492, - "end": 2513, + "end": 2497, "ctxt": 0 }, "value": "state", @@ -6067,7 +6067,7 @@ "type": "Identifier", "span": { "start": 2646, - "end": 2657, + "end": 2648, "ctxt": 0 }, "value": "id", @@ -6141,7 +6141,7 @@ "type": "Identifier", "span": { "start": 2659, - "end": 2680, + "end": 2664, "ctxt": 0 }, "value": "state", @@ -7813,7 +7813,7 @@ "type": "Identifier", "span": { "start": 3383, - "end": 3391, + "end": 3388, "ctxt": 0 }, "value": "param", @@ -7859,7 +7859,7 @@ "type": "Identifier", "span": { "start": 3393, - "end": 3437, + "end": 3395, "ctxt": 0 }, "value": "cb", @@ -7883,7 +7883,7 @@ "type": "Identifier", "span": { "start": 3398, - "end": 3428, + "end": 3405, "ctxt": 0 }, "value": "element", @@ -8317,7 +8317,7 @@ "type": "Identifier", "span": { "start": 3509, - "end": 3517, + "end": 3514, "ctxt": 0 }, "value": "param", @@ -8363,7 +8363,7 @@ "type": "Identifier", "span": { "start": 3519, - "end": 3551, + "end": 3521, "ctxt": 0 }, "value": "cb", @@ -8387,7 +8387,7 @@ "type": "Identifier", "span": { "start": 3524, - "end": 3542, + "end": 3531, "ctxt": 0 }, "value": "element", @@ -8645,7 +8645,7 @@ "type": "Identifier", "span": { "start": 3644, - "end": 3652, + "end": 3649, "ctxt": 0 }, "value": "param", @@ -8691,7 +8691,7 @@ "type": "Identifier", "span": { "start": 3654, - "end": 3686, + "end": 3656, "ctxt": 0 }, "value": "cb", @@ -8715,7 +8715,7 @@ "type": "Identifier", "span": { "start": 3659, - "end": 3677, + "end": 3666, "ctxt": 0 }, "value": "element", diff --git a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccessErrors.json b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccessErrors.json index b4ab93db85b7..c462cca529ad 100644 --- a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccessErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccessErrors.json @@ -2611,7 +2611,7 @@ "type": "Identifier", "span": { "start": 1438, - "end": 1444, + "end": 1441, "ctxt": 0 }, "value": "obj", @@ -2657,7 +2657,7 @@ "type": "Identifier", "span": { "start": 1446, - "end": 1452, + "end": 1449, "ctxt": 0 }, "value": "key", @@ -2865,7 +2865,7 @@ "type": "Identifier", "span": { "start": 1523, - "end": 1529, + "end": 1526, "ctxt": 0 }, "value": "obj", @@ -2911,7 +2911,7 @@ "type": "Identifier", "span": { "start": 1531, - "end": 1537, + "end": 1534, "ctxt": 0 }, "value": "key", @@ -2957,7 +2957,7 @@ "type": "Identifier", "span": { "start": 1539, - "end": 1550, + "end": 1544, "ctxt": 0 }, "value": "value", @@ -3212,7 +3212,7 @@ "type": "Identifier", "span": { "start": 1592, - "end": 1604, + "end": 1597, "ctxt": 0 }, "value": "shape", @@ -3791,7 +3791,7 @@ "type": "Identifier", "span": { "start": 1942, - "end": 1950, + "end": 1943, "ctxt": 0 }, "value": "x", @@ -3866,7 +3866,7 @@ "type": "Identifier", "span": { "start": 1952, - "end": 1960, + "end": 1953, "ctxt": 0 }, "value": "y", @@ -3941,7 +3941,7 @@ "type": "Identifier", "span": { "start": 1962, - "end": 1979, + "end": 1964, "ctxt": 0 }, "value": "k1", @@ -4033,7 +4033,7 @@ "type": "Identifier", "span": { "start": 1981, - "end": 2002, + "end": 1983, "ctxt": 0 }, "value": "k2", @@ -4126,7 +4126,7 @@ "type": "Identifier", "span": { "start": 2004, - "end": 2021, + "end": 2006, "ctxt": 0 }, "value": "k3", @@ -4218,7 +4218,7 @@ "type": "Identifier", "span": { "start": 2023, - "end": 2044, + "end": 2025, "ctxt": 0 }, "value": "k4", @@ -5210,7 +5210,7 @@ "type": "Identifier", "span": { "start": 2463, - "end": 2467, + "end": 2464, "ctxt": 0 }, "value": "t", @@ -5256,7 +5256,7 @@ "type": "Identifier", "span": { "start": 2469, - "end": 2473, + "end": 2470, "ctxt": 0 }, "value": "k", @@ -5302,7 +5302,7 @@ "type": "Identifier", "span": { "start": 2475, - "end": 2483, + "end": 2477, "ctxt": 0 }, "value": "tk", @@ -5376,7 +5376,7 @@ "type": "Identifier", "span": { "start": 2485, - "end": 2489, + "end": 2486, "ctxt": 0 }, "value": "u", @@ -5422,7 +5422,7 @@ "type": "Identifier", "span": { "start": 2491, - "end": 2495, + "end": 2492, "ctxt": 0 }, "value": "j", @@ -5468,7 +5468,7 @@ "type": "Identifier", "span": { "start": 2497, - "end": 2505, + "end": 2499, "ctxt": 0 }, "value": "uk", @@ -5542,7 +5542,7 @@ "type": "Identifier", "span": { "start": 2507, - "end": 2515, + "end": 2509, "ctxt": 0 }, "value": "tj", @@ -5616,7 +5616,7 @@ "type": "Identifier", "span": { "start": 2517, - "end": 2525, + "end": 2519, "ctxt": 0 }, "value": "uj", @@ -6511,7 +6511,7 @@ "type": "Identifier", "span": { "start": 2984, - "end": 2994, + "end": 2985, "ctxt": 0 }, "value": "k", @@ -7417,7 +7417,7 @@ "type": "Identifier", "span": { "start": 3406, - "end": 3410, + "end": 3407, "ctxt": 0 }, "value": "t", @@ -7463,7 +7463,7 @@ "type": "Identifier", "span": { "start": 3412, - "end": 3416, + "end": 3413, "ctxt": 0 }, "value": "k", @@ -8708,7 +8708,7 @@ "type": "Identifier", "span": { "start": 3881, - "end": 3885, + "end": 3882, "ctxt": 0 }, "value": "t", @@ -8840,7 +8840,7 @@ "type": "Identifier", "span": { "start": 3925, - "end": 3937, + "end": 3928, "ctxt": 0 }, "value": "key", diff --git a/crates/swc_ecma_parser/tests/tsc/keyofInferenceIntersectsResults.json b/crates/swc_ecma_parser/tests/tsc/keyofInferenceIntersectsResults.json index 2f75b9983ab6..d99d095daabc 100644 --- a/crates/swc_ecma_parser/tests/tsc/keyofInferenceIntersectsResults.json +++ b/crates/swc_ecma_parser/tests/tsc/keyofInferenceIntersectsResults.json @@ -145,7 +145,7 @@ "type": "Identifier", "span": { "start": 76, - "end": 86, + "end": 77, "ctxt": 0 }, "value": "x", @@ -200,7 +200,7 @@ "type": "Identifier", "span": { "start": 88, - "end": 98, + "end": 89, "ctxt": 0 }, "value": "y", @@ -358,7 +358,7 @@ "type": "Identifier", "span": { "start": 128, - "end": 138, + "end": 129, "ctxt": 0 }, "value": "x", @@ -413,7 +413,7 @@ "type": "Identifier", "span": { "start": 140, - "end": 150, + "end": 141, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/keyofInferenceLowerPriorityThanReturn.json b/crates/swc_ecma_parser/tests/tsc/keyofInferenceLowerPriorityThanReturn.json index 31227125885b..256f7a4bd0cb 100644 --- a/crates/swc_ecma_parser/tests/tsc/keyofInferenceLowerPriorityThanReturn.json +++ b/crates/swc_ecma_parser/tests/tsc/keyofInferenceLowerPriorityThanReturn.json @@ -1068,7 +1068,7 @@ "type": "Identifier", "span": { "start": 447, - "end": 467, + "end": 451, "ctxt": 0 }, "value": "cols", @@ -1803,7 +1803,7 @@ "type": "Identifier", "span": { "start": 850, - "end": 873, + "end": 856, "ctxt": 0 }, "value": "_table", @@ -1896,7 +1896,7 @@ "type": "Identifier", "span": { "start": 875, - "end": 917, + "end": 890, "ctxt": 0 }, "value": "_conflictTarget", diff --git a/crates/swc_ecma_parser/tests/tsc/literalTypeWidening.json b/crates/swc_ecma_parser/tests/tsc/literalTypeWidening.json index 21a5f8731666..ecde06501269 100644 --- a/crates/swc_ecma_parser/tests/tsc/literalTypeWidening.json +++ b/crates/swc_ecma_parser/tests/tsc/literalTypeWidening.json @@ -453,7 +453,7 @@ "type": "Identifier", "span": { "start": 400, - "end": 413, + "end": 404, "ctxt": 0 }, "value": "cond", @@ -1574,7 +1574,7 @@ "type": "Identifier", "span": { "start": 1214, - "end": 1227, + "end": 1218, "ctxt": 0 }, "value": "cond", @@ -2722,7 +2722,7 @@ "type": "Identifier", "span": { "start": 1886, - "end": 1890, + "end": 1887, "ctxt": 0 }, "value": "x", @@ -2853,7 +2853,7 @@ "type": "Identifier", "span": { "start": 1961, - "end": 1965, + "end": 1962, "ctxt": 0 }, "value": "x", @@ -3020,7 +3020,7 @@ "type": "Identifier", "span": { "start": 1984, - "end": 1997, + "end": 1988, "ctxt": 0 }, "value": "cond", @@ -3863,7 +3863,7 @@ "type": "Identifier", "span": { "start": 2387, - "end": 2404, + "end": 2393, "ctxt": 0 }, "value": "result", @@ -4109,7 +4109,7 @@ "type": "Identifier", "span": { "start": 2475, - "end": 2492, + "end": 2481, "ctxt": 0 }, "value": "result", @@ -4341,7 +4341,7 @@ "type": "Identifier", "span": { "start": 2566, - "end": 2575, + "end": 2567, "ctxt": 0 }, "value": "x", @@ -5356,7 +5356,7 @@ "type": "Identifier", "span": { "start": 3101, - "end": 3118, + "end": 3104, "ctxt": 0 }, "value": "obj", @@ -6168,7 +6168,7 @@ "type": "Identifier", "span": { "start": 3466, - "end": 3472, + "end": 3469, "ctxt": 0 }, "value": "obj", @@ -6573,7 +6573,7 @@ "type": "Identifier", "span": { "start": 3597, - "end": 3601, + "end": 3598, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/literalTypes1.json b/crates/swc_ecma_parser/tests/tsc/literalTypes1.json index dea2c242c31f..a9b4ab9cd146 100644 --- a/crates/swc_ecma_parser/tests/tsc/literalTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/literalTypes1.json @@ -382,7 +382,7 @@ "type": "Identifier", "span": { "start": 123, - "end": 135, + "end": 124, "ctxt": 0 }, "value": "x", @@ -699,7 +699,7 @@ "type": "Identifier", "span": { "start": 366, - "end": 378, + "end": 367, "ctxt": 0 }, "value": "x", @@ -1070,7 +1070,7 @@ "type": "Identifier", "span": { "start": 611, - "end": 619, + "end": 612, "ctxt": 0 }, "value": "x", @@ -1226,7 +1226,7 @@ "type": "Identifier", "span": { "start": 696, - "end": 720, + "end": 697, "ctxt": 0 }, "value": "x", @@ -1662,7 +1662,7 @@ "type": "Identifier", "span": { "start": 1079, - "end": 1107, + "end": 1080, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/literalTypes2.json b/crates/swc_ecma_parser/tests/tsc/literalTypes2.json index 021e9466e24e..71744a3a1cfa 100644 --- a/crates/swc_ecma_parser/tests/tsc/literalTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/literalTypes2.json @@ -1572,7 +1572,7 @@ "type": "Identifier", "span": { "start": 602, - "end": 607, + "end": 604, "ctxt": 0 }, "value": "p1", @@ -1635,7 +1635,7 @@ "type": "Identifier", "span": { "start": 613, - "end": 622, + "end": 615, "ctxt": 0 }, "value": "p2", @@ -1698,7 +1698,7 @@ "type": "Identifier", "span": { "start": 632, - "end": 640, + "end": 634, "ctxt": 0 }, "value": "p3", @@ -1759,7 +1759,7 @@ "type": "Identifier", "span": { "start": 649, - "end": 656, + "end": 651, "ctxt": 0 }, "value": "p4", @@ -7534,7 +7534,7 @@ "type": "Identifier", "span": { "start": 2929, - "end": 2933, + "end": 2930, "ctxt": 0 }, "value": "x", @@ -7665,7 +7665,7 @@ "type": "Identifier", "span": { "start": 2962, - "end": 2966, + "end": 2963, "ctxt": 0 }, "value": "x", @@ -7711,7 +7711,7 @@ "type": "Identifier", "span": { "start": 2968, - "end": 2972, + "end": 2969, "ctxt": 0 }, "value": "y", @@ -7842,7 +7842,7 @@ "type": "Identifier", "span": { "start": 3004, - "end": 3008, + "end": 3005, "ctxt": 0 }, "value": "x", @@ -7888,7 +7888,7 @@ "type": "Identifier", "span": { "start": 3010, - "end": 3014, + "end": 3011, "ctxt": 0 }, "value": "y", @@ -8071,7 +8071,7 @@ "type": "Identifier", "span": { "start": 3047, - "end": 3051, + "end": 3048, "ctxt": 0 }, "value": "x", @@ -8210,7 +8210,7 @@ "type": "Identifier", "span": { "start": 3097, - "end": 3101, + "end": 3098, "ctxt": 0 }, "value": "x", @@ -8256,7 +8256,7 @@ "type": "Identifier", "span": { "start": 3103, - "end": 3107, + "end": 3104, "ctxt": 0 }, "value": "y", @@ -8403,7 +8403,7 @@ "type": "Identifier", "span": { "start": 3138, - "end": 3144, + "end": 3139, "ctxt": 0 }, "value": "x", @@ -8542,7 +8542,7 @@ "type": "Identifier", "span": { "start": 3173, - "end": 3179, + "end": 3174, "ctxt": 0 }, "value": "x", @@ -8689,7 +8689,7 @@ "type": "Identifier", "span": { "start": 3210, - "end": 3214, + "end": 3211, "ctxt": 0 }, "value": "x", @@ -8735,7 +8735,7 @@ "type": "Identifier", "span": { "start": 3216, - "end": 3230, + "end": 3217, "ctxt": 0 }, "value": "f", @@ -8759,7 +8759,7 @@ "type": "Identifier", "span": { "start": 3220, - "end": 3224, + "end": 3221, "ctxt": 0 }, "value": "p", @@ -9958,7 +9958,7 @@ "type": "Identifier", "span": { "start": 3706, - "end": 3710, + "end": 3707, "ctxt": 0 }, "value": "x", @@ -10137,7 +10137,7 @@ "type": "Identifier", "span": { "start": 3757, - "end": 3763, + "end": 3758, "ctxt": 0 }, "value": "a", @@ -10191,7 +10191,7 @@ "type": "Identifier", "span": { "start": 3765, - "end": 3769, + "end": 3766, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/literalTypes3.json b/crates/swc_ecma_parser/tests/tsc/literalTypes3.json index 10199f3d2990..37ac8968e61e 100644 --- a/crates/swc_ecma_parser/tests/tsc/literalTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/literalTypes3.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 41, - "end": 50, + "end": 42, "ctxt": 0 }, "value": "s", @@ -274,7 +274,7 @@ "type": "Identifier", "span": { "start": 192, - "end": 201, + "end": 193, "ctxt": 0 }, "value": "s", @@ -499,7 +499,7 @@ "type": "Identifier", "span": { "start": 439, - "end": 448, + "end": 440, "ctxt": 0 }, "value": "s", @@ -674,7 +674,7 @@ "type": "Identifier", "span": { "start": 552, - "end": 561, + "end": 553, "ctxt": 0 }, "value": "x", @@ -878,7 +878,7 @@ "type": "Identifier", "span": { "start": 667, - "end": 676, + "end": 668, "ctxt": 0 }, "value": "x", @@ -914,7 +914,7 @@ "type": "Identifier", "span": { "start": 678, - "end": 686, + "end": 679, "ctxt": 0 }, "value": "y", @@ -1127,7 +1127,7 @@ "type": "Identifier", "span": { "start": 766, - "end": 775, + "end": 767, "ctxt": 0 }, "value": "x", @@ -1163,7 +1163,7 @@ "type": "Identifier", "span": { "start": 777, - "end": 785, + "end": 778, "ctxt": 0 }, "value": "y", @@ -1376,7 +1376,7 @@ "type": "Identifier", "span": { "start": 865, - "end": 890, + "end": 866, "ctxt": 0 }, "value": "x", @@ -1458,7 +1458,7 @@ "type": "Identifier", "span": { "start": 892, - "end": 909, + "end": 893, "ctxt": 0 }, "value": "y", @@ -1642,7 +1642,7 @@ "type": "Identifier", "span": { "start": 990, - "end": 1015, + "end": 991, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/localTypes1.json b/crates/swc_ecma_parser/tests/tsc/localTypes1.json index 5d9feb05d523..418b11252985 100644 --- a/crates/swc_ecma_parser/tests/tsc/localTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/localTypes1.json @@ -1161,7 +1161,7 @@ "type": "Identifier", "span": { "start": 527, - "end": 537, + "end": 528, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/localTypes2.json b/crates/swc_ecma_parser/tests/tsc/localTypes2.json index ab9dfbf13e9e..5e30f3c0e055 100644 --- a/crates/swc_ecma_parser/tests/tsc/localTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/localTypes2.json @@ -115,7 +115,7 @@ "type": "Identifier", "span": { "start": 85, - "end": 94, + "end": 86, "ctxt": 0 }, "value": "x", @@ -154,7 +154,7 @@ "type": "Identifier", "span": { "start": 103, - "end": 112, + "end": 104, "ctxt": 0 }, "value": "y", @@ -535,7 +535,7 @@ "type": "Identifier", "span": { "start": 264, - "end": 273, + "end": 265, "ctxt": 0 }, "value": "x", @@ -665,7 +665,7 @@ "type": "Identifier", "span": { "start": 352, - "end": 361, + "end": 353, "ctxt": 0 }, "value": "y", @@ -1047,7 +1047,7 @@ "type": "Identifier", "span": { "start": 511, - "end": 520, + "end": 512, "ctxt": 0 }, "value": "x", @@ -1083,7 +1083,7 @@ "type": "Identifier", "span": { "start": 522, - "end": 531, + "end": 523, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/localTypes3.json b/crates/swc_ecma_parser/tests/tsc/localTypes3.json index 810f144f930d..1694cd8ee2d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/localTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/localTypes3.json @@ -115,7 +115,7 @@ "type": "Identifier", "span": { "start": 91, - "end": 95, + "end": 92, "ctxt": 0 }, "value": "x", @@ -164,7 +164,7 @@ "type": "Identifier", "span": { "start": 104, - "end": 108, + "end": 105, "ctxt": 0 }, "value": "y", @@ -610,7 +610,7 @@ "type": "Identifier", "span": { "start": 268, - "end": 272, + "end": 269, "ctxt": 0 }, "value": "x", @@ -750,7 +750,7 @@ "type": "Identifier", "span": { "start": 354, - "end": 358, + "end": 355, "ctxt": 0 }, "value": "y", @@ -1206,7 +1206,7 @@ "type": "Identifier", "span": { "start": 519, - "end": 523, + "end": 520, "ctxt": 0 }, "value": "x", @@ -1252,7 +1252,7 @@ "type": "Identifier", "span": { "start": 525, - "end": 529, + "end": 526, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/localTypes4.json b/crates/swc_ecma_parser/tests/tsc/localTypes4.json index a310288e595d..713769d5caa6 100644 --- a/crates/swc_ecma_parser/tests/tsc/localTypes4.json +++ b/crates/swc_ecma_parser/tests/tsc/localTypes4.json @@ -60,7 +60,7 @@ "type": "Identifier", "span": { "start": 134, - "end": 138, + "end": 135, "ctxt": 0 }, "value": "x", @@ -253,7 +253,7 @@ "type": "Identifier", "span": { "start": 278, - "end": 282, + "end": 279, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAndOperatorWithTypeParameters.json b/crates/swc_ecma_parser/tests/tsc/logicalAndOperatorWithTypeParameters.json index 0b89502e1429..3c4948a6990e 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAndOperatorWithTypeParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAndOperatorWithTypeParameters.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 161, - "end": 165, + "end": 162, "ctxt": 0 }, "value": "t", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 167, - "end": 171, + "end": 168, "ctxt": 0 }, "value": "u", @@ -124,7 +124,7 @@ "type": "Identifier", "span": { "start": 173, - "end": 177, + "end": 174, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment4.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment4.json index c08ef4c3779c..a8419dc41550 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment4.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment4.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 108, - "end": 137, + "end": 115, "ctxt": 0 }, "value": "results", @@ -218,7 +218,7 @@ "type": "Identifier", "span": { "start": 190, - "end": 219, + "end": 197, "ctxt": 0 }, "value": "results", @@ -404,7 +404,7 @@ "type": "Identifier", "span": { "start": 272, - "end": 301, + "end": 279, "ctxt": 0 }, "value": "results", @@ -600,7 +600,7 @@ "type": "Identifier", "span": { "start": 365, - "end": 394, + "end": 372, "ctxt": 0 }, "value": "results", @@ -968,7 +968,7 @@ "type": "Identifier", "span": { "start": 581, - "end": 617, + "end": 586, "ctxt": 0 }, "value": "thing", @@ -1033,7 +1033,7 @@ "type": "Identifier", "span": { "start": 619, - "end": 662, + "end": 631, "ctxt": 0 }, "value": "defaultValue", diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment5.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment5.json index 3e7b807ee052..68498b504725 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment5.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment5.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 77, - "end": 100, + "end": 78, "ctxt": 0 }, "value": "f", @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 82, - "end": 91, + "end": 83, "ctxt": 0 }, "value": "a", @@ -263,7 +263,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 174, + "end": 152, "ctxt": 0 }, "value": "f", @@ -287,7 +287,7 @@ "type": "Identifier", "span": { "start": 156, - "end": 165, + "end": 157, "ctxt": 0 }, "value": "a", @@ -494,7 +494,7 @@ "type": "Identifier", "span": { "start": 225, - "end": 248, + "end": 226, "ctxt": 0 }, "value": "f", @@ -518,7 +518,7 @@ "type": "Identifier", "span": { "start": 230, - "end": 239, + "end": 231, "ctxt": 0 }, "value": "a", @@ -725,7 +725,7 @@ "type": "Identifier", "span": { "start": 299, - "end": 322, + "end": 300, "ctxt": 0 }, "value": "f", @@ -749,7 +749,7 @@ "type": "Identifier", "span": { "start": 304, - "end": 313, + "end": 305, "ctxt": 0 }, "value": "a", @@ -1012,7 +1012,7 @@ "type": "Identifier", "span": { "start": 389, - "end": 412, + "end": 390, "ctxt": 0 }, "value": "f", @@ -1036,7 +1036,7 @@ "type": "Identifier", "span": { "start": 394, - "end": 403, + "end": 395, "ctxt": 0 }, "value": "a", @@ -1299,7 +1299,7 @@ "type": "Identifier", "span": { "start": 479, - "end": 502, + "end": 480, "ctxt": 0 }, "value": "f", @@ -1323,7 +1323,7 @@ "type": "Identifier", "span": { "start": 484, - "end": 493, + "end": 485, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment6.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment6.json index 30605c5097b6..9d14b4fc69bd 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment6.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment6.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 76, - "end": 105, + "end": 83, "ctxt": 0 }, "value": "results", @@ -95,7 +95,7 @@ "type": "Identifier", "span": { "start": 107, - "end": 137, + "end": 115, "ctxt": 0 }, "value": "results1", @@ -309,7 +309,7 @@ "type": "Identifier", "span": { "start": 205, - "end": 234, + "end": 212, "ctxt": 0 }, "value": "results", @@ -372,7 +372,7 @@ "type": "Identifier", "span": { "start": 236, - "end": 266, + "end": 244, "ctxt": 0 }, "value": "results1", @@ -586,7 +586,7 @@ "type": "Identifier", "span": { "start": 334, - "end": 363, + "end": 341, "ctxt": 0 }, "value": "results", @@ -649,7 +649,7 @@ "type": "Identifier", "span": { "start": 365, - "end": 395, + "end": 373, "ctxt": 0 }, "value": "results1", diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment7.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment7.json index 8e8bea19ef71..26f2018b7e91 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment7.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment7.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 76, - "end": 105, + "end": 83, "ctxt": 0 }, "value": "results", @@ -95,7 +95,7 @@ "type": "Identifier", "span": { "start": 107, - "end": 137, + "end": 115, "ctxt": 0 }, "value": "results1", @@ -301,7 +301,7 @@ "type": "Identifier", "span": { "start": 203, - "end": 232, + "end": 210, "ctxt": 0 }, "value": "results", @@ -364,7 +364,7 @@ "type": "Identifier", "span": { "start": 234, - "end": 264, + "end": 242, "ctxt": 0 }, "value": "results1", @@ -570,7 +570,7 @@ "type": "Identifier", "span": { "start": 330, - "end": 359, + "end": 337, "ctxt": 0 }, "value": "results", @@ -633,7 +633,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 391, + "end": 369, "ctxt": 0 }, "value": "results1", diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment8.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment8.json index 32212e5bba32..9361c36f8cf0 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment8.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment8.json @@ -150,7 +150,7 @@ "type": "Identifier", "span": { "start": 129, - "end": 158, + "end": 136, "ctxt": 0 }, "value": "results", @@ -382,7 +382,7 @@ "type": "Identifier", "span": { "start": 225, - "end": 254, + "end": 232, "ctxt": 0 }, "value": "results", @@ -614,7 +614,7 @@ "type": "Identifier", "span": { "start": 321, - "end": 350, + "end": 328, "ctxt": 0 }, "value": "results", diff --git a/crates/swc_ecma_parser/tests/tsc/logicalOrExpressionIsNotContextuallyTyped.json b/crates/swc_ecma_parser/tests/tsc/logicalOrExpressionIsNotContextuallyTyped.json index 99afecc995f5..343aceb01d7b 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalOrExpressionIsNotContextuallyTyped.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalOrExpressionIsNotContextuallyTyped.json @@ -51,7 +51,7 @@ "type": "Identifier", "span": { "start": 267, - "end": 276, + "end": 268, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/logicalOrOperatorWithTypeParameters.json b/crates/swc_ecma_parser/tests/tsc/logicalOrOperatorWithTypeParameters.json index b99574004f63..c8298ddb829d 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalOrOperatorWithTypeParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalOrOperatorWithTypeParameters.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 20, - "end": 24, + "end": 21, "ctxt": 0 }, "value": "t", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 26, - "end": 30, + "end": 27, "ctxt": 0 }, "value": "u", @@ -501,7 +501,7 @@ "type": "Identifier", "span": { "start": 178, - "end": 182, + "end": 179, "ctxt": 0 }, "value": "t", @@ -547,7 +547,7 @@ "type": "Identifier", "span": { "start": 184, - "end": 188, + "end": 185, "ctxt": 0 }, "value": "u", @@ -593,7 +593,7 @@ "type": "Identifier", "span": { "start": 190, - "end": 194, + "end": 191, "ctxt": 0 }, "value": "v", @@ -1100,7 +1100,7 @@ "type": "Identifier", "span": { "start": 450, - "end": 454, + "end": 451, "ctxt": 0 }, "value": "t", @@ -1146,7 +1146,7 @@ "type": "Identifier", "span": { "start": 456, - "end": 460, + "end": 457, "ctxt": 0 }, "value": "u", diff --git a/crates/swc_ecma_parser/tests/tsc/looseThisTypeInFunctions.json b/crates/swc_ecma_parser/tests/tsc/looseThisTypeInFunctions.json index ea47fd7c45c8..86e5e9cbf76f 100644 --- a/crates/swc_ecma_parser/tests/tsc/looseThisTypeInFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/looseThisTypeInFunctions.json @@ -100,7 +100,7 @@ "type": "Identifier", "span": { "start": 97, - "end": 107, + "end": 101, "ctxt": 0 }, "value": "this", @@ -126,7 +126,7 @@ "type": "Identifier", "span": { "start": 109, - "end": 118, + "end": 110, "ctxt": 0 }, "value": "m", @@ -225,7 +225,7 @@ "type": "Identifier", "span": { "start": 169, - "end": 178, + "end": 170, "ctxt": 0 }, "value": "m", @@ -367,7 +367,7 @@ "type": "Identifier", "span": { "start": 246, - "end": 256, + "end": 250, "ctxt": 0 }, "value": "this", @@ -402,7 +402,7 @@ "type": "Identifier", "span": { "start": 258, - "end": 267, + "end": 259, "ctxt": 0 }, "value": "m", @@ -555,7 +555,7 @@ "type": "Identifier", "span": { "start": 329, - "end": 338, + "end": 330, "ctxt": 0 }, "value": "m", @@ -708,7 +708,7 @@ "type": "Identifier", "span": { "start": 400, - "end": 410, + "end": 404, "ctxt": 0 }, "value": "this", @@ -744,7 +744,7 @@ "type": "Identifier", "span": { "start": 412, - "end": 421, + "end": 413, "ctxt": 0 }, "value": "m", @@ -1089,7 +1089,7 @@ "type": "Identifier", "span": { "start": 602, - "end": 611, + "end": 603, "ctxt": 0 }, "value": "m", @@ -1232,7 +1232,7 @@ "type": "Identifier", "span": { "start": 719, - "end": 728, + "end": 720, "ctxt": 0 }, "value": "m", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauseRelationships.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauseRelationships.json index 1dc0fbb35c28..f092e363d047 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauseRelationships.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauseRelationships.json @@ -965,7 +965,7 @@ "type": "Identifier", "span": { "start": 424, - "end": 430, + "end": 427, "ctxt": 0 }, "value": "val", @@ -2323,7 +2323,7 @@ "type": "Identifier", "span": { "start": 888, - "end": 894, + "end": 891, "ctxt": 0 }, "value": "val", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauses.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauses.json index ded5e31ac203..c67c89d15d91 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauses.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauses.json @@ -1865,7 +1865,7 @@ "type": "Identifier", "span": { "start": 857, - "end": 866, + "end": 858, "ctxt": 0 }, "value": "x", @@ -7716,7 +7716,7 @@ "type": "Identifier", "span": { "start": 3460, - "end": 3488, + "end": 3461, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints.json index c7e128f8c541..8a0441eed867 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 67, - "end": 102, + "end": 70, "ctxt": 0 }, "value": "obj", @@ -375,7 +375,7 @@ "type": "Identifier", "span": { "start": 168, - "end": 203, + "end": 171, "ctxt": 0 }, "value": "obj", @@ -718,7 +718,7 @@ "type": "Identifier", "span": { "start": 305, - "end": 336, + "end": 308, "ctxt": 0 }, "value": "obj", @@ -1195,7 +1195,7 @@ "type": "Identifier", "span": { "start": 438, - "end": 469, + "end": 441, "ctxt": 0 }, "value": "obj", @@ -1744,7 +1744,7 @@ "type": "Identifier", "span": { "start": 557, - "end": 605, + "end": 560, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints2.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints2.json index fd84bea8ff05..c3fe5fa17834 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints2.json @@ -205,7 +205,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 163, + "end": 151, "ctxt": 0 }, "value": "obj", @@ -279,7 +279,7 @@ "type": "Identifier", "span": { "start": 165, - "end": 171, + "end": 168, "ctxt": 0 }, "value": "key", @@ -770,7 +770,7 @@ "type": "Identifier", "span": { "start": 313, - "end": 328, + "end": 316, "ctxt": 0 }, "value": "obj", @@ -844,7 +844,7 @@ "type": "Identifier", "span": { "start": 330, - "end": 344, + "end": 333, "ctxt": 0 }, "value": "key", @@ -1363,7 +1363,7 @@ "type": "Identifier", "span": { "start": 499, - "end": 514, + "end": 502, "ctxt": 0 }, "value": "obj", @@ -1437,7 +1437,7 @@ "type": "Identifier", "span": { "start": 516, - "end": 533, + "end": 519, "ctxt": 0 }, "value": "key", @@ -1896,7 +1896,7 @@ "type": "Identifier", "span": { "start": 680, - "end": 695, + "end": 683, "ctxt": 0 }, "value": "obj", @@ -1970,7 +1970,7 @@ "type": "Identifier", "span": { "start": 697, - "end": 718, + "end": 700, "ctxt": 0 }, "value": "key", @@ -2533,7 +2533,7 @@ "type": "Identifier", "span": { "start": 881, - "end": 896, + "end": 884, "ctxt": 0 }, "value": "obj", @@ -2607,7 +2607,7 @@ "type": "Identifier", "span": { "start": 898, - "end": 919, + "end": 901, "ctxt": 0 }, "value": "key", @@ -3083,7 +3083,7 @@ "type": "Identifier", "span": { "start": 1101, - "end": 1116, + "end": 1104, "ctxt": 0 }, "value": "obj", @@ -3157,7 +3157,7 @@ "type": "Identifier", "span": { "start": 1118, - "end": 1139, + "end": 1121, "ctxt": 0 }, "value": "key", @@ -4272,7 +4272,7 @@ "type": "Identifier", "span": { "start": 1652, - "end": 1658, + "end": 1655, "ctxt": 0 }, "value": "obj", @@ -4318,7 +4318,7 @@ "type": "Identifier", "span": { "start": 1660, - "end": 1686, + "end": 1666, "ctxt": 0 }, "value": "bounds", @@ -5138,7 +5138,7 @@ "type": "Identifier", "span": { "start": 2126, - "end": 2181, + "end": 2151, "ctxt": 0 }, "value": "objectWithUnderscoredKeys", @@ -5212,7 +5212,7 @@ "type": "Identifier", "span": { "start": 2183, - "end": 2189, + "end": 2186, "ctxt": 0 }, "value": "key", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeErrors.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeErrors.json index cc32fbfbf361..dcfdef42ee72 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeErrors.json @@ -1346,7 +1346,7 @@ "type": "Identifier", "span": { "start": 745, - "end": 749, + "end": 746, "ctxt": 0 }, "value": "x", @@ -1566,7 +1566,7 @@ "type": "Identifier", "span": { "start": 832, - "end": 836, + "end": 833, "ctxt": 0 }, "value": "x", @@ -1813,7 +1813,7 @@ "type": "Identifier", "span": { "start": 915, - "end": 919, + "end": 916, "ctxt": 0 }, "value": "x", @@ -2060,7 +2060,7 @@ "type": "Identifier", "span": { "start": 988, - "end": 992, + "end": 989, "ctxt": 0 }, "value": "x", @@ -3887,7 +3887,7 @@ "type": "Identifier", "span": { "start": 1624, - "end": 1634, + "end": 1631, "ctxt": 0 }, "value": "primary", @@ -3933,7 +3933,7 @@ "type": "Identifier", "span": { "start": 1636, - "end": 1658, + "end": 1645, "ctxt": 0 }, "value": "secondary", @@ -4092,7 +4092,7 @@ "type": "Identifier", "span": { "start": 1698, - "end": 1708, + "end": 1705, "ctxt": 0 }, "value": "primary", @@ -4138,7 +4138,7 @@ "type": "Identifier", "span": { "start": 1710, - "end": 1731, + "end": 1719, "ctxt": 0 }, "value": "secondary", @@ -5506,7 +5506,7 @@ "type": "Identifier", "span": { "start": 2322, - "end": 2328, + "end": 2325, "ctxt": 0 }, "value": "obj", @@ -5552,7 +5552,7 @@ "type": "Identifier", "span": { "start": 2330, - "end": 2347, + "end": 2335, "ctxt": 0 }, "value": "props", @@ -6628,7 +6628,7 @@ "type": "Identifier", "span": { "start": 2730, - "end": 2747, + "end": 2735, "ctxt": 0 }, "value": "props", @@ -9008,7 +9008,7 @@ "type": "Identifier", "span": { "start": 3584, - "end": 3599, + "end": 3587, "ctxt": 0 }, "value": "obj", @@ -9279,7 +9279,7 @@ "type": "Identifier", "span": { "start": 3674, - "end": 3696, + "end": 3677, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeInferenceErrors.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeInferenceErrors.json index 3718681af4c6..33b42c9e45b5 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeInferenceErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeInferenceErrors.json @@ -210,7 +210,7 @@ "type": "Identifier", "span": { "start": 126, - "end": 190, + "end": 133, "ctxt": 0 }, "value": "options", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeModifiers.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeModifiers.json index 20d6b4a3c1b5..618f3e12d298 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeModifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeModifiers.json @@ -7271,7 +7271,7 @@ "type": "Identifier", "span": { "start": 2055, - "end": 2070, + "end": 2056, "ctxt": 0 }, "value": "x", @@ -7516,7 +7516,7 @@ "type": "Identifier", "span": { "start": 2140, - "end": 2156, + "end": 2141, "ctxt": 0 }, "value": "x", @@ -7734,7 +7734,7 @@ "type": "Identifier", "span": { "start": 2219, - "end": 2235, + "end": 2220, "ctxt": 0 }, "value": "x", @@ -7970,7 +7970,7 @@ "type": "Identifier", "span": { "start": 2300, - "end": 2331, + "end": 2301, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeRelationships.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeRelationships.json index a4ec54a0f6e8..e10c7097dddb 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeRelationships.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeRelationships.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 70, + "end": 67, "ctxt": 0 }, "value": "x", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 72, - "end": 82, + "end": 73, "ctxt": 0 }, "value": "k", @@ -245,7 +245,7 @@ "type": "Identifier", "span": { "start": 140, - "end": 144, + "end": 141, "ctxt": 0 }, "value": "x", @@ -291,7 +291,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 150, + "end": 147, "ctxt": 0 }, "value": "k", @@ -499,7 +499,7 @@ "type": "Identifier", "span": { "start": 202, - "end": 206, + "end": 203, "ctxt": 0 }, "value": "x", @@ -545,7 +545,7 @@ "type": "Identifier", "span": { "start": 208, - "end": 212, + "end": 209, "ctxt": 0 }, "value": "y", @@ -591,7 +591,7 @@ "type": "Identifier", "span": { "start": 214, - "end": 224, + "end": 215, "ctxt": 0 }, "value": "k", @@ -933,7 +933,7 @@ "type": "Identifier", "span": { "start": 322, - "end": 326, + "end": 323, "ctxt": 0 }, "value": "x", @@ -979,7 +979,7 @@ "type": "Identifier", "span": { "start": 328, - "end": 332, + "end": 329, "ctxt": 0 }, "value": "y", @@ -1025,7 +1025,7 @@ "type": "Identifier", "span": { "start": 334, - "end": 338, + "end": 335, "ctxt": 0 }, "value": "k", @@ -1408,7 +1408,7 @@ "type": "Identifier", "span": { "start": 417, - "end": 421, + "end": 418, "ctxt": 0 }, "value": "x", @@ -1454,7 +1454,7 @@ "type": "Identifier", "span": { "start": 423, - "end": 427, + "end": 424, "ctxt": 0 }, "value": "y", @@ -1500,7 +1500,7 @@ "type": "Identifier", "span": { "start": 429, - "end": 439, + "end": 430, "ctxt": 0 }, "value": "k", @@ -1842,7 +1842,7 @@ "type": "Identifier", "span": { "start": 547, - "end": 551, + "end": 548, "ctxt": 0 }, "value": "x", @@ -1888,7 +1888,7 @@ "type": "Identifier", "span": { "start": 553, - "end": 557, + "end": 554, "ctxt": 0 }, "value": "y", @@ -1934,7 +1934,7 @@ "type": "Identifier", "span": { "start": 559, - "end": 563, + "end": 560, "ctxt": 0 }, "value": "k", @@ -2317,7 +2317,7 @@ "type": "Identifier", "span": { "start": 640, - "end": 644, + "end": 641, "ctxt": 0 }, "value": "x", @@ -2363,7 +2363,7 @@ "type": "Identifier", "span": { "start": 646, - "end": 659, + "end": 647, "ctxt": 0 }, "value": "y", @@ -2437,7 +2437,7 @@ "type": "Identifier", "span": { "start": 661, - "end": 671, + "end": 662, "ctxt": 0 }, "value": "k", @@ -2738,7 +2738,7 @@ "type": "Identifier", "span": { "start": 757, - "end": 761, + "end": 758, "ctxt": 0 }, "value": "x", @@ -2784,7 +2784,7 @@ "type": "Identifier", "span": { "start": 763, - "end": 776, + "end": 764, "ctxt": 0 }, "value": "y", @@ -2858,7 +2858,7 @@ "type": "Identifier", "span": { "start": 778, - "end": 782, + "end": 779, "ctxt": 0 }, "value": "k", @@ -3200,7 +3200,7 @@ "type": "Identifier", "span": { "start": 862, - "end": 866, + "end": 863, "ctxt": 0 }, "value": "x", @@ -3246,7 +3246,7 @@ "type": "Identifier", "span": { "start": 868, - "end": 881, + "end": 869, "ctxt": 0 }, "value": "y", @@ -3320,7 +3320,7 @@ "type": "Identifier", "span": { "start": 883, - "end": 893, + "end": 884, "ctxt": 0 }, "value": "k", @@ -3662,7 +3662,7 @@ "type": "Identifier", "span": { "start": 1002, - "end": 1006, + "end": 1003, "ctxt": 0 }, "value": "x", @@ -3708,7 +3708,7 @@ "type": "Identifier", "span": { "start": 1008, - "end": 1021, + "end": 1009, "ctxt": 0 }, "value": "y", @@ -3782,7 +3782,7 @@ "type": "Identifier", "span": { "start": 1023, - "end": 1027, + "end": 1024, "ctxt": 0 }, "value": "k", @@ -4165,7 +4165,7 @@ "type": "Identifier", "span": { "start": 1104, - "end": 1108, + "end": 1105, "ctxt": 0 }, "value": "x", @@ -4211,7 +4211,7 @@ "type": "Identifier", "span": { "start": 1110, - "end": 1124, + "end": 1111, "ctxt": 0 }, "value": "y", @@ -4285,7 +4285,7 @@ "type": "Identifier", "span": { "start": 1126, - "end": 1136, + "end": 1127, "ctxt": 0 }, "value": "k", @@ -4586,7 +4586,7 @@ "type": "Identifier", "span": { "start": 1222, - "end": 1226, + "end": 1223, "ctxt": 0 }, "value": "x", @@ -4632,7 +4632,7 @@ "type": "Identifier", "span": { "start": 1228, - "end": 1242, + "end": 1229, "ctxt": 0 }, "value": "y", @@ -4706,7 +4706,7 @@ "type": "Identifier", "span": { "start": 1244, - "end": 1248, + "end": 1245, "ctxt": 0 }, "value": "k", @@ -5048,7 +5048,7 @@ "type": "Identifier", "span": { "start": 1328, - "end": 1332, + "end": 1329, "ctxt": 0 }, "value": "x", @@ -5094,7 +5094,7 @@ "type": "Identifier", "span": { "start": 1334, - "end": 1348, + "end": 1335, "ctxt": 0 }, "value": "y", @@ -5168,7 +5168,7 @@ "type": "Identifier", "span": { "start": 1350, - "end": 1360, + "end": 1351, "ctxt": 0 }, "value": "k", @@ -5510,7 +5510,7 @@ "type": "Identifier", "span": { "start": 1459, - "end": 1463, + "end": 1460, "ctxt": 0 }, "value": "x", @@ -5556,7 +5556,7 @@ "type": "Identifier", "span": { "start": 1465, - "end": 1479, + "end": 1466, "ctxt": 0 }, "value": "y", @@ -5630,7 +5630,7 @@ "type": "Identifier", "span": { "start": 1481, - "end": 1485, + "end": 1482, "ctxt": 0 }, "value": "k", @@ -6125,7 +6125,7 @@ "type": "Identifier", "span": { "start": 1592, - "end": 1596, + "end": 1593, "ctxt": 0 }, "value": "x", @@ -6171,7 +6171,7 @@ "type": "Identifier", "span": { "start": 1598, - "end": 1611, + "end": 1599, "ctxt": 0 }, "value": "y", @@ -6389,7 +6389,7 @@ "type": "Identifier", "span": { "start": 1680, - "end": 1697, + "end": 1681, "ctxt": 0 }, "value": "x", @@ -6463,7 +6463,7 @@ "type": "Identifier", "span": { "start": 1699, - "end": 1712, + "end": 1700, "ctxt": 0 }, "value": "y", @@ -6699,7 +6699,7 @@ "type": "Identifier", "span": { "start": 1767, - "end": 1771, + "end": 1768, "ctxt": 0 }, "value": "x", @@ -6745,7 +6745,7 @@ "type": "Identifier", "span": { "start": 1773, - "end": 1787, + "end": 1774, "ctxt": 0 }, "value": "y", @@ -6963,7 +6963,7 @@ "type": "Identifier", "span": { "start": 1846, - "end": 1864, + "end": 1847, "ctxt": 0 }, "value": "x", @@ -7037,7 +7037,7 @@ "type": "Identifier", "span": { "start": 1866, - "end": 1880, + "end": 1867, "ctxt": 0 }, "value": "y", @@ -7440,7 +7440,7 @@ "type": "Identifier", "span": { "start": 2029, - "end": 2035, + "end": 2032, "ctxt": 0 }, "value": "obj", @@ -7486,7 +7486,7 @@ "type": "Identifier", "span": { "start": 2037, - "end": 2049, + "end": 2040, "ctxt": 0 }, "value": "key", @@ -7783,7 +7783,7 @@ "type": "Identifier", "span": { "start": 2164, - "end": 2170, + "end": 2167, "ctxt": 0 }, "value": "obj", @@ -7829,7 +7829,7 @@ "type": "Identifier", "span": { "start": 2172, - "end": 2178, + "end": 2175, "ctxt": 0 }, "value": "key", @@ -8487,7 +8487,7 @@ "type": "Identifier", "span": { "start": 2346, - "end": 2354, + "end": 2347, "ctxt": 0 }, "value": "x", @@ -8561,7 +8561,7 @@ "type": "Identifier", "span": { "start": 2356, - "end": 2364, + "end": 2357, "ctxt": 0 }, "value": "y", @@ -8939,7 +8939,7 @@ "type": "Identifier", "span": { "start": 2459, - "end": 2473, + "end": 2460, "ctxt": 0 }, "value": "x", @@ -9013,7 +9013,7 @@ "type": "Identifier", "span": { "start": 2475, - "end": 2488, + "end": 2476, "ctxt": 0 }, "value": "y", @@ -9231,7 +9231,7 @@ "type": "Identifier", "span": { "start": 2543, - "end": 2557, + "end": 2544, "ctxt": 0 }, "value": "x", @@ -9305,7 +9305,7 @@ "type": "Identifier", "span": { "start": 2559, - "end": 2573, + "end": 2560, "ctxt": 0 }, "value": "y", @@ -9523,7 +9523,7 @@ "type": "Identifier", "span": { "start": 2618, - "end": 2645, + "end": 2619, "ctxt": 0 }, "value": "x", @@ -9658,7 +9658,7 @@ "type": "Identifier", "span": { "start": 2647, - "end": 2674, + "end": 2648, "ctxt": 0 }, "value": "y", @@ -9937,7 +9937,7 @@ "type": "Identifier", "span": { "start": 2732, - "end": 2759, + "end": 2733, "ctxt": 0 }, "value": "x", @@ -10072,7 +10072,7 @@ "type": "Identifier", "span": { "start": 2761, - "end": 2788, + "end": 2762, "ctxt": 0 }, "value": "y", @@ -10392,7 +10392,7 @@ "type": "Identifier", "span": { "start": 2856, - "end": 2883, + "end": 2857, "ctxt": 0 }, "value": "x", @@ -10527,7 +10527,7 @@ "type": "Identifier", "span": { "start": 2885, - "end": 2912, + "end": 2886, "ctxt": 0 }, "value": "y", @@ -10847,7 +10847,7 @@ "type": "Identifier", "span": { "start": 2986, - "end": 3007, + "end": 2987, "ctxt": 0 }, "value": "x", @@ -10973,7 +10973,7 @@ "type": "Identifier", "span": { "start": 3009, - "end": 3036, + "end": 3010, "ctxt": 0 }, "value": "y", @@ -11302,7 +11302,7 @@ "type": "Identifier", "span": { "start": 3123, - "end": 3144, + "end": 3124, "ctxt": 0 }, "value": "x", @@ -11428,7 +11428,7 @@ "type": "Identifier", "span": { "start": 3146, - "end": 3173, + "end": 3147, "ctxt": 0 }, "value": "y", @@ -11798,7 +11798,7 @@ "type": "Identifier", "span": { "start": 3260, - "end": 3281, + "end": 3261, "ctxt": 0 }, "value": "x", @@ -11924,7 +11924,7 @@ "type": "Identifier", "span": { "start": 3283, - "end": 3310, + "end": 3284, "ctxt": 0 }, "value": "y", @@ -12294,7 +12294,7 @@ "type": "Identifier", "span": { "start": 3397, - "end": 3418, + "end": 3398, "ctxt": 0 }, "value": "x", @@ -12420,7 +12420,7 @@ "type": "Identifier", "span": { "start": 3420, - "end": 3441, + "end": 3421, "ctxt": 0 }, "value": "y", @@ -12781,7 +12781,7 @@ "type": "Identifier", "span": { "start": 3496, - "end": 3500, + "end": 3497, "ctxt": 0 }, "value": "t", @@ -12967,7 +12967,7 @@ "type": "Identifier", "span": { "start": 3568, - "end": 3572, + "end": 3569, "ctxt": 0 }, "value": "t", @@ -13013,7 +13013,7 @@ "type": "Identifier", "span": { "start": 3574, - "end": 3578, + "end": 3575, "ctxt": 0 }, "value": "k", @@ -13303,7 +13303,7 @@ "type": "Identifier", "span": { "start": 3677, - "end": 3681, + "end": 3678, "ctxt": 0 }, "value": "t", @@ -13349,7 +13349,7 @@ "type": "Identifier", "span": { "start": 3683, - "end": 3689, + "end": 3685, "ctxt": 0 }, "value": "k1", @@ -13395,7 +13395,7 @@ "type": "Identifier", "span": { "start": 3691, - "end": 3697, + "end": 3693, "ctxt": 0 }, "value": "k2", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeWithAny.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeWithAny.json index f0966dcaf010..dcc480a9c5ed 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeWithAny.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeWithAny.json @@ -1610,7 +1610,7 @@ "type": "Identifier", "span": { "start": 1458, - "end": 1481, + "end": 1466, "ctxt": 0 }, "value": "arrayish", @@ -1674,7 +1674,7 @@ "type": "Identifier", "span": { "start": 1483, - "end": 1508, + "end": 1492, "ctxt": 0 }, "value": "objectish", @@ -1738,7 +1738,7 @@ "type": "Identifier", "span": { "start": 1510, - "end": 1549, + "end": 1526, "ctxt": 0 }, "value": "indirectArrayish", @@ -2009,7 +2009,7 @@ "type": "Identifier", "span": { "start": 1703, - "end": 1709, + "end": 1706, "ctxt": 0 }, "value": "arr", @@ -2332,7 +2332,7 @@ "type": "Identifier", "span": { "start": 1861, - "end": 1867, + "end": 1864, "ctxt": 0 }, "value": "arr", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypes2.json b/crates/swc_ecma_parser/tests/tsc/mappedTypes2.json index e4030e73d529..5588790eb023 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypes2.json @@ -1212,7 +1212,7 @@ "type": "Identifier", "span": { "start": 393, - "end": 401, + "end": 398, "ctxt": 0 }, "value": "value", @@ -1670,7 +1670,7 @@ "type": "Identifier", "span": { "start": 574, - "end": 580, + "end": 577, "ctxt": 0 }, "value": "obj", @@ -1716,7 +1716,7 @@ "type": "Identifier", "span": { "start": 582, - "end": 599, + "end": 587, "ctxt": 0 }, "value": "props", @@ -1865,7 +1865,7 @@ "type": "Identifier", "span": { "start": 635, - "end": 641, + "end": 638, "ctxt": 0 }, "value": "obj", @@ -2024,7 +2024,7 @@ "type": "Identifier", "span": { "start": 701, - "end": 707, + "end": 704, "ctxt": 0 }, "value": "obj", @@ -2320,7 +2320,7 @@ "type": "Identifier", "span": { "start": 787, - "end": 804, + "end": 790, "ctxt": 0 }, "value": "obj", @@ -2413,7 +2413,7 @@ "type": "Identifier", "span": { "start": 806, - "end": 820, + "end": 807, "ctxt": 0 }, "value": "f", @@ -2437,7 +2437,7 @@ "type": "Identifier", "span": { "start": 810, - "end": 814, + "end": 811, "ctxt": 0 }, "value": "x", @@ -2701,7 +2701,7 @@ "type": "Identifier", "span": { "start": 865, - "end": 871, + "end": 868, "ctxt": 0 }, "value": "obj", @@ -3588,7 +3588,7 @@ "type": "Identifier", "span": { "start": 1302, - "end": 1311, + "end": 1304, "ctxt": 0 }, "value": "s1", @@ -3634,7 +3634,7 @@ "type": "Identifier", "span": { "start": 1313, - "end": 1322, + "end": 1315, "ctxt": 0 }, "value": "s2", @@ -3895,7 +3895,7 @@ "type": "Identifier", "span": { "start": 1420, - "end": 1432, + "end": 1425, "ctxt": 0 }, "value": "shape", @@ -4189,7 +4189,7 @@ "type": "Identifier", "span": { "start": 1547, - "end": 1559, + "end": 1552, "ctxt": 0 }, "value": "shape", @@ -4512,7 +4512,7 @@ "type": "Identifier", "span": { "start": 1680, - "end": 1692, + "end": 1685, "ctxt": 0 }, "value": "shape", @@ -4954,7 +4954,7 @@ "type": "Identifier", "span": { "start": 1972, - "end": 1984, + "end": 1977, "ctxt": 0 }, "value": "shape", @@ -5268,7 +5268,7 @@ "type": "Identifier", "span": { "start": 2083, - "end": 2109, + "end": 2088, "ctxt": 0 }, "value": "shape", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypes3.json b/crates/swc_ecma_parser/tests/tsc/mappedTypes3.json index 6d14b5f5f510..b1403c92a89b 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypes3.json @@ -334,7 +334,7 @@ "type": "Identifier", "span": { "start": 138, - "end": 144, + "end": 141, "ctxt": 0 }, "value": "obj", @@ -493,7 +493,7 @@ "type": "Identifier", "span": { "start": 189, - "end": 205, + "end": 192, "ctxt": 0 }, "value": "obj", @@ -934,7 +934,7 @@ "type": "Identifier", "span": { "start": 372, - "end": 380, + "end": 373, "ctxt": 0 }, "value": "b", @@ -1238,7 +1238,7 @@ "type": "Identifier", "span": { "start": 497, - "end": 516, + "end": 499, "ctxt": 0 }, "value": "bb", @@ -1534,7 +1534,7 @@ "type": "Identifier", "span": { "start": 638, - "end": 655, + "end": 640, "ctxt": 0 }, "value": "bb", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypes4.json b/crates/swc_ecma_parser/tests/tsc/mappedTypes4.json index 51083e801732..da99b535245c 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypes4.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypes4.json @@ -281,7 +281,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 152, + "end": 149, "ctxt": 0 }, "value": "obj", @@ -1041,7 +1041,7 @@ "type": "Identifier", "span": { "start": 464, - "end": 488, + "end": 465, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypes5.json b/crates/swc_ecma_parser/tests/tsc/mappedTypes5.json index d2cbad217d9c..6007ffe2d639 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypes5.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypes5.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 33, - "end": 46, + "end": 34, "ctxt": 0 }, "value": "p", @@ -106,7 +106,7 @@ "type": "Identifier", "span": { "start": 48, - "end": 62, + "end": 49, "ctxt": 0 }, "value": "r", @@ -180,7 +180,7 @@ "type": "Identifier", "span": { "start": 64, - "end": 88, + "end": 66, "ctxt": 0 }, "value": "pr", @@ -282,7 +282,7 @@ "type": "Identifier", "span": { "start": 90, - "end": 114, + "end": 92, "ctxt": 0 }, "value": "rp", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypes6.json b/crates/swc_ecma_parser/tests/tsc/mappedTypes6.json index 664423404a7c..9487a35f128b 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypes6.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypes6.json @@ -2592,7 +2592,7 @@ "type": "Identifier", "span": { "start": 836, - "end": 850, + "end": 837, "ctxt": 0 }, "value": "x", @@ -2666,7 +2666,7 @@ "type": "Identifier", "span": { "start": 852, - "end": 856, + "end": 853, "ctxt": 0 }, "value": "y", @@ -2712,7 +2712,7 @@ "type": "Identifier", "span": { "start": 858, - "end": 871, + "end": 859, "ctxt": 0 }, "value": "z", @@ -3384,7 +3384,7 @@ "type": "Identifier", "span": { "start": 1086, - "end": 1103, + "end": 1087, "ctxt": 0 }, "value": "w", @@ -3458,7 +3458,7 @@ "type": "Identifier", "span": { "start": 1105, - "end": 1119, + "end": 1106, "ctxt": 0 }, "value": "x", @@ -3532,7 +3532,7 @@ "type": "Identifier", "span": { "start": 1121, - "end": 1125, + "end": 1122, "ctxt": 0 }, "value": "y", @@ -3578,7 +3578,7 @@ "type": "Identifier", "span": { "start": 1127, - "end": 1140, + "end": 1128, "ctxt": 0 }, "value": "z", @@ -4328,7 +4328,7 @@ "type": "Identifier", "span": { "start": 1399, - "end": 1416, + "end": 1400, "ctxt": 0 }, "value": "w", @@ -4402,7 +4402,7 @@ "type": "Identifier", "span": { "start": 1418, - "end": 1432, + "end": 1419, "ctxt": 0 }, "value": "x", @@ -4476,7 +4476,7 @@ "type": "Identifier", "span": { "start": 1434, - "end": 1438, + "end": 1435, "ctxt": 0 }, "value": "y", @@ -4522,7 +4522,7 @@ "type": "Identifier", "span": { "start": 1440, - "end": 1453, + "end": 1441, "ctxt": 0 }, "value": "z", @@ -4972,7 +4972,7 @@ "type": "Identifier", "span": { "start": 1615, - "end": 1629, + "end": 1616, "ctxt": 0 }, "value": "x", @@ -5046,7 +5046,7 @@ "type": "Identifier", "span": { "start": 1631, - "end": 1635, + "end": 1632, "ctxt": 0 }, "value": "y", @@ -5092,7 +5092,7 @@ "type": "Identifier", "span": { "start": 1637, - "end": 1652, + "end": 1638, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypesAndObjects.json b/crates/swc_ecma_parser/tests/tsc/mappedTypesAndObjects.json index 883733b3a814..a87f10982da1 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypesAndObjects.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypesAndObjects.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 79, + "end": 67, "ctxt": 0 }, "value": "x", @@ -106,7 +106,7 @@ "type": "Identifier", "span": { "start": 81, - "end": 95, + "end": 82, "ctxt": 0 }, "value": "y", @@ -373,7 +373,7 @@ "type": "Identifier", "span": { "start": 160, - "end": 173, + "end": 161, "ctxt": 0 }, "value": "x", @@ -447,7 +447,7 @@ "type": "Identifier", "span": { "start": 175, - "end": 189, + "end": 176, "ctxt": 0 }, "value": "y", @@ -771,7 +771,7 @@ "type": "Identifier", "span": { "start": 272, - "end": 285, + "end": 273, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypesArraysTuples.json b/crates/swc_ecma_parser/tests/tsc/mappedTypesArraysTuples.json index dd028656c564..53b5661f86e1 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypesArraysTuples.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypesArraysTuples.json @@ -2950,7 +2950,7 @@ "type": "Identifier", "span": { "start": 1292, - "end": 1306, + "end": 1293, "ctxt": 0 }, "value": "x", @@ -3792,7 +3792,7 @@ "type": "Identifier", "span": { "start": 1573, - "end": 1586, + "end": 1574, "ctxt": 0 }, "value": "x", @@ -5120,7 +5120,7 @@ "type": "Identifier", "span": { "start": 2047, - "end": 2056, + "end": 2048, "ctxt": 0 }, "value": "a", @@ -5156,7 +5156,7 @@ "type": "Identifier", "span": { "start": 2058, - "end": 2076, + "end": 2059, "ctxt": 0 }, "value": "b", @@ -5220,7 +5220,7 @@ "type": "Identifier", "span": { "start": 2078, - "end": 2089, + "end": 2079, "ctxt": 0 }, "value": "c", @@ -5264,7 +5264,7 @@ "type": "Identifier", "span": { "start": 2091, - "end": 2111, + "end": 2092, "ctxt": 0 }, "value": "d", @@ -5714,7 +5714,7 @@ "type": "Identifier", "span": { "start": 2249, - "end": 2263, + "end": 2250, "ctxt": 0 }, "value": "a", @@ -6846,7 +6846,7 @@ "type": "Identifier", "span": { "start": 2722, - "end": 2732, + "end": 2725, "ctxt": 0 }, "value": "arr", @@ -6933,7 +6933,7 @@ "type": "Identifier", "span": { "start": 2784, - "end": 2790, + "end": 2787, "ctxt": 0 }, "value": "arr", @@ -7108,7 +7108,7 @@ "type": "Identifier", "span": { "start": 2848, - "end": 2854, + "end": 2851, "ctxt": 0 }, "value": "arr", diff --git a/crates/swc_ecma_parser/tests/tsc/memberFunctionOverloadMixingStaticAndInstance.json b/crates/swc_ecma_parser/tests/tsc/memberFunctionOverloadMixingStaticAndInstance.json index bc3405003168..4e94dc8fb131 100644 --- a/crates/swc_ecma_parser/tests/tsc/memberFunctionOverloadMixingStaticAndInstance.json +++ b/crates/swc_ecma_parser/tests/tsc/memberFunctionOverloadMixingStaticAndInstance.json @@ -263,7 +263,7 @@ "type": "Identifier", "span": { "start": 128, - "end": 132, + "end": 129, "ctxt": 0 }, "value": "x", @@ -348,7 +348,7 @@ "type": "Identifier", "span": { "start": 150, - "end": 159, + "end": 151, "ctxt": 0 }, "value": "x", @@ -482,7 +482,7 @@ "type": "Identifier", "span": { "start": 202, - "end": 211, + "end": 203, "ctxt": 0 }, "value": "x", @@ -557,7 +557,7 @@ "type": "Identifier", "span": { "start": 222, - "end": 226, + "end": 223, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPrivateOverloads.json b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPrivateOverloads.json index d0f26b0a3710..7ed41d9b69d6 100644 --- a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPrivateOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPrivateOverloads.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 27, - "end": 36, + "end": 28, "ctxt": 0 }, "value": "x", @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 55, - "end": 64, + "end": 56, "ctxt": 0 }, "value": "x", @@ -168,7 +168,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 75, + "end": 67, "ctxt": 0 }, "value": "y", @@ -243,7 +243,7 @@ "type": "Identifier", "span": { "start": 94, - "end": 100, + "end": 95, "ctxt": 0 }, "value": "x", @@ -279,7 +279,7 @@ "type": "Identifier", "span": { "start": 102, - "end": 109, + "end": 103, "ctxt": 0 }, "value": "y", @@ -362,7 +362,7 @@ "type": "Identifier", "span": { "start": 132, - "end": 139, + "end": 133, "ctxt": 0 }, "value": "x", @@ -446,7 +446,7 @@ "type": "Identifier", "span": { "start": 158, - "end": 167, + "end": 159, "ctxt": 0 }, "value": "x", @@ -521,7 +521,7 @@ "type": "Identifier", "span": { "start": 186, - "end": 195, + "end": 187, "ctxt": 0 }, "value": "x", @@ -557,7 +557,7 @@ "type": "Identifier", "span": { "start": 197, - "end": 206, + "end": 198, "ctxt": 0 }, "value": "y", @@ -632,7 +632,7 @@ "type": "Identifier", "span": { "start": 225, - "end": 231, + "end": 226, "ctxt": 0 }, "value": "x", @@ -668,7 +668,7 @@ "type": "Identifier", "span": { "start": 233, - "end": 240, + "end": 234, "ctxt": 0 }, "value": "y", @@ -751,7 +751,7 @@ "type": "Identifier", "span": { "start": 270, - "end": 279, + "end": 271, "ctxt": 0 }, "value": "x", @@ -826,7 +826,7 @@ "type": "Identifier", "span": { "start": 305, - "end": 314, + "end": 306, "ctxt": 0 }, "value": "x", @@ -862,7 +862,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 325, + "end": 317, "ctxt": 0 }, "value": "y", @@ -937,7 +937,7 @@ "type": "Identifier", "span": { "start": 351, - "end": 357, + "end": 352, "ctxt": 0 }, "value": "x", @@ -973,7 +973,7 @@ "type": "Identifier", "span": { "start": 359, - "end": 366, + "end": 360, "ctxt": 0 }, "value": "y", @@ -1056,7 +1056,7 @@ "type": "Identifier", "span": { "start": 396, - "end": 403, + "end": 397, "ctxt": 0 }, "value": "x", @@ -1140,7 +1140,7 @@ "type": "Identifier", "span": { "start": 429, - "end": 438, + "end": 430, "ctxt": 0 }, "value": "x", @@ -1215,7 +1215,7 @@ "type": "Identifier", "span": { "start": 464, - "end": 473, + "end": 465, "ctxt": 0 }, "value": "x", @@ -1251,7 +1251,7 @@ "type": "Identifier", "span": { "start": 475, - "end": 484, + "end": 476, "ctxt": 0 }, "value": "y", @@ -1326,7 +1326,7 @@ "type": "Identifier", "span": { "start": 510, - "end": 516, + "end": 511, "ctxt": 0 }, "value": "x", @@ -1362,7 +1362,7 @@ "type": "Identifier", "span": { "start": 518, - "end": 525, + "end": 519, "ctxt": 0 }, "value": "y", @@ -1472,7 +1472,7 @@ "type": "Identifier", "span": { "start": 563, - "end": 572, + "end": 564, "ctxt": 0 }, "value": "x", @@ -1547,7 +1547,7 @@ "type": "Identifier", "span": { "start": 591, - "end": 595, + "end": 592, "ctxt": 0 }, "value": "x", @@ -1593,7 +1593,7 @@ "type": "Identifier", "span": { "start": 597, - "end": 601, + "end": 598, "ctxt": 0 }, "value": "y", @@ -1678,7 +1678,7 @@ "type": "Identifier", "span": { "start": 620, - "end": 626, + "end": 621, "ctxt": 0 }, "value": "x", @@ -1714,7 +1714,7 @@ "type": "Identifier", "span": { "start": 628, - "end": 635, + "end": 629, "ctxt": 0 }, "value": "y", @@ -1797,7 +1797,7 @@ "type": "Identifier", "span": { "start": 658, - "end": 665, + "end": 659, "ctxt": 0 }, "value": "x", @@ -1881,7 +1881,7 @@ "type": "Identifier", "span": { "start": 684, - "end": 693, + "end": 685, "ctxt": 0 }, "value": "x", @@ -1956,7 +1956,7 @@ "type": "Identifier", "span": { "start": 712, - "end": 716, + "end": 713, "ctxt": 0 }, "value": "x", @@ -2002,7 +2002,7 @@ "type": "Identifier", "span": { "start": 718, - "end": 722, + "end": 719, "ctxt": 0 }, "value": "y", @@ -2087,7 +2087,7 @@ "type": "Identifier", "span": { "start": 741, - "end": 747, + "end": 742, "ctxt": 0 }, "value": "x", @@ -2123,7 +2123,7 @@ "type": "Identifier", "span": { "start": 749, - "end": 756, + "end": 750, "ctxt": 0 }, "value": "y", @@ -2206,7 +2206,7 @@ "type": "Identifier", "span": { "start": 786, - "end": 795, + "end": 787, "ctxt": 0 }, "value": "x", @@ -2281,7 +2281,7 @@ "type": "Identifier", "span": { "start": 821, - "end": 830, + "end": 822, "ctxt": 0 }, "value": "x", @@ -2317,7 +2317,7 @@ "type": "Identifier", "span": { "start": 832, - "end": 841, + "end": 833, "ctxt": 0 }, "value": "y", @@ -2392,7 +2392,7 @@ "type": "Identifier", "span": { "start": 867, - "end": 873, + "end": 868, "ctxt": 0 }, "value": "x", @@ -2428,7 +2428,7 @@ "type": "Identifier", "span": { "start": 875, - "end": 882, + "end": 876, "ctxt": 0 }, "value": "y", @@ -2511,7 +2511,7 @@ "type": "Identifier", "span": { "start": 912, - "end": 919, + "end": 913, "ctxt": 0 }, "value": "x", @@ -2595,7 +2595,7 @@ "type": "Identifier", "span": { "start": 945, - "end": 954, + "end": 946, "ctxt": 0 }, "value": "x", @@ -2670,7 +2670,7 @@ "type": "Identifier", "span": { "start": 980, - "end": 989, + "end": 981, "ctxt": 0 }, "value": "x", @@ -2706,7 +2706,7 @@ "type": "Identifier", "span": { "start": 991, - "end": 1000, + "end": 992, "ctxt": 0 }, "value": "y", @@ -2781,7 +2781,7 @@ "type": "Identifier", "span": { "start": 1026, - "end": 1032, + "end": 1027, "ctxt": 0 }, "value": "x", @@ -2817,7 +2817,7 @@ "type": "Identifier", "span": { "start": 1034, - "end": 1041, + "end": 1035, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicOverloads.json b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicOverloads.json index 82796cc8edaa..3bb914f55551 100644 --- a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicOverloads.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 26, - "end": 35, + "end": 27, "ctxt": 0 }, "value": "x", @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 53, - "end": 62, + "end": 54, "ctxt": 0 }, "value": "x", @@ -168,7 +168,7 @@ "type": "Identifier", "span": { "start": 64, - "end": 73, + "end": 65, "ctxt": 0 }, "value": "y", @@ -243,7 +243,7 @@ "type": "Identifier", "span": { "start": 91, - "end": 97, + "end": 92, "ctxt": 0 }, "value": "x", @@ -279,7 +279,7 @@ "type": "Identifier", "span": { "start": 99, - "end": 106, + "end": 100, "ctxt": 0 }, "value": "y", @@ -362,7 +362,7 @@ "type": "Identifier", "span": { "start": 128, - "end": 135, + "end": 129, "ctxt": 0 }, "value": "x", @@ -446,7 +446,7 @@ "type": "Identifier", "span": { "start": 153, - "end": 162, + "end": 154, "ctxt": 0 }, "value": "x", @@ -521,7 +521,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 189, + "end": 181, "ctxt": 0 }, "value": "x", @@ -557,7 +557,7 @@ "type": "Identifier", "span": { "start": 191, - "end": 200, + "end": 192, "ctxt": 0 }, "value": "y", @@ -632,7 +632,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 224, + "end": 219, "ctxt": 0 }, "value": "x", @@ -668,7 +668,7 @@ "type": "Identifier", "span": { "start": 226, - "end": 233, + "end": 227, "ctxt": 0 }, "value": "y", @@ -751,7 +751,7 @@ "type": "Identifier", "span": { "start": 262, - "end": 271, + "end": 263, "ctxt": 0 }, "value": "x", @@ -826,7 +826,7 @@ "type": "Identifier", "span": { "start": 296, - "end": 305, + "end": 297, "ctxt": 0 }, "value": "x", @@ -862,7 +862,7 @@ "type": "Identifier", "span": { "start": 307, - "end": 316, + "end": 308, "ctxt": 0 }, "value": "y", @@ -937,7 +937,7 @@ "type": "Identifier", "span": { "start": 341, - "end": 347, + "end": 342, "ctxt": 0 }, "value": "x", @@ -973,7 +973,7 @@ "type": "Identifier", "span": { "start": 349, - "end": 356, + "end": 350, "ctxt": 0 }, "value": "y", @@ -1056,7 +1056,7 @@ "type": "Identifier", "span": { "start": 385, - "end": 392, + "end": 386, "ctxt": 0 }, "value": "x", @@ -1140,7 +1140,7 @@ "type": "Identifier", "span": { "start": 417, - "end": 426, + "end": 418, "ctxt": 0 }, "value": "x", @@ -1215,7 +1215,7 @@ "type": "Identifier", "span": { "start": 451, - "end": 460, + "end": 452, "ctxt": 0 }, "value": "x", @@ -1251,7 +1251,7 @@ "type": "Identifier", "span": { "start": 462, - "end": 471, + "end": 463, "ctxt": 0 }, "value": "y", @@ -1326,7 +1326,7 @@ "type": "Identifier", "span": { "start": 496, - "end": 502, + "end": 497, "ctxt": 0 }, "value": "x", @@ -1362,7 +1362,7 @@ "type": "Identifier", "span": { "start": 504, - "end": 511, + "end": 505, "ctxt": 0 }, "value": "y", @@ -1472,7 +1472,7 @@ "type": "Identifier", "span": { "start": 548, - "end": 557, + "end": 549, "ctxt": 0 }, "value": "x", @@ -1547,7 +1547,7 @@ "type": "Identifier", "span": { "start": 575, - "end": 579, + "end": 576, "ctxt": 0 }, "value": "x", @@ -1593,7 +1593,7 @@ "type": "Identifier", "span": { "start": 581, - "end": 585, + "end": 582, "ctxt": 0 }, "value": "y", @@ -1678,7 +1678,7 @@ "type": "Identifier", "span": { "start": 603, - "end": 609, + "end": 604, "ctxt": 0 }, "value": "x", @@ -1714,7 +1714,7 @@ "type": "Identifier", "span": { "start": 611, - "end": 618, + "end": 612, "ctxt": 0 }, "value": "y", @@ -1797,7 +1797,7 @@ "type": "Identifier", "span": { "start": 640, - "end": 647, + "end": 641, "ctxt": 0 }, "value": "x", @@ -1881,7 +1881,7 @@ "type": "Identifier", "span": { "start": 665, - "end": 674, + "end": 666, "ctxt": 0 }, "value": "x", @@ -1956,7 +1956,7 @@ "type": "Identifier", "span": { "start": 692, - "end": 696, + "end": 693, "ctxt": 0 }, "value": "x", @@ -2002,7 +2002,7 @@ "type": "Identifier", "span": { "start": 698, - "end": 702, + "end": 699, "ctxt": 0 }, "value": "y", @@ -2087,7 +2087,7 @@ "type": "Identifier", "span": { "start": 720, - "end": 726, + "end": 721, "ctxt": 0 }, "value": "x", @@ -2123,7 +2123,7 @@ "type": "Identifier", "span": { "start": 728, - "end": 735, + "end": 729, "ctxt": 0 }, "value": "y", @@ -2206,7 +2206,7 @@ "type": "Identifier", "span": { "start": 764, - "end": 773, + "end": 765, "ctxt": 0 }, "value": "x", @@ -2281,7 +2281,7 @@ "type": "Identifier", "span": { "start": 798, - "end": 807, + "end": 799, "ctxt": 0 }, "value": "x", @@ -2317,7 +2317,7 @@ "type": "Identifier", "span": { "start": 809, - "end": 818, + "end": 810, "ctxt": 0 }, "value": "y", @@ -2392,7 +2392,7 @@ "type": "Identifier", "span": { "start": 843, - "end": 849, + "end": 844, "ctxt": 0 }, "value": "x", @@ -2428,7 +2428,7 @@ "type": "Identifier", "span": { "start": 851, - "end": 858, + "end": 852, "ctxt": 0 }, "value": "y", @@ -2511,7 +2511,7 @@ "type": "Identifier", "span": { "start": 887, - "end": 894, + "end": 888, "ctxt": 0 }, "value": "x", @@ -2595,7 +2595,7 @@ "type": "Identifier", "span": { "start": 919, - "end": 928, + "end": 920, "ctxt": 0 }, "value": "x", @@ -2670,7 +2670,7 @@ "type": "Identifier", "span": { "start": 953, - "end": 962, + "end": 954, "ctxt": 0 }, "value": "x", @@ -2706,7 +2706,7 @@ "type": "Identifier", "span": { "start": 964, - "end": 973, + "end": 965, "ctxt": 0 }, "value": "y", @@ -2781,7 +2781,7 @@ "type": "Identifier", "span": { "start": 998, - "end": 1004, + "end": 999, "ctxt": 0 }, "value": "x", @@ -2817,7 +2817,7 @@ "type": "Identifier", "span": { "start": 1006, - "end": 1013, + "end": 1007, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicPrivateOverloads.json b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicPrivateOverloads.json index b85840adc7c1..919be311da68 100644 --- a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicPrivateOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicPrivateOverloads.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 27, - "end": 36, + "end": 28, "ctxt": 0 }, "value": "x", @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 54, - "end": 63, + "end": 55, "ctxt": 0 }, "value": "x", @@ -168,7 +168,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 74, + "end": 66, "ctxt": 0 }, "value": "y", @@ -243,7 +243,7 @@ "type": "Identifier", "span": { "start": 102, - "end": 108, + "end": 103, "ctxt": 0 }, "value": "x", @@ -279,7 +279,7 @@ "type": "Identifier", "span": { "start": 110, - "end": 117, + "end": 111, "ctxt": 0 }, "value": "y", @@ -362,7 +362,7 @@ "type": "Identifier", "span": { "start": 140, - "end": 147, + "end": 141, "ctxt": 0 }, "value": "x", @@ -446,7 +446,7 @@ "type": "Identifier", "span": { "start": 165, - "end": 174, + "end": 166, "ctxt": 0 }, "value": "x", @@ -521,7 +521,7 @@ "type": "Identifier", "span": { "start": 202, - "end": 211, + "end": 203, "ctxt": 0 }, "value": "x", @@ -557,7 +557,7 @@ "type": "Identifier", "span": { "start": 213, - "end": 222, + "end": 214, "ctxt": 0 }, "value": "y", @@ -632,7 +632,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 247, + "end": 242, "ctxt": 0 }, "value": "x", @@ -668,7 +668,7 @@ "type": "Identifier", "span": { "start": 249, - "end": 256, + "end": 250, "ctxt": 0 }, "value": "y", @@ -751,7 +751,7 @@ "type": "Identifier", "span": { "start": 286, - "end": 295, + "end": 287, "ctxt": 0 }, "value": "x", @@ -826,7 +826,7 @@ "type": "Identifier", "span": { "start": 320, - "end": 329, + "end": 321, "ctxt": 0 }, "value": "x", @@ -862,7 +862,7 @@ "type": "Identifier", "span": { "start": 331, - "end": 340, + "end": 332, "ctxt": 0 }, "value": "y", @@ -937,7 +937,7 @@ "type": "Identifier", "span": { "start": 375, - "end": 381, + "end": 376, "ctxt": 0 }, "value": "x", @@ -973,7 +973,7 @@ "type": "Identifier", "span": { "start": 383, - "end": 390, + "end": 384, "ctxt": 0 }, "value": "y", @@ -1056,7 +1056,7 @@ "type": "Identifier", "span": { "start": 415, - "end": 424, + "end": 416, "ctxt": 0 }, "value": "x", @@ -1131,7 +1131,7 @@ "type": "Identifier", "span": { "start": 454, - "end": 463, + "end": 455, "ctxt": 0 }, "value": "x", @@ -1167,7 +1167,7 @@ "type": "Identifier", "span": { "start": 465, - "end": 474, + "end": 466, "ctxt": 0 }, "value": "y", @@ -1242,7 +1242,7 @@ "type": "Identifier", "span": { "start": 502, - "end": 508, + "end": 503, "ctxt": 0 }, "value": "x", @@ -1278,7 +1278,7 @@ "type": "Identifier", "span": { "start": 510, - "end": 517, + "end": 511, "ctxt": 0 }, "value": "y", @@ -1361,7 +1361,7 @@ "type": "Identifier", "span": { "start": 547, - "end": 554, + "end": 548, "ctxt": 0 }, "value": "x", @@ -1445,7 +1445,7 @@ "type": "Identifier", "span": { "start": 579, - "end": 588, + "end": 580, "ctxt": 0 }, "value": "x", @@ -1520,7 +1520,7 @@ "type": "Identifier", "span": { "start": 623, - "end": 632, + "end": 624, "ctxt": 0 }, "value": "x", @@ -1556,7 +1556,7 @@ "type": "Identifier", "span": { "start": 634, - "end": 643, + "end": 635, "ctxt": 0 }, "value": "y", @@ -1631,7 +1631,7 @@ "type": "Identifier", "span": { "start": 669, - "end": 675, + "end": 670, "ctxt": 0 }, "value": "x", @@ -1667,7 +1667,7 @@ "type": "Identifier", "span": { "start": 677, - "end": 684, + "end": 678, "ctxt": 0 }, "value": "y", @@ -1750,7 +1750,7 @@ "type": "Identifier", "span": { "start": 716, - "end": 723, + "end": 717, "ctxt": 0 }, "value": "x", @@ -1834,7 +1834,7 @@ "type": "Identifier", "span": { "start": 748, - "end": 757, + "end": 749, "ctxt": 0 }, "value": "x", @@ -1909,7 +1909,7 @@ "type": "Identifier", "span": { "start": 794, - "end": 803, + "end": 795, "ctxt": 0 }, "value": "x", @@ -1945,7 +1945,7 @@ "type": "Identifier", "span": { "start": 805, - "end": 814, + "end": 806, "ctxt": 0 }, "value": "y", @@ -2020,7 +2020,7 @@ "type": "Identifier", "span": { "start": 842, - "end": 848, + "end": 843, "ctxt": 0 }, "value": "x", @@ -2056,7 +2056,7 @@ "type": "Identifier", "span": { "start": 850, - "end": 857, + "end": 851, "ctxt": 0 }, "value": "y", @@ -2166,7 +2166,7 @@ "type": "Identifier", "span": { "start": 895, - "end": 904, + "end": 896, "ctxt": 0 }, "value": "x", @@ -2241,7 +2241,7 @@ "type": "Identifier", "span": { "start": 923, - "end": 927, + "end": 924, "ctxt": 0 }, "value": "x", @@ -2287,7 +2287,7 @@ "type": "Identifier", "span": { "start": 929, - "end": 933, + "end": 930, "ctxt": 0 }, "value": "y", @@ -2372,7 +2372,7 @@ "type": "Identifier", "span": { "start": 961, - "end": 967, + "end": 962, "ctxt": 0 }, "value": "x", @@ -2408,7 +2408,7 @@ "type": "Identifier", "span": { "start": 969, - "end": 976, + "end": 970, "ctxt": 0 }, "value": "y", @@ -2491,7 +2491,7 @@ "type": "Identifier", "span": { "start": 999, - "end": 1006, + "end": 1000, "ctxt": 0 }, "value": "x", @@ -2575,7 +2575,7 @@ "type": "Identifier", "span": { "start": 1024, - "end": 1033, + "end": 1025, "ctxt": 0 }, "value": "x", @@ -2650,7 +2650,7 @@ "type": "Identifier", "span": { "start": 1061, - "end": 1065, + "end": 1062, "ctxt": 0 }, "value": "x", @@ -2696,7 +2696,7 @@ "type": "Identifier", "span": { "start": 1067, - "end": 1071, + "end": 1068, "ctxt": 0 }, "value": "y", @@ -2781,7 +2781,7 @@ "type": "Identifier", "span": { "start": 1090, - "end": 1096, + "end": 1091, "ctxt": 0 }, "value": "x", @@ -2817,7 +2817,7 @@ "type": "Identifier", "span": { "start": 1098, - "end": 1105, + "end": 1099, "ctxt": 0 }, "value": "y", @@ -2900,7 +2900,7 @@ "type": "Identifier", "span": { "start": 1128, - "end": 1137, + "end": 1129, "ctxt": 0 }, "value": "x", @@ -2975,7 +2975,7 @@ "type": "Identifier", "span": { "start": 1159, - "end": 1168, + "end": 1160, "ctxt": 0 }, "value": "x", @@ -3011,7 +3011,7 @@ "type": "Identifier", "span": { "start": 1170, - "end": 1179, + "end": 1171, "ctxt": 0 }, "value": "y", @@ -3086,7 +3086,7 @@ "type": "Identifier", "span": { "start": 1207, - "end": 1213, + "end": 1208, "ctxt": 0 }, "value": "x", @@ -3122,7 +3122,7 @@ "type": "Identifier", "span": { "start": 1215, - "end": 1222, + "end": 1216, "ctxt": 0 }, "value": "y", @@ -3205,7 +3205,7 @@ "type": "Identifier", "span": { "start": 1252, - "end": 1261, + "end": 1253, "ctxt": 0 }, "value": "x", @@ -3280,7 +3280,7 @@ "type": "Identifier", "span": { "start": 1286, - "end": 1295, + "end": 1287, "ctxt": 0 }, "value": "x", @@ -3316,7 +3316,7 @@ "type": "Identifier", "span": { "start": 1297, - "end": 1306, + "end": 1298, "ctxt": 0 }, "value": "y", @@ -3391,7 +3391,7 @@ "type": "Identifier", "span": { "start": 1341, - "end": 1347, + "end": 1342, "ctxt": 0 }, "value": "x", @@ -3427,7 +3427,7 @@ "type": "Identifier", "span": { "start": 1349, - "end": 1356, + "end": 1350, "ctxt": 0 }, "value": "y", @@ -3510,7 +3510,7 @@ "type": "Identifier", "span": { "start": 1386, - "end": 1393, + "end": 1387, "ctxt": 0 }, "value": "x", @@ -3594,7 +3594,7 @@ "type": "Identifier", "span": { "start": 1418, - "end": 1427, + "end": 1419, "ctxt": 0 }, "value": "x", @@ -3669,7 +3669,7 @@ "type": "Identifier", "span": { "start": 1462, - "end": 1471, + "end": 1463, "ctxt": 0 }, "value": "x", @@ -3705,7 +3705,7 @@ "type": "Identifier", "span": { "start": 1473, - "end": 1482, + "end": 1474, "ctxt": 0 }, "value": "y", @@ -3780,7 +3780,7 @@ "type": "Identifier", "span": { "start": 1508, - "end": 1514, + "end": 1509, "ctxt": 0 }, "value": "x", @@ -3816,7 +3816,7 @@ "type": "Identifier", "span": { "start": 1516, - "end": 1523, + "end": 1517, "ctxt": 0 }, "value": "y", @@ -3899,7 +3899,7 @@ "type": "Identifier", "span": { "start": 1552, - "end": 1561, + "end": 1553, "ctxt": 0 }, "value": "x", @@ -3974,7 +3974,7 @@ "type": "Identifier", "span": { "start": 1598, - "end": 1607, + "end": 1599, "ctxt": 0 }, "value": "x", @@ -4010,7 +4010,7 @@ "type": "Identifier", "span": { "start": 1609, - "end": 1618, + "end": 1610, "ctxt": 0 }, "value": "y", @@ -4085,7 +4085,7 @@ "type": "Identifier", "span": { "start": 1646, - "end": 1652, + "end": 1647, "ctxt": 0 }, "value": "x", @@ -4121,7 +4121,7 @@ "type": "Identifier", "span": { "start": 1654, - "end": 1661, + "end": 1655, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/methodSignaturesWithOverloads.json b/crates/swc_ecma_parser/tests/tsc/methodSignaturesWithOverloads.json index 9ffac7295f59..c3f2e2b6e9cb 100644 --- a/crates/swc_ecma_parser/tests/tsc/methodSignaturesWithOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/methodSignaturesWithOverloads.json @@ -72,7 +72,7 @@ "type": "Identifier", "span": { "start": 100, - "end": 109, + "end": 101, "ctxt": 0 }, "value": "x", @@ -140,7 +140,7 @@ "type": "Identifier", "span": { "start": 130, - "end": 139, + "end": 131, "ctxt": 0 }, "value": "s", @@ -232,7 +232,7 @@ "type": "Identifier", "span": { "start": 206, - "end": 215, + "end": 207, "ctxt": 0 }, "value": "x", @@ -287,7 +287,7 @@ "type": "Identifier", "span": { "start": 235, - "end": 244, + "end": 236, "ctxt": 0 }, "value": "s", @@ -410,7 +410,7 @@ "type": "Identifier", "span": { "start": 289, - "end": 293, + "end": 290, "ctxt": 0 }, "value": "x", @@ -520,7 +520,7 @@ "type": "Identifier", "span": { "start": 319, - "end": 323, + "end": 320, "ctxt": 0 }, "value": "s", @@ -654,7 +654,7 @@ "type": "Identifier", "span": { "start": 393, - "end": 397, + "end": 394, "ctxt": 0 }, "value": "x", @@ -751,7 +751,7 @@ "type": "Identifier", "span": { "start": 420, - "end": 424, + "end": 421, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/methodSignaturesWithOverloads2.json b/crates/swc_ecma_parser/tests/tsc/methodSignaturesWithOverloads2.json index 27b0529700ba..b029cc1632d0 100644 --- a/crates/swc_ecma_parser/tests/tsc/methodSignaturesWithOverloads2.json +++ b/crates/swc_ecma_parser/tests/tsc/methodSignaturesWithOverloads2.json @@ -72,7 +72,7 @@ "type": "Identifier", "span": { "start": 100, - "end": 109, + "end": 101, "ctxt": 0 }, "value": "x", @@ -140,7 +140,7 @@ "type": "Identifier", "span": { "start": 131, - "end": 140, + "end": 132, "ctxt": 0 }, "value": "s", @@ -232,7 +232,7 @@ "type": "Identifier", "span": { "start": 174, - "end": 183, + "end": 175, "ctxt": 0 }, "value": "x", @@ -287,7 +287,7 @@ "type": "Identifier", "span": { "start": 203, - "end": 212, + "end": 204, "ctxt": 0 }, "value": "s", @@ -556,7 +556,7 @@ "type": "Identifier", "span": { "start": 311, - "end": 315, + "end": 312, "ctxt": 0 }, "value": "x", @@ -666,7 +666,7 @@ "type": "Identifier", "span": { "start": 341, - "end": 345, + "end": 342, "ctxt": 0 }, "value": "s", @@ -800,7 +800,7 @@ "type": "Identifier", "span": { "start": 382, - "end": 386, + "end": 383, "ctxt": 0 }, "value": "x", @@ -897,7 +897,7 @@ "type": "Identifier", "span": { "start": 409, - "end": 413, + "end": 410, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/mixinAbstractClasses.json b/crates/swc_ecma_parser/tests/tsc/mixinAbstractClasses.json index 77a7a80d14d1..e27a2f82e6d0 100644 --- a/crates/swc_ecma_parser/tests/tsc/mixinAbstractClasses.json +++ b/crates/swc_ecma_parser/tests/tsc/mixinAbstractClasses.json @@ -103,7 +103,7 @@ "type": "Identifier", "span": { "start": 159, - "end": 180, + "end": 168, "ctxt": 0 }, "value": "baseClass", diff --git a/crates/swc_ecma_parser/tests/tsc/mixinAbstractClassesReturnTypeInference.json b/crates/swc_ecma_parser/tests/tsc/mixinAbstractClassesReturnTypeInference.json index d2873c61e452..78f83645761b 100644 --- a/crates/swc_ecma_parser/tests/tsc/mixinAbstractClassesReturnTypeInference.json +++ b/crates/swc_ecma_parser/tests/tsc/mixinAbstractClassesReturnTypeInference.json @@ -184,7 +184,7 @@ "type": "Identifier", "span": { "start": 232, - "end": 248, + "end": 241, "ctxt": 0 }, "value": "baseClass", diff --git a/crates/swc_ecma_parser/tests/tsc/mixinAccessModifiers.json b/crates/swc_ecma_parser/tests/tsc/mixinAccessModifiers.json index c4f8c4ec898f..330fc17d437e 100644 --- a/crates/swc_ecma_parser/tests/tsc/mixinAccessModifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/mixinAccessModifiers.json @@ -1276,7 +1276,7 @@ "type": "Identifier", "span": { "start": 639, - "end": 660, + "end": 640, "ctxt": 0 }, "value": "x", @@ -1423,7 +1423,7 @@ "type": "Identifier", "span": { "start": 744, - "end": 766, + "end": 745, "ctxt": 0 }, "value": "x", @@ -1570,7 +1570,7 @@ "type": "Identifier", "span": { "start": 850, - "end": 869, + "end": 851, "ctxt": 0 }, "value": "x", @@ -1717,7 +1717,7 @@ "type": "Identifier", "span": { "start": 953, - "end": 978, + "end": 954, "ctxt": 0 }, "value": "x", @@ -1864,7 +1864,7 @@ "type": "Identifier", "span": { "start": 1060, - "end": 1081, + "end": 1061, "ctxt": 0 }, "value": "x", @@ -2011,7 +2011,7 @@ "type": "Identifier", "span": { "start": 1150, - "end": 1169, + "end": 1151, "ctxt": 0 }, "value": "x", @@ -2158,7 +2158,7 @@ "type": "Identifier", "span": { "start": 1253, - "end": 1258, + "end": 1255, "ctxt": 0 }, "value": "c1", @@ -2204,7 +2204,7 @@ "type": "Identifier", "span": { "start": 1260, - "end": 1265, + "end": 1262, "ctxt": 0 }, "value": "c2", @@ -2628,7 +2628,7 @@ "type": "Identifier", "span": { "start": 1510, - "end": 1516, + "end": 1512, "ctxt": 0 }, "value": "c4", @@ -2674,7 +2674,7 @@ "type": "Identifier", "span": { "start": 1518, - "end": 1524, + "end": 1520, "ctxt": 0 }, "value": "c5", @@ -2720,7 +2720,7 @@ "type": "Identifier", "span": { "start": 1526, - "end": 1532, + "end": 1528, "ctxt": 0 }, "value": "c6", @@ -3150,7 +3150,7 @@ "type": "Identifier", "span": { "start": 1651, - "end": 1657, + "end": 1653, "ctxt": 0 }, "value": "c4", @@ -3196,7 +3196,7 @@ "type": "Identifier", "span": { "start": 1659, - "end": 1665, + "end": 1661, "ctxt": 0 }, "value": "c5", @@ -3242,7 +3242,7 @@ "type": "Identifier", "span": { "start": 1667, - "end": 1673, + "end": 1669, "ctxt": 0 }, "value": "c6", @@ -3672,7 +3672,7 @@ "type": "Identifier", "span": { "start": 1888, - "end": 1894, + "end": 1890, "ctxt": 0 }, "value": "c4", @@ -3718,7 +3718,7 @@ "type": "Identifier", "span": { "start": 1896, - "end": 1902, + "end": 1898, "ctxt": 0 }, "value": "c5", @@ -3764,7 +3764,7 @@ "type": "Identifier", "span": { "start": 1904, - "end": 1910, + "end": 1906, "ctxt": 0 }, "value": "c6", @@ -4471,7 +4471,7 @@ "type": "Identifier", "span": { "start": 2277, - "end": 2323, + "end": 2278, "ctxt": 0 }, "value": "x", @@ -4710,7 +4710,7 @@ "type": "Identifier", "span": { "start": 2496, - "end": 2565, + "end": 2497, "ctxt": 0 }, "value": "x", @@ -5074,7 +5074,7 @@ "type": "Identifier", "span": { "start": 2738, - "end": 2806, + "end": 2739, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/mixinClassesAnnotated.json b/crates/swc_ecma_parser/tests/tsc/mixinClassesAnnotated.json index 1078b2922fc1..51923362d2f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/mixinClassesAnnotated.json +++ b/crates/swc_ecma_parser/tests/tsc/mixinClassesAnnotated.json @@ -199,7 +199,7 @@ "type": "Identifier", "span": { "start": 109, - "end": 118, + "end": 110, "ctxt": 0 }, "value": "x", @@ -238,7 +238,7 @@ "type": "Identifier", "span": { "start": 127, - "end": 136, + "end": 128, "ctxt": 0 }, "value": "y", @@ -332,7 +332,7 @@ "type": "Identifier", "span": { "start": 189, - "end": 198, + "end": 190, "ctxt": 0 }, "value": "x", @@ -368,7 +368,7 @@ "type": "Identifier", "span": { "start": 200, - "end": 209, + "end": 201, "ctxt": 0 }, "value": "y", @@ -407,7 +407,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 227, + "end": 219, "ctxt": 0 }, "value": "z", @@ -1201,7 +1201,7 @@ "type": "Identifier", "span": { "start": 654, - "end": 667, + "end": 664, "ctxt": 0 }, "value": "superClass", @@ -2380,7 +2380,7 @@ "type": "Identifier", "span": { "start": 1214, - "end": 1225, + "end": 1217, "ctxt": 0 }, "value": "tag", diff --git a/crates/swc_ecma_parser/tests/tsc/mixinClassesAnonymous.json b/crates/swc_ecma_parser/tests/tsc/mixinClassesAnonymous.json index b12adf80ae26..f75ec3d9bb21 100644 --- a/crates/swc_ecma_parser/tests/tsc/mixinClassesAnonymous.json +++ b/crates/swc_ecma_parser/tests/tsc/mixinClassesAnonymous.json @@ -199,7 +199,7 @@ "type": "Identifier", "span": { "start": 86, - "end": 95, + "end": 87, "ctxt": 0 }, "value": "x", @@ -238,7 +238,7 @@ "type": "Identifier", "span": { "start": 104, - "end": 113, + "end": 105, "ctxt": 0 }, "value": "y", @@ -332,7 +332,7 @@ "type": "Identifier", "span": { "start": 166, - "end": 175, + "end": 167, "ctxt": 0 }, "value": "x", @@ -368,7 +368,7 @@ "type": "Identifier", "span": { "start": 177, - "end": 186, + "end": 178, "ctxt": 0 }, "value": "y", @@ -407,7 +407,7 @@ "type": "Identifier", "span": { "start": 195, - "end": 204, + "end": 196, "ctxt": 0 }, "value": "z", @@ -924,7 +924,7 @@ "type": "Identifier", "span": { "start": 473, - "end": 486, + "end": 483, "ctxt": 0 }, "value": "superClass", @@ -2020,7 +2020,7 @@ "type": "Identifier", "span": { "start": 1008, - "end": 1019, + "end": 1011, "ctxt": 0 }, "value": "tag", diff --git a/crates/swc_ecma_parser/tests/tsc/mixinClassesMembers.json b/crates/swc_ecma_parser/tests/tsc/mixinClassesMembers.json index c252a4119443..8b055dbd048e 100644 --- a/crates/swc_ecma_parser/tests/tsc/mixinClassesMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/mixinClassesMembers.json @@ -191,7 +191,7 @@ "type": "Identifier", "span": { "start": 129, - "end": 138, + "end": 130, "ctxt": 0 }, "value": "s", @@ -250,7 +250,7 @@ "type": "Identifier", "span": { "start": 157, - "end": 166, + "end": 158, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias2.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias2.json index 0b6f257136c2..bb28dfd0344b 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias2.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 103, - "end": 115, + "end": 107, "ctxt": 0 }, "value": "name", diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment7.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment7.json index 98be2ba8dd94..bb9ee341c468 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment7.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment7.json @@ -1255,7 +1255,7 @@ "type": "Identifier", "span": { "start": 1179, - "end": 1203, + "end": 1180, "ctxt": 0 }, "value": "a", @@ -1311,7 +1311,7 @@ "type": "Identifier", "span": { "start": 1209, - "end": 1240, + "end": 1210, "ctxt": 0 }, "value": "b", @@ -1367,7 +1367,7 @@ "type": "Identifier", "span": { "start": 1246, - "end": 1268, + "end": 1247, "ctxt": 0 }, "value": "c", @@ -1423,7 +1423,7 @@ "type": "Identifier", "span": { "start": 1274, - "end": 1296, + "end": 1275, "ctxt": 0 }, "value": "d", @@ -1479,7 +1479,7 @@ "type": "Identifier", "span": { "start": 1302, - "end": 1324, + "end": 1303, "ctxt": 0 }, "value": "e", @@ -1535,7 +1535,7 @@ "type": "Identifier", "span": { "start": 1330, - "end": 1352, + "end": 1331, "ctxt": 0 }, "value": "f", @@ -1591,7 +1591,7 @@ "type": "Identifier", "span": { "start": 1358, - "end": 1384, + "end": 1359, "ctxt": 0 }, "value": "g", @@ -1909,7 +1909,7 @@ "type": "Identifier", "span": { "start": 1470, - "end": 1501, + "end": 1471, "ctxt": 0 }, "value": "a", @@ -1974,7 +1974,7 @@ "type": "Identifier", "span": { "start": 1507, - "end": 1545, + "end": 1508, "ctxt": 0 }, "value": "b", @@ -2039,7 +2039,7 @@ "type": "Identifier", "span": { "start": 1551, - "end": 1580, + "end": 1552, "ctxt": 0 }, "value": "c", @@ -2104,7 +2104,7 @@ "type": "Identifier", "span": { "start": 1586, - "end": 1615, + "end": 1587, "ctxt": 0 }, "value": "d", @@ -2169,7 +2169,7 @@ "type": "Identifier", "span": { "start": 1621, - "end": 1650, + "end": 1622, "ctxt": 0 }, "value": "e", @@ -2234,7 +2234,7 @@ "type": "Identifier", "span": { "start": 1656, - "end": 1685, + "end": 1657, "ctxt": 0 }, "value": "f", @@ -2299,7 +2299,7 @@ "type": "Identifier", "span": { "start": 1691, - "end": 1724, + "end": 1692, "ctxt": 0 }, "value": "g", diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment.json b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment.json index 00d453dac504..817510d5ab51 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment.json @@ -123,7 +123,7 @@ "type": "Identifier", "span": { "start": 145, - "end": 157, + "end": 149, "ctxt": 0 }, "value": "name", diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment2.json b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment2.json index cd03a8749322..f404a769e5f7 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment2.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment2.json @@ -123,7 +123,7 @@ "type": "Identifier", "span": { "start": 145, - "end": 157, + "end": 149, "ctxt": 0 }, "value": "name", diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment3.json b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment3.json index dc6f87f33ed0..29f456c5909e 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment3.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment3.json @@ -123,7 +123,7 @@ "type": "Identifier", "span": { "start": 145, - "end": 157, + "end": 149, "ctxt": 0 }, "value": "name", diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment4.json b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment4.json index a1493b5becfe..3130f45cf3aa 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment4.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment4.json @@ -123,7 +123,7 @@ "type": "Identifier", "span": { "start": 145, - "end": 157, + "end": 149, "ctxt": 0 }, "value": "name", diff --git a/crates/swc_ecma_parser/tests/tsc/moduleWithStatementsOfEveryKind.json b/crates/swc_ecma_parser/tests/tsc/moduleWithStatementsOfEveryKind.json index eaf7e47be52c..95ee89e8ecbf 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleWithStatementsOfEveryKind.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleWithStatementsOfEveryKind.json @@ -753,7 +753,7 @@ "type": "Identifier", "span": { "start": 325, - "end": 334, + "end": 326, "ctxt": 0 }, "value": "s", @@ -2030,7 +2030,7 @@ "type": "Identifier", "span": { "start": 959, - "end": 968, + "end": 960, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/namedTupleMembers.json b/crates/swc_ecma_parser/tests/tsc/namedTupleMembers.json index 3a1dd035272f..cf737475b686 100644 --- a/crates/swc_ecma_parser/tests/tsc/namedTupleMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/namedTupleMembers.json @@ -1412,7 +1412,7 @@ "type": "Identifier", "span": { "start": 721, - "end": 731, + "end": 728, "ctxt": 0 }, "value": "initial", @@ -3064,7 +3064,7 @@ "type": "Identifier", "span": { "start": 1573, - "end": 1585, + "end": 1577, "ctxt": 0 }, "value": "elem", @@ -3100,7 +3100,7 @@ "type": "Identifier", "span": { "start": 1587, - "end": 1600, + "end": 1592, "ctxt": 0 }, "value": "index", @@ -3179,7 +3179,7 @@ "type": "Identifier", "span": { "start": 1683, - "end": 1687, + "end": 1684, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/narrowExceptionVariableInCatchClause.json b/crates/swc_ecma_parser/tests/tsc/narrowExceptionVariableInCatchClause.json index f11ad9864f2c..d363dec41197 100644 --- a/crates/swc_ecma_parser/tests/tsc/narrowExceptionVariableInCatchClause.json +++ b/crates/swc_ecma_parser/tests/tsc/narrowExceptionVariableInCatchClause.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 29, - "end": 35, + "end": 30, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/narrowingConstrainedTypeVariable.json b/crates/swc_ecma_parser/tests/tsc/narrowingConstrainedTypeVariable.json index 87047fab1072..0039cd212d6f 100644 --- a/crates/swc_ecma_parser/tests/tsc/narrowingConstrainedTypeVariable.json +++ b/crates/swc_ecma_parser/tests/tsc/narrowingConstrainedTypeVariable.json @@ -58,7 +58,7 @@ "type": "Identifier", "span": { "start": 79, - "end": 92, + "end": 80, "ctxt": 0 }, "value": "v", @@ -434,7 +434,7 @@ "type": "Identifier", "span": { "start": 258, - "end": 266, + "end": 259, "ctxt": 0 }, "value": "v", @@ -920,7 +920,7 @@ "type": "Identifier", "span": { "start": 430, - "end": 450, + "end": 431, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/narrowingGenericTypeFromInstanceof01.json b/crates/swc_ecma_parser/tests/tsc/narrowingGenericTypeFromInstanceof01.json index e2009fe44e47..5c7b7e7b189f 100644 --- a/crates/swc_ecma_parser/tests/tsc/narrowingGenericTypeFromInstanceof01.json +++ b/crates/swc_ecma_parser/tests/tsc/narrowingGenericTypeFromInstanceof01.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 38, - "end": 47, + "end": 39, "ctxt": 0 }, "value": "a", @@ -219,7 +219,7 @@ "type": "Identifier", "span": { "start": 92, - "end": 99, + "end": 93, "ctxt": 0 }, "value": "a", @@ -360,7 +360,7 @@ "type": "Identifier", "span": { "start": 125, - "end": 132, + "end": 126, "ctxt": 0 }, "value": "b", @@ -501,7 +501,7 @@ "type": "Identifier", "span": { "start": 156, - "end": 170, + "end": 157, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/neverInference.json b/crates/swc_ecma_parser/tests/tsc/neverInference.json index 97fbe7163209..e0205fb16236 100644 --- a/crates/swc_ecma_parser/tests/tsc/neverInference.json +++ b/crates/swc_ecma_parser/tests/tsc/neverInference.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 77, - "end": 83, + "end": 78, "ctxt": 0 }, "value": "x", @@ -404,7 +404,7 @@ "type": "Identifier", "span": { "start": 228, - "end": 232, + "end": 229, "ctxt": 0 }, "value": "x", @@ -441,7 +441,7 @@ "type": "Identifier", "span": { "start": 234, - "end": 238, + "end": 235, "ctxt": 0 }, "value": "y", @@ -953,7 +953,7 @@ "type": "Identifier", "span": { "start": 414, - "end": 423, + "end": 415, "ctxt": 0 }, "value": "x", @@ -989,7 +989,7 @@ "type": "Identifier", "span": { "start": 425, - "end": 434, + "end": 426, "ctxt": 0 }, "value": "y", @@ -1068,7 +1068,7 @@ "type": "Identifier", "span": { "start": 472, - "end": 482, + "end": 477, "ctxt": 0 }, "value": "items", @@ -1122,7 +1122,7 @@ "type": "Identifier", "span": { "start": 484, - "end": 509, + "end": 494, "ctxt": 0 }, "value": "comparator", @@ -1431,7 +1431,7 @@ "type": "Identifier", "span": { "start": 635, - "end": 643, + "end": 638, "ctxt": 0 }, "value": "as1", @@ -1485,7 +1485,7 @@ "type": "Identifier", "span": { "start": 645, - "end": 653, + "end": 648, "ctxt": 0 }, "value": "as2", @@ -1539,7 +1539,7 @@ "type": "Identifier", "span": { "start": 655, - "end": 684, + "end": 658, "ctxt": 0 }, "value": "cmp", @@ -1563,7 +1563,7 @@ "type": "Identifier", "span": { "start": 661, - "end": 666, + "end": 663, "ctxt": 0 }, "value": "a1", @@ -1600,7 +1600,7 @@ "type": "Identifier", "span": { "start": 668, - "end": 673, + "end": 670, "ctxt": 0 }, "value": "a2", diff --git a/crates/swc_ecma_parser/tests/tsc/neverIntersectionNotCallable.json b/crates/swc_ecma_parser/tests/tsc/neverIntersectionNotCallable.json index f5c18b1f0a59..08dfa024dab1 100644 --- a/crates/swc_ecma_parser/tests/tsc/neverIntersectionNotCallable.json +++ b/crates/swc_ecma_parser/tests/tsc/neverIntersectionNotCallable.json @@ -67,7 +67,7 @@ "type": "Identifier", "span": { "start": 21, - "end": 30, + "end": 22, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/neverReturningFunctions1.json b/crates/swc_ecma_parser/tests/tsc/neverReturningFunctions1.json index e7b44750ad5e..afd43f25fc85 100644 --- a/crates/swc_ecma_parser/tests/tsc/neverReturningFunctions1.json +++ b/crates/swc_ecma_parser/tests/tsc/neverReturningFunctions1.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 87, - "end": 103, + "end": 94, "ctxt": 0 }, "value": "message", @@ -162,7 +162,7 @@ "type": "Identifier", "span": { "start": 160, - "end": 181, + "end": 161, "ctxt": 0 }, "value": "x", @@ -369,7 +369,7 @@ "type": "Identifier", "span": { "start": 279, - "end": 288, + "end": 280, "ctxt": 0 }, "value": "x", @@ -573,7 +573,7 @@ "type": "Identifier", "span": { "start": 394, - "end": 403, + "end": 395, "ctxt": 0 }, "value": "x", @@ -709,7 +709,7 @@ "type": "Identifier", "span": { "start": 476, - "end": 497, + "end": 477, "ctxt": 0 }, "value": "x", @@ -764,7 +764,7 @@ "type": "Identifier", "span": { "start": 499, - "end": 532, + "end": 503, "ctxt": 0 }, "value": "fail", @@ -788,7 +788,7 @@ "type": "Identifier", "span": { "start": 506, - "end": 522, + "end": 513, "ctxt": 0 }, "value": "message", @@ -998,7 +998,7 @@ "type": "Identifier", "span": { "start": 630, - "end": 639, + "end": 631, "ctxt": 0 }, "value": "x", @@ -1034,7 +1034,7 @@ "type": "Identifier", "span": { "start": 641, - "end": 674, + "end": 645, "ctxt": 0 }, "value": "fail", @@ -1058,7 +1058,7 @@ "type": "Identifier", "span": { "start": 648, - "end": 664, + "end": 655, "ctxt": 0 }, "value": "message", @@ -1284,7 +1284,7 @@ "type": "Identifier", "span": { "start": 780, - "end": 789, + "end": 781, "ctxt": 0 }, "value": "x", @@ -1320,7 +1320,7 @@ "type": "Identifier", "span": { "start": 791, - "end": 824, + "end": 795, "ctxt": 0 }, "value": "fail", @@ -1344,7 +1344,7 @@ "type": "Identifier", "span": { "start": 798, - "end": 814, + "end": 805, "ctxt": 0 }, "value": "message", @@ -1536,7 +1536,7 @@ "type": "Identifier", "span": { "start": 935, - "end": 951, + "end": 942, "ctxt": 0 }, "value": "message", @@ -1619,7 +1619,7 @@ "type": "Identifier", "span": { "start": 977, - "end": 998, + "end": 978, "ctxt": 0 }, "value": "x", @@ -1844,7 +1844,7 @@ "type": "Identifier", "span": { "start": 1102, - "end": 1111, + "end": 1103, "ctxt": 0 }, "value": "x", @@ -2066,7 +2066,7 @@ "type": "Identifier", "span": { "start": 1223, - "end": 1232, + "end": 1224, "ctxt": 0 }, "value": "x", @@ -2220,7 +2220,7 @@ "type": "Identifier", "span": { "start": 1311, - "end": 1320, + "end": 1312, "ctxt": 0 }, "value": "x", @@ -2415,7 +2415,7 @@ "type": "Identifier", "span": { "start": 1412, - "end": 1428, + "end": 1419, "ctxt": 0 }, "value": "message", @@ -2557,7 +2557,7 @@ "type": "Identifier", "span": { "start": 1486, - "end": 1507, + "end": 1487, "ctxt": 0 }, "value": "x", @@ -2792,7 +2792,7 @@ "type": "Identifier", "span": { "start": 1615, - "end": 1624, + "end": 1616, "ctxt": 0 }, "value": "x", @@ -3024,7 +3024,7 @@ "type": "Identifier", "span": { "start": 1744, - "end": 1753, + "end": 1745, "ctxt": 0 }, "value": "x", @@ -3190,7 +3190,7 @@ "type": "Identifier", "span": { "start": 1849, - "end": 1879, + "end": 1850, "ctxt": 0 }, "value": "x", @@ -3641,7 +3641,7 @@ "type": "Identifier", "span": { "start": 2305, - "end": 2330, + "end": 2306, "ctxt": 0 }, "value": "x", @@ -3985,7 +3985,7 @@ "type": "Identifier", "span": { "start": 2521, - "end": 2530, + "end": 2522, "ctxt": 0 }, "value": "x", @@ -4232,7 +4232,7 @@ "type": "Identifier", "span": { "start": 2717, - "end": 2726, + "end": 2718, "ctxt": 0 }, "value": "x", @@ -4433,7 +4433,7 @@ "type": "Identifier", "span": { "start": 2870, - "end": 2879, + "end": 2871, "ctxt": 0 }, "value": "x", @@ -5392,7 +5392,7 @@ "type": "Identifier", "span": { "start": 3440, - "end": 3448, + "end": 3444, "ctxt": 0 }, "value": "data", @@ -5590,7 +5590,7 @@ "type": "Identifier", "span": { "start": 3512, - "end": 3524, + "end": 3516, "ctxt": 0 }, "value": "time", @@ -5617,7 +5617,7 @@ "type": "Identifier", "span": { "start": 3526, - "end": 3543, + "end": 3535, "ctxt": 0 }, "value": "timeDelta", @@ -5685,7 +5685,7 @@ "type": "Identifier", "span": { "start": 3560, - "end": 3570, + "end": 3567, "ctxt": 0 }, "value": "oldData", @@ -5803,7 +5803,7 @@ "type": "Identifier", "span": { "start": 3618, - "end": 3633, + "end": 3624, "ctxt": 0 }, "value": "update", @@ -5977,7 +5977,7 @@ "type": "Identifier", "span": { "start": 3730, - "end": 3741, + "end": 3732, "ctxt": 0 }, "value": "el", @@ -6004,7 +6004,7 @@ "type": "Identifier", "span": { "start": 3743, - "end": 3760, + "end": 3752, "ctxt": 0 }, "value": "attrValue", @@ -6031,7 +6031,7 @@ "type": "Identifier", "span": { "start": 3762, - "end": 3772, + "end": 3764, "ctxt": 0 }, "value": "id", @@ -6376,7 +6376,7 @@ "type": "Identifier", "span": { "start": 3941, - "end": 3953, + "end": 3945, "ctxt": 0 }, "value": "name", @@ -6412,7 +6412,7 @@ "type": "Identifier", "span": { "start": 3959, - "end": 3992, + "end": 3968, "ctxt": 0 }, "value": "component", @@ -7463,7 +7463,7 @@ "type": "Identifier", "span": { "start": 4489, - "end": 4498, + "end": 4490, "ctxt": 0 }, "value": "f", @@ -7838,7 +7838,7 @@ "type": "Identifier", "span": { "start": 4790, - "end": 4801, + "end": 4793, "ctxt": 0 }, "value": "msg", @@ -8127,7 +8127,7 @@ "type": "Identifier", "span": { "start": 4941, - "end": 4956, + "end": 4948, "ctxt": 0 }, "value": "message", @@ -8199,7 +8199,7 @@ "type": "Identifier", "span": { "start": 4982, - "end": 5010, + "end": 4990, "ctxt": 0 }, "value": "services", @@ -8273,7 +8273,7 @@ "type": "Identifier", "span": { "start": 5012, - "end": 5028, + "end": 5013, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/neverType.json b/crates/swc_ecma_parser/tests/tsc/neverType.json index 556b9300ef40..b9b7a18cef4d 100644 --- a/crates/swc_ecma_parser/tests/tsc/neverType.json +++ b/crates/swc_ecma_parser/tests/tsc/neverType.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 67, - "end": 82, + "end": 74, "ctxt": 0 }, "value": "message", @@ -162,7 +162,7 @@ "type": "Identifier", "span": { "start": 145, - "end": 160, + "end": 152, "ctxt": 0 }, "value": "message", @@ -353,7 +353,7 @@ "type": "Identifier", "span": { "start": 277, - "end": 296, + "end": 287, "ctxt": 0 }, "value": "shouldFail", @@ -648,7 +648,7 @@ "type": "Identifier", "span": { "start": 509, - "end": 533, + "end": 518, "ctxt": 0 }, "value": "direction", @@ -904,7 +904,7 @@ "type": "Identifier", "span": { "start": 715, - "end": 739, + "end": 724, "ctxt": 0 }, "value": "direction", @@ -1158,7 +1158,7 @@ "type": "Identifier", "span": { "start": 876, - "end": 892, + "end": 877, "ctxt": 0 }, "value": "x", @@ -1707,7 +1707,7 @@ "type": "Identifier", "span": { "start": 1164, - "end": 1182, + "end": 1165, "ctxt": 0 }, "value": "x", @@ -1873,7 +1873,7 @@ "type": "Identifier", "span": { "start": 1262, - "end": 1280, + "end": 1263, "ctxt": 0 }, "value": "x", @@ -2066,7 +2066,7 @@ "type": "Identifier", "span": { "start": 1406, - "end": 1422, + "end": 1408, "ctxt": 0 }, "value": "cb", diff --git a/crates/swc_ecma_parser/tests/tsc/newOperatorConformance.json b/crates/swc_ecma_parser/tests/tsc/newOperatorConformance.json index ba66bd39b773..a72cbba53c81 100644 --- a/crates/swc_ecma_parser/tests/tsc/newOperatorConformance.json +++ b/crates/swc_ecma_parser/tests/tsc/newOperatorConformance.json @@ -82,7 +82,7 @@ "type": "Identifier", "span": { "start": 43, - "end": 52, + "end": 44, "ctxt": 0 }, "value": "n", @@ -118,7 +118,7 @@ "type": "Identifier", "span": { "start": 54, - "end": 63, + "end": 55, "ctxt": 0 }, "value": "s", @@ -212,7 +212,7 @@ "type": "Identifier", "span": { "start": 101, - "end": 106, + "end": 102, "ctxt": 0 }, "value": "n", @@ -1024,7 +1024,7 @@ "type": "Identifier", "span": { "start": 826, - "end": 830, + "end": 827, "ctxt": 0 }, "value": "s", @@ -1275,7 +1275,7 @@ "type": "Identifier", "span": { "start": 1024, - "end": 1028, + "end": 1025, "ctxt": 0 }, "value": "s", @@ -1491,7 +1491,7 @@ "type": "Identifier", "span": { "start": 1003, - "end": 1012, + "end": 1004, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/newOperatorErrorCases_noImplicitAny.json b/crates/swc_ecma_parser/tests/tsc/newOperatorErrorCases_noImplicitAny.json index 3a5b873bc99b..a97b3c6f0e02 100644 --- a/crates/swc_ecma_parser/tests/tsc/newOperatorErrorCases_noImplicitAny.json +++ b/crates/swc_ecma_parser/tests/tsc/newOperatorErrorCases_noImplicitAny.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 44, - "end": 54, + "end": 48, "ctxt": 0 }, "value": "this", @@ -166,7 +166,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 131, + "end": 125, "ctxt": 0 }, "value": "this", diff --git a/crates/swc_ecma_parser/tests/tsc/newTargetNarrowing.json b/crates/swc_ecma_parser/tests/tsc/newTargetNarrowing.json index 16a243a76b16..ff60e36d29e4 100644 --- a/crates/swc_ecma_parser/tests/tsc/newTargetNarrowing.json +++ b/crates/swc_ecma_parser/tests/tsc/newTargetNarrowing.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 48, - "end": 55, + "end": 49, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/newWithSpread.json b/crates/swc_ecma_parser/tests/tsc/newWithSpread.json index d6452b721d64..bc97cfcab90f 100644 --- a/crates/swc_ecma_parser/tests/tsc/newWithSpread.json +++ b/crates/swc_ecma_parser/tests/tsc/newWithSpread.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 13, - "end": 22, + "end": 14, "ctxt": 0 }, "value": "x", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 24, - "end": 33, + "end": 25, "ctxt": 0 }, "value": "y", @@ -341,7 +341,7 @@ "type": "Identifier", "span": { "start": 125, - "end": 134, + "end": 126, "ctxt": 0 }, "value": "x", @@ -368,7 +368,7 @@ "type": "Identifier", "span": { "start": 136, - "end": 145, + "end": 137, "ctxt": 0 }, "value": "y", @@ -502,7 +502,7 @@ "type": "Identifier", "span": { "start": 199, - "end": 208, + "end": 200, "ctxt": 0 }, "value": "x", @@ -538,7 +538,7 @@ "type": "Identifier", "span": { "start": 210, - "end": 219, + "end": 211, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/newWithSpreadES5.json b/crates/swc_ecma_parser/tests/tsc/newWithSpreadES5.json index 59d7e28147dd..8eb3375c7fb7 100644 --- a/crates/swc_ecma_parser/tests/tsc/newWithSpreadES5.json +++ b/crates/swc_ecma_parser/tests/tsc/newWithSpreadES5.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 28, - "end": 37, + "end": 29, "ctxt": 0 }, "value": "x", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 39, - "end": 48, + "end": 40, "ctxt": 0 }, "value": "y", @@ -341,7 +341,7 @@ "type": "Identifier", "span": { "start": 139, - "end": 148, + "end": 140, "ctxt": 0 }, "value": "x", @@ -368,7 +368,7 @@ "type": "Identifier", "span": { "start": 150, - "end": 159, + "end": 151, "ctxt": 0 }, "value": "y", @@ -502,7 +502,7 @@ "type": "Identifier", "span": { "start": 213, - "end": 222, + "end": 214, "ctxt": 0 }, "value": "x", @@ -538,7 +538,7 @@ "type": "Identifier", "span": { "start": 224, - "end": 233, + "end": 225, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/newWithSpreadES6.json b/crates/swc_ecma_parser/tests/tsc/newWithSpreadES6.json index 7731edfd7be0..5e9508a8708f 100644 --- a/crates/swc_ecma_parser/tests/tsc/newWithSpreadES6.json +++ b/crates/swc_ecma_parser/tests/tsc/newWithSpreadES6.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 28, - "end": 37, + "end": 29, "ctxt": 0 }, "value": "x", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 39, - "end": 48, + "end": 40, "ctxt": 0 }, "value": "y", @@ -341,7 +341,7 @@ "type": "Identifier", "span": { "start": 140, - "end": 149, + "end": 141, "ctxt": 0 }, "value": "x", @@ -368,7 +368,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 160, + "end": 152, "ctxt": 0 }, "value": "y", @@ -502,7 +502,7 @@ "type": "Identifier", "span": { "start": 214, - "end": 223, + "end": 215, "ctxt": 0 }, "value": "x", @@ -538,7 +538,7 @@ "type": "Identifier", "span": { "start": 225, - "end": 234, + "end": 226, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/noInfer.json b/crates/swc_ecma_parser/tests/tsc/noInfer.json index 79b5a91f007f..90b32679a4b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/noInfer.json +++ b/crates/swc_ecma_parser/tests/tsc/noInfer.json @@ -1662,7 +1662,7 @@ "type": "Identifier", "span": { "start": 859, - "end": 863, + "end": 860, "ctxt": 0 }, "value": "a", @@ -1708,7 +1708,7 @@ "type": "Identifier", "span": { "start": 865, - "end": 878, + "end": 866, "ctxt": 0 }, "value": "b", @@ -1865,7 +1865,7 @@ "type": "Identifier", "span": { "start": 926, - "end": 930, + "end": 927, "ctxt": 0 }, "value": "a", @@ -1911,7 +1911,7 @@ "type": "Identifier", "span": { "start": 932, - "end": 947, + "end": 933, "ctxt": 0 }, "value": "b", @@ -2076,7 +2076,7 @@ "type": "Identifier", "span": { "start": 995, - "end": 999, + "end": 996, "ctxt": 0 }, "value": "a", @@ -2122,7 +2122,7 @@ "type": "Identifier", "span": { "start": 1001, - "end": 1016, + "end": 1002, "ctxt": 0 }, "value": "b", @@ -2287,7 +2287,7 @@ "type": "Identifier", "span": { "start": 1064, - "end": 1068, + "end": 1065, "ctxt": 0 }, "value": "a", @@ -2333,7 +2333,7 @@ "type": "Identifier", "span": { "start": 1070, - "end": 1090, + "end": 1071, "ctxt": 0 }, "value": "b", @@ -2532,7 +2532,7 @@ "type": "Identifier", "span": { "start": 1138, - "end": 1142, + "end": 1139, "ctxt": 0 }, "value": "a", @@ -2578,7 +2578,7 @@ "type": "Identifier", "span": { "start": 1144, - "end": 1164, + "end": 1145, "ctxt": 0 }, "value": "b", @@ -3350,7 +3350,7 @@ "type": "Identifier", "span": { "start": 1477, - "end": 1485, + "end": 1482, "ctxt": 0 }, "value": "value", @@ -3396,7 +3396,7 @@ "type": "Identifier", "span": { "start": 1487, - "end": 1515, + "end": 1497, "ctxt": 0 }, "value": "getDefault", @@ -3827,7 +3827,7 @@ "type": "Identifier", "span": { "start": 1714, - "end": 1723, + "end": 1720, "ctxt": 0 }, "value": "actual", @@ -3873,7 +3873,7 @@ "type": "Identifier", "span": { "start": 1725, - "end": 1745, + "end": 1733, "ctxt": 0 }, "value": "expected", @@ -4289,7 +4289,7 @@ "type": "Identifier", "span": { "start": 1889, - "end": 1910, + "end": 1893, "ctxt": 0 }, "value": "func", @@ -4313,7 +4313,7 @@ "type": "Identifier", "span": { "start": 1896, - "end": 1904, + "end": 1901, "ctxt": 0 }, "value": "value", @@ -4391,7 +4391,7 @@ "type": "Identifier", "span": { "start": 1912, - "end": 1929, + "end": 1917, "ctxt": 0 }, "value": "value", @@ -4573,7 +4573,7 @@ "type": "Identifier", "span": { "start": 1957, - "end": 1978, + "end": 1962, "ctxt": 0 }, "value": "value", @@ -4996,7 +4996,7 @@ "type": "Identifier", "span": { "start": 2135, - "end": 2162, + "end": 2144, "ctxt": 0 }, "value": "Component", @@ -5070,7 +5070,7 @@ "type": "Identifier", "span": { "start": 2164, - "end": 2185, + "end": 2169, "ctxt": 0 }, "value": "props", @@ -5470,7 +5470,7 @@ "type": "Identifier", "span": { "start": 2331, - "end": 2372, + "end": 2339, "ctxt": 0 }, "value": "callback", @@ -5494,7 +5494,7 @@ "type": "Identifier", "span": { "start": 2342, - "end": 2355, + "end": 2343, "ctxt": 0 }, "value": "a", @@ -5559,7 +5559,7 @@ "type": "Identifier", "span": { "start": 2357, - "end": 2366, + "end": 2358, "ctxt": 0 }, "value": "b", @@ -5899,7 +5899,7 @@ "type": "Identifier", "span": { "start": 2492, - "end": 2514, + "end": 2497, "ctxt": 0 }, "value": "clazz", @@ -5976,7 +5976,7 @@ "type": "Identifier", "span": { "start": 2524, - "end": 2542, + "end": 2530, "ctxt": 0 }, "value": "_value", @@ -6250,7 +6250,7 @@ "type": "Identifier", "span": { "start": 2655, - "end": 2677, + "end": 2660, "ctxt": 0 }, "value": "clazz", @@ -6327,7 +6327,7 @@ "type": "Identifier", "span": { "start": 2686, - "end": 2704, + "end": 2692, "ctxt": 0 }, "value": "_value", diff --git a/crates/swc_ecma_parser/tests/tsc/noUncheckedIndexedAccess.json b/crates/swc_ecma_parser/tests/tsc/noUncheckedIndexedAccess.json index ce6508793de4..bbc1138cd884 100644 --- a/crates/swc_ecma_parser/tests/tsc/noUncheckedIndexedAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/noUncheckedIndexedAccess.json @@ -3726,7 +3726,7 @@ "type": "Identifier", "span": { "start": 2013, - "end": 2019, + "end": 2016, "ctxt": 0 }, "value": "arg", @@ -3965,7 +3965,7 @@ "type": "Identifier", "span": { "start": 2132, - "end": 2138, + "end": 2135, "ctxt": 0 }, "value": "arg", @@ -4212,7 +4212,7 @@ "type": "Identifier", "span": { "start": 2231, - "end": 2237, + "end": 2234, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/nominalSubtypeCheckOfTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/nominalSubtypeCheckOfTypeParameter.json index cdb07aba85ef..a01d569941ff 100644 --- a/crates/swc_ecma_parser/tests/tsc/nominalSubtypeCheckOfTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/nominalSubtypeCheckOfTypeParameter.json @@ -369,7 +369,7 @@ "type": "Identifier", "span": { "start": 132, - "end": 148, + "end": 135, "ctxt": 0 }, "value": "seq", @@ -743,7 +743,7 @@ "type": "Identifier", "span": { "start": 533, - "end": 549, + "end": 536, "ctxt": 0 }, "value": "seq", diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAndTypeVariables.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAndTypeVariables.json index 6f486ecd9918..bf0edbc2d615 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAndTypeVariables.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAndTypeVariables.json @@ -955,7 +955,7 @@ "type": "Identifier", "span": { "start": 268, - "end": 272, + "end": 269, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveConstraintOfIndexAccessType.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveConstraintOfIndexAccessType.json index db51f09d164d..f53d57f657d7 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveConstraintOfIndexAccessType.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveConstraintOfIndexAccessType.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 85, - "end": 94, + "end": 86, "ctxt": 0 }, "value": "s", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 96, - "end": 104, + "end": 98, "ctxt": 0 }, "value": "tp", @@ -322,7 +322,7 @@ "type": "Identifier", "span": { "start": 174, - "end": 183, + "end": 175, "ctxt": 0 }, "value": "s", @@ -358,7 +358,7 @@ "type": "Identifier", "span": { "start": 185, - "end": 193, + "end": 187, "ctxt": 0 }, "value": "tp", @@ -612,7 +612,7 @@ "type": "Identifier", "span": { "start": 268, - "end": 277, + "end": 269, "ctxt": 0 }, "value": "s", @@ -648,7 +648,7 @@ "type": "Identifier", "span": { "start": 279, - "end": 287, + "end": 281, "ctxt": 0 }, "value": "tp", @@ -902,7 +902,7 @@ "type": "Identifier", "span": { "start": 357, - "end": 366, + "end": 358, "ctxt": 0 }, "value": "s", @@ -938,7 +938,7 @@ "type": "Identifier", "span": { "start": 368, - "end": 376, + "end": 370, "ctxt": 0 }, "value": "tp", @@ -1192,7 +1192,7 @@ "type": "Identifier", "span": { "start": 447, - "end": 456, + "end": 448, "ctxt": 0 }, "value": "s", @@ -1228,7 +1228,7 @@ "type": "Identifier", "span": { "start": 458, - "end": 466, + "end": 460, "ctxt": 0 }, "value": "tp", @@ -1482,7 +1482,7 @@ "type": "Identifier", "span": { "start": 538, - "end": 547, + "end": 539, "ctxt": 0 }, "value": "s", @@ -1518,7 +1518,7 @@ "type": "Identifier", "span": { "start": 549, - "end": 557, + "end": 551, "ctxt": 0 }, "value": "tp", @@ -1772,7 +1772,7 @@ "type": "Identifier", "span": { "start": 629, - "end": 638, + "end": 630, "ctxt": 0 }, "value": "s", @@ -1808,7 +1808,7 @@ "type": "Identifier", "span": { "start": 640, - "end": 648, + "end": 642, "ctxt": 0 }, "value": "tp", @@ -2062,7 +2062,7 @@ "type": "Identifier", "span": { "start": 716, - "end": 725, + "end": 717, "ctxt": 0 }, "value": "s", @@ -2098,7 +2098,7 @@ "type": "Identifier", "span": { "start": 727, - "end": 735, + "end": 729, "ctxt": 0 }, "value": "tp", @@ -2352,7 +2352,7 @@ "type": "Identifier", "span": { "start": 814, - "end": 823, + "end": 815, "ctxt": 0 }, "value": "s", @@ -2388,7 +2388,7 @@ "type": "Identifier", "span": { "start": 825, - "end": 833, + "end": 827, "ctxt": 0 }, "value": "tp", @@ -2684,7 +2684,7 @@ "type": "Identifier", "span": { "start": 922, - "end": 931, + "end": 923, "ctxt": 0 }, "value": "s", @@ -2720,7 +2720,7 @@ "type": "Identifier", "span": { "start": 933, - "end": 941, + "end": 935, "ctxt": 0 }, "value": "tp", diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveInFunction.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveInFunction.json index d2320fc5caa4..00c33c95712f 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveInFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveInFunction.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 43, - "end": 52, + "end": 44, "ctxt": 0 }, "value": "o", diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveInGeneric.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveInGeneric.json index 1e02ada09447..1205abc5f11f 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveInGeneric.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveInGeneric.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 43, - "end": 47, + "end": 44, "ctxt": 0 }, "value": "t", @@ -526,7 +526,7 @@ "type": "Identifier", "span": { "start": 268, - "end": 272, + "end": 269, "ctxt": 0 }, "value": "t", @@ -1141,7 +1141,7 @@ "type": "Identifier", "span": { "start": 555, - "end": 559, + "end": 556, "ctxt": 0 }, "value": "t", diff --git a/crates/swc_ecma_parser/tests/tsc/nullAssignableToEveryType.json b/crates/swc_ecma_parser/tests/tsc/nullAssignableToEveryType.json index 8031517ffdab..aaf75800e4d6 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullAssignableToEveryType.json +++ b/crates/swc_ecma_parser/tests/tsc/nullAssignableToEveryType.json @@ -1021,7 +1021,7 @@ "type": "Identifier", "span": { "start": 333, - "end": 342, + "end": 334, "ctxt": 0 }, "value": "x", @@ -1393,7 +1393,7 @@ "type": "Identifier", "span": { "start": 461, - "end": 465, + "end": 462, "ctxt": 0 }, "value": "x", @@ -1660,7 +1660,7 @@ "type": "Identifier", "span": { "start": 560, - "end": 564, + "end": 561, "ctxt": 0 }, "value": "x", @@ -1706,7 +1706,7 @@ "type": "Identifier", "span": { "start": 566, - "end": 570, + "end": 567, "ctxt": 0 }, "value": "y", @@ -1752,7 +1752,7 @@ "type": "Identifier", "span": { "start": 572, - "end": 576, + "end": 573, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/nullIsSubtypeOfEverythingButUndefined.json b/crates/swc_ecma_parser/tests/tsc/nullIsSubtypeOfEverythingButUndefined.json index 36e3005c1ead..42329a0e5c30 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullIsSubtypeOfEverythingButUndefined.json +++ b/crates/swc_ecma_parser/tests/tsc/nullIsSubtypeOfEverythingButUndefined.json @@ -3569,7 +3569,7 @@ "type": "Identifier", "span": { "start": 1489, - "end": 1493, + "end": 1490, "ctxt": 0 }, "value": "x", @@ -3817,7 +3817,7 @@ "type": "Identifier", "span": { "start": 1581, - "end": 1585, + "end": 1582, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/nullOrUndefinedTypeGuardIsOrderIndependent.json b/crates/swc_ecma_parser/tests/tsc/nullOrUndefinedTypeGuardIsOrderIndependent.json index c7f2d75deaba..c2af22dea077 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullOrUndefinedTypeGuardIsOrderIndependent.json +++ b/crates/swc_ecma_parser/tests/tsc/nullOrUndefinedTypeGuardIsOrderIndependent.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 42, - "end": 66, + "end": 51, "ctxt": 0 }, "value": "strOrNull", @@ -87,7 +87,7 @@ "type": "Identifier", "span": { "start": 68, - "end": 102, + "end": 82, "ctxt": 0 }, "value": "strOrUndefined", diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator6.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator6.json index e19d869b6845..8688d00880aa 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator6.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator6.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 32, - "end": 43, + "end": 35, "ctxt": 0 }, "value": "foo", diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator9.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator9.json index f78e87335a5b..e03fda7fd327 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator9.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator9.json @@ -75,7 +75,7 @@ "type": "Identifier", "span": { "start": 43, - "end": 52, + "end": 44, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInAsyncGenerator.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInAsyncGenerator.json index e0fccc7d5860..5681f80afff2 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInAsyncGenerator.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInAsyncGenerator.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 174, - "end": 191, + "end": 175, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes1.json b/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes1.json index c479cc24ab34..16b7230f00f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes1.json @@ -1161,7 +1161,7 @@ "type": "Identifier", "span": { "start": 365, - "end": 369, + "end": 366, "ctxt": 0 }, "value": "a", @@ -1206,7 +1206,7 @@ "type": "Identifier", "span": { "start": 371, - "end": 383, + "end": 372, "ctxt": 0 }, "value": "b", @@ -2462,7 +2462,7 @@ "type": "Identifier", "span": { "start": 762, - "end": 766, + "end": 763, "ctxt": 0 }, "value": "a", @@ -2507,7 +2507,7 @@ "type": "Identifier", "span": { "start": 768, - "end": 780, + "end": 769, "ctxt": 0 }, "value": "b", @@ -2690,7 +2690,7 @@ "type": "Identifier", "span": { "start": 824, - "end": 828, + "end": 825, "ctxt": 0 }, "value": "x", @@ -2778,7 +2778,7 @@ "type": "Identifier", "span": { "start": 858, - "end": 862, + "end": 859, "ctxt": 0 }, "value": "x", @@ -2866,7 +2866,7 @@ "type": "Identifier", "span": { "start": 893, - "end": 902, + "end": 894, "ctxt": 0 }, "value": "x", @@ -2945,7 +2945,7 @@ "type": "Identifier", "span": { "start": 926, - "end": 930, + "end": 927, "ctxt": 0 }, "value": "a", @@ -2990,7 +2990,7 @@ "type": "Identifier", "span": { "start": 932, - "end": 944, + "end": 933, "ctxt": 0 }, "value": "b", @@ -3447,7 +3447,7 @@ "type": "Identifier", "span": { "start": 1067, - "end": 1075, + "end": 1068, "ctxt": 0 }, "value": "x", @@ -3661,7 +3661,7 @@ "type": "Identifier", "span": { "start": 1166, - "end": 1172, + "end": 1167, "ctxt": 0 }, "value": "x", @@ -3877,7 +3877,7 @@ "type": "Identifier", "span": { "start": 1299, - "end": 1305, + "end": 1300, "ctxt": 0 }, "value": "x", @@ -4135,7 +4135,7 @@ "type": "Identifier", "span": { "start": 1459, - "end": 1465, + "end": 1460, "ctxt": 0 }, "value": "x", @@ -4291,7 +4291,7 @@ "type": "Identifier", "span": { "start": 1543, - "end": 1549, + "end": 1544, "ctxt": 0 }, "value": "x", @@ -4504,7 +4504,7 @@ "type": "Identifier", "span": { "start": 1644, - "end": 1656, + "end": 1645, "ctxt": 0 }, "value": "x", @@ -4595,7 +4595,7 @@ "type": "Identifier", "span": { "start": 1658, - "end": 1667, + "end": 1659, "ctxt": 0 }, "value": "y", @@ -4789,7 +4789,7 @@ "type": "Identifier", "span": { "start": 1727, - "end": 1739, + "end": 1728, "ctxt": 0 }, "value": "x", @@ -4861,7 +4861,7 @@ "type": "Identifier", "span": { "start": 1741, - "end": 1753, + "end": 1742, "ctxt": 0 }, "value": "y", @@ -5649,7 +5649,7 @@ "type": "Identifier", "span": { "start": 1984, - "end": 1991, + "end": 1985, "ctxt": 0 }, "value": "x", @@ -5937,7 +5937,7 @@ "type": "Identifier", "span": { "start": 2123, - "end": 2130, + "end": 2124, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes2.json b/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes2.json index 2d5541533b84..70703bccc542 100644 --- a/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes2.json @@ -1161,7 +1161,7 @@ "type": "Identifier", "span": { "start": 393, - "end": 397, + "end": 394, "ctxt": 0 }, "value": "a", @@ -1206,7 +1206,7 @@ "type": "Identifier", "span": { "start": 399, - "end": 411, + "end": 400, "ctxt": 0 }, "value": "b", @@ -2462,7 +2462,7 @@ "type": "Identifier", "span": { "start": 790, - "end": 794, + "end": 791, "ctxt": 0 }, "value": "a", @@ -2507,7 +2507,7 @@ "type": "Identifier", "span": { "start": 796, - "end": 808, + "end": 797, "ctxt": 0 }, "value": "b", @@ -2690,7 +2690,7 @@ "type": "Identifier", "span": { "start": 852, - "end": 856, + "end": 853, "ctxt": 0 }, "value": "x", @@ -2778,7 +2778,7 @@ "type": "Identifier", "span": { "start": 886, - "end": 890, + "end": 887, "ctxt": 0 }, "value": "x", @@ -2866,7 +2866,7 @@ "type": "Identifier", "span": { "start": 921, - "end": 930, + "end": 922, "ctxt": 0 }, "value": "x", @@ -2945,7 +2945,7 @@ "type": "Identifier", "span": { "start": 954, - "end": 958, + "end": 955, "ctxt": 0 }, "value": "a", @@ -2990,7 +2990,7 @@ "type": "Identifier", "span": { "start": 960, - "end": 972, + "end": 961, "ctxt": 0 }, "value": "b", @@ -3447,7 +3447,7 @@ "type": "Identifier", "span": { "start": 1095, - "end": 1103, + "end": 1096, "ctxt": 0 }, "value": "x", @@ -3661,7 +3661,7 @@ "type": "Identifier", "span": { "start": 1194, - "end": 1200, + "end": 1195, "ctxt": 0 }, "value": "x", @@ -3877,7 +3877,7 @@ "type": "Identifier", "span": { "start": 1327, - "end": 1333, + "end": 1328, "ctxt": 0 }, "value": "x", @@ -4135,7 +4135,7 @@ "type": "Identifier", "span": { "start": 1487, - "end": 1493, + "end": 1488, "ctxt": 0 }, "value": "x", @@ -4291,7 +4291,7 @@ "type": "Identifier", "span": { "start": 1571, - "end": 1577, + "end": 1572, "ctxt": 0 }, "value": "x", @@ -4504,7 +4504,7 @@ "type": "Identifier", "span": { "start": 1672, - "end": 1684, + "end": 1673, "ctxt": 0 }, "value": "x", @@ -4595,7 +4595,7 @@ "type": "Identifier", "span": { "start": 1686, - "end": 1695, + "end": 1687, "ctxt": 0 }, "value": "y", @@ -4789,7 +4789,7 @@ "type": "Identifier", "span": { "start": 1755, - "end": 1767, + "end": 1756, "ctxt": 0 }, "value": "x", @@ -4861,7 +4861,7 @@ "type": "Identifier", "span": { "start": 1769, - "end": 1781, + "end": 1770, "ctxt": 0 }, "value": "y", @@ -5649,7 +5649,7 @@ "type": "Identifier", "span": { "start": 2012, - "end": 2019, + "end": 2013, "ctxt": 0 }, "value": "x", @@ -5937,7 +5937,7 @@ "type": "Identifier", "span": { "start": 2151, - "end": 2158, + "end": 2152, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes3.json b/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes3.json index 51aafcc1afab..7469c0ba23cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes3.json @@ -304,7 +304,7 @@ "type": "Identifier", "span": { "start": 82, - "end": 86, + "end": 83, "ctxt": 0 }, "value": "a", @@ -350,7 +350,7 @@ "type": "Identifier", "span": { "start": 88, - "end": 92, + "end": 89, "ctxt": 0 }, "value": "b", @@ -396,7 +396,7 @@ "type": "Identifier", "span": { "start": 94, - "end": 98, + "end": 95, "ctxt": 0 }, "value": "c", @@ -442,7 +442,7 @@ "type": "Identifier", "span": { "start": 100, - "end": 104, + "end": 101, "ctxt": 0 }, "value": "d", @@ -676,7 +676,7 @@ "type": "Identifier", "span": { "start": 167, - "end": 171, + "end": 168, "ctxt": 0 }, "value": "a", @@ -722,7 +722,7 @@ "type": "Identifier", "span": { "start": 173, - "end": 177, + "end": 174, "ctxt": 0 }, "value": "b", @@ -768,7 +768,7 @@ "type": "Identifier", "span": { "start": 179, - "end": 183, + "end": 180, "ctxt": 0 }, "value": "c", @@ -814,7 +814,7 @@ "type": "Identifier", "span": { "start": 185, - "end": 189, + "end": 186, "ctxt": 0 }, "value": "d", @@ -1048,7 +1048,7 @@ "type": "Identifier", "span": { "start": 252, - "end": 256, + "end": 253, "ctxt": 0 }, "value": "a", @@ -1094,7 +1094,7 @@ "type": "Identifier", "span": { "start": 258, - "end": 262, + "end": 259, "ctxt": 0 }, "value": "b", @@ -1140,7 +1140,7 @@ "type": "Identifier", "span": { "start": 264, - "end": 268, + "end": 265, "ctxt": 0 }, "value": "c", @@ -1186,7 +1186,7 @@ "type": "Identifier", "span": { "start": 270, - "end": 274, + "end": 271, "ctxt": 0 }, "value": "d", @@ -1420,7 +1420,7 @@ "type": "Identifier", "span": { "start": 337, - "end": 341, + "end": 338, "ctxt": 0 }, "value": "a", @@ -1466,7 +1466,7 @@ "type": "Identifier", "span": { "start": 343, - "end": 347, + "end": 344, "ctxt": 0 }, "value": "b", @@ -1512,7 +1512,7 @@ "type": "Identifier", "span": { "start": 349, - "end": 353, + "end": 350, "ctxt": 0 }, "value": "c", @@ -1558,7 +1558,7 @@ "type": "Identifier", "span": { "start": 355, - "end": 359, + "end": 356, "ctxt": 0 }, "value": "d", @@ -1792,7 +1792,7 @@ "type": "Identifier", "span": { "start": 422, - "end": 426, + "end": 423, "ctxt": 0 }, "value": "a", @@ -1838,7 +1838,7 @@ "type": "Identifier", "span": { "start": 428, - "end": 432, + "end": 429, "ctxt": 0 }, "value": "b", @@ -1884,7 +1884,7 @@ "type": "Identifier", "span": { "start": 434, - "end": 438, + "end": 435, "ctxt": 0 }, "value": "c", @@ -1930,7 +1930,7 @@ "type": "Identifier", "span": { "start": 440, - "end": 444, + "end": 441, "ctxt": 0 }, "value": "d", @@ -2620,7 +2620,7 @@ "type": "Identifier", "span": { "start": 639, - "end": 643, + "end": 640, "ctxt": 0 }, "value": "a", @@ -2666,7 +2666,7 @@ "type": "Identifier", "span": { "start": 645, - "end": 649, + "end": 646, "ctxt": 0 }, "value": "b", @@ -2712,7 +2712,7 @@ "type": "Identifier", "span": { "start": 651, - "end": 655, + "end": 652, "ctxt": 0 }, "value": "c", @@ -2758,7 +2758,7 @@ "type": "Identifier", "span": { "start": 657, - "end": 661, + "end": 658, "ctxt": 0 }, "value": "d", @@ -3432,7 +3432,7 @@ "type": "Identifier", "span": { "start": 888, - "end": 892, + "end": 889, "ctxt": 0 }, "value": "a", @@ -3478,7 +3478,7 @@ "type": "Identifier", "span": { "start": 894, - "end": 898, + "end": 895, "ctxt": 0 }, "value": "b", @@ -3524,7 +3524,7 @@ "type": "Identifier", "span": { "start": 900, - "end": 904, + "end": 901, "ctxt": 0 }, "value": "c", @@ -3570,7 +3570,7 @@ "type": "Identifier", "span": { "start": 906, - "end": 910, + "end": 907, "ctxt": 0 }, "value": "d", @@ -4244,7 +4244,7 @@ "type": "Identifier", "span": { "start": 1137, - "end": 1149, + "end": 1138, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/numericStringLiteralTypes.json b/crates/swc_ecma_parser/tests/tsc/numericStringLiteralTypes.json index f50c88cbcf8f..13039e8f258c 100644 --- a/crates/swc_ecma_parser/tests/tsc/numericStringLiteralTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/numericStringLiteralTypes.json @@ -652,7 +652,7 @@ "type": "Identifier", "span": { "start": 331, - "end": 343, + "end": 332, "ctxt": 0 }, "value": "a", @@ -696,7 +696,7 @@ "type": "Identifier", "span": { "start": 345, - "end": 359, + "end": 346, "ctxt": 0 }, "value": "x", @@ -878,7 +878,7 @@ "type": "Identifier", "span": { "start": 408, - "end": 420, + "end": 409, "ctxt": 0 }, "value": "a", @@ -922,7 +922,7 @@ "type": "Identifier", "span": { "start": 422, - "end": 445, + "end": 423, "ctxt": 0 }, "value": "x", @@ -1996,7 +1996,7 @@ "type": "Identifier", "span": { "start": 875, - "end": 883, + "end": 880, "ctxt": 0 }, "value": "value", @@ -2163,7 +2163,7 @@ "type": "Identifier", "span": { "start": 952, - "end": 970, + "end": 962, "ctxt": 0 }, "value": "containers", @@ -2236,7 +2236,7 @@ "type": "Identifier", "span": { "start": 972, - "end": 1022, + "end": 980, "ctxt": 0 }, "value": "callback", diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralContextualTyping.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralContextualTyping.json index e283e79aa27d..9286b1ae921f 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralContextualTyping.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralContextualTyping.json @@ -145,7 +145,7 @@ "type": "Identifier", "span": { "start": 457, - "end": 467, + "end": 461, "ctxt": 0 }, "value": "item", @@ -234,7 +234,7 @@ "type": "Identifier", "span": { "start": 499, - "end": 508, + "end": 503, "ctxt": 0 }, "value": "item", @@ -910,7 +910,7 @@ "type": "Identifier", "span": { "start": 785, - "end": 801, + "end": 790, "ctxt": 0 }, "value": "param", diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignment.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignment.json index 1699542d5d8d..e2e3420abcc6 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignment.json @@ -309,7 +309,7 @@ "type": "Identifier", "span": { "start": 140, - "end": 160, + "end": 143, "ctxt": 0 }, "value": "obj", @@ -446,7 +446,7 @@ "type": "Identifier", "span": { "start": 186, - "end": 198, + "end": 190, "ctxt": 0 }, "value": "name", @@ -482,7 +482,7 @@ "type": "Identifier", "span": { "start": 200, - "end": 210, + "end": 202, "ctxt": 0 }, "value": "id", @@ -592,7 +592,7 @@ "type": "Identifier", "span": { "start": 251, - "end": 263, + "end": 255, "ctxt": 0 }, "value": "name", @@ -628,7 +628,7 @@ "type": "Identifier", "span": { "start": 265, - "end": 275, + "end": 267, "ctxt": 0 }, "value": "id", @@ -728,7 +728,7 @@ "type": "Identifier", "span": { "start": 311, - "end": 323, + "end": 315, "ctxt": 0 }, "value": "name", @@ -764,7 +764,7 @@ "type": "Identifier", "span": { "start": 325, - "end": 335, + "end": 327, "ctxt": 0 }, "value": "id", diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentES6.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentES6.json index 8a9c6307f372..56f96a1e6e91 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentES6.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentES6.json @@ -309,7 +309,7 @@ "type": "Identifier", "span": { "start": 155, - "end": 176, + "end": 158, "ctxt": 0 }, "value": "obj", @@ -446,7 +446,7 @@ "type": "Identifier", "span": { "start": 202, - "end": 214, + "end": 206, "ctxt": 0 }, "value": "name", @@ -482,7 +482,7 @@ "type": "Identifier", "span": { "start": 216, - "end": 226, + "end": 218, "ctxt": 0 }, "value": "id", @@ -592,7 +592,7 @@ "type": "Identifier", "span": { "start": 267, - "end": 279, + "end": 271, "ctxt": 0 }, "value": "name", @@ -628,7 +628,7 @@ "type": "Identifier", "span": { "start": 281, - "end": 291, + "end": 283, "ctxt": 0 }, "value": "id", @@ -728,7 +728,7 @@ "type": "Identifier", "span": { "start": 327, - "end": 339, + "end": 331, "ctxt": 0 }, "value": "name", @@ -764,7 +764,7 @@ "type": "Identifier", "span": { "start": 341, - "end": 351, + "end": 343, "ctxt": 0 }, "value": "id", diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentError.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentError.json index 34296b08d6ce..a14aa0e75879 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentError.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentError.json @@ -409,7 +409,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 192, + "end": 184, "ctxt": 0 }, "value": "name", @@ -445,7 +445,7 @@ "type": "Identifier", "span": { "start": 194, - "end": 204, + "end": 196, "ctxt": 0 }, "value": "id", @@ -654,7 +654,7 @@ "type": "Identifier", "span": { "start": 284, - "end": 318, + "end": 287, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.json index a68374e4009c..a3ba6f8480a0 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.json @@ -309,7 +309,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 158, + "end": 150, "ctxt": 0 }, "value": "name", @@ -345,7 +345,7 @@ "type": "Identifier", "span": { "start": 160, - "end": 170, + "end": 162, "ctxt": 0 }, "value": "id", @@ -554,7 +554,7 @@ "type": "Identifier", "span": { "start": 250, - "end": 262, + "end": 254, "ctxt": 0 }, "value": "name", @@ -590,7 +590,7 @@ "type": "Identifier", "span": { "start": 264, - "end": 274, + "end": 266, "ctxt": 0 }, "value": "id", diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument.json index 467022bdd79d..27077d999dd2 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument.json @@ -210,7 +210,7 @@ "type": "Identifier", "span": { "start": 110, - "end": 141, + "end": 111, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument2.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument2.json index 9487b2b35acc..301e57772310 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument2.json @@ -210,7 +210,7 @@ "type": "Identifier", "span": { "start": 110, - "end": 138, + "end": 111, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/objectRest.json b/crates/swc_ecma_parser/tests/tsc/objectRest.json index 0e44acaccc4b..80a4a9c4e343 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRest.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRest.json @@ -2449,7 +2449,7 @@ "type": "Identifier", "span": { "start": 833, - "end": 846, + "end": 838, "ctxt": 0 }, "value": "value", @@ -2613,7 +2613,7 @@ "type": "Identifier", "span": { "start": 902, - "end": 915, + "end": 907, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/objectRest2.json b/crates/swc_ecma_parser/tests/tsc/objectRest2.json index 413ad6b0843e..1f569410a675 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRest2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRest2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 92, - "end": 107, + "end": 99, "ctxt": 0 }, "value": "objects", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 109, - "end": 118, + "end": 113, "ctxt": 0 }, "value": "args", @@ -147,7 +147,7 @@ "type": "Identifier", "span": { "start": 149, - "end": 161, + "end": 153, "ctxt": 0 }, "value": "name", diff --git a/crates/swc_ecma_parser/tests/tsc/objectRestNegative.json b/crates/swc_ecma_parser/tests/tsc/objectRestNegative.json index d42f26289e3d..5a6e9eb6e95d 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRestNegative.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRestNegative.json @@ -656,7 +656,7 @@ "type": "Identifier", "span": { "start": 285, - "end": 289, + "end": 286, "ctxt": 0 }, "value": "t", diff --git a/crates/swc_ecma_parser/tests/tsc/objectRestParameter.json b/crates/swc_ecma_parser/tests/tsc/objectRestParameter.json index b1b1f8117e68..0d830ce38db9 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRestParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRestParameter.json @@ -248,7 +248,7 @@ "type": "Identifier", "span": { "start": 120, - "end": 163, + "end": 121, "ctxt": 0 }, "value": "f", @@ -272,7 +272,7 @@ "type": "Identifier", "span": { "start": 124, - "end": 154, + "end": 125, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/objectRestParameterES5.json b/crates/swc_ecma_parser/tests/tsc/objectRestParameterES5.json index 39b1190c7bb8..0fade53733b9 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRestParameterES5.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRestParameterES5.json @@ -248,7 +248,7 @@ "type": "Identifier", "span": { "start": 117, - "end": 160, + "end": 118, "ctxt": 0 }, "value": "f", @@ -272,7 +272,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 151, + "end": 122, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/objectSpread.json b/crates/swc_ecma_parser/tests/tsc/objectSpread.json index 9557303e7ec2..9f449f24c029 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectSpread.json +++ b/crates/swc_ecma_parser/tests/tsc/objectSpread.json @@ -2801,7 +2801,7 @@ "type": "Identifier", "span": { "start": 1211, - "end": 1235, + "end": 1215, "ctxt": 0 }, "value": "this", @@ -2889,7 +2889,7 @@ "type": "Identifier", "span": { "start": 1237, - "end": 1251, + "end": 1243, "ctxt": 0 }, "value": "header", @@ -2935,7 +2935,7 @@ "type": "Identifier", "span": { "start": 1253, - "end": 1270, + "end": 1262, "ctxt": 0 }, "value": "authToken", @@ -3150,7 +3150,7 @@ "type": "Identifier", "span": { "start": 1456, - "end": 1466, + "end": 1457, "ctxt": 0 }, "value": "b", @@ -3645,7 +3645,7 @@ "type": "Identifier", "span": { "start": 1665, - "end": 1675, + "end": 1667, "ctxt": 0 }, "value": "nt", @@ -4140,7 +4140,7 @@ "type": "Identifier", "span": { "start": 1875, - "end": 1885, + "end": 1877, "ctxt": 0 }, "value": "st", @@ -5701,7 +5701,7 @@ "type": "Identifier", "span": { "start": 2616, - "end": 2648, + "end": 2631, "ctxt": 0 }, "value": "definiteBoolean", @@ -5779,7 +5779,7 @@ "type": "Identifier", "span": { "start": 2654, - "end": 2684, + "end": 2668, "ctxt": 0 }, "value": "definiteString", @@ -5857,7 +5857,7 @@ "type": "Identifier", "span": { "start": 2690, - "end": 2721, + "end": 2704, "ctxt": 0 }, "value": "optionalString", @@ -5935,7 +5935,7 @@ "type": "Identifier", "span": { "start": 2727, - "end": 2758, + "end": 2741, "ctxt": 0 }, "value": "optionalNumber", @@ -7372,7 +7372,7 @@ "type": "Identifier", "span": { "start": 3584, - "end": 3588, + "end": 3585, "ctxt": 0 }, "value": "t", @@ -7418,7 +7418,7 @@ "type": "Identifier", "span": { "start": 3590, - "end": 3594, + "end": 3591, "ctxt": 0 }, "value": "u", @@ -8887,7 +8887,7 @@ "type": "Identifier", "span": { "start": 4079, - "end": 4083, + "end": 4080, "ctxt": 0 }, "value": "t", @@ -8933,7 +8933,7 @@ "type": "Identifier", "span": { "start": 4085, - "end": 4089, + "end": 4086, "ctxt": 0 }, "value": "u", @@ -8979,7 +8979,7 @@ "type": "Identifier", "span": { "start": 4091, - "end": 4099, + "end": 4092, "ctxt": 0 }, "value": "v", @@ -9054,7 +9054,7 @@ "type": "Identifier", "span": { "start": 4101, - "end": 4121, + "end": 4102, "ctxt": 0 }, "value": "w", @@ -9161,7 +9161,7 @@ "type": "Identifier", "span": { "start": 4123, - "end": 4141, + "end": 4126, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/tsc/objectSpreadRepeatedComplexity.json b/crates/swc_ecma_parser/tests/tsc/objectSpreadRepeatedComplexity.json index ae7886f1a6e3..2c279cdd66aa 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectSpreadRepeatedComplexity.json +++ b/crates/swc_ecma_parser/tests/tsc/objectSpreadRepeatedComplexity.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 29, - "end": 57, + "end": 32, "ctxt": 0 }, "value": "cnd", diff --git a/crates/swc_ecma_parser/tests/tsc/objectSpreadRepeatedNullCheckPerf.json b/crates/swc_ecma_parser/tests/tsc/objectSpreadRepeatedNullCheckPerf.json index ca74f6f38ed9..d201e8e7b0b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectSpreadRepeatedNullCheckPerf.json +++ b/crates/swc_ecma_parser/tests/tsc/objectSpreadRepeatedNullCheckPerf.json @@ -1129,7 +1129,7 @@ "type": "Identifier", "span": { "start": 688, - "end": 718, + "end": 694, "ctxt": 0 }, "value": "config", diff --git a/crates/swc_ecma_parser/tests/tsc/objectSpreadSetonlyAccessor.json b/crates/swc_ecma_parser/tests/tsc/objectSpreadSetonlyAccessor.json index d325f8b54a4f..7b9b75c4b840 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectSpreadSetonlyAccessor.json +++ b/crates/swc_ecma_parser/tests/tsc/objectSpreadSetonlyAccessor.json @@ -201,7 +201,7 @@ "type": "Identifier", "span": { "start": 105, - "end": 115, + "end": 107, "ctxt": 0 }, "value": "_v", @@ -397,7 +397,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 190, + "end": 182, "ctxt": 0 }, "value": "_v", diff --git a/crates/swc_ecma_parser/tests/tsc/objectSpreadStrictNull.json b/crates/swc_ecma_parser/tests/tsc/objectSpreadStrictNull.json index 83368e64efd2..4957c2254ed4 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectSpreadStrictNull.json +++ b/crates/swc_ecma_parser/tests/tsc/objectSpreadStrictNull.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 45, - "end": 77, + "end": 60, "ctxt": 0 }, "value": "definiteBoolean", @@ -110,7 +110,7 @@ "type": "Identifier", "span": { "start": 83, - "end": 113, + "end": 97, "ctxt": 0 }, "value": "definiteString", @@ -188,7 +188,7 @@ "type": "Identifier", "span": { "start": 119, - "end": 150, + "end": 133, "ctxt": 0 }, "value": "optionalString", @@ -266,7 +266,7 @@ "type": "Identifier", "span": { "start": 156, - "end": 187, + "end": 170, "ctxt": 0 }, "value": "optionalNumber", @@ -344,7 +344,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 236, + "end": 208, "ctxt": 0 }, "value": "undefinedString", @@ -441,7 +441,7 @@ "type": "Identifier", "span": { "start": 242, - "end": 285, + "end": 257, "ctxt": 0 }, "value": "undefinedNumber", @@ -2376,7 +2376,7 @@ "type": "Identifier", "span": { "start": 1573, - "end": 1587, + "end": 1579, "ctxt": 0 }, "value": "fields", @@ -2422,7 +2422,7 @@ "type": "Identifier", "span": { "start": 1589, - "end": 1619, + "end": 1602, "ctxt": 0 }, "value": "partialFields", @@ -2496,7 +2496,7 @@ "type": "Identifier", "span": { "start": 1621, - "end": 1661, + "end": 1640, "ctxt": 0 }, "value": "nearlyPartialFields", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureAppearsToBeFunctionType.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureAppearsToBeFunctionType.json index eaa5cd284f5e..970124188b66 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureAppearsToBeFunctionType.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureAppearsToBeFunctionType.json @@ -236,7 +236,7 @@ "type": "Identifier", "span": { "start": 187, - "end": 193, + "end": 188, "ctxt": 0 }, "value": "x", @@ -263,7 +263,7 @@ "type": "Identifier", "span": { "start": 195, - "end": 202, + "end": 196, "ctxt": 0 }, "value": "y", @@ -530,7 +530,7 @@ "type": "Identifier", "span": { "start": 279, - "end": 285, + "end": 280, "ctxt": 0 }, "value": "x", @@ -557,7 +557,7 @@ "type": "Identifier", "span": { "start": 287, - "end": 294, + "end": 288, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.json index 96fbe57ed68b..67fb34cbbcf6 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.json @@ -224,7 +224,7 @@ "type": "Identifier", "span": { "start": 206, - "end": 212, + "end": 207, "ctxt": 0 }, "value": "a", @@ -251,7 +251,7 @@ "type": "Identifier", "span": { "start": 214, - "end": 221, + "end": 215, "ctxt": 0 }, "value": "b", @@ -319,7 +319,7 @@ "type": "Identifier", "span": { "start": 239, - "end": 254, + "end": 246, "ctxt": 0 }, "value": "thisArg", @@ -518,7 +518,7 @@ "type": "Identifier", "span": { "start": 307, - "end": 313, + "end": 308, "ctxt": 0 }, "value": "a", @@ -545,7 +545,7 @@ "type": "Identifier", "span": { "start": 315, - "end": 322, + "end": 316, "ctxt": 0 }, "value": "b", @@ -667,7 +667,7 @@ "type": "Identifier", "span": { "start": 353, - "end": 368, + "end": 360, "ctxt": 0 }, "value": "thisArg", @@ -1074,7 +1074,7 @@ "type": "Identifier", "span": { "start": 525, - "end": 531, + "end": 526, "ctxt": 0 }, "value": "a", @@ -1101,7 +1101,7 @@ "type": "Identifier", "span": { "start": 533, - "end": 540, + "end": 534, "ctxt": 0 }, "value": "b", @@ -1169,7 +1169,7 @@ "type": "Identifier", "span": { "start": 558, - "end": 573, + "end": 565, "ctxt": 0 }, "value": "thisArg", @@ -1315,7 +1315,7 @@ "type": "Identifier", "span": { "start": 616, - "end": 622, + "end": 617, "ctxt": 0 }, "value": "a", @@ -1342,7 +1342,7 @@ "type": "Identifier", "span": { "start": 624, - "end": 631, + "end": 625, "ctxt": 0 }, "value": "b", @@ -1464,7 +1464,7 @@ "type": "Identifier", "span": { "start": 662, - "end": 677, + "end": 669, "ctxt": 0 }, "value": "thisArg", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfFunction.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfFunction.json index e4e26c295c08..fa389d169320 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfFunction.json @@ -86,7 +86,7 @@ "type": "Identifier", "span": { "start": 139, - "end": 145, + "end": 140, "ctxt": 0 }, "value": "a", @@ -113,7 +113,7 @@ "type": "Identifier", "span": { "start": 147, - "end": 154, + "end": 148, "ctxt": 0 }, "value": "b", @@ -181,7 +181,7 @@ "type": "Identifier", "span": { "start": 172, - "end": 187, + "end": 179, "ctxt": 0 }, "value": "thisArg", @@ -380,7 +380,7 @@ "type": "Identifier", "span": { "start": 240, - "end": 246, + "end": 241, "ctxt": 0 }, "value": "a", @@ -407,7 +407,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 255, + "end": 249, "ctxt": 0 }, "value": "b", @@ -529,7 +529,7 @@ "type": "Identifier", "span": { "start": 286, - "end": 301, + "end": 293, "ctxt": 0 }, "value": "thisArg", @@ -808,7 +808,7 @@ "type": "Identifier", "span": { "start": 401, - "end": 407, + "end": 402, "ctxt": 0 }, "value": "a", @@ -835,7 +835,7 @@ "type": "Identifier", "span": { "start": 409, - "end": 416, + "end": 410, "ctxt": 0 }, "value": "b", @@ -903,7 +903,7 @@ "type": "Identifier", "span": { "start": 434, - "end": 449, + "end": 441, "ctxt": 0 }, "value": "thisArg", @@ -1049,7 +1049,7 @@ "type": "Identifier", "span": { "start": 492, - "end": 498, + "end": 493, "ctxt": 0 }, "value": "a", @@ -1076,7 +1076,7 @@ "type": "Identifier", "span": { "start": 500, - "end": 507, + "end": 501, "ctxt": 0 }, "value": "b", @@ -1198,7 +1198,7 @@ "type": "Identifier", "span": { "start": 538, - "end": 553, + "end": 545, "ctxt": 0 }, "value": "thisArg", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureAppearsToBeFunctionType.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureAppearsToBeFunctionType.json index eab2f5b8ac84..89577bf43ca5 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureAppearsToBeFunctionType.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureAppearsToBeFunctionType.json @@ -304,7 +304,7 @@ "type": "Identifier", "span": { "start": 136, - "end": 142, + "end": 137, "ctxt": 0 }, "value": "x", @@ -331,7 +331,7 @@ "type": "Identifier", "span": { "start": 144, - "end": 151, + "end": 145, "ctxt": 0 }, "value": "y", @@ -666,7 +666,7 @@ "type": "Identifier", "span": { "start": 262, - "end": 268, + "end": 263, "ctxt": 0 }, "value": "x", @@ -693,7 +693,7 @@ "type": "Identifier", "span": { "start": 270, - "end": 277, + "end": 271, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.json index 61379c9f94a1..1d471337388f 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.json @@ -224,7 +224,7 @@ "type": "Identifier", "span": { "start": 111, - "end": 117, + "end": 112, "ctxt": 0 }, "value": "a", @@ -251,7 +251,7 @@ "type": "Identifier", "span": { "start": 119, - "end": 126, + "end": 120, "ctxt": 0 }, "value": "b", @@ -319,7 +319,7 @@ "type": "Identifier", "span": { "start": 144, - "end": 159, + "end": 151, "ctxt": 0 }, "value": "thisArg", @@ -518,7 +518,7 @@ "type": "Identifier", "span": { "start": 212, - "end": 218, + "end": 213, "ctxt": 0 }, "value": "a", @@ -545,7 +545,7 @@ "type": "Identifier", "span": { "start": 220, - "end": 227, + "end": 221, "ctxt": 0 }, "value": "b", @@ -667,7 +667,7 @@ "type": "Identifier", "span": { "start": 258, - "end": 273, + "end": 265, "ctxt": 0 }, "value": "thisArg", @@ -1074,7 +1074,7 @@ "type": "Identifier", "span": { "start": 435, - "end": 441, + "end": 436, "ctxt": 0 }, "value": "a", @@ -1101,7 +1101,7 @@ "type": "Identifier", "span": { "start": 443, - "end": 450, + "end": 444, "ctxt": 0 }, "value": "b", @@ -1169,7 +1169,7 @@ "type": "Identifier", "span": { "start": 468, - "end": 483, + "end": 475, "ctxt": 0 }, "value": "thisArg", @@ -1315,7 +1315,7 @@ "type": "Identifier", "span": { "start": 526, - "end": 532, + "end": 527, "ctxt": 0 }, "value": "a", @@ -1342,7 +1342,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 541, + "end": 535, "ctxt": 0 }, "value": "b", @@ -1464,7 +1464,7 @@ "type": "Identifier", "span": { "start": 572, - "end": 587, + "end": 579, "ctxt": 0 }, "value": "thisArg", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfFunction.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfFunction.json index 37881347eb08..078161e5809c 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfFunction.json @@ -86,7 +86,7 @@ "type": "Identifier", "span": { "start": 44, - "end": 50, + "end": 45, "ctxt": 0 }, "value": "a", @@ -113,7 +113,7 @@ "type": "Identifier", "span": { "start": 52, - "end": 59, + "end": 53, "ctxt": 0 }, "value": "b", @@ -181,7 +181,7 @@ "type": "Identifier", "span": { "start": 77, - "end": 92, + "end": 84, "ctxt": 0 }, "value": "thisArg", @@ -380,7 +380,7 @@ "type": "Identifier", "span": { "start": 145, - "end": 151, + "end": 146, "ctxt": 0 }, "value": "a", @@ -407,7 +407,7 @@ "type": "Identifier", "span": { "start": 153, - "end": 160, + "end": 154, "ctxt": 0 }, "value": "b", @@ -529,7 +529,7 @@ "type": "Identifier", "span": { "start": 191, - "end": 206, + "end": 198, "ctxt": 0 }, "value": "thisArg", @@ -808,7 +808,7 @@ "type": "Identifier", "span": { "start": 311, - "end": 317, + "end": 312, "ctxt": 0 }, "value": "a", @@ -835,7 +835,7 @@ "type": "Identifier", "span": { "start": 319, - "end": 326, + "end": 320, "ctxt": 0 }, "value": "b", @@ -903,7 +903,7 @@ "type": "Identifier", "span": { "start": 344, - "end": 359, + "end": 351, "ctxt": 0 }, "value": "thisArg", @@ -1049,7 +1049,7 @@ "type": "Identifier", "span": { "start": 402, - "end": 408, + "end": 403, "ctxt": 0 }, "value": "a", @@ -1076,7 +1076,7 @@ "type": "Identifier", "span": { "start": 410, - "end": 417, + "end": 411, "ctxt": 0 }, "value": "b", @@ -1198,7 +1198,7 @@ "type": "Identifier", "span": { "start": 448, - "end": 463, + "end": 455, "ctxt": 0 }, "value": "thisArg", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithRecursiveWrappedPropertyCheckedNominally.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithRecursiveWrappedPropertyCheckedNominally.json index 20b631c58999..019df53d51d3 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithRecursiveWrappedPropertyCheckedNominally.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithRecursiveWrappedPropertyCheckedNominally.json @@ -1148,7 +1148,7 @@ "type": "Identifier", "span": { "start": 711, - "end": 715, + "end": 712, "ctxt": 0 }, "value": "t", @@ -1194,7 +1194,7 @@ "type": "Identifier", "span": { "start": 717, - "end": 721, + "end": 718, "ctxt": 0 }, "value": "u", @@ -1785,7 +1785,7 @@ "type": "Identifier", "span": { "start": 948, - "end": 952, + "end": 949, "ctxt": 0 }, "value": "t", @@ -1831,7 +1831,7 @@ "type": "Identifier", "span": { "start": 954, - "end": 958, + "end": 955, "ctxt": 0 }, "value": "u", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithStringAndNumberIndexSignatureToAny.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithStringAndNumberIndexSignatureToAny.json index 200c7321c6f6..fd66a3142082 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithStringAndNumberIndexSignatureToAny.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithStringAndNumberIndexSignatureToAny.json @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 808, - "end": 829, + "end": 814, "ctxt": 0 }, "value": "sToAny", @@ -624,7 +624,7 @@ "type": "Identifier", "span": { "start": 831, - "end": 852, + "end": 837, "ctxt": 0 }, "value": "nToAny", @@ -688,7 +688,7 @@ "type": "Identifier", "span": { "start": 854, - "end": 887, + "end": 863, "ctxt": 0 }, "value": "bothToAny", @@ -752,7 +752,7 @@ "type": "Identifier", "span": { "start": 889, - "end": 901, + "end": 896, "ctxt": 0 }, "value": "someObj", @@ -1290,7 +1290,7 @@ "type": "Identifier", "span": { "start": 1199, - "end": 1220, + "end": 1205, "ctxt": 0 }, "value": "sToAny", @@ -1354,7 +1354,7 @@ "type": "Identifier", "span": { "start": 1222, - "end": 1243, + "end": 1228, "ctxt": 0 }, "value": "nToAny", @@ -1418,7 +1418,7 @@ "type": "Identifier", "span": { "start": 1245, - "end": 1285, + "end": 1254, "ctxt": 0 }, "value": "bothToAny", @@ -1529,7 +1529,7 @@ "type": "Identifier", "span": { "start": 1287, - "end": 1299, + "end": 1294, "ctxt": 0 }, "value": "someObj", @@ -2211,7 +2211,7 @@ "type": "Identifier", "span": { "start": 1717, - "end": 1738, + "end": 1723, "ctxt": 0 }, "value": "sToAny", @@ -2275,7 +2275,7 @@ "type": "Identifier", "span": { "start": 1740, - "end": 1765, + "end": 1749, "ctxt": 0 }, "value": "nToNumber", @@ -2321,7 +2321,7 @@ "type": "Identifier", "span": { "start": 1767, - "end": 1810, + "end": 1783, "ctxt": 0 }, "value": "strToAnyNumToNum", @@ -2367,7 +2367,7 @@ "type": "Identifier", "span": { "start": 1812, - "end": 1824, + "end": 1819, "ctxt": 0 }, "value": "someObj", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity.json index 459ff4828ba0..c37ca13daa22 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity.json @@ -518,7 +518,7 @@ "type": "Identifier", "span": { "start": 227, - "end": 231, + "end": 228, "ctxt": 0 }, "value": "x", @@ -591,7 +591,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 252, + "end": 249, "ctxt": 0 }, "value": "x", @@ -664,7 +664,7 @@ "type": "Identifier", "span": { "start": 278, - "end": 284, + "end": 279, "ctxt": 0 }, "value": "x", @@ -735,7 +735,7 @@ "type": "Identifier", "span": { "start": 306, - "end": 310, + "end": 307, "ctxt": 0 }, "value": "x", @@ -808,7 +808,7 @@ "type": "Identifier", "span": { "start": 328, - "end": 332, + "end": 329, "ctxt": 0 }, "value": "x", @@ -881,7 +881,7 @@ "type": "Identifier", "span": { "start": 359, - "end": 365, + "end": 360, "ctxt": 0 }, "value": "x", @@ -952,7 +952,7 @@ "type": "Identifier", "span": { "start": 387, - "end": 399, + "end": 388, "ctxt": 0 }, "value": "x", @@ -1043,7 +1043,7 @@ "type": "Identifier", "span": { "start": 417, - "end": 429, + "end": 418, "ctxt": 0 }, "value": "x", @@ -1134,7 +1134,7 @@ "type": "Identifier", "span": { "start": 456, - "end": 462, + "end": 457, "ctxt": 0 }, "value": "x", @@ -1205,7 +1205,7 @@ "type": "Identifier", "span": { "start": 483, - "end": 487, + "end": 484, "ctxt": 0 }, "value": "x", @@ -1278,7 +1278,7 @@ "type": "Identifier", "span": { "start": 504, - "end": 508, + "end": 505, "ctxt": 0 }, "value": "x", @@ -1351,7 +1351,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 540, + "end": 535, "ctxt": 0 }, "value": "x", @@ -1422,7 +1422,7 @@ "type": "Identifier", "span": { "start": 561, - "end": 572, + "end": 562, "ctxt": 0 }, "value": "x", @@ -1495,7 +1495,7 @@ "type": "Identifier", "span": { "start": 589, - "end": 600, + "end": 590, "ctxt": 0 }, "value": "x", @@ -1568,7 +1568,7 @@ "type": "Identifier", "span": { "start": 626, - "end": 632, + "end": 627, "ctxt": 0 }, "value": "x", @@ -1639,7 +1639,7 @@ "type": "Identifier", "span": { "start": 653, - "end": 664, + "end": 654, "ctxt": 0 }, "value": "x", @@ -1712,7 +1712,7 @@ "type": "Identifier", "span": { "start": 681, - "end": 692, + "end": 682, "ctxt": 0 }, "value": "x", @@ -1785,7 +1785,7 @@ "type": "Identifier", "span": { "start": 718, - "end": 724, + "end": 719, "ctxt": 0 }, "value": "x", @@ -1856,7 +1856,7 @@ "type": "Identifier", "span": { "start": 745, - "end": 749, + "end": 746, "ctxt": 0 }, "value": "x", @@ -1929,7 +1929,7 @@ "type": "Identifier", "span": { "start": 766, - "end": 770, + "end": 767, "ctxt": 0 }, "value": "x", @@ -2002,7 +2002,7 @@ "type": "Identifier", "span": { "start": 796, - "end": 802, + "end": 797, "ctxt": 0 }, "value": "x", @@ -2073,7 +2073,7 @@ "type": "Identifier", "span": { "start": 824, - "end": 828, + "end": 825, "ctxt": 0 }, "value": "x", @@ -2146,7 +2146,7 @@ "type": "Identifier", "span": { "start": 846, - "end": 858, + "end": 847, "ctxt": 0 }, "value": "x", @@ -2237,7 +2237,7 @@ "type": "Identifier", "span": { "start": 885, - "end": 891, + "end": 886, "ctxt": 0 }, "value": "x", @@ -2308,7 +2308,7 @@ "type": "Identifier", "span": { "start": 912, - "end": 916, + "end": 913, "ctxt": 0 }, "value": "x", @@ -2381,7 +2381,7 @@ "type": "Identifier", "span": { "start": 933, - "end": 937, + "end": 934, "ctxt": 0 }, "value": "x", @@ -2454,7 +2454,7 @@ "type": "Identifier", "span": { "start": 963, - "end": 969, + "end": 964, "ctxt": 0 }, "value": "x", @@ -2525,7 +2525,7 @@ "type": "Identifier", "span": { "start": 990, - "end": 994, + "end": 991, "ctxt": 0 }, "value": "x", @@ -2598,7 +2598,7 @@ "type": "Identifier", "span": { "start": 1011, - "end": 1022, + "end": 1012, "ctxt": 0 }, "value": "x", @@ -2671,7 +2671,7 @@ "type": "Identifier", "span": { "start": 1048, - "end": 1054, + "end": 1049, "ctxt": 0 }, "value": "x", @@ -2742,7 +2742,7 @@ "type": "Identifier", "span": { "start": 1075, - "end": 1079, + "end": 1076, "ctxt": 0 }, "value": "x", @@ -2815,7 +2815,7 @@ "type": "Identifier", "span": { "start": 1096, - "end": 1100, + "end": 1097, "ctxt": 0 }, "value": "x", @@ -2888,7 +2888,7 @@ "type": "Identifier", "span": { "start": 1126, - "end": 1132, + "end": 1127, "ctxt": 0 }, "value": "x", @@ -2959,7 +2959,7 @@ "type": "Identifier", "span": { "start": 1153, - "end": 1157, + "end": 1154, "ctxt": 0 }, "value": "x", @@ -3032,7 +3032,7 @@ "type": "Identifier", "span": { "start": 1174, - "end": 1186, + "end": 1175, "ctxt": 0 }, "value": "x", @@ -3123,7 +3123,7 @@ "type": "Identifier", "span": { "start": 1212, - "end": 1218, + "end": 1213, "ctxt": 0 }, "value": "x", @@ -3194,7 +3194,7 @@ "type": "Identifier", "span": { "start": 1240, - "end": 1244, + "end": 1241, "ctxt": 0 }, "value": "x", @@ -3267,7 +3267,7 @@ "type": "Identifier", "span": { "start": 1262, - "end": 1273, + "end": 1263, "ctxt": 0 }, "value": "x", @@ -3340,7 +3340,7 @@ "type": "Identifier", "span": { "start": 1300, - "end": 1306, + "end": 1301, "ctxt": 0 }, "value": "x", @@ -3411,7 +3411,7 @@ "type": "Identifier", "span": { "start": 1328, - "end": 1332, + "end": 1329, "ctxt": 0 }, "value": "x", @@ -3484,7 +3484,7 @@ "type": "Identifier", "span": { "start": 1350, - "end": 1361, + "end": 1351, "ctxt": 0 }, "value": "x", @@ -3557,7 +3557,7 @@ "type": "Identifier", "span": { "start": 1388, - "end": 1394, + "end": 1389, "ctxt": 0 }, "value": "x", @@ -3628,7 +3628,7 @@ "type": "Identifier", "span": { "start": 1416, - "end": 1420, + "end": 1417, "ctxt": 0 }, "value": "x", @@ -3701,7 +3701,7 @@ "type": "Identifier", "span": { "start": 1438, - "end": 1450, + "end": 1439, "ctxt": 0 }, "value": "x", @@ -3792,7 +3792,7 @@ "type": "Identifier", "span": { "start": 1477, - "end": 1483, + "end": 1478, "ctxt": 0 }, "value": "x", @@ -3863,7 +3863,7 @@ "type": "Identifier", "span": { "start": 1505, - "end": 1509, + "end": 1506, "ctxt": 0 }, "value": "x", @@ -3936,7 +3936,7 @@ "type": "Identifier", "span": { "start": 1527, - "end": 1538, + "end": 1528, "ctxt": 0 }, "value": "x", @@ -4009,7 +4009,7 @@ "type": "Identifier", "span": { "start": 1565, - "end": 1571, + "end": 1566, "ctxt": 0 }, "value": "x", @@ -4080,7 +4080,7 @@ "type": "Identifier", "span": { "start": 1593, - "end": 1597, + "end": 1594, "ctxt": 0 }, "value": "x", @@ -4153,7 +4153,7 @@ "type": "Identifier", "span": { "start": 1615, - "end": 1626, + "end": 1616, "ctxt": 0 }, "value": "x", @@ -4226,7 +4226,7 @@ "type": "Identifier", "span": { "start": 1653, - "end": 1659, + "end": 1654, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity2.json index 85a0f13eddf7..d755b8e50ef8 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity2.json @@ -597,7 +597,7 @@ "type": "Identifier", "span": { "start": 240, - "end": 244, + "end": 241, "ctxt": 0 }, "value": "x", @@ -670,7 +670,7 @@ "type": "Identifier", "span": { "start": 261, - "end": 265, + "end": 262, "ctxt": 0 }, "value": "x", @@ -743,7 +743,7 @@ "type": "Identifier", "span": { "start": 288, - "end": 294, + "end": 289, "ctxt": 0 }, "value": "x", @@ -814,7 +814,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 320, + "end": 317, "ctxt": 0 }, "value": "x", @@ -887,7 +887,7 @@ "type": "Identifier", "span": { "start": 338, - "end": 350, + "end": 339, "ctxt": 0 }, "value": "x", @@ -978,7 +978,7 @@ "type": "Identifier", "span": { "start": 374, - "end": 380, + "end": 375, "ctxt": 0 }, "value": "x", @@ -1049,7 +1049,7 @@ "type": "Identifier", "span": { "start": 401, - "end": 405, + "end": 402, "ctxt": 0 }, "value": "x", @@ -1122,7 +1122,7 @@ "type": "Identifier", "span": { "start": 422, - "end": 426, + "end": 423, "ctxt": 0 }, "value": "x", @@ -1195,7 +1195,7 @@ "type": "Identifier", "span": { "start": 449, - "end": 455, + "end": 450, "ctxt": 0 }, "value": "x", @@ -1266,7 +1266,7 @@ "type": "Identifier", "span": { "start": 476, - "end": 480, + "end": 477, "ctxt": 0 }, "value": "x", @@ -1339,7 +1339,7 @@ "type": "Identifier", "span": { "start": 497, - "end": 508, + "end": 498, "ctxt": 0 }, "value": "x", @@ -1412,7 +1412,7 @@ "type": "Identifier", "span": { "start": 531, - "end": 537, + "end": 532, "ctxt": 0 }, "value": "x", @@ -1483,7 +1483,7 @@ "type": "Identifier", "span": { "start": 558, - "end": 562, + "end": 559, "ctxt": 0 }, "value": "x", @@ -1556,7 +1556,7 @@ "type": "Identifier", "span": { "start": 579, - "end": 583, + "end": 580, "ctxt": 0 }, "value": "x", @@ -1629,7 +1629,7 @@ "type": "Identifier", "span": { "start": 606, - "end": 612, + "end": 607, "ctxt": 0 }, "value": "x", @@ -1700,7 +1700,7 @@ "type": "Identifier", "span": { "start": 633, - "end": 637, + "end": 634, "ctxt": 0 }, "value": "x", @@ -1773,7 +1773,7 @@ "type": "Identifier", "span": { "start": 654, - "end": 666, + "end": 655, "ctxt": 0 }, "value": "x", @@ -1864,7 +1864,7 @@ "type": "Identifier", "span": { "start": 689, - "end": 695, + "end": 690, "ctxt": 0 }, "value": "x", @@ -1935,7 +1935,7 @@ "type": "Identifier", "span": { "start": 717, - "end": 721, + "end": 718, "ctxt": 0 }, "value": "x", @@ -2008,7 +2008,7 @@ "type": "Identifier", "span": { "start": 739, - "end": 750, + "end": 740, "ctxt": 0 }, "value": "x", @@ -2081,7 +2081,7 @@ "type": "Identifier", "span": { "start": 774, - "end": 780, + "end": 775, "ctxt": 0 }, "value": "x", @@ -2152,7 +2152,7 @@ "type": "Identifier", "span": { "start": 802, - "end": 806, + "end": 803, "ctxt": 0 }, "value": "x", @@ -2225,7 +2225,7 @@ "type": "Identifier", "span": { "start": 824, - "end": 835, + "end": 825, "ctxt": 0 }, "value": "x", @@ -2298,7 +2298,7 @@ "type": "Identifier", "span": { "start": 859, - "end": 865, + "end": 860, "ctxt": 0 }, "value": "x", @@ -2369,7 +2369,7 @@ "type": "Identifier", "span": { "start": 887, - "end": 891, + "end": 888, "ctxt": 0 }, "value": "x", @@ -2442,7 +2442,7 @@ "type": "Identifier", "span": { "start": 909, - "end": 921, + "end": 910, "ctxt": 0 }, "value": "x", @@ -2533,7 +2533,7 @@ "type": "Identifier", "span": { "start": 945, - "end": 951, + "end": 946, "ctxt": 0 }, "value": "x", @@ -2604,7 +2604,7 @@ "type": "Identifier", "span": { "start": 973, - "end": 977, + "end": 974, "ctxt": 0 }, "value": "x", @@ -2677,7 +2677,7 @@ "type": "Identifier", "span": { "start": 995, - "end": 1006, + "end": 996, "ctxt": 0 }, "value": "x", @@ -2750,7 +2750,7 @@ "type": "Identifier", "span": { "start": 1030, - "end": 1036, + "end": 1031, "ctxt": 0 }, "value": "x", @@ -2821,7 +2821,7 @@ "type": "Identifier", "span": { "start": 1058, - "end": 1062, + "end": 1059, "ctxt": 0 }, "value": "x", @@ -2894,7 +2894,7 @@ "type": "Identifier", "span": { "start": 1080, - "end": 1091, + "end": 1081, "ctxt": 0 }, "value": "x", @@ -2967,7 +2967,7 @@ "type": "Identifier", "span": { "start": 1115, - "end": 1121, + "end": 1116, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures.json index ea56f1076c2b..e494b19d88e3 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 63, - "end": 72, + "end": 64, "ctxt": 0 }, "value": "x", @@ -200,7 +200,7 @@ "type": "Identifier", "span": { "start": 120, - "end": 129, + "end": 121, "ctxt": 0 }, "value": "x", @@ -343,7 +343,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 184, + "end": 181, "ctxt": 0 }, "value": "x", @@ -540,7 +540,7 @@ "type": "Identifier", "span": { "start": 231, - "end": 240, + "end": 232, "ctxt": 0 }, "value": "x", @@ -671,7 +671,7 @@ "type": "Identifier", "span": { "start": 280, - "end": 284, + "end": 281, "ctxt": 0 }, "value": "x", @@ -803,7 +803,7 @@ "type": "Identifier", "span": { "start": 306, - "end": 315, + "end": 307, "ctxt": 0 }, "value": "x", @@ -916,7 +916,7 @@ "type": "Identifier", "span": { "start": 341, - "end": 350, + "end": 342, "ctxt": 0 }, "value": "x", @@ -1012,7 +1012,7 @@ "type": "Identifier", "span": { "start": 385, - "end": 389, + "end": 386, "ctxt": 0 }, "value": "x", @@ -1085,7 +1085,7 @@ "type": "Identifier", "span": { "start": 406, - "end": 410, + "end": 407, "ctxt": 0 }, "value": "x", @@ -1158,7 +1158,7 @@ "type": "Identifier", "span": { "start": 436, - "end": 442, + "end": 437, "ctxt": 0 }, "value": "x", @@ -1229,7 +1229,7 @@ "type": "Identifier", "span": { "start": 464, - "end": 468, + "end": 465, "ctxt": 0 }, "value": "x", @@ -1302,7 +1302,7 @@ "type": "Identifier", "span": { "start": 486, - "end": 490, + "end": 487, "ctxt": 0 }, "value": "x", @@ -1375,7 +1375,7 @@ "type": "Identifier", "span": { "start": 517, - "end": 523, + "end": 518, "ctxt": 0 }, "value": "x", @@ -1446,7 +1446,7 @@ "type": "Identifier", "span": { "start": 545, - "end": 557, + "end": 546, "ctxt": 0 }, "value": "x", @@ -1537,7 +1537,7 @@ "type": "Identifier", "span": { "start": 575, - "end": 587, + "end": 576, "ctxt": 0 }, "value": "x", @@ -1628,7 +1628,7 @@ "type": "Identifier", "span": { "start": 614, - "end": 620, + "end": 615, "ctxt": 0 }, "value": "x", @@ -1699,7 +1699,7 @@ "type": "Identifier", "span": { "start": 641, - "end": 645, + "end": 642, "ctxt": 0 }, "value": "x", @@ -1772,7 +1772,7 @@ "type": "Identifier", "span": { "start": 662, - "end": 666, + "end": 663, "ctxt": 0 }, "value": "x", @@ -1845,7 +1845,7 @@ "type": "Identifier", "span": { "start": 692, - "end": 698, + "end": 693, "ctxt": 0 }, "value": "x", @@ -1916,7 +1916,7 @@ "type": "Identifier", "span": { "start": 719, - "end": 730, + "end": 720, "ctxt": 0 }, "value": "x", @@ -1989,7 +1989,7 @@ "type": "Identifier", "span": { "start": 747, - "end": 758, + "end": 748, "ctxt": 0 }, "value": "x", @@ -2062,7 +2062,7 @@ "type": "Identifier", "span": { "start": 784, - "end": 790, + "end": 785, "ctxt": 0 }, "value": "x", @@ -2133,7 +2133,7 @@ "type": "Identifier", "span": { "start": 811, - "end": 822, + "end": 812, "ctxt": 0 }, "value": "x", @@ -2206,7 +2206,7 @@ "type": "Identifier", "span": { "start": 839, - "end": 850, + "end": 840, "ctxt": 0 }, "value": "x", @@ -2279,7 +2279,7 @@ "type": "Identifier", "span": { "start": 876, - "end": 882, + "end": 877, "ctxt": 0 }, "value": "x", @@ -2350,7 +2350,7 @@ "type": "Identifier", "span": { "start": 903, - "end": 907, + "end": 904, "ctxt": 0 }, "value": "x", @@ -2423,7 +2423,7 @@ "type": "Identifier", "span": { "start": 924, - "end": 928, + "end": 925, "ctxt": 0 }, "value": "x", @@ -2496,7 +2496,7 @@ "type": "Identifier", "span": { "start": 954, - "end": 960, + "end": 955, "ctxt": 0 }, "value": "x", @@ -2567,7 +2567,7 @@ "type": "Identifier", "span": { "start": 982, - "end": 986, + "end": 983, "ctxt": 0 }, "value": "x", @@ -2640,7 +2640,7 @@ "type": "Identifier", "span": { "start": 1004, - "end": 1016, + "end": 1005, "ctxt": 0 }, "value": "x", @@ -2731,7 +2731,7 @@ "type": "Identifier", "span": { "start": 1043, - "end": 1049, + "end": 1044, "ctxt": 0 }, "value": "x", @@ -2802,7 +2802,7 @@ "type": "Identifier", "span": { "start": 1070, - "end": 1074, + "end": 1071, "ctxt": 0 }, "value": "x", @@ -2875,7 +2875,7 @@ "type": "Identifier", "span": { "start": 1091, - "end": 1095, + "end": 1092, "ctxt": 0 }, "value": "x", @@ -2948,7 +2948,7 @@ "type": "Identifier", "span": { "start": 1121, - "end": 1127, + "end": 1122, "ctxt": 0 }, "value": "x", @@ -3019,7 +3019,7 @@ "type": "Identifier", "span": { "start": 1148, - "end": 1152, + "end": 1149, "ctxt": 0 }, "value": "x", @@ -3092,7 +3092,7 @@ "type": "Identifier", "span": { "start": 1169, - "end": 1180, + "end": 1170, "ctxt": 0 }, "value": "x", @@ -3165,7 +3165,7 @@ "type": "Identifier", "span": { "start": 1206, - "end": 1212, + "end": 1207, "ctxt": 0 }, "value": "x", @@ -3236,7 +3236,7 @@ "type": "Identifier", "span": { "start": 1233, - "end": 1237, + "end": 1234, "ctxt": 0 }, "value": "x", @@ -3309,7 +3309,7 @@ "type": "Identifier", "span": { "start": 1254, - "end": 1258, + "end": 1255, "ctxt": 0 }, "value": "x", @@ -3382,7 +3382,7 @@ "type": "Identifier", "span": { "start": 1284, - "end": 1290, + "end": 1285, "ctxt": 0 }, "value": "x", @@ -3453,7 +3453,7 @@ "type": "Identifier", "span": { "start": 1311, - "end": 1315, + "end": 1312, "ctxt": 0 }, "value": "x", @@ -3526,7 +3526,7 @@ "type": "Identifier", "span": { "start": 1332, - "end": 1344, + "end": 1333, "ctxt": 0 }, "value": "x", @@ -3617,7 +3617,7 @@ "type": "Identifier", "span": { "start": 1370, - "end": 1376, + "end": 1371, "ctxt": 0 }, "value": "x", @@ -3688,7 +3688,7 @@ "type": "Identifier", "span": { "start": 1398, - "end": 1402, + "end": 1399, "ctxt": 0 }, "value": "x", @@ -3761,7 +3761,7 @@ "type": "Identifier", "span": { "start": 1420, - "end": 1431, + "end": 1421, "ctxt": 0 }, "value": "x", @@ -3834,7 +3834,7 @@ "type": "Identifier", "span": { "start": 1458, - "end": 1464, + "end": 1459, "ctxt": 0 }, "value": "x", @@ -3905,7 +3905,7 @@ "type": "Identifier", "span": { "start": 1486, - "end": 1490, + "end": 1487, "ctxt": 0 }, "value": "x", @@ -3978,7 +3978,7 @@ "type": "Identifier", "span": { "start": 1508, - "end": 1519, + "end": 1509, "ctxt": 0 }, "value": "x", @@ -4051,7 +4051,7 @@ "type": "Identifier", "span": { "start": 1546, - "end": 1552, + "end": 1547, "ctxt": 0 }, "value": "x", @@ -4122,7 +4122,7 @@ "type": "Identifier", "span": { "start": 1574, - "end": 1578, + "end": 1575, "ctxt": 0 }, "value": "x", @@ -4195,7 +4195,7 @@ "type": "Identifier", "span": { "start": 1596, - "end": 1608, + "end": 1597, "ctxt": 0 }, "value": "x", @@ -4286,7 +4286,7 @@ "type": "Identifier", "span": { "start": 1635, - "end": 1641, + "end": 1636, "ctxt": 0 }, "value": "x", @@ -4357,7 +4357,7 @@ "type": "Identifier", "span": { "start": 1664, - "end": 1677, + "end": 1665, "ctxt": 0 }, "value": "x", @@ -4448,7 +4448,7 @@ "type": "Identifier", "span": { "start": 1696, - "end": 1708, + "end": 1697, "ctxt": 0 }, "value": "x", @@ -4539,7 +4539,7 @@ "type": "Identifier", "span": { "start": 1736, - "end": 1742, + "end": 1737, "ctxt": 0 }, "value": "x", @@ -4610,7 +4610,7 @@ "type": "Identifier", "span": { "start": 1764, - "end": 1768, + "end": 1765, "ctxt": 0 }, "value": "x", @@ -4683,7 +4683,7 @@ "type": "Identifier", "span": { "start": 1786, - "end": 1797, + "end": 1787, "ctxt": 0 }, "value": "x", @@ -4756,7 +4756,7 @@ "type": "Identifier", "span": { "start": 1824, - "end": 1830, + "end": 1825, "ctxt": 0 }, "value": "x", @@ -4827,7 +4827,7 @@ "type": "Identifier", "span": { "start": 1852, - "end": 1856, + "end": 1853, "ctxt": 0 }, "value": "x", @@ -4900,7 +4900,7 @@ "type": "Identifier", "span": { "start": 1874, - "end": 1885, + "end": 1875, "ctxt": 0 }, "value": "x", @@ -4973,7 +4973,7 @@ "type": "Identifier", "span": { "start": 1912, - "end": 1918, + "end": 1913, "ctxt": 0 }, "value": "x", @@ -5044,7 +5044,7 @@ "type": "Identifier", "span": { "start": 1940, - "end": 1953, + "end": 1941, "ctxt": 0 }, "value": "x", @@ -5135,7 +5135,7 @@ "type": "Identifier", "span": { "start": 1971, - "end": 1983, + "end": 1972, "ctxt": 0 }, "value": "x", @@ -5226,7 +5226,7 @@ "type": "Identifier", "span": { "start": 2007, - "end": 2013, + "end": 2008, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures2.json index 86a4b70297d6..a4a317e70f7d 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures2.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 63, - "end": 72, + "end": 64, "ctxt": 0 }, "value": "x", @@ -200,7 +200,7 @@ "type": "Identifier", "span": { "start": 120, - "end": 129, + "end": 121, "ctxt": 0 }, "value": "x", @@ -343,7 +343,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 184, + "end": 181, "ctxt": 0 }, "value": "x", @@ -540,7 +540,7 @@ "type": "Identifier", "span": { "start": 231, - "end": 241, + "end": 232, "ctxt": 0 }, "value": "x", @@ -671,7 +671,7 @@ "type": "Identifier", "span": { "start": 281, - "end": 285, + "end": 282, "ctxt": 0 }, "value": "x", @@ -803,7 +803,7 @@ "type": "Identifier", "span": { "start": 307, - "end": 314, + "end": 308, "ctxt": 0 }, "value": "x", @@ -926,7 +926,7 @@ "type": "Identifier", "span": { "start": 340, - "end": 349, + "end": 341, "ctxt": 0 }, "value": "x", @@ -1032,7 +1032,7 @@ "type": "Identifier", "span": { "start": 384, - "end": 388, + "end": 385, "ctxt": 0 }, "value": "x", @@ -1105,7 +1105,7 @@ "type": "Identifier", "span": { "start": 405, - "end": 409, + "end": 406, "ctxt": 0 }, "value": "x", @@ -1178,7 +1178,7 @@ "type": "Identifier", "span": { "start": 435, - "end": 441, + "end": 436, "ctxt": 0 }, "value": "x", @@ -1249,7 +1249,7 @@ "type": "Identifier", "span": { "start": 463, - "end": 467, + "end": 464, "ctxt": 0 }, "value": "x", @@ -1322,7 +1322,7 @@ "type": "Identifier", "span": { "start": 485, - "end": 489, + "end": 486, "ctxt": 0 }, "value": "x", @@ -1395,7 +1395,7 @@ "type": "Identifier", "span": { "start": 516, - "end": 522, + "end": 517, "ctxt": 0 }, "value": "x", @@ -1466,7 +1466,7 @@ "type": "Identifier", "span": { "start": 544, - "end": 556, + "end": 545, "ctxt": 0 }, "value": "x", @@ -1557,7 +1557,7 @@ "type": "Identifier", "span": { "start": 574, - "end": 586, + "end": 575, "ctxt": 0 }, "value": "x", @@ -1648,7 +1648,7 @@ "type": "Identifier", "span": { "start": 613, - "end": 619, + "end": 614, "ctxt": 0 }, "value": "x", @@ -1719,7 +1719,7 @@ "type": "Identifier", "span": { "start": 640, - "end": 644, + "end": 641, "ctxt": 0 }, "value": "x", @@ -1792,7 +1792,7 @@ "type": "Identifier", "span": { "start": 661, - "end": 665, + "end": 662, "ctxt": 0 }, "value": "x", @@ -1865,7 +1865,7 @@ "type": "Identifier", "span": { "start": 691, - "end": 697, + "end": 692, "ctxt": 0 }, "value": "x", @@ -1936,7 +1936,7 @@ "type": "Identifier", "span": { "start": 718, - "end": 729, + "end": 719, "ctxt": 0 }, "value": "x", @@ -2009,7 +2009,7 @@ "type": "Identifier", "span": { "start": 746, - "end": 757, + "end": 747, "ctxt": 0 }, "value": "x", @@ -2082,7 +2082,7 @@ "type": "Identifier", "span": { "start": 783, - "end": 789, + "end": 784, "ctxt": 0 }, "value": "x", @@ -2153,7 +2153,7 @@ "type": "Identifier", "span": { "start": 810, - "end": 821, + "end": 811, "ctxt": 0 }, "value": "x", @@ -2226,7 +2226,7 @@ "type": "Identifier", "span": { "start": 838, - "end": 849, + "end": 839, "ctxt": 0 }, "value": "x", @@ -2299,7 +2299,7 @@ "type": "Identifier", "span": { "start": 875, - "end": 881, + "end": 876, "ctxt": 0 }, "value": "x", @@ -2370,7 +2370,7 @@ "type": "Identifier", "span": { "start": 902, - "end": 906, + "end": 903, "ctxt": 0 }, "value": "x", @@ -2443,7 +2443,7 @@ "type": "Identifier", "span": { "start": 923, - "end": 927, + "end": 924, "ctxt": 0 }, "value": "x", @@ -2516,7 +2516,7 @@ "type": "Identifier", "span": { "start": 950, - "end": 956, + "end": 951, "ctxt": 0 }, "value": "x", @@ -2587,7 +2587,7 @@ "type": "Identifier", "span": { "start": 978, - "end": 982, + "end": 979, "ctxt": 0 }, "value": "x", @@ -2660,7 +2660,7 @@ "type": "Identifier", "span": { "start": 1000, - "end": 1012, + "end": 1001, "ctxt": 0 }, "value": "x", @@ -2751,7 +2751,7 @@ "type": "Identifier", "span": { "start": 1039, - "end": 1045, + "end": 1040, "ctxt": 0 }, "value": "x", @@ -2822,7 +2822,7 @@ "type": "Identifier", "span": { "start": 1066, - "end": 1070, + "end": 1067, "ctxt": 0 }, "value": "x", @@ -2895,7 +2895,7 @@ "type": "Identifier", "span": { "start": 1087, - "end": 1091, + "end": 1088, "ctxt": 0 }, "value": "x", @@ -2968,7 +2968,7 @@ "type": "Identifier", "span": { "start": 1114, - "end": 1120, + "end": 1115, "ctxt": 0 }, "value": "x", @@ -3039,7 +3039,7 @@ "type": "Identifier", "span": { "start": 1141, - "end": 1145, + "end": 1142, "ctxt": 0 }, "value": "x", @@ -3112,7 +3112,7 @@ "type": "Identifier", "span": { "start": 1162, - "end": 1173, + "end": 1163, "ctxt": 0 }, "value": "x", @@ -3185,7 +3185,7 @@ "type": "Identifier", "span": { "start": 1196, - "end": 1202, + "end": 1197, "ctxt": 0 }, "value": "x", @@ -3256,7 +3256,7 @@ "type": "Identifier", "span": { "start": 1223, - "end": 1227, + "end": 1224, "ctxt": 0 }, "value": "x", @@ -3329,7 +3329,7 @@ "type": "Identifier", "span": { "start": 1244, - "end": 1248, + "end": 1245, "ctxt": 0 }, "value": "x", @@ -3402,7 +3402,7 @@ "type": "Identifier", "span": { "start": 1271, - "end": 1277, + "end": 1272, "ctxt": 0 }, "value": "x", @@ -3473,7 +3473,7 @@ "type": "Identifier", "span": { "start": 1298, - "end": 1302, + "end": 1299, "ctxt": 0 }, "value": "x", @@ -3546,7 +3546,7 @@ "type": "Identifier", "span": { "start": 1319, - "end": 1331, + "end": 1320, "ctxt": 0 }, "value": "x", @@ -3637,7 +3637,7 @@ "type": "Identifier", "span": { "start": 1354, - "end": 1360, + "end": 1355, "ctxt": 0 }, "value": "x", @@ -3708,7 +3708,7 @@ "type": "Identifier", "span": { "start": 1382, - "end": 1386, + "end": 1383, "ctxt": 0 }, "value": "x", @@ -3781,7 +3781,7 @@ "type": "Identifier", "span": { "start": 1404, - "end": 1415, + "end": 1405, "ctxt": 0 }, "value": "x", @@ -3854,7 +3854,7 @@ "type": "Identifier", "span": { "start": 1439, - "end": 1445, + "end": 1440, "ctxt": 0 }, "value": "x", @@ -3925,7 +3925,7 @@ "type": "Identifier", "span": { "start": 1467, - "end": 1471, + "end": 1468, "ctxt": 0 }, "value": "x", @@ -3998,7 +3998,7 @@ "type": "Identifier", "span": { "start": 1489, - "end": 1500, + "end": 1490, "ctxt": 0 }, "value": "x", @@ -4071,7 +4071,7 @@ "type": "Identifier", "span": { "start": 1524, - "end": 1530, + "end": 1525, "ctxt": 0 }, "value": "x", @@ -4142,7 +4142,7 @@ "type": "Identifier", "span": { "start": 1552, - "end": 1556, + "end": 1553, "ctxt": 0 }, "value": "x", @@ -4215,7 +4215,7 @@ "type": "Identifier", "span": { "start": 1574, - "end": 1586, + "end": 1575, "ctxt": 0 }, "value": "x", @@ -4306,7 +4306,7 @@ "type": "Identifier", "span": { "start": 1610, - "end": 1616, + "end": 1611, "ctxt": 0 }, "value": "x", @@ -4377,7 +4377,7 @@ "type": "Identifier", "span": { "start": 1639, - "end": 1652, + "end": 1640, "ctxt": 0 }, "value": "x", @@ -4468,7 +4468,7 @@ "type": "Identifier", "span": { "start": 1671, - "end": 1683, + "end": 1672, "ctxt": 0 }, "value": "x", @@ -4559,7 +4559,7 @@ "type": "Identifier", "span": { "start": 1711, - "end": 1717, + "end": 1712, "ctxt": 0 }, "value": "x", @@ -4630,7 +4630,7 @@ "type": "Identifier", "span": { "start": 1739, - "end": 1743, + "end": 1740, "ctxt": 0 }, "value": "x", @@ -4703,7 +4703,7 @@ "type": "Identifier", "span": { "start": 1761, - "end": 1772, + "end": 1762, "ctxt": 0 }, "value": "x", @@ -4776,7 +4776,7 @@ "type": "Identifier", "span": { "start": 1796, - "end": 1802, + "end": 1797, "ctxt": 0 }, "value": "x", @@ -4847,7 +4847,7 @@ "type": "Identifier", "span": { "start": 1824, - "end": 1828, + "end": 1825, "ctxt": 0 }, "value": "x", @@ -4920,7 +4920,7 @@ "type": "Identifier", "span": { "start": 1846, - "end": 1857, + "end": 1847, "ctxt": 0 }, "value": "x", @@ -4993,7 +4993,7 @@ "type": "Identifier", "span": { "start": 1881, - "end": 1887, + "end": 1882, "ctxt": 0 }, "value": "x", @@ -5064,7 +5064,7 @@ "type": "Identifier", "span": { "start": 1909, - "end": 1922, + "end": 1910, "ctxt": 0 }, "value": "x", @@ -5155,7 +5155,7 @@ "type": "Identifier", "span": { "start": 1940, - "end": 1952, + "end": 1941, "ctxt": 0 }, "value": "x", @@ -5246,7 +5246,7 @@ "type": "Identifier", "span": { "start": 1976, - "end": 1982, + "end": 1977, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures3.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures3.json index 796b87b969d9..6df69b6d5618 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures3.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures3.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 64, - "end": 73, + "end": 65, "ctxt": 0 }, "value": "x", @@ -164,7 +164,7 @@ "type": "Identifier", "span": { "start": 110, - "end": 114, + "end": 111, "ctxt": 0 }, "value": "x", @@ -283,7 +283,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 142, + "end": 134, "ctxt": 0 }, "value": "x", @@ -361,7 +361,7 @@ "type": "Identifier", "span": { "start": 169, - "end": 173, + "end": 170, "ctxt": 0 }, "value": "x", @@ -434,7 +434,7 @@ "type": "Identifier", "span": { "start": 190, - "end": 194, + "end": 191, "ctxt": 0 }, "value": "x", @@ -507,7 +507,7 @@ "type": "Identifier", "span": { "start": 220, - "end": 226, + "end": 221, "ctxt": 0 }, "value": "x", @@ -578,7 +578,7 @@ "type": "Identifier", "span": { "start": 247, - "end": 258, + "end": 248, "ctxt": 0 }, "value": "x", @@ -651,7 +651,7 @@ "type": "Identifier", "span": { "start": 275, - "end": 286, + "end": 276, "ctxt": 0 }, "value": "x", @@ -724,7 +724,7 @@ "type": "Identifier", "span": { "start": 312, - "end": 318, + "end": 313, "ctxt": 0 }, "value": "x", @@ -795,7 +795,7 @@ "type": "Identifier", "span": { "start": 339, - "end": 350, + "end": 340, "ctxt": 0 }, "value": "x", @@ -868,7 +868,7 @@ "type": "Identifier", "span": { "start": 367, - "end": 378, + "end": 368, "ctxt": 0 }, "value": "x", @@ -941,7 +941,7 @@ "type": "Identifier", "span": { "start": 404, - "end": 410, + "end": 405, "ctxt": 0 }, "value": "x", @@ -1012,7 +1012,7 @@ "type": "Identifier", "span": { "start": 432, - "end": 436, + "end": 433, "ctxt": 0 }, "value": "x", @@ -1085,7 +1085,7 @@ "type": "Identifier", "span": { "start": 454, - "end": 465, + "end": 455, "ctxt": 0 }, "value": "x", @@ -1158,7 +1158,7 @@ "type": "Identifier", "span": { "start": 492, - "end": 498, + "end": 493, "ctxt": 0 }, "value": "x", @@ -1229,7 +1229,7 @@ "type": "Identifier", "span": { "start": 520, - "end": 524, + "end": 521, "ctxt": 0 }, "value": "x", @@ -1302,7 +1302,7 @@ "type": "Identifier", "span": { "start": 542, - "end": 555, + "end": 543, "ctxt": 0 }, "value": "x", @@ -1393,7 +1393,7 @@ "type": "Identifier", "span": { "start": 582, - "end": 588, + "end": 583, "ctxt": 0 }, "value": "x", @@ -1464,7 +1464,7 @@ "type": "Identifier", "span": { "start": 611, - "end": 622, + "end": 612, "ctxt": 0 }, "value": "x", @@ -1537,7 +1537,7 @@ "type": "Identifier", "span": { "start": 641, - "end": 654, + "end": 642, "ctxt": 0 }, "value": "x", @@ -1628,7 +1628,7 @@ "type": "Identifier", "span": { "start": 682, - "end": 688, + "end": 683, "ctxt": 0 }, "value": "x", @@ -1699,7 +1699,7 @@ "type": "Identifier", "span": { "start": 710, - "end": 714, + "end": 711, "ctxt": 0 }, "value": "x", @@ -1772,7 +1772,7 @@ "type": "Identifier", "span": { "start": 732, - "end": 745, + "end": 733, "ctxt": 0 }, "value": "x", @@ -1863,7 +1863,7 @@ "type": "Identifier", "span": { "start": 769, - "end": 775, + "end": 770, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesDifferingParamCounts.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesDifferingParamCounts.json index 65836278be47..668dac5512b2 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesDifferingParamCounts.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesDifferingParamCounts.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 63, - "end": 72, + "end": 64, "ctxt": 0 }, "value": "x", @@ -200,7 +200,7 @@ "type": "Identifier", "span": { "start": 120, - "end": 129, + "end": 121, "ctxt": 0 }, "value": "x", @@ -236,7 +236,7 @@ "type": "Identifier", "span": { "start": 131, - "end": 140, + "end": 132, "ctxt": 0 }, "value": "y", @@ -379,7 +379,7 @@ "type": "Identifier", "span": { "start": 191, - "end": 195, + "end": 192, "ctxt": 0 }, "value": "x", @@ -425,7 +425,7 @@ "type": "Identifier", "span": { "start": 197, - "end": 201, + "end": 198, "ctxt": 0 }, "value": "y", @@ -622,7 +622,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 257, + "end": 249, "ctxt": 0 }, "value": "x", @@ -753,7 +753,7 @@ "type": "Identifier", "span": { "start": 297, - "end": 301, + "end": 298, "ctxt": 0 }, "value": "x", @@ -885,7 +885,7 @@ "type": "Identifier", "span": { "start": 323, - "end": 332, + "end": 324, "ctxt": 0 }, "value": "x", @@ -912,7 +912,7 @@ "type": "Identifier", "span": { "start": 334, - "end": 343, + "end": 335, "ctxt": 0 }, "value": "y", @@ -1025,7 +1025,7 @@ "type": "Identifier", "span": { "start": 369, - "end": 378, + "end": 370, "ctxt": 0 }, "value": "x", @@ -1121,7 +1121,7 @@ "type": "Identifier", "span": { "start": 413, - "end": 417, + "end": 414, "ctxt": 0 }, "value": "x", @@ -1194,7 +1194,7 @@ "type": "Identifier", "span": { "start": 434, - "end": 438, + "end": 435, "ctxt": 0 }, "value": "x", @@ -1267,7 +1267,7 @@ "type": "Identifier", "span": { "start": 464, - "end": 470, + "end": 465, "ctxt": 0 }, "value": "x", @@ -1338,7 +1338,7 @@ "type": "Identifier", "span": { "start": 492, - "end": 496, + "end": 493, "ctxt": 0 }, "value": "x", @@ -1411,7 +1411,7 @@ "type": "Identifier", "span": { "start": 514, - "end": 518, + "end": 515, "ctxt": 0 }, "value": "x", @@ -1484,7 +1484,7 @@ "type": "Identifier", "span": { "start": 545, - "end": 551, + "end": 546, "ctxt": 0 }, "value": "x", @@ -1555,7 +1555,7 @@ "type": "Identifier", "span": { "start": 573, - "end": 585, + "end": 574, "ctxt": 0 }, "value": "x", @@ -1646,7 +1646,7 @@ "type": "Identifier", "span": { "start": 603, - "end": 615, + "end": 604, "ctxt": 0 }, "value": "x", @@ -1737,7 +1737,7 @@ "type": "Identifier", "span": { "start": 642, - "end": 648, + "end": 643, "ctxt": 0 }, "value": "x", @@ -1808,7 +1808,7 @@ "type": "Identifier", "span": { "start": 669, - "end": 673, + "end": 670, "ctxt": 0 }, "value": "x", @@ -1881,7 +1881,7 @@ "type": "Identifier", "span": { "start": 690, - "end": 694, + "end": 691, "ctxt": 0 }, "value": "x", @@ -1954,7 +1954,7 @@ "type": "Identifier", "span": { "start": 720, - "end": 726, + "end": 721, "ctxt": 0 }, "value": "x", @@ -2025,7 +2025,7 @@ "type": "Identifier", "span": { "start": 747, - "end": 758, + "end": 748, "ctxt": 0 }, "value": "x", @@ -2098,7 +2098,7 @@ "type": "Identifier", "span": { "start": 775, - "end": 786, + "end": 776, "ctxt": 0 }, "value": "x", @@ -2171,7 +2171,7 @@ "type": "Identifier", "span": { "start": 812, - "end": 818, + "end": 813, "ctxt": 0 }, "value": "x", @@ -2242,7 +2242,7 @@ "type": "Identifier", "span": { "start": 839, - "end": 850, + "end": 840, "ctxt": 0 }, "value": "x", @@ -2315,7 +2315,7 @@ "type": "Identifier", "span": { "start": 867, - "end": 878, + "end": 868, "ctxt": 0 }, "value": "x", @@ -2388,7 +2388,7 @@ "type": "Identifier", "span": { "start": 904, - "end": 910, + "end": 905, "ctxt": 0 }, "value": "x", @@ -2459,7 +2459,7 @@ "type": "Identifier", "span": { "start": 931, - "end": 935, + "end": 932, "ctxt": 0 }, "value": "x", @@ -2532,7 +2532,7 @@ "type": "Identifier", "span": { "start": 952, - "end": 956, + "end": 953, "ctxt": 0 }, "value": "x", @@ -2605,7 +2605,7 @@ "type": "Identifier", "span": { "start": 979, - "end": 985, + "end": 980, "ctxt": 0 }, "value": "x", @@ -2676,7 +2676,7 @@ "type": "Identifier", "span": { "start": 1007, - "end": 1011, + "end": 1008, "ctxt": 0 }, "value": "x", @@ -2749,7 +2749,7 @@ "type": "Identifier", "span": { "start": 1029, - "end": 1041, + "end": 1030, "ctxt": 0 }, "value": "x", @@ -2840,7 +2840,7 @@ "type": "Identifier", "span": { "start": 1065, - "end": 1071, + "end": 1066, "ctxt": 0 }, "value": "x", @@ -2911,7 +2911,7 @@ "type": "Identifier", "span": { "start": 1092, - "end": 1096, + "end": 1093, "ctxt": 0 }, "value": "x", @@ -2984,7 +2984,7 @@ "type": "Identifier", "span": { "start": 1113, - "end": 1117, + "end": 1114, "ctxt": 0 }, "value": "x", @@ -3057,7 +3057,7 @@ "type": "Identifier", "span": { "start": 1143, - "end": 1149, + "end": 1144, "ctxt": 0 }, "value": "x", @@ -3128,7 +3128,7 @@ "type": "Identifier", "span": { "start": 1170, - "end": 1174, + "end": 1171, "ctxt": 0 }, "value": "x", @@ -3201,7 +3201,7 @@ "type": "Identifier", "span": { "start": 1191, - "end": 1202, + "end": 1192, "ctxt": 0 }, "value": "x", @@ -3274,7 +3274,7 @@ "type": "Identifier", "span": { "start": 1225, - "end": 1231, + "end": 1226, "ctxt": 0 }, "value": "x", @@ -3345,7 +3345,7 @@ "type": "Identifier", "span": { "start": 1252, - "end": 1256, + "end": 1253, "ctxt": 0 }, "value": "x", @@ -3418,7 +3418,7 @@ "type": "Identifier", "span": { "start": 1273, - "end": 1277, + "end": 1274, "ctxt": 0 }, "value": "x", @@ -3491,7 +3491,7 @@ "type": "Identifier", "span": { "start": 1300, - "end": 1306, + "end": 1301, "ctxt": 0 }, "value": "x", @@ -3562,7 +3562,7 @@ "type": "Identifier", "span": { "start": 1327, - "end": 1331, + "end": 1328, "ctxt": 0 }, "value": "x", @@ -3635,7 +3635,7 @@ "type": "Identifier", "span": { "start": 1348, - "end": 1360, + "end": 1349, "ctxt": 0 }, "value": "x", @@ -3726,7 +3726,7 @@ "type": "Identifier", "span": { "start": 1383, - "end": 1389, + "end": 1384, "ctxt": 0 }, "value": "x", @@ -3797,7 +3797,7 @@ "type": "Identifier", "span": { "start": 1411, - "end": 1415, + "end": 1412, "ctxt": 0 }, "value": "x", @@ -3870,7 +3870,7 @@ "type": "Identifier", "span": { "start": 1433, - "end": 1444, + "end": 1434, "ctxt": 0 }, "value": "x", @@ -3943,7 +3943,7 @@ "type": "Identifier", "span": { "start": 1471, - "end": 1477, + "end": 1472, "ctxt": 0 }, "value": "x", @@ -4014,7 +4014,7 @@ "type": "Identifier", "span": { "start": 1499, - "end": 1503, + "end": 1500, "ctxt": 0 }, "value": "x", @@ -4087,7 +4087,7 @@ "type": "Identifier", "span": { "start": 1521, - "end": 1532, + "end": 1522, "ctxt": 0 }, "value": "x", @@ -4160,7 +4160,7 @@ "type": "Identifier", "span": { "start": 1556, - "end": 1562, + "end": 1557, "ctxt": 0 }, "value": "x", @@ -4231,7 +4231,7 @@ "type": "Identifier", "span": { "start": 1584, - "end": 1588, + "end": 1585, "ctxt": 0 }, "value": "x", @@ -4304,7 +4304,7 @@ "type": "Identifier", "span": { "start": 1606, - "end": 1618, + "end": 1607, "ctxt": 0 }, "value": "x", @@ -4395,7 +4395,7 @@ "type": "Identifier", "span": { "start": 1642, - "end": 1648, + "end": 1643, "ctxt": 0 }, "value": "x", @@ -4466,7 +4466,7 @@ "type": "Identifier", "span": { "start": 1671, - "end": 1684, + "end": 1672, "ctxt": 0 }, "value": "x", @@ -4557,7 +4557,7 @@ "type": "Identifier", "span": { "start": 1703, - "end": 1715, + "end": 1704, "ctxt": 0 }, "value": "x", @@ -4648,7 +4648,7 @@ "type": "Identifier", "span": { "start": 1740, - "end": 1746, + "end": 1741, "ctxt": 0 }, "value": "x", @@ -4719,7 +4719,7 @@ "type": "Identifier", "span": { "start": 1768, - "end": 1772, + "end": 1769, "ctxt": 0 }, "value": "x", @@ -4792,7 +4792,7 @@ "type": "Identifier", "span": { "start": 1790, - "end": 1801, + "end": 1791, "ctxt": 0 }, "value": "x", @@ -4865,7 +4865,7 @@ "type": "Identifier", "span": { "start": 1825, - "end": 1831, + "end": 1826, "ctxt": 0 }, "value": "x", @@ -4936,7 +4936,7 @@ "type": "Identifier", "span": { "start": 1853, - "end": 1857, + "end": 1854, "ctxt": 0 }, "value": "x", @@ -5009,7 +5009,7 @@ "type": "Identifier", "span": { "start": 1875, - "end": 1886, + "end": 1876, "ctxt": 0 }, "value": "x", @@ -5082,7 +5082,7 @@ "type": "Identifier", "span": { "start": 1913, - "end": 1919, + "end": 1914, "ctxt": 0 }, "value": "x", @@ -5153,7 +5153,7 @@ "type": "Identifier", "span": { "start": 1941, - "end": 1954, + "end": 1942, "ctxt": 0 }, "value": "x", @@ -5244,7 +5244,7 @@ "type": "Identifier", "span": { "start": 1972, - "end": 1984, + "end": 1973, "ctxt": 0 }, "value": "x", @@ -5335,7 +5335,7 @@ "type": "Identifier", "span": { "start": 2008, - "end": 2014, + "end": 2009, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesDifferingParamCounts2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesDifferingParamCounts2.json index 01c05a2d8290..7e36964503ff 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesDifferingParamCounts2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesDifferingParamCounts2.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 64, - "end": 73, + "end": 65, "ctxt": 0 }, "value": "x", @@ -164,7 +164,7 @@ "type": "Identifier", "span": { "start": 110, - "end": 114, + "end": 111, "ctxt": 0 }, "value": "x", @@ -283,7 +283,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 142, + "end": 134, "ctxt": 0 }, "value": "x", @@ -310,7 +310,7 @@ "type": "Identifier", "span": { "start": 144, - "end": 153, + "end": 145, "ctxt": 0 }, "value": "y", @@ -388,7 +388,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 184, + "end": 181, "ctxt": 0 }, "value": "x", @@ -461,7 +461,7 @@ "type": "Identifier", "span": { "start": 201, - "end": 205, + "end": 202, "ctxt": 0 }, "value": "x", @@ -534,7 +534,7 @@ "type": "Identifier", "span": { "start": 231, - "end": 237, + "end": 232, "ctxt": 0 }, "value": "x", @@ -605,7 +605,7 @@ "type": "Identifier", "span": { "start": 258, - "end": 269, + "end": 259, "ctxt": 0 }, "value": "x", @@ -678,7 +678,7 @@ "type": "Identifier", "span": { "start": 286, - "end": 297, + "end": 287, "ctxt": 0 }, "value": "x", @@ -751,7 +751,7 @@ "type": "Identifier", "span": { "start": 323, - "end": 329, + "end": 324, "ctxt": 0 }, "value": "x", @@ -822,7 +822,7 @@ "type": "Identifier", "span": { "start": 350, - "end": 363, + "end": 351, "ctxt": 0 }, "value": "x", @@ -913,7 +913,7 @@ "type": "Identifier", "span": { "start": 380, - "end": 393, + "end": 381, "ctxt": 0 }, "value": "x", @@ -1004,7 +1004,7 @@ "type": "Identifier", "span": { "start": 419, - "end": 425, + "end": 420, "ctxt": 0 }, "value": "x", @@ -1075,7 +1075,7 @@ "type": "Identifier", "span": { "start": 446, - "end": 459, + "end": 447, "ctxt": 0 }, "value": "x", @@ -1166,7 +1166,7 @@ "type": "Identifier", "span": { "start": 476, - "end": 489, + "end": 477, "ctxt": 0 }, "value": "x", @@ -1257,7 +1257,7 @@ "type": "Identifier", "span": { "start": 512, - "end": 518, + "end": 513, "ctxt": 0 }, "value": "x", @@ -1328,7 +1328,7 @@ "type": "Identifier", "span": { "start": 540, - "end": 544, + "end": 541, "ctxt": 0 }, "value": "x", @@ -1401,7 +1401,7 @@ "type": "Identifier", "span": { "start": 562, - "end": 573, + "end": 563, "ctxt": 0 }, "value": "x", @@ -1474,7 +1474,7 @@ "type": "Identifier", "span": { "start": 597, - "end": 603, + "end": 598, "ctxt": 0 }, "value": "x", @@ -1545,7 +1545,7 @@ "type": "Identifier", "span": { "start": 625, - "end": 629, + "end": 626, "ctxt": 0 }, "value": "x", @@ -1618,7 +1618,7 @@ "type": "Identifier", "span": { "start": 647, - "end": 660, + "end": 648, "ctxt": 0 }, "value": "x", @@ -1709,7 +1709,7 @@ "type": "Identifier", "span": { "start": 687, - "end": 693, + "end": 688, "ctxt": 0 }, "value": "x", @@ -1780,7 +1780,7 @@ "type": "Identifier", "span": { "start": 716, - "end": 727, + "end": 717, "ctxt": 0 }, "value": "x", @@ -1853,7 +1853,7 @@ "type": "Identifier", "span": { "start": 746, - "end": 759, + "end": 747, "ctxt": 0 }, "value": "x", @@ -1944,7 +1944,7 @@ "type": "Identifier", "span": { "start": 784, - "end": 790, + "end": 785, "ctxt": 0 }, "value": "x", @@ -2015,7 +2015,7 @@ "type": "Identifier", "span": { "start": 812, - "end": 816, + "end": 813, "ctxt": 0 }, "value": "x", @@ -2088,7 +2088,7 @@ "type": "Identifier", "span": { "start": 834, - "end": 847, + "end": 835, "ctxt": 0 }, "value": "x", @@ -2179,7 +2179,7 @@ "type": "Identifier", "span": { "start": 871, - "end": 877, + "end": 872, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesWithOverloads.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesWithOverloads.json index fcc4a35462e8..547ef2a0b0e5 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesWithOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesWithOverloads.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 63, - "end": 72, + "end": 64, "ctxt": 0 }, "value": "x", @@ -148,7 +148,7 @@ "type": "Identifier", "span": { "start": 91, - "end": 100, + "end": 92, "ctxt": 0 }, "value": "x", @@ -239,7 +239,7 @@ "type": "Identifier", "span": { "start": 119, - "end": 125, + "end": 120, "ctxt": 0 }, "value": "x", @@ -382,7 +382,7 @@ "type": "Identifier", "span": { "start": 170, - "end": 179, + "end": 171, "ctxt": 0 }, "value": "x", @@ -473,7 +473,7 @@ "type": "Identifier", "span": { "start": 198, - "end": 207, + "end": 199, "ctxt": 0 }, "value": "x", @@ -564,7 +564,7 @@ "type": "Identifier", "span": { "start": 226, - "end": 232, + "end": 227, "ctxt": 0 }, "value": "x", @@ -707,7 +707,7 @@ "type": "Identifier", "span": { "start": 280, - "end": 289, + "end": 281, "ctxt": 0 }, "value": "x", @@ -798,7 +798,7 @@ "type": "Identifier", "span": { "start": 308, - "end": 317, + "end": 309, "ctxt": 0 }, "value": "x", @@ -889,7 +889,7 @@ "type": "Identifier", "span": { "start": 336, - "end": 340, + "end": 337, "ctxt": 0 }, "value": "x", @@ -1000,7 +1000,7 @@ "type": "Identifier", "span": { "start": 354, - "end": 360, + "end": 355, "ctxt": 0 }, "value": "x", @@ -1177,7 +1177,7 @@ "type": "Identifier", "span": { "start": 409, - "end": 418, + "end": 410, "ctxt": 0 }, "value": "x", @@ -1245,7 +1245,7 @@ "type": "Identifier", "span": { "start": 437, - "end": 446, + "end": 438, "ctxt": 0 }, "value": "x", @@ -1376,7 +1376,7 @@ "type": "Identifier", "span": { "start": 490, - "end": 499, + "end": 491, "ctxt": 0 }, "value": "x", @@ -1444,7 +1444,7 @@ "type": "Identifier", "span": { "start": 518, - "end": 527, + "end": 519, "ctxt": 0 }, "value": "x", @@ -1512,7 +1512,7 @@ "type": "Identifier", "span": { "start": 546, - "end": 550, + "end": 547, "ctxt": 0 }, "value": "x", @@ -1644,7 +1644,7 @@ "type": "Identifier", "span": { "start": 576, - "end": 585, + "end": 577, "ctxt": 0 }, "value": "x", @@ -1712,7 +1712,7 @@ "type": "Identifier", "span": { "start": 603, - "end": 612, + "end": 604, "ctxt": 0 }, "value": "x", @@ -1825,7 +1825,7 @@ "type": "Identifier", "span": { "start": 643, - "end": 649, + "end": 644, "ctxt": 0 }, "value": "x", @@ -1938,7 +1938,7 @@ "type": "Identifier", "span": { "start": 689, - "end": 693, + "end": 690, "ctxt": 0 }, "value": "x", @@ -2011,7 +2011,7 @@ "type": "Identifier", "span": { "start": 710, - "end": 714, + "end": 711, "ctxt": 0 }, "value": "x", @@ -2084,7 +2084,7 @@ "type": "Identifier", "span": { "start": 740, - "end": 746, + "end": 741, "ctxt": 0 }, "value": "x", @@ -2155,7 +2155,7 @@ "type": "Identifier", "span": { "start": 768, - "end": 772, + "end": 769, "ctxt": 0 }, "value": "x", @@ -2228,7 +2228,7 @@ "type": "Identifier", "span": { "start": 790, - "end": 794, + "end": 791, "ctxt": 0 }, "value": "x", @@ -2301,7 +2301,7 @@ "type": "Identifier", "span": { "start": 821, - "end": 827, + "end": 822, "ctxt": 0 }, "value": "x", @@ -2372,7 +2372,7 @@ "type": "Identifier", "span": { "start": 849, - "end": 861, + "end": 850, "ctxt": 0 }, "value": "x", @@ -2463,7 +2463,7 @@ "type": "Identifier", "span": { "start": 879, - "end": 891, + "end": 880, "ctxt": 0 }, "value": "x", @@ -2554,7 +2554,7 @@ "type": "Identifier", "span": { "start": 918, - "end": 924, + "end": 919, "ctxt": 0 }, "value": "x", @@ -2625,7 +2625,7 @@ "type": "Identifier", "span": { "start": 945, - "end": 949, + "end": 946, "ctxt": 0 }, "value": "x", @@ -2698,7 +2698,7 @@ "type": "Identifier", "span": { "start": 966, - "end": 970, + "end": 967, "ctxt": 0 }, "value": "x", @@ -2771,7 +2771,7 @@ "type": "Identifier", "span": { "start": 996, - "end": 1002, + "end": 997, "ctxt": 0 }, "value": "x", @@ -2842,7 +2842,7 @@ "type": "Identifier", "span": { "start": 1023, - "end": 1034, + "end": 1024, "ctxt": 0 }, "value": "x", @@ -2915,7 +2915,7 @@ "type": "Identifier", "span": { "start": 1051, - "end": 1062, + "end": 1052, "ctxt": 0 }, "value": "x", @@ -2988,7 +2988,7 @@ "type": "Identifier", "span": { "start": 1088, - "end": 1094, + "end": 1089, "ctxt": 0 }, "value": "x", @@ -3059,7 +3059,7 @@ "type": "Identifier", "span": { "start": 1115, - "end": 1126, + "end": 1116, "ctxt": 0 }, "value": "x", @@ -3132,7 +3132,7 @@ "type": "Identifier", "span": { "start": 1143, - "end": 1154, + "end": 1144, "ctxt": 0 }, "value": "x", @@ -3205,7 +3205,7 @@ "type": "Identifier", "span": { "start": 1180, - "end": 1186, + "end": 1181, "ctxt": 0 }, "value": "x", @@ -3276,7 +3276,7 @@ "type": "Identifier", "span": { "start": 1207, - "end": 1211, + "end": 1208, "ctxt": 0 }, "value": "x", @@ -3349,7 +3349,7 @@ "type": "Identifier", "span": { "start": 1228, - "end": 1232, + "end": 1229, "ctxt": 0 }, "value": "x", @@ -3422,7 +3422,7 @@ "type": "Identifier", "span": { "start": 1258, - "end": 1264, + "end": 1259, "ctxt": 0 }, "value": "x", @@ -3493,7 +3493,7 @@ "type": "Identifier", "span": { "start": 1286, - "end": 1290, + "end": 1287, "ctxt": 0 }, "value": "x", @@ -3566,7 +3566,7 @@ "type": "Identifier", "span": { "start": 1308, - "end": 1320, + "end": 1309, "ctxt": 0 }, "value": "x", @@ -3657,7 +3657,7 @@ "type": "Identifier", "span": { "start": 1344, - "end": 1350, + "end": 1345, "ctxt": 0 }, "value": "x", @@ -3728,7 +3728,7 @@ "type": "Identifier", "span": { "start": 1371, - "end": 1375, + "end": 1372, "ctxt": 0 }, "value": "x", @@ -3801,7 +3801,7 @@ "type": "Identifier", "span": { "start": 1392, - "end": 1396, + "end": 1393, "ctxt": 0 }, "value": "x", @@ -3874,7 +3874,7 @@ "type": "Identifier", "span": { "start": 1427, - "end": 1433, + "end": 1428, "ctxt": 0 }, "value": "x", @@ -3945,7 +3945,7 @@ "type": "Identifier", "span": { "start": 1454, - "end": 1458, + "end": 1455, "ctxt": 0 }, "value": "x", @@ -4018,7 +4018,7 @@ "type": "Identifier", "span": { "start": 1475, - "end": 1486, + "end": 1476, "ctxt": 0 }, "value": "x", @@ -4091,7 +4091,7 @@ "type": "Identifier", "span": { "start": 1517, - "end": 1523, + "end": 1518, "ctxt": 0 }, "value": "x", @@ -4162,7 +4162,7 @@ "type": "Identifier", "span": { "start": 1544, - "end": 1548, + "end": 1545, "ctxt": 0 }, "value": "x", @@ -4235,7 +4235,7 @@ "type": "Identifier", "span": { "start": 1565, - "end": 1569, + "end": 1566, "ctxt": 0 }, "value": "x", @@ -4308,7 +4308,7 @@ "type": "Identifier", "span": { "start": 1600, - "end": 1606, + "end": 1601, "ctxt": 0 }, "value": "x", @@ -4379,7 +4379,7 @@ "type": "Identifier", "span": { "start": 1627, - "end": 1631, + "end": 1628, "ctxt": 0 }, "value": "x", @@ -4452,7 +4452,7 @@ "type": "Identifier", "span": { "start": 1648, - "end": 1660, + "end": 1649, "ctxt": 0 }, "value": "x", @@ -4543,7 +4543,7 @@ "type": "Identifier", "span": { "start": 1683, - "end": 1689, + "end": 1684, "ctxt": 0 }, "value": "x", @@ -4614,7 +4614,7 @@ "type": "Identifier", "span": { "start": 1711, - "end": 1715, + "end": 1712, "ctxt": 0 }, "value": "x", @@ -4687,7 +4687,7 @@ "type": "Identifier", "span": { "start": 1733, - "end": 1744, + "end": 1734, "ctxt": 0 }, "value": "x", @@ -4760,7 +4760,7 @@ "type": "Identifier", "span": { "start": 1776, - "end": 1782, + "end": 1777, "ctxt": 0 }, "value": "x", @@ -4831,7 +4831,7 @@ "type": "Identifier", "span": { "start": 1804, - "end": 1808, + "end": 1805, "ctxt": 0 }, "value": "x", @@ -4904,7 +4904,7 @@ "type": "Identifier", "span": { "start": 1826, - "end": 1837, + "end": 1827, "ctxt": 0 }, "value": "x", @@ -4977,7 +4977,7 @@ "type": "Identifier", "span": { "start": 1861, - "end": 1867, + "end": 1862, "ctxt": 0 }, "value": "x", @@ -5048,7 +5048,7 @@ "type": "Identifier", "span": { "start": 1889, - "end": 1893, + "end": 1890, "ctxt": 0 }, "value": "x", @@ -5121,7 +5121,7 @@ "type": "Identifier", "span": { "start": 1911, - "end": 1923, + "end": 1912, "ctxt": 0 }, "value": "x", @@ -5212,7 +5212,7 @@ "type": "Identifier", "span": { "start": 1947, - "end": 1953, + "end": 1948, "ctxt": 0 }, "value": "x", @@ -5283,7 +5283,7 @@ "type": "Identifier", "span": { "start": 1976, - "end": 1989, + "end": 1977, "ctxt": 0 }, "value": "x", @@ -5374,7 +5374,7 @@ "type": "Identifier", "span": { "start": 2008, - "end": 2020, + "end": 2009, "ctxt": 0 }, "value": "x", @@ -5465,7 +5465,7 @@ "type": "Identifier", "span": { "start": 2045, - "end": 2051, + "end": 2046, "ctxt": 0 }, "value": "x", @@ -5536,7 +5536,7 @@ "type": "Identifier", "span": { "start": 2073, - "end": 2077, + "end": 2074, "ctxt": 0 }, "value": "x", @@ -5609,7 +5609,7 @@ "type": "Identifier", "span": { "start": 2095, - "end": 2106, + "end": 2096, "ctxt": 0 }, "value": "x", @@ -5682,7 +5682,7 @@ "type": "Identifier", "span": { "start": 2134, - "end": 2140, + "end": 2135, "ctxt": 0 }, "value": "x", @@ -5753,7 +5753,7 @@ "type": "Identifier", "span": { "start": 2162, - "end": 2166, + "end": 2163, "ctxt": 0 }, "value": "x", @@ -5826,7 +5826,7 @@ "type": "Identifier", "span": { "start": 2184, - "end": 2195, + "end": 2185, "ctxt": 0 }, "value": "x", @@ -5899,7 +5899,7 @@ "type": "Identifier", "span": { "start": 2219, - "end": 2225, + "end": 2220, "ctxt": 0 }, "value": "x", @@ -5970,7 +5970,7 @@ "type": "Identifier", "span": { "start": 2247, - "end": 2260, + "end": 2248, "ctxt": 0 }, "value": "x", @@ -6061,7 +6061,7 @@ "type": "Identifier", "span": { "start": 2278, - "end": 2290, + "end": 2279, "ctxt": 0 }, "value": "x", @@ -6152,7 +6152,7 @@ "type": "Identifier", "span": { "start": 2314, - "end": 2320, + "end": 2315, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithComplexConstraints.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithComplexConstraints.json index 4c39ce807fe7..d0cd2a6e23e3 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithComplexConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithComplexConstraints.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 87, - "end": 91, + "end": 88, "ctxt": 0 }, "value": "x", @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 93, - "end": 97, + "end": 94, "ctxt": 0 }, "value": "y", @@ -182,7 +182,7 @@ "type": "Identifier", "span": { "start": 60, - "end": 64, + "end": 61, "ctxt": 0 }, "value": "x", @@ -219,7 +219,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 70, + "end": 67, "ctxt": 0 }, "value": "y", @@ -372,7 +372,7 @@ "type": "Identifier", "span": { "start": 142, - "end": 146, + "end": 143, "ctxt": 0 }, "value": "x", @@ -409,7 +409,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 152, + "end": 149, "ctxt": 0 }, "value": "y", @@ -541,7 +541,7 @@ "type": "Identifier", "span": { "start": 293, - "end": 297, + "end": 294, "ctxt": 0 }, "value": "x", @@ -614,7 +614,7 @@ "type": "Identifier", "span": { "start": 313, - "end": 317, + "end": 314, "ctxt": 0 }, "value": "x", @@ -687,7 +687,7 @@ "type": "Identifier", "span": { "start": 379, - "end": 385, + "end": 380, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures.json index fa7affd9cf28..aa06a5bc5a96 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 71, - "end": 80, + "end": 72, "ctxt": 0 }, "value": "x", @@ -150,7 +150,7 @@ "type": "Identifier", "span": { "start": 115, - "end": 124, + "end": 116, "ctxt": 0 }, "value": "x", @@ -244,7 +244,7 @@ "type": "Identifier", "span": { "start": 162, - "end": 166, + "end": 163, "ctxt": 0 }, "value": "x", @@ -370,7 +370,7 @@ "type": "Identifier", "span": { "start": 197, - "end": 206, + "end": 198, "ctxt": 0 }, "value": "x", @@ -472,7 +472,7 @@ "type": "Identifier", "span": { "start": 238, - "end": 242, + "end": 239, "ctxt": 0 }, "value": "x", @@ -591,7 +591,7 @@ "type": "Identifier", "span": { "start": 264, - "end": 273, + "end": 265, "ctxt": 0 }, "value": "x", @@ -653,7 +653,7 @@ "type": "Identifier", "span": { "start": 292, - "end": 296, + "end": 293, "ctxt": 0 }, "value": "x", @@ -726,7 +726,7 @@ "type": "Identifier", "span": { "start": 313, - "end": 317, + "end": 314, "ctxt": 0 }, "value": "x", @@ -799,7 +799,7 @@ "type": "Identifier", "span": { "start": 343, - "end": 349, + "end": 344, "ctxt": 0 }, "value": "x", @@ -870,7 +870,7 @@ "type": "Identifier", "span": { "start": 371, - "end": 375, + "end": 372, "ctxt": 0 }, "value": "x", @@ -943,7 +943,7 @@ "type": "Identifier", "span": { "start": 393, - "end": 397, + "end": 394, "ctxt": 0 }, "value": "x", @@ -1016,7 +1016,7 @@ "type": "Identifier", "span": { "start": 424, - "end": 430, + "end": 425, "ctxt": 0 }, "value": "x", @@ -1087,7 +1087,7 @@ "type": "Identifier", "span": { "start": 452, - "end": 464, + "end": 453, "ctxt": 0 }, "value": "x", @@ -1178,7 +1178,7 @@ "type": "Identifier", "span": { "start": 482, - "end": 494, + "end": 483, "ctxt": 0 }, "value": "x", @@ -1269,7 +1269,7 @@ "type": "Identifier", "span": { "start": 521, - "end": 527, + "end": 522, "ctxt": 0 }, "value": "x", @@ -1340,7 +1340,7 @@ "type": "Identifier", "span": { "start": 548, - "end": 552, + "end": 549, "ctxt": 0 }, "value": "x", @@ -1413,7 +1413,7 @@ "type": "Identifier", "span": { "start": 569, - "end": 573, + "end": 570, "ctxt": 0 }, "value": "x", @@ -1486,7 +1486,7 @@ "type": "Identifier", "span": { "start": 599, - "end": 605, + "end": 600, "ctxt": 0 }, "value": "x", @@ -1557,7 +1557,7 @@ "type": "Identifier", "span": { "start": 626, - "end": 637, + "end": 627, "ctxt": 0 }, "value": "x", @@ -1630,7 +1630,7 @@ "type": "Identifier", "span": { "start": 654, - "end": 665, + "end": 655, "ctxt": 0 }, "value": "x", @@ -1703,7 +1703,7 @@ "type": "Identifier", "span": { "start": 691, - "end": 697, + "end": 692, "ctxt": 0 }, "value": "x", @@ -1774,7 +1774,7 @@ "type": "Identifier", "span": { "start": 718, - "end": 722, + "end": 719, "ctxt": 0 }, "value": "x", @@ -1847,7 +1847,7 @@ "type": "Identifier", "span": { "start": 739, - "end": 743, + "end": 740, "ctxt": 0 }, "value": "x", @@ -1920,7 +1920,7 @@ "type": "Identifier", "span": { "start": 769, - "end": 775, + "end": 770, "ctxt": 0 }, "value": "x", @@ -1991,7 +1991,7 @@ "type": "Identifier", "span": { "start": 797, - "end": 801, + "end": 798, "ctxt": 0 }, "value": "x", @@ -2064,7 +2064,7 @@ "type": "Identifier", "span": { "start": 819, - "end": 831, + "end": 820, "ctxt": 0 }, "value": "x", @@ -2155,7 +2155,7 @@ "type": "Identifier", "span": { "start": 858, - "end": 864, + "end": 859, "ctxt": 0 }, "value": "x", @@ -2226,7 +2226,7 @@ "type": "Identifier", "span": { "start": 885, - "end": 889, + "end": 886, "ctxt": 0 }, "value": "x", @@ -2299,7 +2299,7 @@ "type": "Identifier", "span": { "start": 906, - "end": 910, + "end": 907, "ctxt": 0 }, "value": "x", @@ -2372,7 +2372,7 @@ "type": "Identifier", "span": { "start": 934, - "end": 940, + "end": 935, "ctxt": 0 }, "value": "x", @@ -2443,7 +2443,7 @@ "type": "Identifier", "span": { "start": 961, - "end": 965, + "end": 962, "ctxt": 0 }, "value": "x", @@ -2516,7 +2516,7 @@ "type": "Identifier", "span": { "start": 982, - "end": 993, + "end": 983, "ctxt": 0 }, "value": "x", @@ -2589,7 +2589,7 @@ "type": "Identifier", "span": { "start": 1016, - "end": 1022, + "end": 1017, "ctxt": 0 }, "value": "x", @@ -2660,7 +2660,7 @@ "type": "Identifier", "span": { "start": 1043, - "end": 1047, + "end": 1044, "ctxt": 0 }, "value": "x", @@ -2733,7 +2733,7 @@ "type": "Identifier", "span": { "start": 1064, - "end": 1068, + "end": 1065, "ctxt": 0 }, "value": "x", @@ -2806,7 +2806,7 @@ "type": "Identifier", "span": { "start": 1091, - "end": 1097, + "end": 1092, "ctxt": 0 }, "value": "x", @@ -2877,7 +2877,7 @@ "type": "Identifier", "span": { "start": 1118, - "end": 1122, + "end": 1119, "ctxt": 0 }, "value": "x", @@ -2950,7 +2950,7 @@ "type": "Identifier", "span": { "start": 1139, - "end": 1151, + "end": 1140, "ctxt": 0 }, "value": "x", @@ -3041,7 +3041,7 @@ "type": "Identifier", "span": { "start": 1177, - "end": 1183, + "end": 1178, "ctxt": 0 }, "value": "x", @@ -3112,7 +3112,7 @@ "type": "Identifier", "span": { "start": 1205, - "end": 1209, + "end": 1206, "ctxt": 0 }, "value": "x", @@ -3185,7 +3185,7 @@ "type": "Identifier", "span": { "start": 1227, - "end": 1238, + "end": 1228, "ctxt": 0 }, "value": "x", @@ -3258,7 +3258,7 @@ "type": "Identifier", "span": { "start": 1262, - "end": 1268, + "end": 1263, "ctxt": 0 }, "value": "x", @@ -3329,7 +3329,7 @@ "type": "Identifier", "span": { "start": 1290, - "end": 1294, + "end": 1291, "ctxt": 0 }, "value": "x", @@ -3402,7 +3402,7 @@ "type": "Identifier", "span": { "start": 1312, - "end": 1324, + "end": 1313, "ctxt": 0 }, "value": "x", @@ -3493,7 +3493,7 @@ "type": "Identifier", "span": { "start": 1348, - "end": 1354, + "end": 1349, "ctxt": 0 }, "value": "x", @@ -3564,7 +3564,7 @@ "type": "Identifier", "span": { "start": 1377, - "end": 1390, + "end": 1378, "ctxt": 0 }, "value": "x", @@ -3655,7 +3655,7 @@ "type": "Identifier", "span": { "start": 1409, - "end": 1421, + "end": 1410, "ctxt": 0 }, "value": "x", @@ -3746,7 +3746,7 @@ "type": "Identifier", "span": { "start": 1446, - "end": 1452, + "end": 1447, "ctxt": 0 }, "value": "x", @@ -3817,7 +3817,7 @@ "type": "Identifier", "span": { "start": 1474, - "end": 1478, + "end": 1475, "ctxt": 0 }, "value": "x", @@ -3890,7 +3890,7 @@ "type": "Identifier", "span": { "start": 1496, - "end": 1507, + "end": 1497, "ctxt": 0 }, "value": "x", @@ -3963,7 +3963,7 @@ "type": "Identifier", "span": { "start": 1534, - "end": 1540, + "end": 1535, "ctxt": 0 }, "value": "x", @@ -4034,7 +4034,7 @@ "type": "Identifier", "span": { "start": 1562, - "end": 1575, + "end": 1563, "ctxt": 0 }, "value": "x", @@ -4125,7 +4125,7 @@ "type": "Identifier", "span": { "start": 1593, - "end": 1605, + "end": 1594, "ctxt": 0 }, "value": "x", @@ -4216,7 +4216,7 @@ "type": "Identifier", "span": { "start": 1629, - "end": 1635, + "end": 1630, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures2.json index 5d138967bd33..ed544234e1cc 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures2.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 71, - "end": 80, + "end": 72, "ctxt": 0 }, "value": "x", @@ -167,7 +167,7 @@ "type": "Identifier", "span": { "start": 131, - "end": 135, + "end": 132, "ctxt": 0 }, "value": "x", @@ -310,7 +310,7 @@ "type": "Identifier", "span": { "start": 179, - "end": 189, + "end": 180, "ctxt": 0 }, "value": "x", @@ -428,7 +428,7 @@ "type": "Identifier", "span": { "start": 229, - "end": 233, + "end": 230, "ctxt": 0 }, "value": "x", @@ -547,7 +547,7 @@ "type": "Identifier", "span": { "start": 255, - "end": 262, + "end": 256, "ctxt": 0 }, "value": "x", @@ -670,7 +670,7 @@ "type": "Identifier", "span": { "start": 288, - "end": 297, + "end": 289, "ctxt": 0 }, "value": "x", @@ -776,7 +776,7 @@ "type": "Identifier", "span": { "start": 383, - "end": 387, + "end": 384, "ctxt": 0 }, "value": "x", @@ -849,7 +849,7 @@ "type": "Identifier", "span": { "start": 405, - "end": 409, + "end": 406, "ctxt": 0 }, "value": "x", @@ -922,7 +922,7 @@ "type": "Identifier", "span": { "start": 436, - "end": 442, + "end": 437, "ctxt": 0 }, "value": "x", @@ -993,7 +993,7 @@ "type": "Identifier", "span": { "start": 464, - "end": 476, + "end": 465, "ctxt": 0 }, "value": "x", @@ -1084,7 +1084,7 @@ "type": "Identifier", "span": { "start": 494, - "end": 506, + "end": 495, "ctxt": 0 }, "value": "x", @@ -1175,7 +1175,7 @@ "type": "Identifier", "span": { "start": 533, - "end": 539, + "end": 534, "ctxt": 0 }, "value": "x", @@ -1246,7 +1246,7 @@ "type": "Identifier", "span": { "start": 560, - "end": 564, + "end": 561, "ctxt": 0 }, "value": "x", @@ -1319,7 +1319,7 @@ "type": "Identifier", "span": { "start": 581, - "end": 585, + "end": 582, "ctxt": 0 }, "value": "x", @@ -1392,7 +1392,7 @@ "type": "Identifier", "span": { "start": 611, - "end": 617, + "end": 612, "ctxt": 0 }, "value": "x", @@ -1463,7 +1463,7 @@ "type": "Identifier", "span": { "start": 638, - "end": 649, + "end": 639, "ctxt": 0 }, "value": "x", @@ -1536,7 +1536,7 @@ "type": "Identifier", "span": { "start": 666, - "end": 677, + "end": 667, "ctxt": 0 }, "value": "x", @@ -1609,7 +1609,7 @@ "type": "Identifier", "span": { "start": 703, - "end": 709, + "end": 704, "ctxt": 0 }, "value": "x", @@ -1680,7 +1680,7 @@ "type": "Identifier", "span": { "start": 730, - "end": 741, + "end": 731, "ctxt": 0 }, "value": "x", @@ -1753,7 +1753,7 @@ "type": "Identifier", "span": { "start": 758, - "end": 769, + "end": 759, "ctxt": 0 }, "value": "x", @@ -1826,7 +1826,7 @@ "type": "Identifier", "span": { "start": 795, - "end": 801, + "end": 796, "ctxt": 0 }, "value": "x", @@ -1897,7 +1897,7 @@ "type": "Identifier", "span": { "start": 822, - "end": 826, + "end": 823, "ctxt": 0 }, "value": "x", @@ -1970,7 +1970,7 @@ "type": "Identifier", "span": { "start": 843, - "end": 847, + "end": 844, "ctxt": 0 }, "value": "x", @@ -2043,7 +2043,7 @@ "type": "Identifier", "span": { "start": 870, - "end": 876, + "end": 871, "ctxt": 0 }, "value": "x", @@ -2114,7 +2114,7 @@ "type": "Identifier", "span": { "start": 897, - "end": 901, + "end": 898, "ctxt": 0 }, "value": "x", @@ -2187,7 +2187,7 @@ "type": "Identifier", "span": { "start": 918, - "end": 930, + "end": 919, "ctxt": 0 }, "value": "x", @@ -2278,7 +2278,7 @@ "type": "Identifier", "span": { "start": 986, - "end": 992, + "end": 987, "ctxt": 0 }, "value": "x", @@ -2349,7 +2349,7 @@ "type": "Identifier", "span": { "start": 1014, - "end": 1018, + "end": 1015, "ctxt": 0 }, "value": "x", @@ -2422,7 +2422,7 @@ "type": "Identifier", "span": { "start": 1036, - "end": 1047, + "end": 1037, "ctxt": 0 }, "value": "x", @@ -2495,7 +2495,7 @@ "type": "Identifier", "span": { "start": 1071, - "end": 1077, + "end": 1072, "ctxt": 0 }, "value": "x", @@ -2566,7 +2566,7 @@ "type": "Identifier", "span": { "start": 1099, - "end": 1103, + "end": 1100, "ctxt": 0 }, "value": "x", @@ -2639,7 +2639,7 @@ "type": "Identifier", "span": { "start": 1121, - "end": 1132, + "end": 1122, "ctxt": 0 }, "value": "x", @@ -2712,7 +2712,7 @@ "type": "Identifier", "span": { "start": 1156, - "end": 1162, + "end": 1157, "ctxt": 0 }, "value": "x", @@ -2783,7 +2783,7 @@ "type": "Identifier", "span": { "start": 1184, - "end": 1188, + "end": 1185, "ctxt": 0 }, "value": "x", @@ -2856,7 +2856,7 @@ "type": "Identifier", "span": { "start": 1206, - "end": 1218, + "end": 1207, "ctxt": 0 }, "value": "x", @@ -2947,7 +2947,7 @@ "type": "Identifier", "span": { "start": 1242, - "end": 1248, + "end": 1243, "ctxt": 0 }, "value": "x", @@ -3018,7 +3018,7 @@ "type": "Identifier", "span": { "start": 1271, - "end": 1284, + "end": 1272, "ctxt": 0 }, "value": "x", @@ -3109,7 +3109,7 @@ "type": "Identifier", "span": { "start": 1303, - "end": 1315, + "end": 1304, "ctxt": 0 }, "value": "x", @@ -3200,7 +3200,7 @@ "type": "Identifier", "span": { "start": 1340, - "end": 1346, + "end": 1341, "ctxt": 0 }, "value": "x", @@ -3271,7 +3271,7 @@ "type": "Identifier", "span": { "start": 1368, - "end": 1372, + "end": 1369, "ctxt": 0 }, "value": "x", @@ -3344,7 +3344,7 @@ "type": "Identifier", "span": { "start": 1390, - "end": 1401, + "end": 1391, "ctxt": 0 }, "value": "x", @@ -3417,7 +3417,7 @@ "type": "Identifier", "span": { "start": 1425, - "end": 1431, + "end": 1426, "ctxt": 0 }, "value": "x", @@ -3488,7 +3488,7 @@ "type": "Identifier", "span": { "start": 1453, - "end": 1457, + "end": 1454, "ctxt": 0 }, "value": "x", @@ -3561,7 +3561,7 @@ "type": "Identifier", "span": { "start": 1475, - "end": 1486, + "end": 1476, "ctxt": 0 }, "value": "x", @@ -3634,7 +3634,7 @@ "type": "Identifier", "span": { "start": 1510, - "end": 1516, + "end": 1511, "ctxt": 0 }, "value": "x", @@ -3705,7 +3705,7 @@ "type": "Identifier", "span": { "start": 1538, - "end": 1551, + "end": 1539, "ctxt": 0 }, "value": "x", @@ -3796,7 +3796,7 @@ "type": "Identifier", "span": { "start": 1569, - "end": 1581, + "end": 1570, "ctxt": 0 }, "value": "x", @@ -3887,7 +3887,7 @@ "type": "Identifier", "span": { "start": 1605, - "end": 1611, + "end": 1606, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.json index d56f4c6140b3..c4af43f0f9db 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 71, - "end": 80, + "end": 72, "ctxt": 0 }, "value": "x", @@ -92,7 +92,7 @@ "type": "Identifier", "span": { "start": 82, - "end": 91, + "end": 83, "ctxt": 0 }, "value": "y", @@ -203,7 +203,7 @@ "type": "Identifier", "span": { "start": 142, - "end": 146, + "end": 143, "ctxt": 0 }, "value": "x", @@ -249,7 +249,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 152, + "end": 149, "ctxt": 0 }, "value": "y", @@ -392,7 +392,7 @@ "type": "Identifier", "span": { "start": 196, - "end": 205, + "end": 197, "ctxt": 0 }, "value": "x", @@ -510,7 +510,7 @@ "type": "Identifier", "span": { "start": 245, - "end": 249, + "end": 246, "ctxt": 0 }, "value": "x", @@ -629,7 +629,7 @@ "type": "Identifier", "span": { "start": 271, - "end": 280, + "end": 272, "ctxt": 0 }, "value": "x", @@ -656,7 +656,7 @@ "type": "Identifier", "span": { "start": 282, - "end": 291, + "end": 283, "ctxt": 0 }, "value": "y", @@ -769,7 +769,7 @@ "type": "Identifier", "span": { "start": 317, - "end": 326, + "end": 318, "ctxt": 0 }, "value": "x", @@ -865,7 +865,7 @@ "type": "Identifier", "span": { "start": 412, - "end": 416, + "end": 413, "ctxt": 0 }, "value": "x", @@ -938,7 +938,7 @@ "type": "Identifier", "span": { "start": 434, - "end": 438, + "end": 435, "ctxt": 0 }, "value": "x", @@ -1011,7 +1011,7 @@ "type": "Identifier", "span": { "start": 465, - "end": 471, + "end": 466, "ctxt": 0 }, "value": "x", @@ -1082,7 +1082,7 @@ "type": "Identifier", "span": { "start": 493, - "end": 505, + "end": 494, "ctxt": 0 }, "value": "x", @@ -1173,7 +1173,7 @@ "type": "Identifier", "span": { "start": 523, - "end": 535, + "end": 524, "ctxt": 0 }, "value": "x", @@ -1264,7 +1264,7 @@ "type": "Identifier", "span": { "start": 562, - "end": 568, + "end": 563, "ctxt": 0 }, "value": "x", @@ -1335,7 +1335,7 @@ "type": "Identifier", "span": { "start": 589, - "end": 593, + "end": 590, "ctxt": 0 }, "value": "x", @@ -1408,7 +1408,7 @@ "type": "Identifier", "span": { "start": 610, - "end": 614, + "end": 611, "ctxt": 0 }, "value": "x", @@ -1481,7 +1481,7 @@ "type": "Identifier", "span": { "start": 640, - "end": 646, + "end": 641, "ctxt": 0 }, "value": "x", @@ -1552,7 +1552,7 @@ "type": "Identifier", "span": { "start": 667, - "end": 678, + "end": 668, "ctxt": 0 }, "value": "x", @@ -1625,7 +1625,7 @@ "type": "Identifier", "span": { "start": 695, - "end": 706, + "end": 696, "ctxt": 0 }, "value": "x", @@ -1698,7 +1698,7 @@ "type": "Identifier", "span": { "start": 732, - "end": 738, + "end": 733, "ctxt": 0 }, "value": "x", @@ -1769,7 +1769,7 @@ "type": "Identifier", "span": { "start": 759, - "end": 770, + "end": 760, "ctxt": 0 }, "value": "x", @@ -1842,7 +1842,7 @@ "type": "Identifier", "span": { "start": 787, - "end": 798, + "end": 788, "ctxt": 0 }, "value": "x", @@ -1915,7 +1915,7 @@ "type": "Identifier", "span": { "start": 824, - "end": 830, + "end": 825, "ctxt": 0 }, "value": "x", @@ -1986,7 +1986,7 @@ "type": "Identifier", "span": { "start": 851, - "end": 855, + "end": 852, "ctxt": 0 }, "value": "x", @@ -2059,7 +2059,7 @@ "type": "Identifier", "span": { "start": 872, - "end": 876, + "end": 873, "ctxt": 0 }, "value": "x", @@ -2132,7 +2132,7 @@ "type": "Identifier", "span": { "start": 899, - "end": 905, + "end": 900, "ctxt": 0 }, "value": "x", @@ -2203,7 +2203,7 @@ "type": "Identifier", "span": { "start": 926, - "end": 930, + "end": 927, "ctxt": 0 }, "value": "x", @@ -2276,7 +2276,7 @@ "type": "Identifier", "span": { "start": 947, - "end": 959, + "end": 948, "ctxt": 0 }, "value": "x", @@ -2367,7 +2367,7 @@ "type": "Identifier", "span": { "start": 1015, - "end": 1021, + "end": 1016, "ctxt": 0 }, "value": "x", @@ -2438,7 +2438,7 @@ "type": "Identifier", "span": { "start": 1043, - "end": 1047, + "end": 1044, "ctxt": 0 }, "value": "x", @@ -2511,7 +2511,7 @@ "type": "Identifier", "span": { "start": 1065, - "end": 1076, + "end": 1066, "ctxt": 0 }, "value": "x", @@ -2584,7 +2584,7 @@ "type": "Identifier", "span": { "start": 1100, - "end": 1106, + "end": 1101, "ctxt": 0 }, "value": "x", @@ -2655,7 +2655,7 @@ "type": "Identifier", "span": { "start": 1128, - "end": 1132, + "end": 1129, "ctxt": 0 }, "value": "x", @@ -2728,7 +2728,7 @@ "type": "Identifier", "span": { "start": 1150, - "end": 1161, + "end": 1151, "ctxt": 0 }, "value": "x", @@ -2801,7 +2801,7 @@ "type": "Identifier", "span": { "start": 1185, - "end": 1191, + "end": 1186, "ctxt": 0 }, "value": "x", @@ -2872,7 +2872,7 @@ "type": "Identifier", "span": { "start": 1213, - "end": 1217, + "end": 1214, "ctxt": 0 }, "value": "x", @@ -2945,7 +2945,7 @@ "type": "Identifier", "span": { "start": 1235, - "end": 1247, + "end": 1236, "ctxt": 0 }, "value": "x", @@ -3036,7 +3036,7 @@ "type": "Identifier", "span": { "start": 1271, - "end": 1277, + "end": 1272, "ctxt": 0 }, "value": "x", @@ -3107,7 +3107,7 @@ "type": "Identifier", "span": { "start": 1300, - "end": 1313, + "end": 1301, "ctxt": 0 }, "value": "x", @@ -3198,7 +3198,7 @@ "type": "Identifier", "span": { "start": 1332, - "end": 1344, + "end": 1333, "ctxt": 0 }, "value": "x", @@ -3289,7 +3289,7 @@ "type": "Identifier", "span": { "start": 1369, - "end": 1375, + "end": 1370, "ctxt": 0 }, "value": "x", @@ -3360,7 +3360,7 @@ "type": "Identifier", "span": { "start": 1397, - "end": 1401, + "end": 1398, "ctxt": 0 }, "value": "x", @@ -3433,7 +3433,7 @@ "type": "Identifier", "span": { "start": 1419, - "end": 1430, + "end": 1420, "ctxt": 0 }, "value": "x", @@ -3506,7 +3506,7 @@ "type": "Identifier", "span": { "start": 1454, - "end": 1460, + "end": 1455, "ctxt": 0 }, "value": "x", @@ -3577,7 +3577,7 @@ "type": "Identifier", "span": { "start": 1482, - "end": 1486, + "end": 1483, "ctxt": 0 }, "value": "x", @@ -3650,7 +3650,7 @@ "type": "Identifier", "span": { "start": 1504, - "end": 1515, + "end": 1505, "ctxt": 0 }, "value": "x", @@ -3723,7 +3723,7 @@ "type": "Identifier", "span": { "start": 1539, - "end": 1545, + "end": 1540, "ctxt": 0 }, "value": "x", @@ -3794,7 +3794,7 @@ "type": "Identifier", "span": { "start": 1567, - "end": 1580, + "end": 1568, "ctxt": 0 }, "value": "x", @@ -3885,7 +3885,7 @@ "type": "Identifier", "span": { "start": 1598, - "end": 1610, + "end": 1599, "ctxt": 0 }, "value": "x", @@ -3976,7 +3976,7 @@ "type": "Identifier", "span": { "start": 1634, - "end": 1640, + "end": 1635, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignatures.json index 884847986816..034957ff9c30 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignatures.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 70, + "end": 67, "ctxt": 0 }, "value": "x", @@ -252,7 +252,7 @@ "type": "Identifier", "span": { "start": 116, - "end": 120, + "end": 117, "ctxt": 0 }, "value": "x", @@ -447,7 +447,7 @@ "type": "Identifier", "span": { "start": 166, - "end": 170, + "end": 167, "ctxt": 0 }, "value": "x", @@ -676,7 +676,7 @@ "type": "Identifier", "span": { "start": 220, - "end": 224, + "end": 221, "ctxt": 0 }, "value": "x", @@ -795,7 +795,7 @@ "type": "Identifier", "span": { "start": 259, - "end": 263, + "end": 260, "ctxt": 0 }, "value": "x", @@ -959,7 +959,7 @@ "type": "Identifier", "span": { "start": 288, - "end": 292, + "end": 289, "ctxt": 0 }, "value": "x", @@ -1124,7 +1124,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 320, + "end": 317, "ctxt": 0 }, "value": "x", @@ -1262,7 +1262,7 @@ "type": "Identifier", "span": { "start": 354, - "end": 358, + "end": 355, "ctxt": 0 }, "value": "x", @@ -1335,7 +1335,7 @@ "type": "Identifier", "span": { "start": 375, - "end": 379, + "end": 376, "ctxt": 0 }, "value": "x", @@ -1408,7 +1408,7 @@ "type": "Identifier", "span": { "start": 405, - "end": 411, + "end": 406, "ctxt": 0 }, "value": "x", @@ -1479,7 +1479,7 @@ "type": "Identifier", "span": { "start": 433, - "end": 445, + "end": 434, "ctxt": 0 }, "value": "x", @@ -1570,7 +1570,7 @@ "type": "Identifier", "span": { "start": 463, - "end": 475, + "end": 464, "ctxt": 0 }, "value": "x", @@ -1661,7 +1661,7 @@ "type": "Identifier", "span": { "start": 502, - "end": 508, + "end": 503, "ctxt": 0 }, "value": "x", @@ -1732,7 +1732,7 @@ "type": "Identifier", "span": { "start": 530, - "end": 542, + "end": 531, "ctxt": 0 }, "value": "x", @@ -1823,7 +1823,7 @@ "type": "Identifier", "span": { "start": 560, - "end": 572, + "end": 561, "ctxt": 0 }, "value": "x", @@ -1914,7 +1914,7 @@ "type": "Identifier", "span": { "start": 599, - "end": 605, + "end": 600, "ctxt": 0 }, "value": "x", @@ -1985,7 +1985,7 @@ "type": "Identifier", "span": { "start": 626, - "end": 638, + "end": 627, "ctxt": 0 }, "value": "x", @@ -2076,7 +2076,7 @@ "type": "Identifier", "span": { "start": 655, - "end": 667, + "end": 656, "ctxt": 0 }, "value": "x", @@ -2167,7 +2167,7 @@ "type": "Identifier", "span": { "start": 693, - "end": 699, + "end": 694, "ctxt": 0 }, "value": "x", @@ -2238,7 +2238,7 @@ "type": "Identifier", "span": { "start": 720, - "end": 731, + "end": 721, "ctxt": 0 }, "value": "x", @@ -2311,7 +2311,7 @@ "type": "Identifier", "span": { "start": 748, - "end": 759, + "end": 749, "ctxt": 0 }, "value": "x", @@ -2384,7 +2384,7 @@ "type": "Identifier", "span": { "start": 785, - "end": 791, + "end": 786, "ctxt": 0 }, "value": "x", @@ -2455,7 +2455,7 @@ "type": "Identifier", "span": { "start": 812, - "end": 823, + "end": 813, "ctxt": 0 }, "value": "x", @@ -2528,7 +2528,7 @@ "type": "Identifier", "span": { "start": 840, - "end": 851, + "end": 841, "ctxt": 0 }, "value": "x", @@ -2601,7 +2601,7 @@ "type": "Identifier", "span": { "start": 877, - "end": 883, + "end": 878, "ctxt": 0 }, "value": "x", @@ -2672,7 +2672,7 @@ "type": "Identifier", "span": { "start": 904, - "end": 908, + "end": 905, "ctxt": 0 }, "value": "x", @@ -2745,7 +2745,7 @@ "type": "Identifier", "span": { "start": 925, - "end": 937, + "end": 926, "ctxt": 0 }, "value": "x", @@ -2836,7 +2836,7 @@ "type": "Identifier", "span": { "start": 960, - "end": 966, + "end": 961, "ctxt": 0 }, "value": "x", @@ -2907,7 +2907,7 @@ "type": "Identifier", "span": { "start": 988, - "end": 992, + "end": 989, "ctxt": 0 }, "value": "x", @@ -2980,7 +2980,7 @@ "type": "Identifier", "span": { "start": 1010, - "end": 1022, + "end": 1011, "ctxt": 0 }, "value": "x", @@ -3071,7 +3071,7 @@ "type": "Identifier", "span": { "start": 1046, - "end": 1052, + "end": 1047, "ctxt": 0 }, "value": "x", @@ -3142,7 +3142,7 @@ "type": "Identifier", "span": { "start": 1073, - "end": 1077, + "end": 1074, "ctxt": 0 }, "value": "x", @@ -3215,7 +3215,7 @@ "type": "Identifier", "span": { "start": 1094, - "end": 1106, + "end": 1095, "ctxt": 0 }, "value": "x", @@ -3306,7 +3306,7 @@ "type": "Identifier", "span": { "start": 1129, - "end": 1135, + "end": 1130, "ctxt": 0 }, "value": "x", @@ -3377,7 +3377,7 @@ "type": "Identifier", "span": { "start": 1156, - "end": 1160, + "end": 1157, "ctxt": 0 }, "value": "x", @@ -3450,7 +3450,7 @@ "type": "Identifier", "span": { "start": 1177, - "end": 1188, + "end": 1178, "ctxt": 0 }, "value": "x", @@ -3523,7 +3523,7 @@ "type": "Identifier", "span": { "start": 1214, - "end": 1220, + "end": 1215, "ctxt": 0 }, "value": "x", @@ -3594,7 +3594,7 @@ "type": "Identifier", "span": { "start": 1241, - "end": 1253, + "end": 1242, "ctxt": 0 }, "value": "x", @@ -3685,7 +3685,7 @@ "type": "Identifier", "span": { "start": 1270, - "end": 1282, + "end": 1271, "ctxt": 0 }, "value": "x", @@ -3776,7 +3776,7 @@ "type": "Identifier", "span": { "start": 1308, - "end": 1314, + "end": 1309, "ctxt": 0 }, "value": "x", @@ -3847,7 +3847,7 @@ "type": "Identifier", "span": { "start": 1335, - "end": 1347, + "end": 1336, "ctxt": 0 }, "value": "x", @@ -3938,7 +3938,7 @@ "type": "Identifier", "span": { "start": 1364, - "end": 1376, + "end": 1365, "ctxt": 0 }, "value": "x", @@ -4029,7 +4029,7 @@ "type": "Identifier", "span": { "start": 1402, - "end": 1408, + "end": 1403, "ctxt": 0 }, "value": "x", @@ -4100,7 +4100,7 @@ "type": "Identifier", "span": { "start": 1430, - "end": 1442, + "end": 1431, "ctxt": 0 }, "value": "x", @@ -4191,7 +4191,7 @@ "type": "Identifier", "span": { "start": 1460, - "end": 1471, + "end": 1461, "ctxt": 0 }, "value": "x", @@ -4264,7 +4264,7 @@ "type": "Identifier", "span": { "start": 1495, - "end": 1501, + "end": 1496, "ctxt": 0 }, "value": "x", @@ -4335,7 +4335,7 @@ "type": "Identifier", "span": { "start": 1523, - "end": 1535, + "end": 1524, "ctxt": 0 }, "value": "x", @@ -4426,7 +4426,7 @@ "type": "Identifier", "span": { "start": 1553, - "end": 1564, + "end": 1554, "ctxt": 0 }, "value": "x", @@ -4499,7 +4499,7 @@ "type": "Identifier", "span": { "start": 1588, - "end": 1594, + "end": 1589, "ctxt": 0 }, "value": "x", @@ -4570,7 +4570,7 @@ "type": "Identifier", "span": { "start": 1616, - "end": 1628, + "end": 1617, "ctxt": 0 }, "value": "x", @@ -4661,7 +4661,7 @@ "type": "Identifier", "span": { "start": 1646, - "end": 1658, + "end": 1647, "ctxt": 0 }, "value": "x", @@ -4752,7 +4752,7 @@ "type": "Identifier", "span": { "start": 1685, - "end": 1691, + "end": 1686, "ctxt": 0 }, "value": "x", @@ -4823,7 +4823,7 @@ "type": "Identifier", "span": { "start": 1714, - "end": 1719, + "end": 1715, "ctxt": 0 }, "value": "x", @@ -4896,7 +4896,7 @@ "type": "Identifier", "span": { "start": 1738, - "end": 1750, + "end": 1739, "ctxt": 0 }, "value": "x", @@ -4987,7 +4987,7 @@ "type": "Identifier", "span": { "start": 1775, - "end": 1781, + "end": 1776, "ctxt": 0 }, "value": "x", @@ -5058,7 +5058,7 @@ "type": "Identifier", "span": { "start": 1803, - "end": 1815, + "end": 1804, "ctxt": 0 }, "value": "x", @@ -5149,7 +5149,7 @@ "type": "Identifier", "span": { "start": 1833, - "end": 1844, + "end": 1834, "ctxt": 0 }, "value": "x", @@ -5222,7 +5222,7 @@ "type": "Identifier", "span": { "start": 1868, - "end": 1874, + "end": 1869, "ctxt": 0 }, "value": "x", @@ -5293,7 +5293,7 @@ "type": "Identifier", "span": { "start": 1896, - "end": 1908, + "end": 1897, "ctxt": 0 }, "value": "x", @@ -5384,7 +5384,7 @@ "type": "Identifier", "span": { "start": 1926, - "end": 1937, + "end": 1927, "ctxt": 0 }, "value": "x", @@ -5457,7 +5457,7 @@ "type": "Identifier", "span": { "start": 1961, - "end": 1967, + "end": 1962, "ctxt": 0 }, "value": "x", @@ -5528,7 +5528,7 @@ "type": "Identifier", "span": { "start": 1989, - "end": 1994, + "end": 1990, "ctxt": 0 }, "value": "x", @@ -5601,7 +5601,7 @@ "type": "Identifier", "span": { "start": 2012, - "end": 2024, + "end": 2013, "ctxt": 0 }, "value": "x", @@ -5692,7 +5692,7 @@ "type": "Identifier", "span": { "start": 2048, - "end": 2054, + "end": 2049, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignatures2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignatures2.json index 4926191750b1..b6f66f506698 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignatures2.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 69, - "end": 73, + "end": 70, "ctxt": 0 }, "value": "x", @@ -103,7 +103,7 @@ "type": "Identifier", "span": { "start": 75, - "end": 79, + "end": 76, "ctxt": 0 }, "value": "y", @@ -321,7 +321,7 @@ "type": "Identifier", "span": { "start": 128, - "end": 132, + "end": 129, "ctxt": 0 }, "value": "x", @@ -367,7 +367,7 @@ "type": "Identifier", "span": { "start": 134, - "end": 138, + "end": 135, "ctxt": 0 }, "value": "y", @@ -585,7 +585,7 @@ "type": "Identifier", "span": { "start": 187, - "end": 191, + "end": 188, "ctxt": 0 }, "value": "x", @@ -631,7 +631,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 197, + "end": 194, "ctxt": 0 }, "value": "y", @@ -906,7 +906,7 @@ "type": "Identifier", "span": { "start": 250, - "end": 254, + "end": 251, "ctxt": 0 }, "value": "x", @@ -943,7 +943,7 @@ "type": "Identifier", "span": { "start": 256, - "end": 260, + "end": 257, "ctxt": 0 }, "value": "y", @@ -1062,7 +1062,7 @@ "type": "Identifier", "span": { "start": 298, - "end": 302, + "end": 299, "ctxt": 0 }, "value": "x", @@ -1099,7 +1099,7 @@ "type": "Identifier", "span": { "start": 304, - "end": 308, + "end": 305, "ctxt": 0 }, "value": "y", @@ -1286,7 +1286,7 @@ "type": "Identifier", "span": { "start": 336, - "end": 340, + "end": 337, "ctxt": 0 }, "value": "x", @@ -1323,7 +1323,7 @@ "type": "Identifier", "span": { "start": 342, - "end": 346, + "end": 343, "ctxt": 0 }, "value": "y", @@ -1511,7 +1511,7 @@ "type": "Identifier", "span": { "start": 373, - "end": 377, + "end": 374, "ctxt": 0 }, "value": "x", @@ -1557,7 +1557,7 @@ "type": "Identifier", "span": { "start": 379, - "end": 383, + "end": 380, "ctxt": 0 }, "value": "y", @@ -1718,7 +1718,7 @@ "type": "Identifier", "span": { "start": 417, - "end": 421, + "end": 418, "ctxt": 0 }, "value": "x", @@ -1791,7 +1791,7 @@ "type": "Identifier", "span": { "start": 438, - "end": 442, + "end": 439, "ctxt": 0 }, "value": "x", @@ -1864,7 +1864,7 @@ "type": "Identifier", "span": { "start": 468, - "end": 474, + "end": 469, "ctxt": 0 }, "value": "x", @@ -1935,7 +1935,7 @@ "type": "Identifier", "span": { "start": 496, - "end": 516, + "end": 497, "ctxt": 0 }, "value": "x", @@ -2035,7 +2035,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 554, + "end": 535, "ctxt": 0 }, "value": "x", @@ -2135,7 +2135,7 @@ "type": "Identifier", "span": { "start": 581, - "end": 587, + "end": 582, "ctxt": 0 }, "value": "x", @@ -2206,7 +2206,7 @@ "type": "Identifier", "span": { "start": 609, - "end": 629, + "end": 610, "ctxt": 0 }, "value": "x", @@ -2306,7 +2306,7 @@ "type": "Identifier", "span": { "start": 647, - "end": 667, + "end": 648, "ctxt": 0 }, "value": "x", @@ -2406,7 +2406,7 @@ "type": "Identifier", "span": { "start": 694, - "end": 700, + "end": 695, "ctxt": 0 }, "value": "x", @@ -2477,7 +2477,7 @@ "type": "Identifier", "span": { "start": 721, - "end": 741, + "end": 722, "ctxt": 0 }, "value": "x", @@ -2577,7 +2577,7 @@ "type": "Identifier", "span": { "start": 758, - "end": 778, + "end": 759, "ctxt": 0 }, "value": "x", @@ -2677,7 +2677,7 @@ "type": "Identifier", "span": { "start": 804, - "end": 810, + "end": 805, "ctxt": 0 }, "value": "x", @@ -2748,7 +2748,7 @@ "type": "Identifier", "span": { "start": 831, - "end": 842, + "end": 832, "ctxt": 0 }, "value": "x", @@ -2821,7 +2821,7 @@ "type": "Identifier", "span": { "start": 859, - "end": 870, + "end": 860, "ctxt": 0 }, "value": "x", @@ -2894,7 +2894,7 @@ "type": "Identifier", "span": { "start": 896, - "end": 902, + "end": 897, "ctxt": 0 }, "value": "x", @@ -2965,7 +2965,7 @@ "type": "Identifier", "span": { "start": 923, - "end": 934, + "end": 924, "ctxt": 0 }, "value": "x", @@ -3038,7 +3038,7 @@ "type": "Identifier", "span": { "start": 951, - "end": 962, + "end": 952, "ctxt": 0 }, "value": "x", @@ -3111,7 +3111,7 @@ "type": "Identifier", "span": { "start": 988, - "end": 994, + "end": 989, "ctxt": 0 }, "value": "x", @@ -3182,7 +3182,7 @@ "type": "Identifier", "span": { "start": 1015, - "end": 1019, + "end": 1016, "ctxt": 0 }, "value": "x", @@ -3255,7 +3255,7 @@ "type": "Identifier", "span": { "start": 1036, - "end": 1056, + "end": 1037, "ctxt": 0 }, "value": "x", @@ -3355,7 +3355,7 @@ "type": "Identifier", "span": { "start": 1079, - "end": 1085, + "end": 1080, "ctxt": 0 }, "value": "x", @@ -3426,7 +3426,7 @@ "type": "Identifier", "span": { "start": 1107, - "end": 1111, + "end": 1108, "ctxt": 0 }, "value": "x", @@ -3499,7 +3499,7 @@ "type": "Identifier", "span": { "start": 1129, - "end": 1149, + "end": 1130, "ctxt": 0 }, "value": "x", @@ -3599,7 +3599,7 @@ "type": "Identifier", "span": { "start": 1173, - "end": 1179, + "end": 1174, "ctxt": 0 }, "value": "x", @@ -3670,7 +3670,7 @@ "type": "Identifier", "span": { "start": 1200, - "end": 1204, + "end": 1201, "ctxt": 0 }, "value": "x", @@ -3743,7 +3743,7 @@ "type": "Identifier", "span": { "start": 1221, - "end": 1241, + "end": 1222, "ctxt": 0 }, "value": "x", @@ -3843,7 +3843,7 @@ "type": "Identifier", "span": { "start": 1264, - "end": 1270, + "end": 1265, "ctxt": 0 }, "value": "x", @@ -3914,7 +3914,7 @@ "type": "Identifier", "span": { "start": 1291, - "end": 1295, + "end": 1292, "ctxt": 0 }, "value": "x", @@ -3987,7 +3987,7 @@ "type": "Identifier", "span": { "start": 1312, - "end": 1323, + "end": 1313, "ctxt": 0 }, "value": "x", @@ -4060,7 +4060,7 @@ "type": "Identifier", "span": { "start": 1358, - "end": 1364, + "end": 1359, "ctxt": 0 }, "value": "x", @@ -4131,7 +4131,7 @@ "type": "Identifier", "span": { "start": 1385, - "end": 1405, + "end": 1386, "ctxt": 0 }, "value": "x", @@ -4231,7 +4231,7 @@ "type": "Identifier", "span": { "start": 1422, - "end": 1442, + "end": 1423, "ctxt": 0 }, "value": "x", @@ -4331,7 +4331,7 @@ "type": "Identifier", "span": { "start": 1468, - "end": 1474, + "end": 1469, "ctxt": 0 }, "value": "x", @@ -4402,7 +4402,7 @@ "type": "Identifier", "span": { "start": 1495, - "end": 1515, + "end": 1496, "ctxt": 0 }, "value": "x", @@ -4502,7 +4502,7 @@ "type": "Identifier", "span": { "start": 1532, - "end": 1552, + "end": 1533, "ctxt": 0 }, "value": "x", @@ -4602,7 +4602,7 @@ "type": "Identifier", "span": { "start": 1578, - "end": 1584, + "end": 1579, "ctxt": 0 }, "value": "x", @@ -4673,7 +4673,7 @@ "type": "Identifier", "span": { "start": 1606, - "end": 1626, + "end": 1607, "ctxt": 0 }, "value": "x", @@ -4773,7 +4773,7 @@ "type": "Identifier", "span": { "start": 1644, - "end": 1655, + "end": 1645, "ctxt": 0 }, "value": "x", @@ -4846,7 +4846,7 @@ "type": "Identifier", "span": { "start": 1679, - "end": 1685, + "end": 1680, "ctxt": 0 }, "value": "x", @@ -4917,7 +4917,7 @@ "type": "Identifier", "span": { "start": 1707, - "end": 1727, + "end": 1708, "ctxt": 0 }, "value": "x", @@ -5017,7 +5017,7 @@ "type": "Identifier", "span": { "start": 1745, - "end": 1756, + "end": 1746, "ctxt": 0 }, "value": "x", @@ -5090,7 +5090,7 @@ "type": "Identifier", "span": { "start": 1780, - "end": 1786, + "end": 1781, "ctxt": 0 }, "value": "x", @@ -5161,7 +5161,7 @@ "type": "Identifier", "span": { "start": 1808, - "end": 1828, + "end": 1809, "ctxt": 0 }, "value": "x", @@ -5261,7 +5261,7 @@ "type": "Identifier", "span": { "start": 1846, - "end": 1866, + "end": 1847, "ctxt": 0 }, "value": "x", @@ -5361,7 +5361,7 @@ "type": "Identifier", "span": { "start": 1893, - "end": 1899, + "end": 1894, "ctxt": 0 }, "value": "x", @@ -5432,7 +5432,7 @@ "type": "Identifier", "span": { "start": 1922, - "end": 1927, + "end": 1923, "ctxt": 0 }, "value": "x", @@ -5505,7 +5505,7 @@ "type": "Identifier", "span": { "start": 1946, - "end": 1966, + "end": 1947, "ctxt": 0 }, "value": "x", @@ -5605,7 +5605,7 @@ "type": "Identifier", "span": { "start": 1991, - "end": 1997, + "end": 1992, "ctxt": 0 }, "value": "x", @@ -5676,7 +5676,7 @@ "type": "Identifier", "span": { "start": 2019, - "end": 2039, + "end": 2020, "ctxt": 0 }, "value": "x", @@ -5776,7 +5776,7 @@ "type": "Identifier", "span": { "start": 2057, - "end": 2068, + "end": 2058, "ctxt": 0 }, "value": "x", @@ -5849,7 +5849,7 @@ "type": "Identifier", "span": { "start": 2092, - "end": 2098, + "end": 2093, "ctxt": 0 }, "value": "x", @@ -5920,7 +5920,7 @@ "type": "Identifier", "span": { "start": 2120, - "end": 2140, + "end": 2121, "ctxt": 0 }, "value": "x", @@ -6020,7 +6020,7 @@ "type": "Identifier", "span": { "start": 2158, - "end": 2169, + "end": 2159, "ctxt": 0 }, "value": "x", @@ -6093,7 +6093,7 @@ "type": "Identifier", "span": { "start": 2193, - "end": 2199, + "end": 2194, "ctxt": 0 }, "value": "x", @@ -6164,7 +6164,7 @@ "type": "Identifier", "span": { "start": 2221, - "end": 2226, + "end": 2222, "ctxt": 0 }, "value": "x", @@ -6237,7 +6237,7 @@ "type": "Identifier", "span": { "start": 2244, - "end": 2264, + "end": 2245, "ctxt": 0 }, "value": "x", @@ -6337,7 +6337,7 @@ "type": "Identifier", "span": { "start": 2288, - "end": 2294, + "end": 2289, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.json index d08494983fb8..939325bb6147 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 370, - "end": 374, + "end": 371, "ctxt": 0 }, "value": "x", @@ -260,7 +260,7 @@ "type": "Identifier", "span": { "start": 447, - "end": 451, + "end": 448, "ctxt": 0 }, "value": "x", @@ -481,7 +481,7 @@ "type": "Identifier", "span": { "start": 517, - "end": 521, + "end": 518, "ctxt": 0 }, "value": "x", @@ -736,7 +736,7 @@ "type": "Identifier", "span": { "start": 591, - "end": 595, + "end": 592, "ctxt": 0 }, "value": "x", @@ -845,7 +845,7 @@ "type": "Identifier", "span": { "start": 651, - "end": 655, + "end": 652, "ctxt": 0 }, "value": "x", @@ -1017,7 +1017,7 @@ "type": "Identifier", "span": { "start": 707, - "end": 711, + "end": 708, "ctxt": 0 }, "value": "x", @@ -1208,7 +1208,7 @@ "type": "Identifier", "span": { "start": 755, - "end": 759, + "end": 756, "ctxt": 0 }, "value": "x", @@ -1364,7 +1364,7 @@ "type": "Identifier", "span": { "start": 794, - "end": 798, + "end": 795, "ctxt": 0 }, "value": "x", @@ -1437,7 +1437,7 @@ "type": "Identifier", "span": { "start": 815, - "end": 819, + "end": 816, "ctxt": 0 }, "value": "x", @@ -1510,7 +1510,7 @@ "type": "Identifier", "span": { "start": 845, - "end": 851, + "end": 846, "ctxt": 0 }, "value": "x", @@ -1581,7 +1581,7 @@ "type": "Identifier", "span": { "start": 873, - "end": 892, + "end": 874, "ctxt": 0 }, "value": "x", @@ -1700,7 +1700,7 @@ "type": "Identifier", "span": { "start": 910, - "end": 929, + "end": 911, "ctxt": 0 }, "value": "x", @@ -1819,7 +1819,7 @@ "type": "Identifier", "span": { "start": 956, - "end": 962, + "end": 957, "ctxt": 0 }, "value": "x", @@ -1890,7 +1890,7 @@ "type": "Identifier", "span": { "start": 984, - "end": 996, + "end": 985, "ctxt": 0 }, "value": "x", @@ -1991,7 +1991,7 @@ "type": "Identifier", "span": { "start": 1014, - "end": 1026, + "end": 1015, "ctxt": 0 }, "value": "x", @@ -2092,7 +2092,7 @@ "type": "Identifier", "span": { "start": 1053, - "end": 1059, + "end": 1054, "ctxt": 0 }, "value": "x", @@ -2163,7 +2163,7 @@ "type": "Identifier", "span": { "start": 1080, - "end": 1092, + "end": 1081, "ctxt": 0 }, "value": "x", @@ -2264,7 +2264,7 @@ "type": "Identifier", "span": { "start": 1109, - "end": 1121, + "end": 1110, "ctxt": 0 }, "value": "x", @@ -2365,7 +2365,7 @@ "type": "Identifier", "span": { "start": 1147, - "end": 1153, + "end": 1148, "ctxt": 0 }, "value": "x", @@ -2436,7 +2436,7 @@ "type": "Identifier", "span": { "start": 1174, - "end": 1185, + "end": 1175, "ctxt": 0 }, "value": "x", @@ -2509,7 +2509,7 @@ "type": "Identifier", "span": { "start": 1202, - "end": 1213, + "end": 1203, "ctxt": 0 }, "value": "x", @@ -2582,7 +2582,7 @@ "type": "Identifier", "span": { "start": 1239, - "end": 1245, + "end": 1240, "ctxt": 0 }, "value": "x", @@ -2653,7 +2653,7 @@ "type": "Identifier", "span": { "start": 1266, - "end": 1277, + "end": 1267, "ctxt": 0 }, "value": "x", @@ -2726,7 +2726,7 @@ "type": "Identifier", "span": { "start": 1294, - "end": 1305, + "end": 1295, "ctxt": 0 }, "value": "x", @@ -2799,7 +2799,7 @@ "type": "Identifier", "span": { "start": 1331, - "end": 1337, + "end": 1332, "ctxt": 0 }, "value": "x", @@ -2870,7 +2870,7 @@ "type": "Identifier", "span": { "start": 1358, - "end": 1362, + "end": 1359, "ctxt": 0 }, "value": "x", @@ -2943,7 +2943,7 @@ "type": "Identifier", "span": { "start": 1379, - "end": 1398, + "end": 1380, "ctxt": 0 }, "value": "x", @@ -3062,7 +3062,7 @@ "type": "Identifier", "span": { "start": 1421, - "end": 1427, + "end": 1422, "ctxt": 0 }, "value": "x", @@ -3133,7 +3133,7 @@ "type": "Identifier", "span": { "start": 1449, - "end": 1453, + "end": 1450, "ctxt": 0 }, "value": "x", @@ -3206,7 +3206,7 @@ "type": "Identifier", "span": { "start": 1471, - "end": 1483, + "end": 1472, "ctxt": 0 }, "value": "x", @@ -3307,7 +3307,7 @@ "type": "Identifier", "span": { "start": 1507, - "end": 1513, + "end": 1508, "ctxt": 0 }, "value": "x", @@ -3378,7 +3378,7 @@ "type": "Identifier", "span": { "start": 1534, - "end": 1538, + "end": 1535, "ctxt": 0 }, "value": "x", @@ -3451,7 +3451,7 @@ "type": "Identifier", "span": { "start": 1555, - "end": 1567, + "end": 1556, "ctxt": 0 }, "value": "x", @@ -3552,7 +3552,7 @@ "type": "Identifier", "span": { "start": 1590, - "end": 1596, + "end": 1591, "ctxt": 0 }, "value": "x", @@ -3623,7 +3623,7 @@ "type": "Identifier", "span": { "start": 1617, - "end": 1621, + "end": 1618, "ctxt": 0 }, "value": "x", @@ -3696,7 +3696,7 @@ "type": "Identifier", "span": { "start": 1638, - "end": 1649, + "end": 1639, "ctxt": 0 }, "value": "x", @@ -3769,7 +3769,7 @@ "type": "Identifier", "span": { "start": 1672, - "end": 1678, + "end": 1673, "ctxt": 0 }, "value": "x", @@ -3840,7 +3840,7 @@ "type": "Identifier", "span": { "start": 1699, - "end": 1718, + "end": 1700, "ctxt": 0 }, "value": "x", @@ -3959,7 +3959,7 @@ "type": "Identifier", "span": { "start": 1735, - "end": 1747, + "end": 1736, "ctxt": 0 }, "value": "x", @@ -4060,7 +4060,7 @@ "type": "Identifier", "span": { "start": 1770, - "end": 1776, + "end": 1771, "ctxt": 0 }, "value": "x", @@ -4131,7 +4131,7 @@ "type": "Identifier", "span": { "start": 1797, - "end": 1816, + "end": 1798, "ctxt": 0 }, "value": "x", @@ -4250,7 +4250,7 @@ "type": "Identifier", "span": { "start": 1833, - "end": 1845, + "end": 1834, "ctxt": 0 }, "value": "x", @@ -4351,7 +4351,7 @@ "type": "Identifier", "span": { "start": 1868, - "end": 1874, + "end": 1869, "ctxt": 0 }, "value": "x", @@ -4422,7 +4422,7 @@ "type": "Identifier", "span": { "start": 1896, - "end": 1915, + "end": 1897, "ctxt": 0 }, "value": "x", @@ -4541,7 +4541,7 @@ "type": "Identifier", "span": { "start": 1933, - "end": 1944, + "end": 1934, "ctxt": 0 }, "value": "x", @@ -4614,7 +4614,7 @@ "type": "Identifier", "span": { "start": 1968, - "end": 1974, + "end": 1969, "ctxt": 0 }, "value": "x", @@ -4685,7 +4685,7 @@ "type": "Identifier", "span": { "start": 1996, - "end": 2015, + "end": 1997, "ctxt": 0 }, "value": "x", @@ -4804,7 +4804,7 @@ "type": "Identifier", "span": { "start": 2033, - "end": 2044, + "end": 2034, "ctxt": 0 }, "value": "x", @@ -4877,7 +4877,7 @@ "type": "Identifier", "span": { "start": 2068, - "end": 2074, + "end": 2069, "ctxt": 0 }, "value": "x", @@ -4948,7 +4948,7 @@ "type": "Identifier", "span": { "start": 2096, - "end": 2108, + "end": 2097, "ctxt": 0 }, "value": "x", @@ -5049,7 +5049,7 @@ "type": "Identifier", "span": { "start": 2126, - "end": 2138, + "end": 2127, "ctxt": 0 }, "value": "x", @@ -5150,7 +5150,7 @@ "type": "Identifier", "span": { "start": 2162, - "end": 2168, + "end": 2163, "ctxt": 0 }, "value": "x", @@ -5221,7 +5221,7 @@ "type": "Identifier", "span": { "start": 2191, - "end": 2196, + "end": 2192, "ctxt": 0 }, "value": "x", @@ -5294,7 +5294,7 @@ "type": "Identifier", "span": { "start": 2215, - "end": 2227, + "end": 2216, "ctxt": 0 }, "value": "x", @@ -5395,7 +5395,7 @@ "type": "Identifier", "span": { "start": 2252, - "end": 2258, + "end": 2253, "ctxt": 0 }, "value": "x", @@ -5466,7 +5466,7 @@ "type": "Identifier", "span": { "start": 2280, - "end": 2292, + "end": 2281, "ctxt": 0 }, "value": "x", @@ -5567,7 +5567,7 @@ "type": "Identifier", "span": { "start": 2310, - "end": 2321, + "end": 2311, "ctxt": 0 }, "value": "x", @@ -5640,7 +5640,7 @@ "type": "Identifier", "span": { "start": 2345, - "end": 2351, + "end": 2346, "ctxt": 0 }, "value": "x", @@ -5711,7 +5711,7 @@ "type": "Identifier", "span": { "start": 2373, - "end": 2385, + "end": 2374, "ctxt": 0 }, "value": "x", @@ -5812,7 +5812,7 @@ "type": "Identifier", "span": { "start": 2403, - "end": 2414, + "end": 2404, "ctxt": 0 }, "value": "x", @@ -5885,7 +5885,7 @@ "type": "Identifier", "span": { "start": 2438, - "end": 2444, + "end": 2439, "ctxt": 0 }, "value": "x", @@ -5956,7 +5956,7 @@ "type": "Identifier", "span": { "start": 2466, - "end": 2471, + "end": 2467, "ctxt": 0 }, "value": "x", @@ -6029,7 +6029,7 @@ "type": "Identifier", "span": { "start": 2489, - "end": 2501, + "end": 2490, "ctxt": 0 }, "value": "x", @@ -6130,7 +6130,7 @@ "type": "Identifier", "span": { "start": 2525, - "end": 2531, + "end": 2526, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.json index cbbb1d0e2ff4..054eb8cd7ac2 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 383, - "end": 387, + "end": 384, "ctxt": 0 }, "value": "x", @@ -103,7 +103,7 @@ "type": "Identifier", "span": { "start": 389, - "end": 393, + "end": 390, "ctxt": 0 }, "value": "y", @@ -347,7 +347,7 @@ "type": "Identifier", "span": { "start": 479, - "end": 483, + "end": 480, "ctxt": 0 }, "value": "x", @@ -393,7 +393,7 @@ "type": "Identifier", "span": { "start": 485, - "end": 489, + "end": 486, "ctxt": 0 }, "value": "y", @@ -655,7 +655,7 @@ "type": "Identifier", "span": { "start": 568, - "end": 572, + "end": 569, "ctxt": 0 }, "value": "x", @@ -701,7 +701,7 @@ "type": "Identifier", "span": { "start": 574, - "end": 578, + "end": 575, "ctxt": 0 }, "value": "y", @@ -945,7 +945,7 @@ "type": "Identifier", "span": { "start": 657, - "end": 661, + "end": 658, "ctxt": 0 }, "value": "x", @@ -991,7 +991,7 @@ "type": "Identifier", "span": { "start": 663, - "end": 667, + "end": 664, "ctxt": 0 }, "value": "y", @@ -1328,7 +1328,7 @@ "type": "Identifier", "span": { "start": 750, - "end": 754, + "end": 751, "ctxt": 0 }, "value": "x", @@ -1365,7 +1365,7 @@ "type": "Identifier", "span": { "start": 756, - "end": 760, + "end": 757, "ctxt": 0 }, "value": "y", @@ -1474,7 +1474,7 @@ "type": "Identifier", "span": { "start": 829, - "end": 833, + "end": 830, "ctxt": 0 }, "value": "x", @@ -1511,7 +1511,7 @@ "type": "Identifier", "span": { "start": 835, - "end": 839, + "end": 836, "ctxt": 0 }, "value": "y", @@ -1724,7 +1724,7 @@ "type": "Identifier", "span": { "start": 904, - "end": 908, + "end": 905, "ctxt": 0 }, "value": "x", @@ -1761,7 +1761,7 @@ "type": "Identifier", "span": { "start": 910, - "end": 914, + "end": 911, "ctxt": 0 }, "value": "y", @@ -1993,7 +1993,7 @@ "type": "Identifier", "span": { "start": 971, - "end": 975, + "end": 972, "ctxt": 0 }, "value": "x", @@ -2039,7 +2039,7 @@ "type": "Identifier", "span": { "start": 977, - "end": 981, + "end": 978, "ctxt": 0 }, "value": "y", @@ -2236,7 +2236,7 @@ "type": "Identifier", "span": { "start": 1016, - "end": 1020, + "end": 1017, "ctxt": 0 }, "value": "x", @@ -2309,7 +2309,7 @@ "type": "Identifier", "span": { "start": 1037, - "end": 1041, + "end": 1038, "ctxt": 0 }, "value": "x", @@ -2382,7 +2382,7 @@ "type": "Identifier", "span": { "start": 1067, - "end": 1073, + "end": 1068, "ctxt": 0 }, "value": "x", @@ -2453,7 +2453,7 @@ "type": "Identifier", "span": { "start": 1095, - "end": 1129, + "end": 1096, "ctxt": 0 }, "value": "x", @@ -2609,7 +2609,7 @@ "type": "Identifier", "span": { "start": 1147, - "end": 1181, + "end": 1148, "ctxt": 0 }, "value": "x", @@ -2765,7 +2765,7 @@ "type": "Identifier", "span": { "start": 1208, - "end": 1214, + "end": 1209, "ctxt": 0 }, "value": "x", @@ -2836,7 +2836,7 @@ "type": "Identifier", "span": { "start": 1236, - "end": 1256, + "end": 1237, "ctxt": 0 }, "value": "x", @@ -2956,7 +2956,7 @@ "type": "Identifier", "span": { "start": 1274, - "end": 1294, + "end": 1275, "ctxt": 0 }, "value": "x", @@ -3076,7 +3076,7 @@ "type": "Identifier", "span": { "start": 1321, - "end": 1327, + "end": 1322, "ctxt": 0 }, "value": "x", @@ -3147,7 +3147,7 @@ "type": "Identifier", "span": { "start": 1348, - "end": 1368, + "end": 1349, "ctxt": 0 }, "value": "x", @@ -3267,7 +3267,7 @@ "type": "Identifier", "span": { "start": 1385, - "end": 1405, + "end": 1386, "ctxt": 0 }, "value": "x", @@ -3387,7 +3387,7 @@ "type": "Identifier", "span": { "start": 1431, - "end": 1437, + "end": 1432, "ctxt": 0 }, "value": "x", @@ -3458,7 +3458,7 @@ "type": "Identifier", "span": { "start": 1458, - "end": 1469, + "end": 1459, "ctxt": 0 }, "value": "x", @@ -3531,7 +3531,7 @@ "type": "Identifier", "span": { "start": 1486, - "end": 1497, + "end": 1487, "ctxt": 0 }, "value": "x", @@ -3604,7 +3604,7 @@ "type": "Identifier", "span": { "start": 1523, - "end": 1529, + "end": 1524, "ctxt": 0 }, "value": "x", @@ -3675,7 +3675,7 @@ "type": "Identifier", "span": { "start": 1550, - "end": 1561, + "end": 1551, "ctxt": 0 }, "value": "x", @@ -3748,7 +3748,7 @@ "type": "Identifier", "span": { "start": 1578, - "end": 1589, + "end": 1579, "ctxt": 0 }, "value": "x", @@ -3821,7 +3821,7 @@ "type": "Identifier", "span": { "start": 1615, - "end": 1621, + "end": 1616, "ctxt": 0 }, "value": "x", @@ -3892,7 +3892,7 @@ "type": "Identifier", "span": { "start": 1642, - "end": 1646, + "end": 1643, "ctxt": 0 }, "value": "x", @@ -3965,7 +3965,7 @@ "type": "Identifier", "span": { "start": 1663, - "end": 1697, + "end": 1664, "ctxt": 0 }, "value": "x", @@ -4121,7 +4121,7 @@ "type": "Identifier", "span": { "start": 1720, - "end": 1726, + "end": 1721, "ctxt": 0 }, "value": "x", @@ -4192,7 +4192,7 @@ "type": "Identifier", "span": { "start": 1748, - "end": 1752, + "end": 1749, "ctxt": 0 }, "value": "x", @@ -4265,7 +4265,7 @@ "type": "Identifier", "span": { "start": 1770, - "end": 1790, + "end": 1771, "ctxt": 0 }, "value": "x", @@ -4385,7 +4385,7 @@ "type": "Identifier", "span": { "start": 1814, - "end": 1820, + "end": 1815, "ctxt": 0 }, "value": "x", @@ -4456,7 +4456,7 @@ "type": "Identifier", "span": { "start": 1842, - "end": 1862, + "end": 1843, "ctxt": 0 }, "value": "x", @@ -4576,7 +4576,7 @@ "type": "Identifier", "span": { "start": 1880, - "end": 1900, + "end": 1881, "ctxt": 0 }, "value": "x", @@ -4696,7 +4696,7 @@ "type": "Identifier", "span": { "start": 1924, - "end": 1930, + "end": 1925, "ctxt": 0 }, "value": "x", @@ -4767,7 +4767,7 @@ "type": "Identifier", "span": { "start": 1952, - "end": 1972, + "end": 1953, "ctxt": 0 }, "value": "x", @@ -4887,7 +4887,7 @@ "type": "Identifier", "span": { "start": 1990, - "end": 2007, + "end": 1991, "ctxt": 0 }, "value": "x", @@ -4997,7 +4997,7 @@ "type": "Identifier", "span": { "start": 2073, - "end": 2079, + "end": 2074, "ctxt": 0 }, "value": "x", @@ -5068,7 +5068,7 @@ "type": "Identifier", "span": { "start": 2100, - "end": 2104, + "end": 2101, "ctxt": 0 }, "value": "x", @@ -5141,7 +5141,7 @@ "type": "Identifier", "span": { "start": 2121, - "end": 2141, + "end": 2122, "ctxt": 0 }, "value": "x", @@ -5261,7 +5261,7 @@ "type": "Identifier", "span": { "start": 2164, - "end": 2170, + "end": 2165, "ctxt": 0 }, "value": "x", @@ -5332,7 +5332,7 @@ "type": "Identifier", "span": { "start": 2191, - "end": 2195, + "end": 2192, "ctxt": 0 }, "value": "x", @@ -5405,7 +5405,7 @@ "type": "Identifier", "span": { "start": 2212, - "end": 2223, + "end": 2213, "ctxt": 0 }, "value": "x", @@ -5478,7 +5478,7 @@ "type": "Identifier", "span": { "start": 2246, - "end": 2252, + "end": 2247, "ctxt": 0 }, "value": "x", @@ -5549,7 +5549,7 @@ "type": "Identifier", "span": { "start": 2273, - "end": 2307, + "end": 2274, "ctxt": 0 }, "value": "x", @@ -5705,7 +5705,7 @@ "type": "Identifier", "span": { "start": 2324, - "end": 2344, + "end": 2325, "ctxt": 0 }, "value": "x", @@ -5825,7 +5825,7 @@ "type": "Identifier", "span": { "start": 2367, - "end": 2373, + "end": 2368, "ctxt": 0 }, "value": "x", @@ -5896,7 +5896,7 @@ "type": "Identifier", "span": { "start": 2394, - "end": 2428, + "end": 2395, "ctxt": 0 }, "value": "x", @@ -6052,7 +6052,7 @@ "type": "Identifier", "span": { "start": 2445, - "end": 2465, + "end": 2446, "ctxt": 0 }, "value": "x", @@ -6172,7 +6172,7 @@ "type": "Identifier", "span": { "start": 2488, - "end": 2494, + "end": 2489, "ctxt": 0 }, "value": "x", @@ -6243,7 +6243,7 @@ "type": "Identifier", "span": { "start": 2516, - "end": 2550, + "end": 2517, "ctxt": 0 }, "value": "x", @@ -6399,7 +6399,7 @@ "type": "Identifier", "span": { "start": 2568, - "end": 2579, + "end": 2569, "ctxt": 0 }, "value": "x", @@ -6472,7 +6472,7 @@ "type": "Identifier", "span": { "start": 2603, - "end": 2609, + "end": 2604, "ctxt": 0 }, "value": "x", @@ -6543,7 +6543,7 @@ "type": "Identifier", "span": { "start": 2631, - "end": 2665, + "end": 2632, "ctxt": 0 }, "value": "x", @@ -6699,7 +6699,7 @@ "type": "Identifier", "span": { "start": 2683, - "end": 2694, + "end": 2684, "ctxt": 0 }, "value": "x", @@ -6772,7 +6772,7 @@ "type": "Identifier", "span": { "start": 2718, - "end": 2724, + "end": 2719, "ctxt": 0 }, "value": "x", @@ -6843,7 +6843,7 @@ "type": "Identifier", "span": { "start": 2746, - "end": 2766, + "end": 2747, "ctxt": 0 }, "value": "x", @@ -6963,7 +6963,7 @@ "type": "Identifier", "span": { "start": 2784, - "end": 2804, + "end": 2785, "ctxt": 0 }, "value": "x", @@ -7083,7 +7083,7 @@ "type": "Identifier", "span": { "start": 2828, - "end": 2834, + "end": 2829, "ctxt": 0 }, "value": "x", @@ -7154,7 +7154,7 @@ "type": "Identifier", "span": { "start": 2857, - "end": 2862, + "end": 2858, "ctxt": 0 }, "value": "x", @@ -7227,7 +7227,7 @@ "type": "Identifier", "span": { "start": 2881, - "end": 2901, + "end": 2882, "ctxt": 0 }, "value": "x", @@ -7347,7 +7347,7 @@ "type": "Identifier", "span": { "start": 2926, - "end": 2932, + "end": 2927, "ctxt": 0 }, "value": "x", @@ -7418,7 +7418,7 @@ "type": "Identifier", "span": { "start": 2954, - "end": 2974, + "end": 2955, "ctxt": 0 }, "value": "x", @@ -7538,7 +7538,7 @@ "type": "Identifier", "span": { "start": 2992, - "end": 3003, + "end": 2993, "ctxt": 0 }, "value": "x", @@ -7611,7 +7611,7 @@ "type": "Identifier", "span": { "start": 3027, - "end": 3033, + "end": 3028, "ctxt": 0 }, "value": "x", @@ -7682,7 +7682,7 @@ "type": "Identifier", "span": { "start": 3055, - "end": 3075, + "end": 3056, "ctxt": 0 }, "value": "x", @@ -7802,7 +7802,7 @@ "type": "Identifier", "span": { "start": 3093, - "end": 3104, + "end": 3094, "ctxt": 0 }, "value": "x", @@ -7875,7 +7875,7 @@ "type": "Identifier", "span": { "start": 3128, - "end": 3134, + "end": 3129, "ctxt": 0 }, "value": "x", @@ -7946,7 +7946,7 @@ "type": "Identifier", "span": { "start": 3156, - "end": 3161, + "end": 3157, "ctxt": 0 }, "value": "x", @@ -8019,7 +8019,7 @@ "type": "Identifier", "span": { "start": 3179, - "end": 3199, + "end": 3180, "ctxt": 0 }, "value": "x", @@ -8139,7 +8139,7 @@ "type": "Identifier", "span": { "start": 3223, - "end": 3229, + "end": 3224, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.json index ec03bbef7894..2b7519b6c294 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.json @@ -634,7 +634,7 @@ "type": "Identifier", "span": { "start": 570, - "end": 574, + "end": 571, "ctxt": 0 }, "value": "x", @@ -680,7 +680,7 @@ "type": "Identifier", "span": { "start": 576, - "end": 580, + "end": 577, "ctxt": 0 }, "value": "y", @@ -924,7 +924,7 @@ "type": "Identifier", "span": { "start": 656, - "end": 660, + "end": 657, "ctxt": 0 }, "value": "x", @@ -970,7 +970,7 @@ "type": "Identifier", "span": { "start": 662, - "end": 666, + "end": 663, "ctxt": 0 }, "value": "y", @@ -1214,7 +1214,7 @@ "type": "Identifier", "span": { "start": 744, - "end": 748, + "end": 745, "ctxt": 0 }, "value": "x", @@ -1260,7 +1260,7 @@ "type": "Identifier", "span": { "start": 750, - "end": 754, + "end": 751, "ctxt": 0 }, "value": "y", @@ -1504,7 +1504,7 @@ "type": "Identifier", "span": { "start": 839, - "end": 843, + "end": 840, "ctxt": 0 }, "value": "x", @@ -1550,7 +1550,7 @@ "type": "Identifier", "span": { "start": 845, - "end": 849, + "end": 846, "ctxt": 0 }, "value": "y", @@ -1923,7 +1923,7 @@ "type": "Identifier", "span": { "start": 938, - "end": 942, + "end": 939, "ctxt": 0 }, "value": "x", @@ -1960,7 +1960,7 @@ "type": "Identifier", "span": { "start": 944, - "end": 948, + "end": 945, "ctxt": 0 }, "value": "y", @@ -2069,7 +2069,7 @@ "type": "Identifier", "span": { "start": 1029, - "end": 1033, + "end": 1030, "ctxt": 0 }, "value": "x", @@ -2106,7 +2106,7 @@ "type": "Identifier", "span": { "start": 1035, - "end": 1039, + "end": 1036, "ctxt": 0 }, "value": "y", @@ -2346,7 +2346,7 @@ "type": "Identifier", "span": { "start": 1094, - "end": 1098, + "end": 1095, "ctxt": 0 }, "value": "x", @@ -2383,7 +2383,7 @@ "type": "Identifier", "span": { "start": 1100, - "end": 1104, + "end": 1101, "ctxt": 0 }, "value": "y", @@ -2597,7 +2597,7 @@ "type": "Identifier", "span": { "start": 1158, - "end": 1162, + "end": 1159, "ctxt": 0 }, "value": "x", @@ -2643,7 +2643,7 @@ "type": "Identifier", "span": { "start": 1164, - "end": 1168, + "end": 1165, "ctxt": 0 }, "value": "y", @@ -2840,7 +2840,7 @@ "type": "Identifier", "span": { "start": 1203, - "end": 1207, + "end": 1204, "ctxt": 0 }, "value": "x", @@ -2913,7 +2913,7 @@ "type": "Identifier", "span": { "start": 1224, - "end": 1228, + "end": 1225, "ctxt": 0 }, "value": "x", @@ -2986,7 +2986,7 @@ "type": "Identifier", "span": { "start": 1254, - "end": 1260, + "end": 1255, "ctxt": 0 }, "value": "x", @@ -3057,7 +3057,7 @@ "type": "Identifier", "span": { "start": 1282, - "end": 1296, + "end": 1283, "ctxt": 0 }, "value": "x", @@ -3177,7 +3177,7 @@ "type": "Identifier", "span": { "start": 1314, - "end": 1328, + "end": 1315, "ctxt": 0 }, "value": "x", @@ -3297,7 +3297,7 @@ "type": "Identifier", "span": { "start": 1355, - "end": 1361, + "end": 1356, "ctxt": 0 }, "value": "x", @@ -3368,7 +3368,7 @@ "type": "Identifier", "span": { "start": 1383, - "end": 1401, + "end": 1384, "ctxt": 0 }, "value": "x", @@ -3488,7 +3488,7 @@ "type": "Identifier", "span": { "start": 1419, - "end": 1437, + "end": 1420, "ctxt": 0 }, "value": "x", @@ -3608,7 +3608,7 @@ "type": "Identifier", "span": { "start": 1464, - "end": 1470, + "end": 1465, "ctxt": 0 }, "value": "x", @@ -3679,7 +3679,7 @@ "type": "Identifier", "span": { "start": 1491, - "end": 1523, + "end": 1492, "ctxt": 0 }, "value": "x", @@ -3835,7 +3835,7 @@ "type": "Identifier", "span": { "start": 1540, - "end": 1572, + "end": 1541, "ctxt": 0 }, "value": "x", @@ -3991,7 +3991,7 @@ "type": "Identifier", "span": { "start": 1598, - "end": 1604, + "end": 1599, "ctxt": 0 }, "value": "x", @@ -4062,7 +4062,7 @@ "type": "Identifier", "span": { "start": 1625, - "end": 1636, + "end": 1626, "ctxt": 0 }, "value": "x", @@ -4135,7 +4135,7 @@ "type": "Identifier", "span": { "start": 1653, - "end": 1664, + "end": 1654, "ctxt": 0 }, "value": "x", @@ -4208,7 +4208,7 @@ "type": "Identifier", "span": { "start": 1690, - "end": 1696, + "end": 1691, "ctxt": 0 }, "value": "x", @@ -4279,7 +4279,7 @@ "type": "Identifier", "span": { "start": 1717, - "end": 1728, + "end": 1718, "ctxt": 0 }, "value": "x", @@ -4352,7 +4352,7 @@ "type": "Identifier", "span": { "start": 1745, - "end": 1756, + "end": 1746, "ctxt": 0 }, "value": "x", @@ -4425,7 +4425,7 @@ "type": "Identifier", "span": { "start": 1782, - "end": 1788, + "end": 1783, "ctxt": 0 }, "value": "x", @@ -4496,7 +4496,7 @@ "type": "Identifier", "span": { "start": 1809, - "end": 1813, + "end": 1810, "ctxt": 0 }, "value": "x", @@ -4569,7 +4569,7 @@ "type": "Identifier", "span": { "start": 1830, - "end": 1844, + "end": 1831, "ctxt": 0 }, "value": "x", @@ -4689,7 +4689,7 @@ "type": "Identifier", "span": { "start": 1867, - "end": 1873, + "end": 1868, "ctxt": 0 }, "value": "x", @@ -4760,7 +4760,7 @@ "type": "Identifier", "span": { "start": 1895, - "end": 1899, + "end": 1896, "ctxt": 0 }, "value": "x", @@ -4833,7 +4833,7 @@ "type": "Identifier", "span": { "start": 1917, - "end": 1935, + "end": 1918, "ctxt": 0 }, "value": "x", @@ -4953,7 +4953,7 @@ "type": "Identifier", "span": { "start": 1959, - "end": 1965, + "end": 1960, "ctxt": 0 }, "value": "x", @@ -5024,7 +5024,7 @@ "type": "Identifier", "span": { "start": 1987, - "end": 2005, + "end": 1988, "ctxt": 0 }, "value": "x", @@ -5144,7 +5144,7 @@ "type": "Identifier", "span": { "start": 2023, - "end": 2055, + "end": 2024, "ctxt": 0 }, "value": "x", @@ -5300,7 +5300,7 @@ "type": "Identifier", "span": { "start": 2082, - "end": 2088, + "end": 2083, "ctxt": 0 }, "value": "x", @@ -5371,7 +5371,7 @@ "type": "Identifier", "span": { "start": 2110, - "end": 2128, + "end": 2111, "ctxt": 0 }, "value": "x", @@ -5491,7 +5491,7 @@ "type": "Identifier", "span": { "start": 2146, - "end": 2178, + "end": 2147, "ctxt": 0 }, "value": "x", @@ -5647,7 +5647,7 @@ "type": "Identifier", "span": { "start": 2205, - "end": 2211, + "end": 2206, "ctxt": 0 }, "value": "x", @@ -5718,7 +5718,7 @@ "type": "Identifier", "span": { "start": 2232, - "end": 2236, + "end": 2233, "ctxt": 0 }, "value": "x", @@ -5791,7 +5791,7 @@ "type": "Identifier", "span": { "start": 2253, - "end": 2285, + "end": 2254, "ctxt": 0 }, "value": "x", @@ -5947,7 +5947,7 @@ "type": "Identifier", "span": { "start": 2308, - "end": 2314, + "end": 2309, "ctxt": 0 }, "value": "x", @@ -6018,7 +6018,7 @@ "type": "Identifier", "span": { "start": 2335, - "end": 2339, + "end": 2336, "ctxt": 0 }, "value": "x", @@ -6091,7 +6091,7 @@ "type": "Identifier", "span": { "start": 2356, - "end": 2367, + "end": 2357, "ctxt": 0 }, "value": "x", @@ -6164,7 +6164,7 @@ "type": "Identifier", "span": { "start": 2393, - "end": 2399, + "end": 2394, "ctxt": 0 }, "value": "x", @@ -6235,7 +6235,7 @@ "type": "Identifier", "span": { "start": 2420, - "end": 2434, + "end": 2421, "ctxt": 0 }, "value": "x", @@ -6355,7 +6355,7 @@ "type": "Identifier", "span": { "start": 2451, - "end": 2483, + "end": 2452, "ctxt": 0 }, "value": "x", @@ -6511,7 +6511,7 @@ "type": "Identifier", "span": { "start": 2509, - "end": 2515, + "end": 2510, "ctxt": 0 }, "value": "x", @@ -6582,7 +6582,7 @@ "type": "Identifier", "span": { "start": 2536, - "end": 2550, + "end": 2537, "ctxt": 0 }, "value": "x", @@ -6702,7 +6702,7 @@ "type": "Identifier", "span": { "start": 2567, - "end": 2585, + "end": 2568, "ctxt": 0 }, "value": "x", @@ -6822,7 +6822,7 @@ "type": "Identifier", "span": { "start": 2611, - "end": 2617, + "end": 2612, "ctxt": 0 }, "value": "x", @@ -6893,7 +6893,7 @@ "type": "Identifier", "span": { "start": 2639, - "end": 2653, + "end": 2640, "ctxt": 0 }, "value": "x", @@ -7013,7 +7013,7 @@ "type": "Identifier", "span": { "start": 2671, - "end": 2682, + "end": 2672, "ctxt": 0 }, "value": "x", @@ -7086,7 +7086,7 @@ "type": "Identifier", "span": { "start": 2706, - "end": 2712, + "end": 2707, "ctxt": 0 }, "value": "x", @@ -7157,7 +7157,7 @@ "type": "Identifier", "span": { "start": 2734, - "end": 2748, + "end": 2735, "ctxt": 0 }, "value": "x", @@ -7277,7 +7277,7 @@ "type": "Identifier", "span": { "start": 2766, - "end": 2777, + "end": 2767, "ctxt": 0 }, "value": "x", @@ -7350,7 +7350,7 @@ "type": "Identifier", "span": { "start": 2801, - "end": 2807, + "end": 2802, "ctxt": 0 }, "value": "x", @@ -7421,7 +7421,7 @@ "type": "Identifier", "span": { "start": 2829, - "end": 2861, + "end": 2830, "ctxt": 0 }, "value": "x", @@ -7577,7 +7577,7 @@ "type": "Identifier", "span": { "start": 2879, - "end": 2897, + "end": 2880, "ctxt": 0 }, "value": "x", @@ -7697,7 +7697,7 @@ "type": "Identifier", "span": { "start": 2924, - "end": 2930, + "end": 2925, "ctxt": 0 }, "value": "x", @@ -7768,7 +7768,7 @@ "type": "Identifier", "span": { "start": 2953, - "end": 2958, + "end": 2954, "ctxt": 0 }, "value": "x", @@ -7841,7 +7841,7 @@ "type": "Identifier", "span": { "start": 2977, - "end": 2995, + "end": 2978, "ctxt": 0 }, "value": "x", @@ -7961,7 +7961,7 @@ "type": "Identifier", "span": { "start": 3020, - "end": 3026, + "end": 3021, "ctxt": 0 }, "value": "x", @@ -8032,7 +8032,7 @@ "type": "Identifier", "span": { "start": 3048, - "end": 3080, + "end": 3049, "ctxt": 0 }, "value": "x", @@ -8188,7 +8188,7 @@ "type": "Identifier", "span": { "start": 3098, - "end": 3109, + "end": 3099, "ctxt": 0 }, "value": "x", @@ -8261,7 +8261,7 @@ "type": "Identifier", "span": { "start": 3133, - "end": 3139, + "end": 3134, "ctxt": 0 }, "value": "x", @@ -8332,7 +8332,7 @@ "type": "Identifier", "span": { "start": 3161, - "end": 3193, + "end": 3162, "ctxt": 0 }, "value": "x", @@ -8488,7 +8488,7 @@ "type": "Identifier", "span": { "start": 3211, - "end": 3222, + "end": 3212, "ctxt": 0 }, "value": "x", @@ -8561,7 +8561,7 @@ "type": "Identifier", "span": { "start": 3246, - "end": 3252, + "end": 3247, "ctxt": 0 }, "value": "x", @@ -8632,7 +8632,7 @@ "type": "Identifier", "span": { "start": 3274, - "end": 3279, + "end": 3275, "ctxt": 0 }, "value": "x", @@ -8705,7 +8705,7 @@ "type": "Identifier", "span": { "start": 3297, - "end": 3315, + "end": 3298, "ctxt": 0 }, "value": "x", @@ -8825,7 +8825,7 @@ "type": "Identifier", "span": { "start": 3339, - "end": 3345, + "end": 3340, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.json index 8d594db49fa0..973d8854d881 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 357, - "end": 361, + "end": 358, "ctxt": 0 }, "value": "x", @@ -242,7 +242,7 @@ "type": "Identifier", "span": { "start": 412, - "end": 416, + "end": 413, "ctxt": 0 }, "value": "x", @@ -427,7 +427,7 @@ "type": "Identifier", "span": { "start": 467, - "end": 471, + "end": 468, "ctxt": 0 }, "value": "x", @@ -646,7 +646,7 @@ "type": "Identifier", "span": { "start": 527, - "end": 531, + "end": 528, "ctxt": 0 }, "value": "x", @@ -765,7 +765,7 @@ "type": "Identifier", "span": { "start": 569, - "end": 573, + "end": 570, "ctxt": 0 }, "value": "x", @@ -929,7 +929,7 @@ "type": "Identifier", "span": { "start": 603, - "end": 607, + "end": 604, "ctxt": 0 }, "value": "x", @@ -1094,7 +1094,7 @@ "type": "Identifier", "span": { "start": 631, - "end": 635, + "end": 632, "ctxt": 0 }, "value": "x", @@ -1230,7 +1230,7 @@ "type": "Identifier", "span": { "start": 672, - "end": 676, + "end": 673, "ctxt": 0 }, "value": "x", @@ -1303,7 +1303,7 @@ "type": "Identifier", "span": { "start": 693, - "end": 697, + "end": 694, "ctxt": 0 }, "value": "x", @@ -1376,7 +1376,7 @@ "type": "Identifier", "span": { "start": 723, - "end": 729, + "end": 724, "ctxt": 0 }, "value": "x", @@ -1447,7 +1447,7 @@ "type": "Identifier", "span": { "start": 751, - "end": 763, + "end": 752, "ctxt": 0 }, "value": "x", @@ -1538,7 +1538,7 @@ "type": "Identifier", "span": { "start": 781, - "end": 793, + "end": 782, "ctxt": 0 }, "value": "x", @@ -1629,7 +1629,7 @@ "type": "Identifier", "span": { "start": 820, - "end": 826, + "end": 821, "ctxt": 0 }, "value": "x", @@ -1700,7 +1700,7 @@ "type": "Identifier", "span": { "start": 848, - "end": 860, + "end": 849, "ctxt": 0 }, "value": "x", @@ -1791,7 +1791,7 @@ "type": "Identifier", "span": { "start": 878, - "end": 890, + "end": 879, "ctxt": 0 }, "value": "x", @@ -1882,7 +1882,7 @@ "type": "Identifier", "span": { "start": 917, - "end": 923, + "end": 918, "ctxt": 0 }, "value": "x", @@ -1953,7 +1953,7 @@ "type": "Identifier", "span": { "start": 944, - "end": 956, + "end": 945, "ctxt": 0 }, "value": "x", @@ -2044,7 +2044,7 @@ "type": "Identifier", "span": { "start": 973, - "end": 985, + "end": 974, "ctxt": 0 }, "value": "x", @@ -2135,7 +2135,7 @@ "type": "Identifier", "span": { "start": 1011, - "end": 1017, + "end": 1012, "ctxt": 0 }, "value": "x", @@ -2206,7 +2206,7 @@ "type": "Identifier", "span": { "start": 1038, - "end": 1049, + "end": 1039, "ctxt": 0 }, "value": "x", @@ -2279,7 +2279,7 @@ "type": "Identifier", "span": { "start": 1066, - "end": 1077, + "end": 1067, "ctxt": 0 }, "value": "x", @@ -2352,7 +2352,7 @@ "type": "Identifier", "span": { "start": 1103, - "end": 1109, + "end": 1104, "ctxt": 0 }, "value": "x", @@ -2423,7 +2423,7 @@ "type": "Identifier", "span": { "start": 1130, - "end": 1141, + "end": 1131, "ctxt": 0 }, "value": "x", @@ -2496,7 +2496,7 @@ "type": "Identifier", "span": { "start": 1158, - "end": 1169, + "end": 1159, "ctxt": 0 }, "value": "x", @@ -2569,7 +2569,7 @@ "type": "Identifier", "span": { "start": 1195, - "end": 1201, + "end": 1196, "ctxt": 0 }, "value": "x", @@ -2640,7 +2640,7 @@ "type": "Identifier", "span": { "start": 1222, - "end": 1226, + "end": 1223, "ctxt": 0 }, "value": "x", @@ -2713,7 +2713,7 @@ "type": "Identifier", "span": { "start": 1243, - "end": 1255, + "end": 1244, "ctxt": 0 }, "value": "x", @@ -2804,7 +2804,7 @@ "type": "Identifier", "span": { "start": 1278, - "end": 1284, + "end": 1279, "ctxt": 0 }, "value": "x", @@ -2875,7 +2875,7 @@ "type": "Identifier", "span": { "start": 1306, - "end": 1310, + "end": 1307, "ctxt": 0 }, "value": "x", @@ -2948,7 +2948,7 @@ "type": "Identifier", "span": { "start": 1328, - "end": 1340, + "end": 1329, "ctxt": 0 }, "value": "x", @@ -3039,7 +3039,7 @@ "type": "Identifier", "span": { "start": 1364, - "end": 1370, + "end": 1365, "ctxt": 0 }, "value": "x", @@ -3110,7 +3110,7 @@ "type": "Identifier", "span": { "start": 1391, - "end": 1395, + "end": 1392, "ctxt": 0 }, "value": "x", @@ -3183,7 +3183,7 @@ "type": "Identifier", "span": { "start": 1412, - "end": 1424, + "end": 1413, "ctxt": 0 }, "value": "x", @@ -3274,7 +3274,7 @@ "type": "Identifier", "span": { "start": 1447, - "end": 1453, + "end": 1448, "ctxt": 0 }, "value": "x", @@ -3345,7 +3345,7 @@ "type": "Identifier", "span": { "start": 1474, - "end": 1478, + "end": 1475, "ctxt": 0 }, "value": "x", @@ -3418,7 +3418,7 @@ "type": "Identifier", "span": { "start": 1495, - "end": 1506, + "end": 1496, "ctxt": 0 }, "value": "x", @@ -3491,7 +3491,7 @@ "type": "Identifier", "span": { "start": 1529, - "end": 1535, + "end": 1530, "ctxt": 0 }, "value": "x", @@ -3562,7 +3562,7 @@ "type": "Identifier", "span": { "start": 1556, - "end": 1568, + "end": 1557, "ctxt": 0 }, "value": "x", @@ -3653,7 +3653,7 @@ "type": "Identifier", "span": { "start": 1585, - "end": 1597, + "end": 1586, "ctxt": 0 }, "value": "x", @@ -3744,7 +3744,7 @@ "type": "Identifier", "span": { "start": 1620, - "end": 1626, + "end": 1621, "ctxt": 0 }, "value": "x", @@ -3815,7 +3815,7 @@ "type": "Identifier", "span": { "start": 1647, - "end": 1659, + "end": 1648, "ctxt": 0 }, "value": "x", @@ -3906,7 +3906,7 @@ "type": "Identifier", "span": { "start": 1676, - "end": 1688, + "end": 1677, "ctxt": 0 }, "value": "x", @@ -3997,7 +3997,7 @@ "type": "Identifier", "span": { "start": 1711, - "end": 1717, + "end": 1712, "ctxt": 0 }, "value": "x", @@ -4068,7 +4068,7 @@ "type": "Identifier", "span": { "start": 1739, - "end": 1751, + "end": 1740, "ctxt": 0 }, "value": "x", @@ -4159,7 +4159,7 @@ "type": "Identifier", "span": { "start": 1769, - "end": 1780, + "end": 1770, "ctxt": 0 }, "value": "x", @@ -4232,7 +4232,7 @@ "type": "Identifier", "span": { "start": 1804, - "end": 1810, + "end": 1805, "ctxt": 0 }, "value": "x", @@ -4303,7 +4303,7 @@ "type": "Identifier", "span": { "start": 1832, - "end": 1844, + "end": 1833, "ctxt": 0 }, "value": "x", @@ -4394,7 +4394,7 @@ "type": "Identifier", "span": { "start": 1862, - "end": 1873, + "end": 1863, "ctxt": 0 }, "value": "x", @@ -4467,7 +4467,7 @@ "type": "Identifier", "span": { "start": 1897, - "end": 1903, + "end": 1898, "ctxt": 0 }, "value": "x", @@ -4538,7 +4538,7 @@ "type": "Identifier", "span": { "start": 1925, - "end": 1937, + "end": 1926, "ctxt": 0 }, "value": "x", @@ -4629,7 +4629,7 @@ "type": "Identifier", "span": { "start": 1955, - "end": 1967, + "end": 1956, "ctxt": 0 }, "value": "x", @@ -4720,7 +4720,7 @@ "type": "Identifier", "span": { "start": 1991, - "end": 1997, + "end": 1992, "ctxt": 0 }, "value": "x", @@ -4791,7 +4791,7 @@ "type": "Identifier", "span": { "start": 2020, - "end": 2025, + "end": 2021, "ctxt": 0 }, "value": "x", @@ -4864,7 +4864,7 @@ "type": "Identifier", "span": { "start": 2044, - "end": 2056, + "end": 2045, "ctxt": 0 }, "value": "x", @@ -4955,7 +4955,7 @@ "type": "Identifier", "span": { "start": 2081, - "end": 2087, + "end": 2082, "ctxt": 0 }, "value": "x", @@ -5026,7 +5026,7 @@ "type": "Identifier", "span": { "start": 2109, - "end": 2121, + "end": 2110, "ctxt": 0 }, "value": "x", @@ -5117,7 +5117,7 @@ "type": "Identifier", "span": { "start": 2139, - "end": 2150, + "end": 2140, "ctxt": 0 }, "value": "x", @@ -5190,7 +5190,7 @@ "type": "Identifier", "span": { "start": 2174, - "end": 2180, + "end": 2175, "ctxt": 0 }, "value": "x", @@ -5261,7 +5261,7 @@ "type": "Identifier", "span": { "start": 2202, - "end": 2214, + "end": 2203, "ctxt": 0 }, "value": "x", @@ -5352,7 +5352,7 @@ "type": "Identifier", "span": { "start": 2232, - "end": 2243, + "end": 2233, "ctxt": 0 }, "value": "x", @@ -5425,7 +5425,7 @@ "type": "Identifier", "span": { "start": 2267, - "end": 2273, + "end": 2268, "ctxt": 0 }, "value": "x", @@ -5496,7 +5496,7 @@ "type": "Identifier", "span": { "start": 2295, - "end": 2300, + "end": 2296, "ctxt": 0 }, "value": "x", @@ -5569,7 +5569,7 @@ "type": "Identifier", "span": { "start": 2318, - "end": 2330, + "end": 2319, "ctxt": 0 }, "value": "x", @@ -5660,7 +5660,7 @@ "type": "Identifier", "span": { "start": 2354, - "end": 2360, + "end": 2355, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.json index 1daaf5346d87..9b2105291236 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 370, - "end": 374, + "end": 371, "ctxt": 0 }, "value": "x", @@ -260,7 +260,7 @@ "type": "Identifier", "span": { "start": 438, - "end": 442, + "end": 439, "ctxt": 0 }, "value": "x", @@ -463,7 +463,7 @@ "type": "Identifier", "span": { "start": 506, - "end": 510, + "end": 507, "ctxt": 0 }, "value": "x", @@ -718,7 +718,7 @@ "type": "Identifier", "span": { "start": 579, - "end": 583, + "end": 580, "ctxt": 0 }, "value": "x", @@ -837,7 +837,7 @@ "type": "Identifier", "span": { "start": 634, - "end": 638, + "end": 635, "ctxt": 0 }, "value": "x", @@ -1019,7 +1019,7 @@ "type": "Identifier", "span": { "start": 681, - "end": 685, + "end": 682, "ctxt": 0 }, "value": "x", @@ -1202,7 +1202,7 @@ "type": "Identifier", "span": { "start": 722, - "end": 726, + "end": 723, "ctxt": 0 }, "value": "x", @@ -1356,7 +1356,7 @@ "type": "Identifier", "span": { "start": 763, - "end": 767, + "end": 764, "ctxt": 0 }, "value": "x", @@ -1429,7 +1429,7 @@ "type": "Identifier", "span": { "start": 784, - "end": 788, + "end": 785, "ctxt": 0 }, "value": "x", @@ -1502,7 +1502,7 @@ "type": "Identifier", "span": { "start": 814, - "end": 820, + "end": 815, "ctxt": 0 }, "value": "x", @@ -1573,7 +1573,7 @@ "type": "Identifier", "span": { "start": 842, - "end": 852, + "end": 843, "ctxt": 0 }, "value": "x", @@ -1674,7 +1674,7 @@ "type": "Identifier", "span": { "start": 870, - "end": 880, + "end": 871, "ctxt": 0 }, "value": "x", @@ -1775,7 +1775,7 @@ "type": "Identifier", "span": { "start": 907, - "end": 913, + "end": 908, "ctxt": 0 }, "value": "x", @@ -1846,7 +1846,7 @@ "type": "Identifier", "span": { "start": 935, - "end": 945, + "end": 936, "ctxt": 0 }, "value": "x", @@ -1947,7 +1947,7 @@ "type": "Identifier", "span": { "start": 963, - "end": 973, + "end": 964, "ctxt": 0 }, "value": "x", @@ -2048,7 +2048,7 @@ "type": "Identifier", "span": { "start": 1000, - "end": 1006, + "end": 1001, "ctxt": 0 }, "value": "x", @@ -2119,7 +2119,7 @@ "type": "Identifier", "span": { "start": 1027, - "end": 1037, + "end": 1028, "ctxt": 0 }, "value": "x", @@ -2220,7 +2220,7 @@ "type": "Identifier", "span": { "start": 1054, - "end": 1064, + "end": 1055, "ctxt": 0 }, "value": "x", @@ -2321,7 +2321,7 @@ "type": "Identifier", "span": { "start": 1090, - "end": 1096, + "end": 1091, "ctxt": 0 }, "value": "x", @@ -2392,7 +2392,7 @@ "type": "Identifier", "span": { "start": 1117, - "end": 1128, + "end": 1118, "ctxt": 0 }, "value": "x", @@ -2465,7 +2465,7 @@ "type": "Identifier", "span": { "start": 1145, - "end": 1156, + "end": 1146, "ctxt": 0 }, "value": "x", @@ -2538,7 +2538,7 @@ "type": "Identifier", "span": { "start": 1182, - "end": 1188, + "end": 1183, "ctxt": 0 }, "value": "x", @@ -2609,7 +2609,7 @@ "type": "Identifier", "span": { "start": 1209, - "end": 1220, + "end": 1210, "ctxt": 0 }, "value": "x", @@ -2682,7 +2682,7 @@ "type": "Identifier", "span": { "start": 1237, - "end": 1248, + "end": 1238, "ctxt": 0 }, "value": "x", @@ -2755,7 +2755,7 @@ "type": "Identifier", "span": { "start": 1274, - "end": 1280, + "end": 1275, "ctxt": 0 }, "value": "x", @@ -2826,7 +2826,7 @@ "type": "Identifier", "span": { "start": 1301, - "end": 1305, + "end": 1302, "ctxt": 0 }, "value": "x", @@ -2899,7 +2899,7 @@ "type": "Identifier", "span": { "start": 1322, - "end": 1332, + "end": 1323, "ctxt": 0 }, "value": "x", @@ -3000,7 +3000,7 @@ "type": "Identifier", "span": { "start": 1355, - "end": 1361, + "end": 1356, "ctxt": 0 }, "value": "x", @@ -3071,7 +3071,7 @@ "type": "Identifier", "span": { "start": 1383, - "end": 1387, + "end": 1384, "ctxt": 0 }, "value": "x", @@ -3144,7 +3144,7 @@ "type": "Identifier", "span": { "start": 1405, - "end": 1415, + "end": 1406, "ctxt": 0 }, "value": "x", @@ -3245,7 +3245,7 @@ "type": "Identifier", "span": { "start": 1439, - "end": 1445, + "end": 1440, "ctxt": 0 }, "value": "x", @@ -3316,7 +3316,7 @@ "type": "Identifier", "span": { "start": 1466, - "end": 1470, + "end": 1467, "ctxt": 0 }, "value": "x", @@ -3389,7 +3389,7 @@ "type": "Identifier", "span": { "start": 1487, - "end": 1497, + "end": 1488, "ctxt": 0 }, "value": "x", @@ -3490,7 +3490,7 @@ "type": "Identifier", "span": { "start": 1520, - "end": 1526, + "end": 1521, "ctxt": 0 }, "value": "x", @@ -3561,7 +3561,7 @@ "type": "Identifier", "span": { "start": 1547, - "end": 1551, + "end": 1548, "ctxt": 0 }, "value": "x", @@ -3634,7 +3634,7 @@ "type": "Identifier", "span": { "start": 1568, - "end": 1579, + "end": 1569, "ctxt": 0 }, "value": "x", @@ -3707,7 +3707,7 @@ "type": "Identifier", "span": { "start": 1602, - "end": 1608, + "end": 1603, "ctxt": 0 }, "value": "x", @@ -3778,7 +3778,7 @@ "type": "Identifier", "span": { "start": 1629, - "end": 1639, + "end": 1630, "ctxt": 0 }, "value": "x", @@ -3879,7 +3879,7 @@ "type": "Identifier", "span": { "start": 1656, - "end": 1666, + "end": 1657, "ctxt": 0 }, "value": "x", @@ -3980,7 +3980,7 @@ "type": "Identifier", "span": { "start": 1689, - "end": 1695, + "end": 1690, "ctxt": 0 }, "value": "x", @@ -4051,7 +4051,7 @@ "type": "Identifier", "span": { "start": 1716, - "end": 1726, + "end": 1717, "ctxt": 0 }, "value": "x", @@ -4152,7 +4152,7 @@ "type": "Identifier", "span": { "start": 1743, - "end": 1753, + "end": 1744, "ctxt": 0 }, "value": "x", @@ -4253,7 +4253,7 @@ "type": "Identifier", "span": { "start": 1776, - "end": 1782, + "end": 1777, "ctxt": 0 }, "value": "x", @@ -4324,7 +4324,7 @@ "type": "Identifier", "span": { "start": 1804, - "end": 1814, + "end": 1805, "ctxt": 0 }, "value": "x", @@ -4425,7 +4425,7 @@ "type": "Identifier", "span": { "start": 1832, - "end": 1843, + "end": 1833, "ctxt": 0 }, "value": "x", @@ -4498,7 +4498,7 @@ "type": "Identifier", "span": { "start": 1867, - "end": 1873, + "end": 1868, "ctxt": 0 }, "value": "x", @@ -4569,7 +4569,7 @@ "type": "Identifier", "span": { "start": 1895, - "end": 1905, + "end": 1896, "ctxt": 0 }, "value": "x", @@ -4670,7 +4670,7 @@ "type": "Identifier", "span": { "start": 1923, - "end": 1934, + "end": 1924, "ctxt": 0 }, "value": "x", @@ -4743,7 +4743,7 @@ "type": "Identifier", "span": { "start": 1958, - "end": 1964, + "end": 1959, "ctxt": 0 }, "value": "x", @@ -4814,7 +4814,7 @@ "type": "Identifier", "span": { "start": 1986, - "end": 1996, + "end": 1987, "ctxt": 0 }, "value": "x", @@ -4915,7 +4915,7 @@ "type": "Identifier", "span": { "start": 2014, - "end": 2024, + "end": 2015, "ctxt": 0 }, "value": "x", @@ -5016,7 +5016,7 @@ "type": "Identifier", "span": { "start": 2048, - "end": 2054, + "end": 2049, "ctxt": 0 }, "value": "x", @@ -5087,7 +5087,7 @@ "type": "Identifier", "span": { "start": 2077, - "end": 2082, + "end": 2078, "ctxt": 0 }, "value": "x", @@ -5160,7 +5160,7 @@ "type": "Identifier", "span": { "start": 2101, - "end": 2111, + "end": 2102, "ctxt": 0 }, "value": "x", @@ -5261,7 +5261,7 @@ "type": "Identifier", "span": { "start": 2136, - "end": 2142, + "end": 2137, "ctxt": 0 }, "value": "x", @@ -5332,7 +5332,7 @@ "type": "Identifier", "span": { "start": 2164, - "end": 2174, + "end": 2165, "ctxt": 0 }, "value": "x", @@ -5433,7 +5433,7 @@ "type": "Identifier", "span": { "start": 2192, - "end": 2203, + "end": 2193, "ctxt": 0 }, "value": "x", @@ -5506,7 +5506,7 @@ "type": "Identifier", "span": { "start": 2227, - "end": 2233, + "end": 2228, "ctxt": 0 }, "value": "x", @@ -5577,7 +5577,7 @@ "type": "Identifier", "span": { "start": 2255, - "end": 2265, + "end": 2256, "ctxt": 0 }, "value": "x", @@ -5678,7 +5678,7 @@ "type": "Identifier", "span": { "start": 2283, - "end": 2294, + "end": 2284, "ctxt": 0 }, "value": "x", @@ -5751,7 +5751,7 @@ "type": "Identifier", "span": { "start": 2318, - "end": 2324, + "end": 2319, "ctxt": 0 }, "value": "x", @@ -5822,7 +5822,7 @@ "type": "Identifier", "span": { "start": 2346, - "end": 2351, + "end": 2347, "ctxt": 0 }, "value": "x", @@ -5895,7 +5895,7 @@ "type": "Identifier", "span": { "start": 2369, - "end": 2379, + "end": 2370, "ctxt": 0 }, "value": "x", @@ -5996,7 +5996,7 @@ "type": "Identifier", "span": { "start": 2403, - "end": 2409, + "end": 2404, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.json index d2f9328dc086..fff614703fd7 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 70, + "end": 67, "ctxt": 0 }, "value": "x", @@ -252,7 +252,7 @@ "type": "Identifier", "span": { "start": 119, - "end": 123, + "end": 120, "ctxt": 0 }, "value": "x", @@ -470,7 +470,7 @@ "type": "Identifier", "span": { "start": 175, - "end": 179, + "end": 176, "ctxt": 0 }, "value": "x", @@ -814,7 +814,7 @@ "type": "Identifier", "span": { "start": 238, - "end": 242, + "end": 239, "ctxt": 0 }, "value": "x", @@ -933,7 +933,7 @@ "type": "Identifier", "span": { "start": 286, - "end": 290, + "end": 287, "ctxt": 0 }, "value": "x", @@ -1166,7 +1166,7 @@ "type": "Identifier", "span": { "start": 327, - "end": 331, + "end": 328, "ctxt": 0 }, "value": "x", @@ -1423,7 +1423,7 @@ "type": "Identifier", "span": { "start": 370, - "end": 374, + "end": 371, "ctxt": 0 }, "value": "x", @@ -1676,7 +1676,7 @@ "type": "Identifier", "span": { "start": 408, - "end": 412, + "end": 409, "ctxt": 0 }, "value": "x", @@ -1749,7 +1749,7 @@ "type": "Identifier", "span": { "start": 429, - "end": 433, + "end": 430, "ctxt": 0 }, "value": "x", @@ -1822,7 +1822,7 @@ "type": "Identifier", "span": { "start": 459, - "end": 465, + "end": 460, "ctxt": 0 }, "value": "x", @@ -1893,7 +1893,7 @@ "type": "Identifier", "span": { "start": 487, - "end": 507, + "end": 488, "ctxt": 0 }, "value": "x", @@ -1993,7 +1993,7 @@ "type": "Identifier", "span": { "start": 525, - "end": 545, + "end": 526, "ctxt": 0 }, "value": "x", @@ -2093,7 +2093,7 @@ "type": "Identifier", "span": { "start": 572, - "end": 578, + "end": 573, "ctxt": 0 }, "value": "x", @@ -2164,7 +2164,7 @@ "type": "Identifier", "span": { "start": 600, - "end": 629, + "end": 601, "ctxt": 0 }, "value": "x", @@ -2273,7 +2273,7 @@ "type": "Identifier", "span": { "start": 647, - "end": 676, + "end": 648, "ctxt": 0 }, "value": "x", @@ -2382,7 +2382,7 @@ "type": "Identifier", "span": { "start": 703, - "end": 709, + "end": 704, "ctxt": 0 }, "value": "x", @@ -2453,7 +2453,7 @@ "type": "Identifier", "span": { "start": 730, - "end": 767, + "end": 731, "ctxt": 0 }, "value": "x", @@ -2571,7 +2571,7 @@ "type": "Identifier", "span": { "start": 784, - "end": 821, + "end": 785, "ctxt": 0 }, "value": "x", @@ -2689,7 +2689,7 @@ "type": "Identifier", "span": { "start": 847, - "end": 853, + "end": 848, "ctxt": 0 }, "value": "x", @@ -2760,7 +2760,7 @@ "type": "Identifier", "span": { "start": 874, - "end": 885, + "end": 875, "ctxt": 0 }, "value": "x", @@ -2833,7 +2833,7 @@ "type": "Identifier", "span": { "start": 902, - "end": 913, + "end": 903, "ctxt": 0 }, "value": "x", @@ -2906,7 +2906,7 @@ "type": "Identifier", "span": { "start": 939, - "end": 945, + "end": 940, "ctxt": 0 }, "value": "x", @@ -2977,7 +2977,7 @@ "type": "Identifier", "span": { "start": 966, - "end": 977, + "end": 967, "ctxt": 0 }, "value": "x", @@ -3050,7 +3050,7 @@ "type": "Identifier", "span": { "start": 994, - "end": 1005, + "end": 995, "ctxt": 0 }, "value": "x", @@ -3123,7 +3123,7 @@ "type": "Identifier", "span": { "start": 1031, - "end": 1037, + "end": 1032, "ctxt": 0 }, "value": "x", @@ -3194,7 +3194,7 @@ "type": "Identifier", "span": { "start": 1058, - "end": 1062, + "end": 1059, "ctxt": 0 }, "value": "x", @@ -3267,7 +3267,7 @@ "type": "Identifier", "span": { "start": 1079, - "end": 1099, + "end": 1080, "ctxt": 0 }, "value": "x", @@ -3367,7 +3367,7 @@ "type": "Identifier", "span": { "start": 1122, - "end": 1128, + "end": 1123, "ctxt": 0 }, "value": "x", @@ -3438,7 +3438,7 @@ "type": "Identifier", "span": { "start": 1150, - "end": 1154, + "end": 1151, "ctxt": 0 }, "value": "x", @@ -3511,7 +3511,7 @@ "type": "Identifier", "span": { "start": 1172, - "end": 1201, + "end": 1173, "ctxt": 0 }, "value": "x", @@ -3620,7 +3620,7 @@ "type": "Identifier", "span": { "start": 1225, - "end": 1231, + "end": 1226, "ctxt": 0 }, "value": "x", @@ -3691,7 +3691,7 @@ "type": "Identifier", "span": { "start": 1252, - "end": 1256, + "end": 1253, "ctxt": 0 }, "value": "x", @@ -3764,7 +3764,7 @@ "type": "Identifier", "span": { "start": 1273, - "end": 1308, + "end": 1274, "ctxt": 0 }, "value": "x", @@ -3892,7 +3892,7 @@ "type": "Identifier", "span": { "start": 1331, - "end": 1337, + "end": 1332, "ctxt": 0 }, "value": "x", @@ -3963,7 +3963,7 @@ "type": "Identifier", "span": { "start": 1358, - "end": 1362, + "end": 1359, "ctxt": 0 }, "value": "x", @@ -4036,7 +4036,7 @@ "type": "Identifier", "span": { "start": 1379, - "end": 1390, + "end": 1380, "ctxt": 0 }, "value": "x", @@ -4109,7 +4109,7 @@ "type": "Identifier", "span": { "start": 1425, - "end": 1431, + "end": 1426, "ctxt": 0 }, "value": "x", @@ -4180,7 +4180,7 @@ "type": "Identifier", "span": { "start": 1452, - "end": 1472, + "end": 1453, "ctxt": 0 }, "value": "x", @@ -4280,7 +4280,7 @@ "type": "Identifier", "span": { "start": 1489, - "end": 1524, + "end": 1490, "ctxt": 0 }, "value": "x", @@ -4408,7 +4408,7 @@ "type": "Identifier", "span": { "start": 1550, - "end": 1556, + "end": 1551, "ctxt": 0 }, "value": "x", @@ -4479,7 +4479,7 @@ "type": "Identifier", "span": { "start": 1577, - "end": 1597, + "end": 1578, "ctxt": 0 }, "value": "x", @@ -4579,7 +4579,7 @@ "type": "Identifier", "span": { "start": 1614, - "end": 1653, + "end": 1615, "ctxt": 0 }, "value": "x", @@ -4725,7 +4725,7 @@ "type": "Identifier", "span": { "start": 1679, - "end": 1685, + "end": 1680, "ctxt": 0 }, "value": "x", @@ -4796,7 +4796,7 @@ "type": "Identifier", "span": { "start": 1707, - "end": 1728, + "end": 1708, "ctxt": 0 }, "value": "x", @@ -4896,7 +4896,7 @@ "type": "Identifier", "span": { "start": 1746, - "end": 1757, + "end": 1747, "ctxt": 0 }, "value": "x", @@ -4969,7 +4969,7 @@ "type": "Identifier", "span": { "start": 1781, - "end": 1787, + "end": 1782, "ctxt": 0 }, "value": "x", @@ -5040,7 +5040,7 @@ "type": "Identifier", "span": { "start": 1809, - "end": 1830, + "end": 1810, "ctxt": 0 }, "value": "x", @@ -5140,7 +5140,7 @@ "type": "Identifier", "span": { "start": 1848, - "end": 1859, + "end": 1849, "ctxt": 0 }, "value": "x", @@ -5213,7 +5213,7 @@ "type": "Identifier", "span": { "start": 1883, - "end": 1889, + "end": 1884, "ctxt": 0 }, "value": "x", @@ -5284,7 +5284,7 @@ "type": "Identifier", "span": { "start": 1911, - "end": 1956, + "end": 1912, "ctxt": 0 }, "value": "x", @@ -5449,7 +5449,7 @@ "type": "Identifier", "span": { "start": 1974, - "end": 2011, + "end": 1975, "ctxt": 0 }, "value": "x", @@ -5605,7 +5605,7 @@ "type": "Identifier", "span": { "start": 2038, - "end": 2044, + "end": 2039, "ctxt": 0 }, "value": "x", @@ -5676,7 +5676,7 @@ "type": "Identifier", "span": { "start": 2067, - "end": 2072, + "end": 2068, "ctxt": 0 }, "value": "x", @@ -5749,7 +5749,7 @@ "type": "Identifier", "span": { "start": 2091, - "end": 2120, + "end": 2092, "ctxt": 0 }, "value": "x", @@ -5858,7 +5858,7 @@ "type": "Identifier", "span": { "start": 2145, - "end": 2151, + "end": 2146, "ctxt": 0 }, "value": "x", @@ -5929,7 +5929,7 @@ "type": "Identifier", "span": { "start": 2173, - "end": 2205, + "end": 2174, "ctxt": 0 }, "value": "x", @@ -6077,7 +6077,7 @@ "type": "Identifier", "span": { "start": 2223, - "end": 2234, + "end": 2224, "ctxt": 0 }, "value": "x", @@ -6150,7 +6150,7 @@ "type": "Identifier", "span": { "start": 2258, - "end": 2264, + "end": 2259, "ctxt": 0 }, "value": "x", @@ -6221,7 +6221,7 @@ "type": "Identifier", "span": { "start": 2286, - "end": 2321, + "end": 2287, "ctxt": 0 }, "value": "x", @@ -6359,7 +6359,7 @@ "type": "Identifier", "span": { "start": 2339, - "end": 2350, + "end": 2340, "ctxt": 0 }, "value": "x", @@ -6432,7 +6432,7 @@ "type": "Identifier", "span": { "start": 2374, - "end": 2380, + "end": 2375, "ctxt": 0 }, "value": "x", @@ -6503,7 +6503,7 @@ "type": "Identifier", "span": { "start": 2402, - "end": 2407, + "end": 2403, "ctxt": 0 }, "value": "x", @@ -6576,7 +6576,7 @@ "type": "Identifier", "span": { "start": 2425, - "end": 2475, + "end": 2426, "ctxt": 0 }, "value": "x", @@ -6759,7 +6759,7 @@ "type": "Identifier", "span": { "start": 2499, - "end": 2505, + "end": 2500, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.json index 25757f474ce7..be58e469842e 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.json @@ -147,7 +147,7 @@ "type": "Identifier", "span": { "start": 77, - "end": 81, + "end": 78, "ctxt": 0 }, "value": "x", @@ -253,7 +253,7 @@ "type": "Identifier", "span": { "start": 122, - "end": 126, + "end": 123, "ctxt": 0 }, "value": "x", @@ -473,7 +473,7 @@ "type": "Identifier", "span": { "start": 160, - "end": 164, + "end": 161, "ctxt": 0 }, "value": "x", @@ -695,7 +695,7 @@ "type": "Identifier", "span": { "start": 186, - "end": 223, + "end": 187, "ctxt": 0 }, "value": "x", @@ -813,7 +813,7 @@ "type": "Identifier", "span": { "start": 240, - "end": 277, + "end": 241, "ctxt": 0 }, "value": "x", @@ -931,7 +931,7 @@ "type": "Identifier", "span": { "start": 303, - "end": 309, + "end": 304, "ctxt": 0 }, "value": "x", @@ -1002,7 +1002,7 @@ "type": "Identifier", "span": { "start": 330, - "end": 335, + "end": 331, "ctxt": 0 }, "value": "x", @@ -1075,7 +1075,7 @@ "type": "Identifier", "span": { "start": 352, - "end": 357, + "end": 353, "ctxt": 0 }, "value": "x", @@ -1148,7 +1148,7 @@ "type": "Identifier", "span": { "start": 383, - "end": 389, + "end": 384, "ctxt": 0 }, "value": "x", @@ -1219,7 +1219,7 @@ "type": "Identifier", "span": { "start": 410, - "end": 421, + "end": 411, "ctxt": 0 }, "value": "x", @@ -1292,7 +1292,7 @@ "type": "Identifier", "span": { "start": 438, - "end": 449, + "end": 439, "ctxt": 0 }, "value": "x", @@ -1365,7 +1365,7 @@ "type": "Identifier", "span": { "start": 475, - "end": 481, + "end": 476, "ctxt": 0 }, "value": "x", @@ -1436,7 +1436,7 @@ "type": "Identifier", "span": { "start": 503, - "end": 538, + "end": 504, "ctxt": 0 }, "value": "x", @@ -1564,7 +1564,7 @@ "type": "Identifier", "span": { "start": 556, - "end": 567, + "end": 557, "ctxt": 0 }, "value": "x", @@ -1637,7 +1637,7 @@ "type": "Identifier", "span": { "start": 591, - "end": 597, + "end": 592, "ctxt": 0 }, "value": "x", @@ -1708,7 +1708,7 @@ "type": "Identifier", "span": { "start": 619, - "end": 654, + "end": 620, "ctxt": 0 }, "value": "x", @@ -1836,7 +1836,7 @@ "type": "Identifier", "span": { "start": 672, - "end": 677, + "end": 673, "ctxt": 0 }, "value": "x", @@ -1909,7 +1909,7 @@ "type": "Identifier", "span": { "start": 704, - "end": 710, + "end": 705, "ctxt": 0 }, "value": "x", @@ -1980,7 +1980,7 @@ "type": "Identifier", "span": { "start": 733, - "end": 744, + "end": 734, "ctxt": 0 }, "value": "x", @@ -2053,7 +2053,7 @@ "type": "Identifier", "span": { "start": 763, - "end": 768, + "end": 764, "ctxt": 0 }, "value": "x", @@ -2126,7 +2126,7 @@ "type": "Identifier", "span": { "start": 793, - "end": 799, + "end": 794, "ctxt": 0 }, "value": "x", @@ -2197,7 +2197,7 @@ "type": "Identifier", "span": { "start": 821, - "end": 856, + "end": 822, "ctxt": 0 }, "value": "x", @@ -2325,7 +2325,7 @@ "type": "Identifier", "span": { "start": 874, - "end": 879, + "end": 875, "ctxt": 0 }, "value": "x", @@ -2398,7 +2398,7 @@ "type": "Identifier", "span": { "start": 903, - "end": 909, + "end": 904, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.json index 248fabcd4100..abcb6bf3d17f 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 70, + "end": 67, "ctxt": 0 }, "value": "x", @@ -252,7 +252,7 @@ "type": "Identifier", "span": { "start": 116, - "end": 120, + "end": 117, "ctxt": 0 }, "value": "x", @@ -447,7 +447,7 @@ "type": "Identifier", "span": { "start": 166, - "end": 170, + "end": 167, "ctxt": 0 }, "value": "x", @@ -676,7 +676,7 @@ "type": "Identifier", "span": { "start": 220, - "end": 224, + "end": 221, "ctxt": 0 }, "value": "x", @@ -795,7 +795,7 @@ "type": "Identifier", "span": { "start": 259, - "end": 263, + "end": 260, "ctxt": 0 }, "value": "x", @@ -959,7 +959,7 @@ "type": "Identifier", "span": { "start": 288, - "end": 292, + "end": 289, "ctxt": 0 }, "value": "x", @@ -1124,7 +1124,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 320, + "end": 317, "ctxt": 0 }, "value": "x", @@ -1262,7 +1262,7 @@ "type": "Identifier", "span": { "start": 354, - "end": 358, + "end": 355, "ctxt": 0 }, "value": "x", @@ -1335,7 +1335,7 @@ "type": "Identifier", "span": { "start": 375, - "end": 379, + "end": 376, "ctxt": 0 }, "value": "x", @@ -1408,7 +1408,7 @@ "type": "Identifier", "span": { "start": 405, - "end": 411, + "end": 406, "ctxt": 0 }, "value": "x", @@ -1479,7 +1479,7 @@ "type": "Identifier", "span": { "start": 433, - "end": 445, + "end": 434, "ctxt": 0 }, "value": "x", @@ -1570,7 +1570,7 @@ "type": "Identifier", "span": { "start": 463, - "end": 475, + "end": 464, "ctxt": 0 }, "value": "x", @@ -1661,7 +1661,7 @@ "type": "Identifier", "span": { "start": 502, - "end": 508, + "end": 503, "ctxt": 0 }, "value": "x", @@ -1732,7 +1732,7 @@ "type": "Identifier", "span": { "start": 530, - "end": 542, + "end": 531, "ctxt": 0 }, "value": "x", @@ -1823,7 +1823,7 @@ "type": "Identifier", "span": { "start": 560, - "end": 572, + "end": 561, "ctxt": 0 }, "value": "x", @@ -1914,7 +1914,7 @@ "type": "Identifier", "span": { "start": 599, - "end": 605, + "end": 600, "ctxt": 0 }, "value": "x", @@ -1985,7 +1985,7 @@ "type": "Identifier", "span": { "start": 626, - "end": 638, + "end": 627, "ctxt": 0 }, "value": "x", @@ -2076,7 +2076,7 @@ "type": "Identifier", "span": { "start": 655, - "end": 667, + "end": 656, "ctxt": 0 }, "value": "x", @@ -2167,7 +2167,7 @@ "type": "Identifier", "span": { "start": 693, - "end": 699, + "end": 694, "ctxt": 0 }, "value": "x", @@ -2238,7 +2238,7 @@ "type": "Identifier", "span": { "start": 720, - "end": 731, + "end": 721, "ctxt": 0 }, "value": "x", @@ -2311,7 +2311,7 @@ "type": "Identifier", "span": { "start": 748, - "end": 759, + "end": 749, "ctxt": 0 }, "value": "x", @@ -2384,7 +2384,7 @@ "type": "Identifier", "span": { "start": 785, - "end": 791, + "end": 786, "ctxt": 0 }, "value": "x", @@ -2455,7 +2455,7 @@ "type": "Identifier", "span": { "start": 812, - "end": 823, + "end": 813, "ctxt": 0 }, "value": "x", @@ -2528,7 +2528,7 @@ "type": "Identifier", "span": { "start": 840, - "end": 851, + "end": 841, "ctxt": 0 }, "value": "x", @@ -2601,7 +2601,7 @@ "type": "Identifier", "span": { "start": 877, - "end": 883, + "end": 878, "ctxt": 0 }, "value": "x", @@ -2672,7 +2672,7 @@ "type": "Identifier", "span": { "start": 904, - "end": 908, + "end": 905, "ctxt": 0 }, "value": "x", @@ -2745,7 +2745,7 @@ "type": "Identifier", "span": { "start": 925, - "end": 937, + "end": 926, "ctxt": 0 }, "value": "x", @@ -2836,7 +2836,7 @@ "type": "Identifier", "span": { "start": 960, - "end": 966, + "end": 961, "ctxt": 0 }, "value": "x", @@ -2907,7 +2907,7 @@ "type": "Identifier", "span": { "start": 988, - "end": 992, + "end": 989, "ctxt": 0 }, "value": "x", @@ -2980,7 +2980,7 @@ "type": "Identifier", "span": { "start": 1010, - "end": 1022, + "end": 1011, "ctxt": 0 }, "value": "x", @@ -3071,7 +3071,7 @@ "type": "Identifier", "span": { "start": 1046, - "end": 1052, + "end": 1047, "ctxt": 0 }, "value": "x", @@ -3142,7 +3142,7 @@ "type": "Identifier", "span": { "start": 1073, - "end": 1077, + "end": 1074, "ctxt": 0 }, "value": "x", @@ -3215,7 +3215,7 @@ "type": "Identifier", "span": { "start": 1094, - "end": 1106, + "end": 1095, "ctxt": 0 }, "value": "x", @@ -3306,7 +3306,7 @@ "type": "Identifier", "span": { "start": 1129, - "end": 1135, + "end": 1130, "ctxt": 0 }, "value": "x", @@ -3377,7 +3377,7 @@ "type": "Identifier", "span": { "start": 1156, - "end": 1160, + "end": 1157, "ctxt": 0 }, "value": "x", @@ -3450,7 +3450,7 @@ "type": "Identifier", "span": { "start": 1177, - "end": 1188, + "end": 1178, "ctxt": 0 }, "value": "x", @@ -3523,7 +3523,7 @@ "type": "Identifier", "span": { "start": 1214, - "end": 1220, + "end": 1215, "ctxt": 0 }, "value": "x", @@ -3594,7 +3594,7 @@ "type": "Identifier", "span": { "start": 1241, - "end": 1253, + "end": 1242, "ctxt": 0 }, "value": "x", @@ -3685,7 +3685,7 @@ "type": "Identifier", "span": { "start": 1270, - "end": 1282, + "end": 1271, "ctxt": 0 }, "value": "x", @@ -3776,7 +3776,7 @@ "type": "Identifier", "span": { "start": 1308, - "end": 1314, + "end": 1309, "ctxt": 0 }, "value": "x", @@ -3847,7 +3847,7 @@ "type": "Identifier", "span": { "start": 1335, - "end": 1347, + "end": 1336, "ctxt": 0 }, "value": "x", @@ -3938,7 +3938,7 @@ "type": "Identifier", "span": { "start": 1364, - "end": 1376, + "end": 1365, "ctxt": 0 }, "value": "x", @@ -4029,7 +4029,7 @@ "type": "Identifier", "span": { "start": 1402, - "end": 1408, + "end": 1403, "ctxt": 0 }, "value": "x", @@ -4100,7 +4100,7 @@ "type": "Identifier", "span": { "start": 1430, - "end": 1442, + "end": 1431, "ctxt": 0 }, "value": "x", @@ -4191,7 +4191,7 @@ "type": "Identifier", "span": { "start": 1460, - "end": 1471, + "end": 1461, "ctxt": 0 }, "value": "x", @@ -4264,7 +4264,7 @@ "type": "Identifier", "span": { "start": 1495, - "end": 1501, + "end": 1496, "ctxt": 0 }, "value": "x", @@ -4335,7 +4335,7 @@ "type": "Identifier", "span": { "start": 1523, - "end": 1535, + "end": 1524, "ctxt": 0 }, "value": "x", @@ -4426,7 +4426,7 @@ "type": "Identifier", "span": { "start": 1553, - "end": 1564, + "end": 1554, "ctxt": 0 }, "value": "x", @@ -4499,7 +4499,7 @@ "type": "Identifier", "span": { "start": 1588, - "end": 1594, + "end": 1589, "ctxt": 0 }, "value": "x", @@ -4570,7 +4570,7 @@ "type": "Identifier", "span": { "start": 1616, - "end": 1628, + "end": 1617, "ctxt": 0 }, "value": "x", @@ -4661,7 +4661,7 @@ "type": "Identifier", "span": { "start": 1646, - "end": 1658, + "end": 1647, "ctxt": 0 }, "value": "x", @@ -4752,7 +4752,7 @@ "type": "Identifier", "span": { "start": 1685, - "end": 1691, + "end": 1686, "ctxt": 0 }, "value": "x", @@ -4823,7 +4823,7 @@ "type": "Identifier", "span": { "start": 1714, - "end": 1719, + "end": 1715, "ctxt": 0 }, "value": "x", @@ -4896,7 +4896,7 @@ "type": "Identifier", "span": { "start": 1738, - "end": 1750, + "end": 1739, "ctxt": 0 }, "value": "x", @@ -4987,7 +4987,7 @@ "type": "Identifier", "span": { "start": 1775, - "end": 1781, + "end": 1776, "ctxt": 0 }, "value": "x", @@ -5058,7 +5058,7 @@ "type": "Identifier", "span": { "start": 1803, - "end": 1815, + "end": 1804, "ctxt": 0 }, "value": "x", @@ -5149,7 +5149,7 @@ "type": "Identifier", "span": { "start": 1833, - "end": 1844, + "end": 1834, "ctxt": 0 }, "value": "x", @@ -5222,7 +5222,7 @@ "type": "Identifier", "span": { "start": 1868, - "end": 1874, + "end": 1869, "ctxt": 0 }, "value": "x", @@ -5293,7 +5293,7 @@ "type": "Identifier", "span": { "start": 1896, - "end": 1908, + "end": 1897, "ctxt": 0 }, "value": "x", @@ -5384,7 +5384,7 @@ "type": "Identifier", "span": { "start": 1926, - "end": 1937, + "end": 1927, "ctxt": 0 }, "value": "x", @@ -5457,7 +5457,7 @@ "type": "Identifier", "span": { "start": 1961, - "end": 1967, + "end": 1962, "ctxt": 0 }, "value": "x", @@ -5528,7 +5528,7 @@ "type": "Identifier", "span": { "start": 1989, - "end": 1994, + "end": 1990, "ctxt": 0 }, "value": "x", @@ -5601,7 +5601,7 @@ "type": "Identifier", "span": { "start": 2012, - "end": 2024, + "end": 2013, "ctxt": 0 }, "value": "x", @@ -5692,7 +5692,7 @@ "type": "Identifier", "span": { "start": 2048, - "end": 2054, + "end": 2049, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams.json index 3200eb63584e..04678c7e7336 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 357, - "end": 361, + "end": 358, "ctxt": 0 }, "value": "x", @@ -103,7 +103,7 @@ "type": "Identifier", "span": { "start": 363, - "end": 368, + "end": 364, "ctxt": 0 }, "value": "y", @@ -298,7 +298,7 @@ "type": "Identifier", "span": { "start": 414, - "end": 418, + "end": 415, "ctxt": 0 }, "value": "x", @@ -344,7 +344,7 @@ "type": "Identifier", "span": { "start": 420, - "end": 425, + "end": 421, "ctxt": 0 }, "value": "y", @@ -539,7 +539,7 @@ "type": "Identifier", "span": { "start": 471, - "end": 475, + "end": 472, "ctxt": 0 }, "value": "x", @@ -585,7 +585,7 @@ "type": "Identifier", "span": { "start": 477, - "end": 482, + "end": 478, "ctxt": 0 }, "value": "y", @@ -814,7 +814,7 @@ "type": "Identifier", "span": { "start": 532, - "end": 536, + "end": 533, "ctxt": 0 }, "value": "x", @@ -851,7 +851,7 @@ "type": "Identifier", "span": { "start": 538, - "end": 543, + "end": 539, "ctxt": 0 }, "value": "y", @@ -970,7 +970,7 @@ "type": "Identifier", "span": { "start": 578, - "end": 582, + "end": 579, "ctxt": 0 }, "value": "x", @@ -1007,7 +1007,7 @@ "type": "Identifier", "span": { "start": 584, - "end": 589, + "end": 585, "ctxt": 0 }, "value": "y", @@ -1171,7 +1171,7 @@ "type": "Identifier", "span": { "start": 614, - "end": 618, + "end": 615, "ctxt": 0 }, "value": "x", @@ -1208,7 +1208,7 @@ "type": "Identifier", "span": { "start": 620, - "end": 625, + "end": 621, "ctxt": 0 }, "value": "y", @@ -1373,7 +1373,7 @@ "type": "Identifier", "span": { "start": 649, - "end": 653, + "end": 650, "ctxt": 0 }, "value": "x", @@ -1419,7 +1419,7 @@ "type": "Identifier", "span": { "start": 655, - "end": 660, + "end": 656, "ctxt": 0 }, "value": "y", @@ -1557,7 +1557,7 @@ "type": "Identifier", "span": { "start": 694, - "end": 698, + "end": 695, "ctxt": 0 }, "value": "x", @@ -1630,7 +1630,7 @@ "type": "Identifier", "span": { "start": 715, - "end": 719, + "end": 716, "ctxt": 0 }, "value": "x", @@ -1703,7 +1703,7 @@ "type": "Identifier", "span": { "start": 745, - "end": 751, + "end": 746, "ctxt": 0 }, "value": "x", @@ -1774,7 +1774,7 @@ "type": "Identifier", "span": { "start": 773, - "end": 785, + "end": 774, "ctxt": 0 }, "value": "x", @@ -1865,7 +1865,7 @@ "type": "Identifier", "span": { "start": 803, - "end": 815, + "end": 804, "ctxt": 0 }, "value": "x", @@ -1956,7 +1956,7 @@ "type": "Identifier", "span": { "start": 842, - "end": 848, + "end": 843, "ctxt": 0 }, "value": "x", @@ -2027,7 +2027,7 @@ "type": "Identifier", "span": { "start": 870, - "end": 882, + "end": 871, "ctxt": 0 }, "value": "x", @@ -2118,7 +2118,7 @@ "type": "Identifier", "span": { "start": 900, - "end": 912, + "end": 901, "ctxt": 0 }, "value": "x", @@ -2209,7 +2209,7 @@ "type": "Identifier", "span": { "start": 939, - "end": 945, + "end": 940, "ctxt": 0 }, "value": "x", @@ -2280,7 +2280,7 @@ "type": "Identifier", "span": { "start": 966, - "end": 978, + "end": 967, "ctxt": 0 }, "value": "x", @@ -2371,7 +2371,7 @@ "type": "Identifier", "span": { "start": 995, - "end": 1007, + "end": 996, "ctxt": 0 }, "value": "x", @@ -2462,7 +2462,7 @@ "type": "Identifier", "span": { "start": 1033, - "end": 1039, + "end": 1034, "ctxt": 0 }, "value": "x", @@ -2533,7 +2533,7 @@ "type": "Identifier", "span": { "start": 1060, - "end": 1071, + "end": 1061, "ctxt": 0 }, "value": "x", @@ -2606,7 +2606,7 @@ "type": "Identifier", "span": { "start": 1088, - "end": 1099, + "end": 1089, "ctxt": 0 }, "value": "x", @@ -2679,7 +2679,7 @@ "type": "Identifier", "span": { "start": 1125, - "end": 1131, + "end": 1126, "ctxt": 0 }, "value": "x", @@ -2750,7 +2750,7 @@ "type": "Identifier", "span": { "start": 1152, - "end": 1163, + "end": 1153, "ctxt": 0 }, "value": "x", @@ -2823,7 +2823,7 @@ "type": "Identifier", "span": { "start": 1180, - "end": 1191, + "end": 1181, "ctxt": 0 }, "value": "x", @@ -2896,7 +2896,7 @@ "type": "Identifier", "span": { "start": 1217, - "end": 1223, + "end": 1218, "ctxt": 0 }, "value": "x", @@ -2967,7 +2967,7 @@ "type": "Identifier", "span": { "start": 1244, - "end": 1248, + "end": 1245, "ctxt": 0 }, "value": "x", @@ -3040,7 +3040,7 @@ "type": "Identifier", "span": { "start": 1265, - "end": 1277, + "end": 1266, "ctxt": 0 }, "value": "x", @@ -3131,7 +3131,7 @@ "type": "Identifier", "span": { "start": 1300, - "end": 1306, + "end": 1301, "ctxt": 0 }, "value": "x", @@ -3202,7 +3202,7 @@ "type": "Identifier", "span": { "start": 1328, - "end": 1332, + "end": 1329, "ctxt": 0 }, "value": "x", @@ -3275,7 +3275,7 @@ "type": "Identifier", "span": { "start": 1350, - "end": 1362, + "end": 1351, "ctxt": 0 }, "value": "x", @@ -3366,7 +3366,7 @@ "type": "Identifier", "span": { "start": 1386, - "end": 1392, + "end": 1387, "ctxt": 0 }, "value": "x", @@ -3437,7 +3437,7 @@ "type": "Identifier", "span": { "start": 1413, - "end": 1417, + "end": 1414, "ctxt": 0 }, "value": "x", @@ -3510,7 +3510,7 @@ "type": "Identifier", "span": { "start": 1434, - "end": 1446, + "end": 1435, "ctxt": 0 }, "value": "x", @@ -3601,7 +3601,7 @@ "type": "Identifier", "span": { "start": 1469, - "end": 1475, + "end": 1470, "ctxt": 0 }, "value": "x", @@ -3672,7 +3672,7 @@ "type": "Identifier", "span": { "start": 1496, - "end": 1500, + "end": 1497, "ctxt": 0 }, "value": "x", @@ -3745,7 +3745,7 @@ "type": "Identifier", "span": { "start": 1517, - "end": 1528, + "end": 1518, "ctxt": 0 }, "value": "x", @@ -3818,7 +3818,7 @@ "type": "Identifier", "span": { "start": 1563, - "end": 1569, + "end": 1564, "ctxt": 0 }, "value": "x", @@ -3889,7 +3889,7 @@ "type": "Identifier", "span": { "start": 1590, - "end": 1602, + "end": 1591, "ctxt": 0 }, "value": "x", @@ -3980,7 +3980,7 @@ "type": "Identifier", "span": { "start": 1619, - "end": 1631, + "end": 1620, "ctxt": 0 }, "value": "x", @@ -4071,7 +4071,7 @@ "type": "Identifier", "span": { "start": 1657, - "end": 1663, + "end": 1658, "ctxt": 0 }, "value": "x", @@ -4142,7 +4142,7 @@ "type": "Identifier", "span": { "start": 1684, - "end": 1696, + "end": 1685, "ctxt": 0 }, "value": "x", @@ -4233,7 +4233,7 @@ "type": "Identifier", "span": { "start": 1713, - "end": 1725, + "end": 1714, "ctxt": 0 }, "value": "x", @@ -4324,7 +4324,7 @@ "type": "Identifier", "span": { "start": 1751, - "end": 1757, + "end": 1752, "ctxt": 0 }, "value": "x", @@ -4395,7 +4395,7 @@ "type": "Identifier", "span": { "start": 1779, - "end": 1791, + "end": 1780, "ctxt": 0 }, "value": "x", @@ -4486,7 +4486,7 @@ "type": "Identifier", "span": { "start": 1809, - "end": 1820, + "end": 1810, "ctxt": 0 }, "value": "x", @@ -4559,7 +4559,7 @@ "type": "Identifier", "span": { "start": 1844, - "end": 1850, + "end": 1845, "ctxt": 0 }, "value": "x", @@ -4630,7 +4630,7 @@ "type": "Identifier", "span": { "start": 1872, - "end": 1884, + "end": 1873, "ctxt": 0 }, "value": "x", @@ -4721,7 +4721,7 @@ "type": "Identifier", "span": { "start": 1902, - "end": 1913, + "end": 1903, "ctxt": 0 }, "value": "x", @@ -4794,7 +4794,7 @@ "type": "Identifier", "span": { "start": 1937, - "end": 1943, + "end": 1938, "ctxt": 0 }, "value": "x", @@ -4865,7 +4865,7 @@ "type": "Identifier", "span": { "start": 1965, - "end": 1977, + "end": 1966, "ctxt": 0 }, "value": "x", @@ -4956,7 +4956,7 @@ "type": "Identifier", "span": { "start": 1995, - "end": 2007, + "end": 1996, "ctxt": 0 }, "value": "x", @@ -5047,7 +5047,7 @@ "type": "Identifier", "span": { "start": 2034, - "end": 2040, + "end": 2035, "ctxt": 0 }, "value": "x", @@ -5118,7 +5118,7 @@ "type": "Identifier", "span": { "start": 2063, - "end": 2068, + "end": 2064, "ctxt": 0 }, "value": "x", @@ -5191,7 +5191,7 @@ "type": "Identifier", "span": { "start": 2087, - "end": 2099, + "end": 2088, "ctxt": 0 }, "value": "x", @@ -5282,7 +5282,7 @@ "type": "Identifier", "span": { "start": 2124, - "end": 2130, + "end": 2125, "ctxt": 0 }, "value": "x", @@ -5353,7 +5353,7 @@ "type": "Identifier", "span": { "start": 2152, - "end": 2164, + "end": 2153, "ctxt": 0 }, "value": "x", @@ -5444,7 +5444,7 @@ "type": "Identifier", "span": { "start": 2182, - "end": 2193, + "end": 2183, "ctxt": 0 }, "value": "x", @@ -5517,7 +5517,7 @@ "type": "Identifier", "span": { "start": 2217, - "end": 2223, + "end": 2218, "ctxt": 0 }, "value": "x", @@ -5588,7 +5588,7 @@ "type": "Identifier", "span": { "start": 2245, - "end": 2257, + "end": 2246, "ctxt": 0 }, "value": "x", @@ -5679,7 +5679,7 @@ "type": "Identifier", "span": { "start": 2275, - "end": 2286, + "end": 2276, "ctxt": 0 }, "value": "x", @@ -5752,7 +5752,7 @@ "type": "Identifier", "span": { "start": 2310, - "end": 2316, + "end": 2311, "ctxt": 0 }, "value": "x", @@ -5823,7 +5823,7 @@ "type": "Identifier", "span": { "start": 2338, - "end": 2343, + "end": 2339, "ctxt": 0 }, "value": "x", @@ -5896,7 +5896,7 @@ "type": "Identifier", "span": { "start": 2361, - "end": 2373, + "end": 2362, "ctxt": 0 }, "value": "x", @@ -5987,7 +5987,7 @@ "type": "Identifier", "span": { "start": 2397, - "end": 2403, + "end": 2398, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.json index b6e53b19d573..89bf826c5ad0 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 360, - "end": 364, + "end": 361, "ctxt": 0 }, "value": "x", @@ -103,7 +103,7 @@ "type": "Identifier", "span": { "start": 366, - "end": 371, + "end": 367, "ctxt": 0 }, "value": "y", @@ -321,7 +321,7 @@ "type": "Identifier", "span": { "start": 420, - "end": 424, + "end": 421, "ctxt": 0 }, "value": "x", @@ -367,7 +367,7 @@ "type": "Identifier", "span": { "start": 426, - "end": 431, + "end": 427, "ctxt": 0 }, "value": "y", @@ -585,7 +585,7 @@ "type": "Identifier", "span": { "start": 480, - "end": 484, + "end": 481, "ctxt": 0 }, "value": "x", @@ -631,7 +631,7 @@ "type": "Identifier", "span": { "start": 486, - "end": 491, + "end": 487, "ctxt": 0 }, "value": "y", @@ -906,7 +906,7 @@ "type": "Identifier", "span": { "start": 544, - "end": 548, + "end": 545, "ctxt": 0 }, "value": "x", @@ -943,7 +943,7 @@ "type": "Identifier", "span": { "start": 550, - "end": 555, + "end": 551, "ctxt": 0 }, "value": "y", @@ -1062,7 +1062,7 @@ "type": "Identifier", "span": { "start": 593, - "end": 597, + "end": 594, "ctxt": 0 }, "value": "x", @@ -1099,7 +1099,7 @@ "type": "Identifier", "span": { "start": 599, - "end": 604, + "end": 600, "ctxt": 0 }, "value": "y", @@ -1286,7 +1286,7 @@ "type": "Identifier", "span": { "start": 632, - "end": 636, + "end": 633, "ctxt": 0 }, "value": "x", @@ -1323,7 +1323,7 @@ "type": "Identifier", "span": { "start": 638, - "end": 643, + "end": 639, "ctxt": 0 }, "value": "y", @@ -1511,7 +1511,7 @@ "type": "Identifier", "span": { "start": 670, - "end": 674, + "end": 671, "ctxt": 0 }, "value": "x", @@ -1557,7 +1557,7 @@ "type": "Identifier", "span": { "start": 676, - "end": 681, + "end": 677, "ctxt": 0 }, "value": "y", @@ -1718,7 +1718,7 @@ "type": "Identifier", "span": { "start": 715, - "end": 719, + "end": 716, "ctxt": 0 }, "value": "x", @@ -1791,7 +1791,7 @@ "type": "Identifier", "span": { "start": 736, - "end": 740, + "end": 737, "ctxt": 0 }, "value": "x", @@ -1864,7 +1864,7 @@ "type": "Identifier", "span": { "start": 766, - "end": 772, + "end": 767, "ctxt": 0 }, "value": "x", @@ -1935,7 +1935,7 @@ "type": "Identifier", "span": { "start": 794, - "end": 814, + "end": 795, "ctxt": 0 }, "value": "x", @@ -2035,7 +2035,7 @@ "type": "Identifier", "span": { "start": 832, - "end": 852, + "end": 833, "ctxt": 0 }, "value": "x", @@ -2135,7 +2135,7 @@ "type": "Identifier", "span": { "start": 879, - "end": 885, + "end": 880, "ctxt": 0 }, "value": "x", @@ -2206,7 +2206,7 @@ "type": "Identifier", "span": { "start": 907, - "end": 927, + "end": 908, "ctxt": 0 }, "value": "x", @@ -2306,7 +2306,7 @@ "type": "Identifier", "span": { "start": 945, - "end": 965, + "end": 946, "ctxt": 0 }, "value": "x", @@ -2406,7 +2406,7 @@ "type": "Identifier", "span": { "start": 992, - "end": 998, + "end": 993, "ctxt": 0 }, "value": "x", @@ -2477,7 +2477,7 @@ "type": "Identifier", "span": { "start": 1019, - "end": 1039, + "end": 1020, "ctxt": 0 }, "value": "x", @@ -2577,7 +2577,7 @@ "type": "Identifier", "span": { "start": 1056, - "end": 1076, + "end": 1057, "ctxt": 0 }, "value": "x", @@ -2677,7 +2677,7 @@ "type": "Identifier", "span": { "start": 1102, - "end": 1108, + "end": 1103, "ctxt": 0 }, "value": "x", @@ -2748,7 +2748,7 @@ "type": "Identifier", "span": { "start": 1129, - "end": 1140, + "end": 1130, "ctxt": 0 }, "value": "x", @@ -2821,7 +2821,7 @@ "type": "Identifier", "span": { "start": 1157, - "end": 1168, + "end": 1158, "ctxt": 0 }, "value": "x", @@ -2894,7 +2894,7 @@ "type": "Identifier", "span": { "start": 1194, - "end": 1200, + "end": 1195, "ctxt": 0 }, "value": "x", @@ -2965,7 +2965,7 @@ "type": "Identifier", "span": { "start": 1221, - "end": 1232, + "end": 1222, "ctxt": 0 }, "value": "x", @@ -3038,7 +3038,7 @@ "type": "Identifier", "span": { "start": 1249, - "end": 1260, + "end": 1250, "ctxt": 0 }, "value": "x", @@ -3111,7 +3111,7 @@ "type": "Identifier", "span": { "start": 1286, - "end": 1292, + "end": 1287, "ctxt": 0 }, "value": "x", @@ -3182,7 +3182,7 @@ "type": "Identifier", "span": { "start": 1313, - "end": 1317, + "end": 1314, "ctxt": 0 }, "value": "x", @@ -3255,7 +3255,7 @@ "type": "Identifier", "span": { "start": 1334, - "end": 1354, + "end": 1335, "ctxt": 0 }, "value": "x", @@ -3355,7 +3355,7 @@ "type": "Identifier", "span": { "start": 1377, - "end": 1383, + "end": 1378, "ctxt": 0 }, "value": "x", @@ -3426,7 +3426,7 @@ "type": "Identifier", "span": { "start": 1405, - "end": 1409, + "end": 1406, "ctxt": 0 }, "value": "x", @@ -3499,7 +3499,7 @@ "type": "Identifier", "span": { "start": 1427, - "end": 1447, + "end": 1428, "ctxt": 0 }, "value": "x", @@ -3599,7 +3599,7 @@ "type": "Identifier", "span": { "start": 1471, - "end": 1477, + "end": 1472, "ctxt": 0 }, "value": "x", @@ -3670,7 +3670,7 @@ "type": "Identifier", "span": { "start": 1498, - "end": 1502, + "end": 1499, "ctxt": 0 }, "value": "x", @@ -3743,7 +3743,7 @@ "type": "Identifier", "span": { "start": 1519, - "end": 1539, + "end": 1520, "ctxt": 0 }, "value": "x", @@ -3843,7 +3843,7 @@ "type": "Identifier", "span": { "start": 1562, - "end": 1568, + "end": 1563, "ctxt": 0 }, "value": "x", @@ -3914,7 +3914,7 @@ "type": "Identifier", "span": { "start": 1589, - "end": 1593, + "end": 1590, "ctxt": 0 }, "value": "x", @@ -3987,7 +3987,7 @@ "type": "Identifier", "span": { "start": 1610, - "end": 1621, + "end": 1611, "ctxt": 0 }, "value": "x", @@ -4060,7 +4060,7 @@ "type": "Identifier", "span": { "start": 1656, - "end": 1662, + "end": 1657, "ctxt": 0 }, "value": "x", @@ -4131,7 +4131,7 @@ "type": "Identifier", "span": { "start": 1683, - "end": 1703, + "end": 1684, "ctxt": 0 }, "value": "x", @@ -4231,7 +4231,7 @@ "type": "Identifier", "span": { "start": 1720, - "end": 1740, + "end": 1721, "ctxt": 0 }, "value": "x", @@ -4331,7 +4331,7 @@ "type": "Identifier", "span": { "start": 1766, - "end": 1772, + "end": 1767, "ctxt": 0 }, "value": "x", @@ -4402,7 +4402,7 @@ "type": "Identifier", "span": { "start": 1793, - "end": 1813, + "end": 1794, "ctxt": 0 }, "value": "x", @@ -4502,7 +4502,7 @@ "type": "Identifier", "span": { "start": 1830, - "end": 1850, + "end": 1831, "ctxt": 0 }, "value": "x", @@ -4602,7 +4602,7 @@ "type": "Identifier", "span": { "start": 1876, - "end": 1882, + "end": 1877, "ctxt": 0 }, "value": "x", @@ -4673,7 +4673,7 @@ "type": "Identifier", "span": { "start": 1904, - "end": 1924, + "end": 1905, "ctxt": 0 }, "value": "x", @@ -4773,7 +4773,7 @@ "type": "Identifier", "span": { "start": 1942, - "end": 1953, + "end": 1943, "ctxt": 0 }, "value": "x", @@ -4846,7 +4846,7 @@ "type": "Identifier", "span": { "start": 1977, - "end": 1983, + "end": 1978, "ctxt": 0 }, "value": "x", @@ -4917,7 +4917,7 @@ "type": "Identifier", "span": { "start": 2005, - "end": 2025, + "end": 2006, "ctxt": 0 }, "value": "x", @@ -5017,7 +5017,7 @@ "type": "Identifier", "span": { "start": 2043, - "end": 2054, + "end": 2044, "ctxt": 0 }, "value": "x", @@ -5090,7 +5090,7 @@ "type": "Identifier", "span": { "start": 2078, - "end": 2084, + "end": 2079, "ctxt": 0 }, "value": "x", @@ -5161,7 +5161,7 @@ "type": "Identifier", "span": { "start": 2106, - "end": 2126, + "end": 2107, "ctxt": 0 }, "value": "x", @@ -5261,7 +5261,7 @@ "type": "Identifier", "span": { "start": 2144, - "end": 2164, + "end": 2145, "ctxt": 0 }, "value": "x", @@ -5361,7 +5361,7 @@ "type": "Identifier", "span": { "start": 2191, - "end": 2197, + "end": 2192, "ctxt": 0 }, "value": "x", @@ -5432,7 +5432,7 @@ "type": "Identifier", "span": { "start": 2220, - "end": 2225, + "end": 2221, "ctxt": 0 }, "value": "x", @@ -5505,7 +5505,7 @@ "type": "Identifier", "span": { "start": 2244, - "end": 2264, + "end": 2245, "ctxt": 0 }, "value": "x", @@ -5605,7 +5605,7 @@ "type": "Identifier", "span": { "start": 2289, - "end": 2295, + "end": 2290, "ctxt": 0 }, "value": "x", @@ -5676,7 +5676,7 @@ "type": "Identifier", "span": { "start": 2317, - "end": 2337, + "end": 2318, "ctxt": 0 }, "value": "x", @@ -5776,7 +5776,7 @@ "type": "Identifier", "span": { "start": 2355, - "end": 2366, + "end": 2356, "ctxt": 0 }, "value": "x", @@ -5849,7 +5849,7 @@ "type": "Identifier", "span": { "start": 2390, - "end": 2396, + "end": 2391, "ctxt": 0 }, "value": "x", @@ -5920,7 +5920,7 @@ "type": "Identifier", "span": { "start": 2418, - "end": 2438, + "end": 2419, "ctxt": 0 }, "value": "x", @@ -6020,7 +6020,7 @@ "type": "Identifier", "span": { "start": 2456, - "end": 2467, + "end": 2457, "ctxt": 0 }, "value": "x", @@ -6093,7 +6093,7 @@ "type": "Identifier", "span": { "start": 2491, - "end": 2497, + "end": 2492, "ctxt": 0 }, "value": "x", @@ -6164,7 +6164,7 @@ "type": "Identifier", "span": { "start": 2519, - "end": 2524, + "end": 2520, "ctxt": 0 }, "value": "x", @@ -6237,7 +6237,7 @@ "type": "Identifier", "span": { "start": 2542, - "end": 2562, + "end": 2543, "ctxt": 0 }, "value": "x", @@ -6337,7 +6337,7 @@ "type": "Identifier", "span": { "start": 2586, - "end": 2592, + "end": 2587, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.json index 8c093f40ed1f..39aa66dcd16a 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 360, - "end": 364, + "end": 361, "ctxt": 0 }, "value": "x", @@ -103,7 +103,7 @@ "type": "Identifier", "span": { "start": 366, - "end": 371, + "end": 367, "ctxt": 0 }, "value": "y", @@ -321,7 +321,7 @@ "type": "Identifier", "span": { "start": 420, - "end": 424, + "end": 421, "ctxt": 0 }, "value": "x", @@ -367,7 +367,7 @@ "type": "Identifier", "span": { "start": 426, - "end": 430, + "end": 427, "ctxt": 0 }, "value": "y", @@ -585,7 +585,7 @@ "type": "Identifier", "span": { "start": 479, - "end": 483, + "end": 480, "ctxt": 0 }, "value": "x", @@ -631,7 +631,7 @@ "type": "Identifier", "span": { "start": 485, - "end": 490, + "end": 486, "ctxt": 0 }, "value": "y", @@ -906,7 +906,7 @@ "type": "Identifier", "span": { "start": 543, - "end": 547, + "end": 544, "ctxt": 0 }, "value": "x", @@ -943,7 +943,7 @@ "type": "Identifier", "span": { "start": 549, - "end": 554, + "end": 550, "ctxt": 0 }, "value": "y", @@ -1062,7 +1062,7 @@ "type": "Identifier", "span": { "start": 592, - "end": 596, + "end": 593, "ctxt": 0 }, "value": "x", @@ -1099,7 +1099,7 @@ "type": "Identifier", "span": { "start": 598, - "end": 602, + "end": 599, "ctxt": 0 }, "value": "y", @@ -1286,7 +1286,7 @@ "type": "Identifier", "span": { "start": 630, - "end": 634, + "end": 631, "ctxt": 0 }, "value": "x", @@ -1323,7 +1323,7 @@ "type": "Identifier", "span": { "start": 636, - "end": 641, + "end": 637, "ctxt": 0 }, "value": "y", @@ -1511,7 +1511,7 @@ "type": "Identifier", "span": { "start": 668, - "end": 672, + "end": 669, "ctxt": 0 }, "value": "x", @@ -1557,7 +1557,7 @@ "type": "Identifier", "span": { "start": 674, - "end": 678, + "end": 675, "ctxt": 0 }, "value": "y", @@ -1718,7 +1718,7 @@ "type": "Identifier", "span": { "start": 712, - "end": 716, + "end": 713, "ctxt": 0 }, "value": "x", @@ -1791,7 +1791,7 @@ "type": "Identifier", "span": { "start": 733, - "end": 737, + "end": 734, "ctxt": 0 }, "value": "x", @@ -1864,7 +1864,7 @@ "type": "Identifier", "span": { "start": 763, - "end": 769, + "end": 764, "ctxt": 0 }, "value": "x", @@ -1935,7 +1935,7 @@ "type": "Identifier", "span": { "start": 791, - "end": 811, + "end": 792, "ctxt": 0 }, "value": "x", @@ -2035,7 +2035,7 @@ "type": "Identifier", "span": { "start": 829, - "end": 849, + "end": 830, "ctxt": 0 }, "value": "x", @@ -2135,7 +2135,7 @@ "type": "Identifier", "span": { "start": 876, - "end": 882, + "end": 877, "ctxt": 0 }, "value": "x", @@ -2206,7 +2206,7 @@ "type": "Identifier", "span": { "start": 904, - "end": 924, + "end": 905, "ctxt": 0 }, "value": "x", @@ -2306,7 +2306,7 @@ "type": "Identifier", "span": { "start": 942, - "end": 962, + "end": 943, "ctxt": 0 }, "value": "x", @@ -2406,7 +2406,7 @@ "type": "Identifier", "span": { "start": 989, - "end": 995, + "end": 990, "ctxt": 0 }, "value": "x", @@ -2477,7 +2477,7 @@ "type": "Identifier", "span": { "start": 1016, - "end": 1036, + "end": 1017, "ctxt": 0 }, "value": "x", @@ -2577,7 +2577,7 @@ "type": "Identifier", "span": { "start": 1053, - "end": 1073, + "end": 1054, "ctxt": 0 }, "value": "x", @@ -2677,7 +2677,7 @@ "type": "Identifier", "span": { "start": 1099, - "end": 1105, + "end": 1100, "ctxt": 0 }, "value": "x", @@ -2748,7 +2748,7 @@ "type": "Identifier", "span": { "start": 1126, - "end": 1137, + "end": 1127, "ctxt": 0 }, "value": "x", @@ -2821,7 +2821,7 @@ "type": "Identifier", "span": { "start": 1154, - "end": 1165, + "end": 1155, "ctxt": 0 }, "value": "x", @@ -2894,7 +2894,7 @@ "type": "Identifier", "span": { "start": 1191, - "end": 1197, + "end": 1192, "ctxt": 0 }, "value": "x", @@ -2965,7 +2965,7 @@ "type": "Identifier", "span": { "start": 1218, - "end": 1229, + "end": 1219, "ctxt": 0 }, "value": "x", @@ -3038,7 +3038,7 @@ "type": "Identifier", "span": { "start": 1246, - "end": 1257, + "end": 1247, "ctxt": 0 }, "value": "x", @@ -3111,7 +3111,7 @@ "type": "Identifier", "span": { "start": 1283, - "end": 1289, + "end": 1284, "ctxt": 0 }, "value": "x", @@ -3182,7 +3182,7 @@ "type": "Identifier", "span": { "start": 1310, - "end": 1314, + "end": 1311, "ctxt": 0 }, "value": "x", @@ -3255,7 +3255,7 @@ "type": "Identifier", "span": { "start": 1331, - "end": 1351, + "end": 1332, "ctxt": 0 }, "value": "x", @@ -3355,7 +3355,7 @@ "type": "Identifier", "span": { "start": 1374, - "end": 1380, + "end": 1375, "ctxt": 0 }, "value": "x", @@ -3426,7 +3426,7 @@ "type": "Identifier", "span": { "start": 1402, - "end": 1406, + "end": 1403, "ctxt": 0 }, "value": "x", @@ -3499,7 +3499,7 @@ "type": "Identifier", "span": { "start": 1424, - "end": 1444, + "end": 1425, "ctxt": 0 }, "value": "x", @@ -3599,7 +3599,7 @@ "type": "Identifier", "span": { "start": 1468, - "end": 1474, + "end": 1469, "ctxt": 0 }, "value": "x", @@ -3670,7 +3670,7 @@ "type": "Identifier", "span": { "start": 1495, - "end": 1499, + "end": 1496, "ctxt": 0 }, "value": "x", @@ -3743,7 +3743,7 @@ "type": "Identifier", "span": { "start": 1516, - "end": 1536, + "end": 1517, "ctxt": 0 }, "value": "x", @@ -3843,7 +3843,7 @@ "type": "Identifier", "span": { "start": 1559, - "end": 1565, + "end": 1560, "ctxt": 0 }, "value": "x", @@ -3914,7 +3914,7 @@ "type": "Identifier", "span": { "start": 1586, - "end": 1590, + "end": 1587, "ctxt": 0 }, "value": "x", @@ -3987,7 +3987,7 @@ "type": "Identifier", "span": { "start": 1607, - "end": 1618, + "end": 1608, "ctxt": 0 }, "value": "x", @@ -4060,7 +4060,7 @@ "type": "Identifier", "span": { "start": 1653, - "end": 1659, + "end": 1654, "ctxt": 0 }, "value": "x", @@ -4131,7 +4131,7 @@ "type": "Identifier", "span": { "start": 1680, - "end": 1700, + "end": 1681, "ctxt": 0 }, "value": "x", @@ -4231,7 +4231,7 @@ "type": "Identifier", "span": { "start": 1717, - "end": 1737, + "end": 1718, "ctxt": 0 }, "value": "x", @@ -4331,7 +4331,7 @@ "type": "Identifier", "span": { "start": 1760, - "end": 1766, + "end": 1761, "ctxt": 0 }, "value": "x", @@ -4402,7 +4402,7 @@ "type": "Identifier", "span": { "start": 1787, - "end": 1807, + "end": 1788, "ctxt": 0 }, "value": "x", @@ -4502,7 +4502,7 @@ "type": "Identifier", "span": { "start": 1824, - "end": 1844, + "end": 1825, "ctxt": 0 }, "value": "x", @@ -4602,7 +4602,7 @@ "type": "Identifier", "span": { "start": 1867, - "end": 1873, + "end": 1868, "ctxt": 0 }, "value": "x", @@ -4673,7 +4673,7 @@ "type": "Identifier", "span": { "start": 1895, - "end": 1915, + "end": 1896, "ctxt": 0 }, "value": "x", @@ -4773,7 +4773,7 @@ "type": "Identifier", "span": { "start": 1933, - "end": 1944, + "end": 1934, "ctxt": 0 }, "value": "x", @@ -4846,7 +4846,7 @@ "type": "Identifier", "span": { "start": 1968, - "end": 1974, + "end": 1969, "ctxt": 0 }, "value": "x", @@ -4917,7 +4917,7 @@ "type": "Identifier", "span": { "start": 1996, - "end": 2016, + "end": 1997, "ctxt": 0 }, "value": "x", @@ -5017,7 +5017,7 @@ "type": "Identifier", "span": { "start": 2034, - "end": 2045, + "end": 2035, "ctxt": 0 }, "value": "x", @@ -5090,7 +5090,7 @@ "type": "Identifier", "span": { "start": 2069, - "end": 2075, + "end": 2070, "ctxt": 0 }, "value": "x", @@ -5161,7 +5161,7 @@ "type": "Identifier", "span": { "start": 2097, - "end": 2117, + "end": 2098, "ctxt": 0 }, "value": "x", @@ -5261,7 +5261,7 @@ "type": "Identifier", "span": { "start": 2135, - "end": 2155, + "end": 2136, "ctxt": 0 }, "value": "x", @@ -5361,7 +5361,7 @@ "type": "Identifier", "span": { "start": 2182, - "end": 2188, + "end": 2183, "ctxt": 0 }, "value": "x", @@ -5432,7 +5432,7 @@ "type": "Identifier", "span": { "start": 2211, - "end": 2216, + "end": 2212, "ctxt": 0 }, "value": "x", @@ -5505,7 +5505,7 @@ "type": "Identifier", "span": { "start": 2235, - "end": 2255, + "end": 2236, "ctxt": 0 }, "value": "x", @@ -5605,7 +5605,7 @@ "type": "Identifier", "span": { "start": 2280, - "end": 2286, + "end": 2281, "ctxt": 0 }, "value": "x", @@ -5676,7 +5676,7 @@ "type": "Identifier", "span": { "start": 2308, - "end": 2328, + "end": 2309, "ctxt": 0 }, "value": "x", @@ -5776,7 +5776,7 @@ "type": "Identifier", "span": { "start": 2346, - "end": 2357, + "end": 2347, "ctxt": 0 }, "value": "x", @@ -5849,7 +5849,7 @@ "type": "Identifier", "span": { "start": 2381, - "end": 2387, + "end": 2382, "ctxt": 0 }, "value": "x", @@ -5920,7 +5920,7 @@ "type": "Identifier", "span": { "start": 2409, - "end": 2429, + "end": 2410, "ctxt": 0 }, "value": "x", @@ -6020,7 +6020,7 @@ "type": "Identifier", "span": { "start": 2447, - "end": 2458, + "end": 2448, "ctxt": 0 }, "value": "x", @@ -6093,7 +6093,7 @@ "type": "Identifier", "span": { "start": 2482, - "end": 2488, + "end": 2483, "ctxt": 0 }, "value": "x", @@ -6164,7 +6164,7 @@ "type": "Identifier", "span": { "start": 2510, - "end": 2515, + "end": 2511, "ctxt": 0 }, "value": "x", @@ -6237,7 +6237,7 @@ "type": "Identifier", "span": { "start": 2533, - "end": 2553, + "end": 2534, "ctxt": 0 }, "value": "x", @@ -6337,7 +6337,7 @@ "type": "Identifier", "span": { "start": 2577, - "end": 2583, + "end": 2578, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.json index c5ed083f6018..15d44251d3ee 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 387, - "end": 391, + "end": 388, "ctxt": 0 }, "value": "x", @@ -245,7 +245,7 @@ "type": "Identifier", "span": { "start": 457, - "end": 461, + "end": 458, "ctxt": 0 }, "value": "x", @@ -456,7 +456,7 @@ "type": "Identifier", "span": { "start": 523, - "end": 527, + "end": 524, "ctxt": 0 }, "value": "x", @@ -552,7 +552,7 @@ "type": "Identifier", "span": { "start": 583, - "end": 587, + "end": 584, "ctxt": 0 }, "value": "x", @@ -711,7 +711,7 @@ "type": "Identifier", "span": { "start": 639, - "end": 643, + "end": 640, "ctxt": 0 }, "value": "x", @@ -902,7 +902,7 @@ "type": "Identifier", "span": { "start": 687, - "end": 691, + "end": 688, "ctxt": 0 }, "value": "x", @@ -1058,7 +1058,7 @@ "type": "Identifier", "span": { "start": 777, - "end": 796, + "end": 778, "ctxt": 0 }, "value": "x", @@ -1177,7 +1177,7 @@ "type": "Identifier", "span": { "start": 814, - "end": 833, + "end": 815, "ctxt": 0 }, "value": "x", @@ -1296,7 +1296,7 @@ "type": "Identifier", "span": { "start": 860, - "end": 866, + "end": 861, "ctxt": 0 }, "value": "x", @@ -1367,7 +1367,7 @@ "type": "Identifier", "span": { "start": 888, - "end": 900, + "end": 889, "ctxt": 0 }, "value": "x", @@ -1468,7 +1468,7 @@ "type": "Identifier", "span": { "start": 918, - "end": 930, + "end": 919, "ctxt": 0 }, "value": "x", @@ -1569,7 +1569,7 @@ "type": "Identifier", "span": { "start": 957, - "end": 963, + "end": 958, "ctxt": 0 }, "value": "x", @@ -1640,7 +1640,7 @@ "type": "Identifier", "span": { "start": 984, - "end": 996, + "end": 985, "ctxt": 0 }, "value": "x", @@ -1741,7 +1741,7 @@ "type": "Identifier", "span": { "start": 1013, - "end": 1025, + "end": 1014, "ctxt": 0 }, "value": "x", @@ -1842,7 +1842,7 @@ "type": "Identifier", "span": { "start": 1051, - "end": 1057, + "end": 1052, "ctxt": 0 }, "value": "x", @@ -1913,7 +1913,7 @@ "type": "Identifier", "span": { "start": 1078, - "end": 1089, + "end": 1079, "ctxt": 0 }, "value": "x", @@ -1986,7 +1986,7 @@ "type": "Identifier", "span": { "start": 1106, - "end": 1117, + "end": 1107, "ctxt": 0 }, "value": "x", @@ -2059,7 +2059,7 @@ "type": "Identifier", "span": { "start": 1143, - "end": 1149, + "end": 1144, "ctxt": 0 }, "value": "x", @@ -2130,7 +2130,7 @@ "type": "Identifier", "span": { "start": 1170, - "end": 1181, + "end": 1171, "ctxt": 0 }, "value": "x", @@ -2203,7 +2203,7 @@ "type": "Identifier", "span": { "start": 1198, - "end": 1209, + "end": 1199, "ctxt": 0 }, "value": "x", @@ -2276,7 +2276,7 @@ "type": "Identifier", "span": { "start": 1235, - "end": 1241, + "end": 1236, "ctxt": 0 }, "value": "x", @@ -2347,7 +2347,7 @@ "type": "Identifier", "span": { "start": 1262, - "end": 1281, + "end": 1263, "ctxt": 0 }, "value": "x", @@ -2466,7 +2466,7 @@ "type": "Identifier", "span": { "start": 1298, - "end": 1310, + "end": 1299, "ctxt": 0 }, "value": "x", @@ -2567,7 +2567,7 @@ "type": "Identifier", "span": { "start": 1333, - "end": 1339, + "end": 1334, "ctxt": 0 }, "value": "x", @@ -2638,7 +2638,7 @@ "type": "Identifier", "span": { "start": 1360, - "end": 1379, + "end": 1361, "ctxt": 0 }, "value": "x", @@ -2757,7 +2757,7 @@ "type": "Identifier", "span": { "start": 1396, - "end": 1408, + "end": 1397, "ctxt": 0 }, "value": "x", @@ -2858,7 +2858,7 @@ "type": "Identifier", "span": { "start": 1464, - "end": 1470, + "end": 1465, "ctxt": 0 }, "value": "x", @@ -2929,7 +2929,7 @@ "type": "Identifier", "span": { "start": 1492, - "end": 1511, + "end": 1493, "ctxt": 0 }, "value": "x", @@ -3048,7 +3048,7 @@ "type": "Identifier", "span": { "start": 1529, - "end": 1540, + "end": 1530, "ctxt": 0 }, "value": "x", @@ -3121,7 +3121,7 @@ "type": "Identifier", "span": { "start": 1564, - "end": 1570, + "end": 1565, "ctxt": 0 }, "value": "x", @@ -3192,7 +3192,7 @@ "type": "Identifier", "span": { "start": 1592, - "end": 1611, + "end": 1593, "ctxt": 0 }, "value": "x", @@ -3311,7 +3311,7 @@ "type": "Identifier", "span": { "start": 1629, - "end": 1640, + "end": 1630, "ctxt": 0 }, "value": "x", @@ -3384,7 +3384,7 @@ "type": "Identifier", "span": { "start": 1664, - "end": 1670, + "end": 1665, "ctxt": 0 }, "value": "x", @@ -3455,7 +3455,7 @@ "type": "Identifier", "span": { "start": 1692, - "end": 1704, + "end": 1693, "ctxt": 0 }, "value": "x", @@ -3556,7 +3556,7 @@ "type": "Identifier", "span": { "start": 1722, - "end": 1734, + "end": 1723, "ctxt": 0 }, "value": "x", @@ -3657,7 +3657,7 @@ "type": "Identifier", "span": { "start": 1758, - "end": 1764, + "end": 1759, "ctxt": 0 }, "value": "x", @@ -3728,7 +3728,7 @@ "type": "Identifier", "span": { "start": 1787, - "end": 1792, + "end": 1788, "ctxt": 0 }, "value": "x", @@ -3801,7 +3801,7 @@ "type": "Identifier", "span": { "start": 1811, - "end": 1823, + "end": 1812, "ctxt": 0 }, "value": "x", @@ -3902,7 +3902,7 @@ "type": "Identifier", "span": { "start": 1848, - "end": 1854, + "end": 1849, "ctxt": 0 }, "value": "x", @@ -3973,7 +3973,7 @@ "type": "Identifier", "span": { "start": 1876, - "end": 1888, + "end": 1877, "ctxt": 0 }, "value": "x", @@ -4074,7 +4074,7 @@ "type": "Identifier", "span": { "start": 1906, - "end": 1917, + "end": 1907, "ctxt": 0 }, "value": "x", @@ -4147,7 +4147,7 @@ "type": "Identifier", "span": { "start": 1941, - "end": 1947, + "end": 1942, "ctxt": 0 }, "value": "x", @@ -4218,7 +4218,7 @@ "type": "Identifier", "span": { "start": 1969, - "end": 1981, + "end": 1970, "ctxt": 0 }, "value": "x", @@ -4319,7 +4319,7 @@ "type": "Identifier", "span": { "start": 1999, - "end": 2010, + "end": 2000, "ctxt": 0 }, "value": "x", @@ -4392,7 +4392,7 @@ "type": "Identifier", "span": { "start": 2034, - "end": 2040, + "end": 2035, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.json index 715e6b222872..776633c8e6a6 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 400, - "end": 404, + "end": 401, "ctxt": 0 }, "value": "x", @@ -102,7 +102,7 @@ "type": "Identifier", "span": { "start": 406, - "end": 410, + "end": 407, "ctxt": 0 }, "value": "y", @@ -332,7 +332,7 @@ "type": "Identifier", "span": { "start": 489, - "end": 493, + "end": 490, "ctxt": 0 }, "value": "x", @@ -378,7 +378,7 @@ "type": "Identifier", "span": { "start": 495, - "end": 499, + "end": 496, "ctxt": 0 }, "value": "y", @@ -590,7 +590,7 @@ "type": "Identifier", "span": { "start": 578, - "end": 582, + "end": 579, "ctxt": 0 }, "value": "x", @@ -636,7 +636,7 @@ "type": "Identifier", "span": { "start": 584, - "end": 588, + "end": 585, "ctxt": 0 }, "value": "y", @@ -929,7 +929,7 @@ "type": "Identifier", "span": { "start": 663, - "end": 667, + "end": 664, "ctxt": 0 }, "value": "x", @@ -966,7 +966,7 @@ "type": "Identifier", "span": { "start": 669, - "end": 673, + "end": 670, "ctxt": 0 }, "value": "y", @@ -1062,7 +1062,7 @@ "type": "Identifier", "span": { "start": 742, - "end": 746, + "end": 743, "ctxt": 0 }, "value": "x", @@ -1099,7 +1099,7 @@ "type": "Identifier", "span": { "start": 748, - "end": 752, + "end": 749, "ctxt": 0 }, "value": "y", @@ -1299,7 +1299,7 @@ "type": "Identifier", "span": { "start": 817, - "end": 821, + "end": 818, "ctxt": 0 }, "value": "x", @@ -1336,7 +1336,7 @@ "type": "Identifier", "span": { "start": 823, - "end": 827, + "end": 824, "ctxt": 0 }, "value": "y", @@ -1568,7 +1568,7 @@ "type": "Identifier", "span": { "start": 884, - "end": 888, + "end": 885, "ctxt": 0 }, "value": "x", @@ -1614,7 +1614,7 @@ "type": "Identifier", "span": { "start": 890, - "end": 894, + "end": 891, "ctxt": 0 }, "value": "y", @@ -1811,7 +1811,7 @@ "type": "Identifier", "span": { "start": 980, - "end": 1014, + "end": 981, "ctxt": 0 }, "value": "x", @@ -1967,7 +1967,7 @@ "type": "Identifier", "span": { "start": 1032, - "end": 1066, + "end": 1033, "ctxt": 0 }, "value": "x", @@ -2123,7 +2123,7 @@ "type": "Identifier", "span": { "start": 1093, - "end": 1099, + "end": 1094, "ctxt": 0 }, "value": "x", @@ -2194,7 +2194,7 @@ "type": "Identifier", "span": { "start": 1121, - "end": 1141, + "end": 1122, "ctxt": 0 }, "value": "x", @@ -2314,7 +2314,7 @@ "type": "Identifier", "span": { "start": 1159, - "end": 1179, + "end": 1160, "ctxt": 0 }, "value": "x", @@ -2434,7 +2434,7 @@ "type": "Identifier", "span": { "start": 1206, - "end": 1212, + "end": 1207, "ctxt": 0 }, "value": "x", @@ -2505,7 +2505,7 @@ "type": "Identifier", "span": { "start": 1233, - "end": 1253, + "end": 1234, "ctxt": 0 }, "value": "x", @@ -2625,7 +2625,7 @@ "type": "Identifier", "span": { "start": 1270, - "end": 1290, + "end": 1271, "ctxt": 0 }, "value": "x", @@ -2745,7 +2745,7 @@ "type": "Identifier", "span": { "start": 1316, - "end": 1322, + "end": 1317, "ctxt": 0 }, "value": "x", @@ -2816,7 +2816,7 @@ "type": "Identifier", "span": { "start": 1343, - "end": 1354, + "end": 1344, "ctxt": 0 }, "value": "x", @@ -2889,7 +2889,7 @@ "type": "Identifier", "span": { "start": 1371, - "end": 1382, + "end": 1372, "ctxt": 0 }, "value": "x", @@ -2962,7 +2962,7 @@ "type": "Identifier", "span": { "start": 1408, - "end": 1414, + "end": 1409, "ctxt": 0 }, "value": "x", @@ -3033,7 +3033,7 @@ "type": "Identifier", "span": { "start": 1435, - "end": 1446, + "end": 1436, "ctxt": 0 }, "value": "x", @@ -3106,7 +3106,7 @@ "type": "Identifier", "span": { "start": 1463, - "end": 1474, + "end": 1464, "ctxt": 0 }, "value": "x", @@ -3179,7 +3179,7 @@ "type": "Identifier", "span": { "start": 1500, - "end": 1506, + "end": 1501, "ctxt": 0 }, "value": "x", @@ -3250,7 +3250,7 @@ "type": "Identifier", "span": { "start": 1528, - "end": 1548, + "end": 1529, "ctxt": 0 }, "value": "x", @@ -3370,7 +3370,7 @@ "type": "Identifier", "span": { "start": 1566, - "end": 1586, + "end": 1567, "ctxt": 0 }, "value": "x", @@ -3490,7 +3490,7 @@ "type": "Identifier", "span": { "start": 1610, - "end": 1616, + "end": 1611, "ctxt": 0 }, "value": "x", @@ -3561,7 +3561,7 @@ "type": "Identifier", "span": { "start": 1638, - "end": 1658, + "end": 1639, "ctxt": 0 }, "value": "x", @@ -3681,7 +3681,7 @@ "type": "Identifier", "span": { "start": 1676, - "end": 1693, + "end": 1677, "ctxt": 0 }, "value": "x", @@ -3791,7 +3791,7 @@ "type": "Identifier", "span": { "start": 1717, - "end": 1723, + "end": 1718, "ctxt": 0 }, "value": "x", @@ -3862,7 +3862,7 @@ "type": "Identifier", "span": { "start": 1744, - "end": 1778, + "end": 1745, "ctxt": 0 }, "value": "x", @@ -4018,7 +4018,7 @@ "type": "Identifier", "span": { "start": 1795, - "end": 1815, + "end": 1796, "ctxt": 0 }, "value": "x", @@ -4138,7 +4138,7 @@ "type": "Identifier", "span": { "start": 1838, - "end": 1844, + "end": 1839, "ctxt": 0 }, "value": "x", @@ -4209,7 +4209,7 @@ "type": "Identifier", "span": { "start": 1865, - "end": 1899, + "end": 1866, "ctxt": 0 }, "value": "x", @@ -4365,7 +4365,7 @@ "type": "Identifier", "span": { "start": 1916, - "end": 1936, + "end": 1917, "ctxt": 0 }, "value": "x", @@ -4485,7 +4485,7 @@ "type": "Identifier", "span": { "start": 1992, - "end": 1998, + "end": 1993, "ctxt": 0 }, "value": "x", @@ -4556,7 +4556,7 @@ "type": "Identifier", "span": { "start": 2020, - "end": 2054, + "end": 2021, "ctxt": 0 }, "value": "x", @@ -4712,7 +4712,7 @@ "type": "Identifier", "span": { "start": 2072, - "end": 2083, + "end": 2073, "ctxt": 0 }, "value": "x", @@ -4785,7 +4785,7 @@ "type": "Identifier", "span": { "start": 2107, - "end": 2113, + "end": 2108, "ctxt": 0 }, "value": "x", @@ -4856,7 +4856,7 @@ "type": "Identifier", "span": { "start": 2135, - "end": 2169, + "end": 2136, "ctxt": 0 }, "value": "x", @@ -5012,7 +5012,7 @@ "type": "Identifier", "span": { "start": 2187, - "end": 2198, + "end": 2188, "ctxt": 0 }, "value": "x", @@ -5085,7 +5085,7 @@ "type": "Identifier", "span": { "start": 2222, - "end": 2228, + "end": 2223, "ctxt": 0 }, "value": "x", @@ -5156,7 +5156,7 @@ "type": "Identifier", "span": { "start": 2250, - "end": 2270, + "end": 2251, "ctxt": 0 }, "value": "x", @@ -5276,7 +5276,7 @@ "type": "Identifier", "span": { "start": 2288, - "end": 2308, + "end": 2289, "ctxt": 0 }, "value": "x", @@ -5396,7 +5396,7 @@ "type": "Identifier", "span": { "start": 2332, - "end": 2338, + "end": 2333, "ctxt": 0 }, "value": "x", @@ -5467,7 +5467,7 @@ "type": "Identifier", "span": { "start": 2361, - "end": 2366, + "end": 2362, "ctxt": 0 }, "value": "x", @@ -5540,7 +5540,7 @@ "type": "Identifier", "span": { "start": 2385, - "end": 2405, + "end": 2386, "ctxt": 0 }, "value": "x", @@ -5660,7 +5660,7 @@ "type": "Identifier", "span": { "start": 2430, - "end": 2436, + "end": 2431, "ctxt": 0 }, "value": "x", @@ -5731,7 +5731,7 @@ "type": "Identifier", "span": { "start": 2458, - "end": 2478, + "end": 2459, "ctxt": 0 }, "value": "x", @@ -5851,7 +5851,7 @@ "type": "Identifier", "span": { "start": 2496, - "end": 2507, + "end": 2497, "ctxt": 0 }, "value": "x", @@ -5924,7 +5924,7 @@ "type": "Identifier", "span": { "start": 2531, - "end": 2537, + "end": 2532, "ctxt": 0 }, "value": "x", @@ -5995,7 +5995,7 @@ "type": "Identifier", "span": { "start": 2559, - "end": 2579, + "end": 2560, "ctxt": 0 }, "value": "x", @@ -6115,7 +6115,7 @@ "type": "Identifier", "span": { "start": 2597, - "end": 2608, + "end": 2598, "ctxt": 0 }, "value": "x", @@ -6188,7 +6188,7 @@ "type": "Identifier", "span": { "start": 2632, - "end": 2638, + "end": 2633, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.json index 1e5b83be4c5a..2d9eaf4179ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.json @@ -633,7 +633,7 @@ "type": "Identifier", "span": { "start": 578, - "end": 582, + "end": 579, "ctxt": 0 }, "value": "x", @@ -679,7 +679,7 @@ "type": "Identifier", "span": { "start": 584, - "end": 588, + "end": 585, "ctxt": 0 }, "value": "y", @@ -891,7 +891,7 @@ "type": "Identifier", "span": { "start": 666, - "end": 670, + "end": 667, "ctxt": 0 }, "value": "x", @@ -937,7 +937,7 @@ "type": "Identifier", "span": { "start": 672, - "end": 676, + "end": 673, "ctxt": 0 }, "value": "y", @@ -1149,7 +1149,7 @@ "type": "Identifier", "span": { "start": 761, - "end": 765, + "end": 762, "ctxt": 0 }, "value": "x", @@ -1195,7 +1195,7 @@ "type": "Identifier", "span": { "start": 767, - "end": 771, + "end": 768, "ctxt": 0 }, "value": "y", @@ -1524,7 +1524,7 @@ "type": "Identifier", "span": { "start": 852, - "end": 856, + "end": 853, "ctxt": 0 }, "value": "x", @@ -1561,7 +1561,7 @@ "type": "Identifier", "span": { "start": 858, - "end": 862, + "end": 859, "ctxt": 0 }, "value": "y", @@ -1657,7 +1657,7 @@ "type": "Identifier", "span": { "start": 943, - "end": 947, + "end": 944, "ctxt": 0 }, "value": "x", @@ -1694,7 +1694,7 @@ "type": "Identifier", "span": { "start": 949, - "end": 953, + "end": 950, "ctxt": 0 }, "value": "y", @@ -1921,7 +1921,7 @@ "type": "Identifier", "span": { "start": 1008, - "end": 1012, + "end": 1009, "ctxt": 0 }, "value": "x", @@ -1958,7 +1958,7 @@ "type": "Identifier", "span": { "start": 1014, - "end": 1018, + "end": 1015, "ctxt": 0 }, "value": "y", @@ -2172,7 +2172,7 @@ "type": "Identifier", "span": { "start": 1072, - "end": 1076, + "end": 1073, "ctxt": 0 }, "value": "x", @@ -2218,7 +2218,7 @@ "type": "Identifier", "span": { "start": 1078, - "end": 1082, + "end": 1079, "ctxt": 0 }, "value": "y", @@ -2415,7 +2415,7 @@ "type": "Identifier", "span": { "start": 1168, - "end": 1182, + "end": 1169, "ctxt": 0 }, "value": "x", @@ -2535,7 +2535,7 @@ "type": "Identifier", "span": { "start": 1200, - "end": 1214, + "end": 1201, "ctxt": 0 }, "value": "x", @@ -2655,7 +2655,7 @@ "type": "Identifier", "span": { "start": 1241, - "end": 1247, + "end": 1242, "ctxt": 0 }, "value": "x", @@ -2726,7 +2726,7 @@ "type": "Identifier", "span": { "start": 1269, - "end": 1287, + "end": 1270, "ctxt": 0 }, "value": "x", @@ -2846,7 +2846,7 @@ "type": "Identifier", "span": { "start": 1305, - "end": 1323, + "end": 1306, "ctxt": 0 }, "value": "x", @@ -2966,7 +2966,7 @@ "type": "Identifier", "span": { "start": 1350, - "end": 1356, + "end": 1351, "ctxt": 0 }, "value": "x", @@ -3037,7 +3037,7 @@ "type": "Identifier", "span": { "start": 1377, - "end": 1409, + "end": 1378, "ctxt": 0 }, "value": "x", @@ -3193,7 +3193,7 @@ "type": "Identifier", "span": { "start": 1426, - "end": 1458, + "end": 1427, "ctxt": 0 }, "value": "x", @@ -3349,7 +3349,7 @@ "type": "Identifier", "span": { "start": 1484, - "end": 1490, + "end": 1485, "ctxt": 0 }, "value": "x", @@ -3420,7 +3420,7 @@ "type": "Identifier", "span": { "start": 1511, - "end": 1522, + "end": 1512, "ctxt": 0 }, "value": "x", @@ -3493,7 +3493,7 @@ "type": "Identifier", "span": { "start": 1539, - "end": 1550, + "end": 1540, "ctxt": 0 }, "value": "x", @@ -3566,7 +3566,7 @@ "type": "Identifier", "span": { "start": 1576, - "end": 1582, + "end": 1577, "ctxt": 0 }, "value": "x", @@ -3637,7 +3637,7 @@ "type": "Identifier", "span": { "start": 1603, - "end": 1614, + "end": 1604, "ctxt": 0 }, "value": "x", @@ -3710,7 +3710,7 @@ "type": "Identifier", "span": { "start": 1631, - "end": 1642, + "end": 1632, "ctxt": 0 }, "value": "x", @@ -3783,7 +3783,7 @@ "type": "Identifier", "span": { "start": 1668, - "end": 1674, + "end": 1669, "ctxt": 0 }, "value": "x", @@ -3854,7 +3854,7 @@ "type": "Identifier", "span": { "start": 1696, - "end": 1714, + "end": 1697, "ctxt": 0 }, "value": "x", @@ -3974,7 +3974,7 @@ "type": "Identifier", "span": { "start": 1732, - "end": 1764, + "end": 1733, "ctxt": 0 }, "value": "x", @@ -4130,7 +4130,7 @@ "type": "Identifier", "span": { "start": 1791, - "end": 1797, + "end": 1792, "ctxt": 0 }, "value": "x", @@ -4201,7 +4201,7 @@ "type": "Identifier", "span": { "start": 1819, - "end": 1837, + "end": 1820, "ctxt": 0 }, "value": "x", @@ -4321,7 +4321,7 @@ "type": "Identifier", "span": { "start": 1855, - "end": 1887, + "end": 1856, "ctxt": 0 }, "value": "x", @@ -4477,7 +4477,7 @@ "type": "Identifier", "span": { "start": 1914, - "end": 1920, + "end": 1915, "ctxt": 0 }, "value": "x", @@ -4548,7 +4548,7 @@ "type": "Identifier", "span": { "start": 1941, - "end": 1955, + "end": 1942, "ctxt": 0 }, "value": "x", @@ -4668,7 +4668,7 @@ "type": "Identifier", "span": { "start": 1972, - "end": 2004, + "end": 1973, "ctxt": 0 }, "value": "x", @@ -4824,7 +4824,7 @@ "type": "Identifier", "span": { "start": 2030, - "end": 2036, + "end": 2031, "ctxt": 0 }, "value": "x", @@ -4895,7 +4895,7 @@ "type": "Identifier", "span": { "start": 2057, - "end": 2071, + "end": 2058, "ctxt": 0 }, "value": "x", @@ -5015,7 +5015,7 @@ "type": "Identifier", "span": { "start": 2088, - "end": 2106, + "end": 2089, "ctxt": 0 }, "value": "x", @@ -5135,7 +5135,7 @@ "type": "Identifier", "span": { "start": 2132, - "end": 2138, + "end": 2133, "ctxt": 0 }, "value": "x", @@ -5206,7 +5206,7 @@ "type": "Identifier", "span": { "start": 2160, - "end": 2174, + "end": 2161, "ctxt": 0 }, "value": "x", @@ -5326,7 +5326,7 @@ "type": "Identifier", "span": { "start": 2192, - "end": 2203, + "end": 2193, "ctxt": 0 }, "value": "x", @@ -5399,7 +5399,7 @@ "type": "Identifier", "span": { "start": 2227, - "end": 2233, + "end": 2228, "ctxt": 0 }, "value": "x", @@ -5470,7 +5470,7 @@ "type": "Identifier", "span": { "start": 2255, - "end": 2269, + "end": 2256, "ctxt": 0 }, "value": "x", @@ -5590,7 +5590,7 @@ "type": "Identifier", "span": { "start": 2287, - "end": 2298, + "end": 2288, "ctxt": 0 }, "value": "x", @@ -5663,7 +5663,7 @@ "type": "Identifier", "span": { "start": 2322, - "end": 2328, + "end": 2323, "ctxt": 0 }, "value": "x", @@ -5734,7 +5734,7 @@ "type": "Identifier", "span": { "start": 2350, - "end": 2382, + "end": 2351, "ctxt": 0 }, "value": "x", @@ -5890,7 +5890,7 @@ "type": "Identifier", "span": { "start": 2400, - "end": 2418, + "end": 2401, "ctxt": 0 }, "value": "x", @@ -6010,7 +6010,7 @@ "type": "Identifier", "span": { "start": 2442, - "end": 2448, + "end": 2443, "ctxt": 0 }, "value": "x", @@ -6081,7 +6081,7 @@ "type": "Identifier", "span": { "start": 2471, - "end": 2476, + "end": 2472, "ctxt": 0 }, "value": "x", @@ -6154,7 +6154,7 @@ "type": "Identifier", "span": { "start": 2495, - "end": 2513, + "end": 2496, "ctxt": 0 }, "value": "x", @@ -6274,7 +6274,7 @@ "type": "Identifier", "span": { "start": 2538, - "end": 2544, + "end": 2539, "ctxt": 0 }, "value": "x", @@ -6345,7 +6345,7 @@ "type": "Identifier", "span": { "start": 2566, - "end": 2598, + "end": 2567, "ctxt": 0 }, "value": "x", @@ -6501,7 +6501,7 @@ "type": "Identifier", "span": { "start": 2616, - "end": 2627, + "end": 2617, "ctxt": 0 }, "value": "x", @@ -6574,7 +6574,7 @@ "type": "Identifier", "span": { "start": 2651, - "end": 2657, + "end": 2652, "ctxt": 0 }, "value": "x", @@ -6645,7 +6645,7 @@ "type": "Identifier", "span": { "start": 2679, - "end": 2711, + "end": 2680, "ctxt": 0 }, "value": "x", @@ -6801,7 +6801,7 @@ "type": "Identifier", "span": { "start": 2729, - "end": 2740, + "end": 2730, "ctxt": 0 }, "value": "x", @@ -6874,7 +6874,7 @@ "type": "Identifier", "span": { "start": 2764, - "end": 2770, + "end": 2765, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.json index b718d1fcc24f..4756ab4846af 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 365, - "end": 369, + "end": 366, "ctxt": 0 }, "value": "x", @@ -209,7 +209,7 @@ "type": "Identifier", "span": { "start": 420, - "end": 424, + "end": 421, "ctxt": 0 }, "value": "x", @@ -384,7 +384,7 @@ "type": "Identifier", "span": { "start": 471, - "end": 475, + "end": 472, "ctxt": 0 }, "value": "x", @@ -490,7 +490,7 @@ "type": "Identifier", "span": { "start": 513, - "end": 517, + "end": 514, "ctxt": 0 }, "value": "x", @@ -641,7 +641,7 @@ "type": "Identifier", "span": { "start": 547, - "end": 551, + "end": 548, "ctxt": 0 }, "value": "x", @@ -806,7 +806,7 @@ "type": "Identifier", "span": { "start": 575, - "end": 579, + "end": 576, "ctxt": 0 }, "value": "x", @@ -968,7 +968,7 @@ "type": "Identifier", "span": { "start": 670, - "end": 682, + "end": 671, "ctxt": 0 }, "value": "x", @@ -1059,7 +1059,7 @@ "type": "Identifier", "span": { "start": 700, - "end": 712, + "end": 701, "ctxt": 0 }, "value": "x", @@ -1150,7 +1150,7 @@ "type": "Identifier", "span": { "start": 739, - "end": 745, + "end": 740, "ctxt": 0 }, "value": "x", @@ -1221,7 +1221,7 @@ "type": "Identifier", "span": { "start": 767, - "end": 779, + "end": 768, "ctxt": 0 }, "value": "x", @@ -1312,7 +1312,7 @@ "type": "Identifier", "span": { "start": 797, - "end": 809, + "end": 798, "ctxt": 0 }, "value": "x", @@ -1403,7 +1403,7 @@ "type": "Identifier", "span": { "start": 836, - "end": 842, + "end": 837, "ctxt": 0 }, "value": "x", @@ -1474,7 +1474,7 @@ "type": "Identifier", "span": { "start": 863, - "end": 875, + "end": 864, "ctxt": 0 }, "value": "x", @@ -1565,7 +1565,7 @@ "type": "Identifier", "span": { "start": 892, - "end": 904, + "end": 893, "ctxt": 0 }, "value": "x", @@ -1656,7 +1656,7 @@ "type": "Identifier", "span": { "start": 930, - "end": 936, + "end": 931, "ctxt": 0 }, "value": "x", @@ -1727,7 +1727,7 @@ "type": "Identifier", "span": { "start": 957, - "end": 968, + "end": 958, "ctxt": 0 }, "value": "x", @@ -1800,7 +1800,7 @@ "type": "Identifier", "span": { "start": 985, - "end": 996, + "end": 986, "ctxt": 0 }, "value": "x", @@ -1873,7 +1873,7 @@ "type": "Identifier", "span": { "start": 1022, - "end": 1028, + "end": 1023, "ctxt": 0 }, "value": "x", @@ -1944,7 +1944,7 @@ "type": "Identifier", "span": { "start": 1049, - "end": 1060, + "end": 1050, "ctxt": 0 }, "value": "x", @@ -2017,7 +2017,7 @@ "type": "Identifier", "span": { "start": 1077, - "end": 1088, + "end": 1078, "ctxt": 0 }, "value": "x", @@ -2090,7 +2090,7 @@ "type": "Identifier", "span": { "start": 1114, - "end": 1120, + "end": 1115, "ctxt": 0 }, "value": "x", @@ -2161,7 +2161,7 @@ "type": "Identifier", "span": { "start": 1141, - "end": 1152, + "end": 1142, "ctxt": 0 }, "value": "x", @@ -2250,7 +2250,7 @@ "type": "Identifier", "span": { "start": 1177, - "end": 1188, + "end": 1178, "ctxt": 0 }, "value": "x", @@ -2339,7 +2339,7 @@ "type": "Identifier", "span": { "start": 1219, - "end": 1225, + "end": 1220, "ctxt": 0 }, "value": "x", @@ -2426,7 +2426,7 @@ "type": "Identifier", "span": { "start": 1251, - "end": 1263, + "end": 1252, "ctxt": 0 }, "value": "x", @@ -2517,7 +2517,7 @@ "type": "Identifier", "span": { "start": 1280, - "end": 1292, + "end": 1281, "ctxt": 0 }, "value": "x", @@ -2608,7 +2608,7 @@ "type": "Identifier", "span": { "start": 1315, - "end": 1321, + "end": 1316, "ctxt": 0 }, "value": "x", @@ -2679,7 +2679,7 @@ "type": "Identifier", "span": { "start": 1342, - "end": 1354, + "end": 1343, "ctxt": 0 }, "value": "x", @@ -2770,7 +2770,7 @@ "type": "Identifier", "span": { "start": 1371, - "end": 1383, + "end": 1372, "ctxt": 0 }, "value": "x", @@ -2861,7 +2861,7 @@ "type": "Identifier", "span": { "start": 1444, - "end": 1450, + "end": 1445, "ctxt": 0 }, "value": "x", @@ -2932,7 +2932,7 @@ "type": "Identifier", "span": { "start": 1472, - "end": 1484, + "end": 1473, "ctxt": 0 }, "value": "x", @@ -3023,7 +3023,7 @@ "type": "Identifier", "span": { "start": 1502, - "end": 1513, + "end": 1503, "ctxt": 0 }, "value": "x", @@ -3096,7 +3096,7 @@ "type": "Identifier", "span": { "start": 1537, - "end": 1543, + "end": 1538, "ctxt": 0 }, "value": "x", @@ -3167,7 +3167,7 @@ "type": "Identifier", "span": { "start": 1565, - "end": 1577, + "end": 1566, "ctxt": 0 }, "value": "x", @@ -3258,7 +3258,7 @@ "type": "Identifier", "span": { "start": 1595, - "end": 1606, + "end": 1596, "ctxt": 0 }, "value": "x", @@ -3331,7 +3331,7 @@ "type": "Identifier", "span": { "start": 1630, - "end": 1636, + "end": 1631, "ctxt": 0 }, "value": "x", @@ -3402,7 +3402,7 @@ "type": "Identifier", "span": { "start": 1658, - "end": 1670, + "end": 1659, "ctxt": 0 }, "value": "x", @@ -3493,7 +3493,7 @@ "type": "Identifier", "span": { "start": 1688, - "end": 1700, + "end": 1689, "ctxt": 0 }, "value": "x", @@ -3584,7 +3584,7 @@ "type": "Identifier", "span": { "start": 1724, - "end": 1730, + "end": 1725, "ctxt": 0 }, "value": "x", @@ -3655,7 +3655,7 @@ "type": "Identifier", "span": { "start": 1753, - "end": 1758, + "end": 1754, "ctxt": 0 }, "value": "x", @@ -3728,7 +3728,7 @@ "type": "Identifier", "span": { "start": 1777, - "end": 1789, + "end": 1778, "ctxt": 0 }, "value": "x", @@ -3819,7 +3819,7 @@ "type": "Identifier", "span": { "start": 1814, - "end": 1820, + "end": 1815, "ctxt": 0 }, "value": "x", @@ -3890,7 +3890,7 @@ "type": "Identifier", "span": { "start": 1842, - "end": 1854, + "end": 1843, "ctxt": 0 }, "value": "x", @@ -3981,7 +3981,7 @@ "type": "Identifier", "span": { "start": 1872, - "end": 1883, + "end": 1873, "ctxt": 0 }, "value": "x", @@ -4054,7 +4054,7 @@ "type": "Identifier", "span": { "start": 1907, - "end": 1913, + "end": 1908, "ctxt": 0 }, "value": "x", @@ -4125,7 +4125,7 @@ "type": "Identifier", "span": { "start": 1935, - "end": 1947, + "end": 1936, "ctxt": 0 }, "value": "x", @@ -4216,7 +4216,7 @@ "type": "Identifier", "span": { "start": 1965, - "end": 1976, + "end": 1966, "ctxt": 0 }, "value": "x", @@ -4289,7 +4289,7 @@ "type": "Identifier", "span": { "start": 2000, - "end": 2006, + "end": 2001, "ctxt": 0 }, "value": "x", @@ -4360,7 +4360,7 @@ "type": "Identifier", "span": { "start": 2028, - "end": 2033, + "end": 2029, "ctxt": 0 }, "value": "x", @@ -4433,7 +4433,7 @@ "type": "Identifier", "span": { "start": 2051, - "end": 2063, + "end": 2052, "ctxt": 0 }, "value": "x", @@ -4524,7 +4524,7 @@ "type": "Identifier", "span": { "start": 2087, - "end": 2093, + "end": 2088, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.json index d71cabbed044..cca564a62f95 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 378, - "end": 382, + "end": 379, "ctxt": 0 }, "value": "x", @@ -227,7 +227,7 @@ "type": "Identifier", "span": { "start": 446, - "end": 450, + "end": 447, "ctxt": 0 }, "value": "x", @@ -438,7 +438,7 @@ "type": "Identifier", "span": { "start": 510, - "end": 514, + "end": 511, "ctxt": 0 }, "value": "x", @@ -544,7 +544,7 @@ "type": "Identifier", "span": { "start": 565, - "end": 569, + "end": 566, "ctxt": 0 }, "value": "x", @@ -713,7 +713,7 @@ "type": "Identifier", "span": { "start": 612, - "end": 616, + "end": 613, "ctxt": 0 }, "value": "x", @@ -896,7 +896,7 @@ "type": "Identifier", "span": { "start": 653, - "end": 657, + "end": 654, "ctxt": 0 }, "value": "x", @@ -1050,7 +1050,7 @@ "type": "Identifier", "span": { "start": 745, - "end": 755, + "end": 746, "ctxt": 0 }, "value": "x", @@ -1151,7 +1151,7 @@ "type": "Identifier", "span": { "start": 773, - "end": 783, + "end": 774, "ctxt": 0 }, "value": "x", @@ -1252,7 +1252,7 @@ "type": "Identifier", "span": { "start": 810, - "end": 816, + "end": 811, "ctxt": 0 }, "value": "x", @@ -1323,7 +1323,7 @@ "type": "Identifier", "span": { "start": 838, - "end": 848, + "end": 839, "ctxt": 0 }, "value": "x", @@ -1424,7 +1424,7 @@ "type": "Identifier", "span": { "start": 866, - "end": 876, + "end": 867, "ctxt": 0 }, "value": "x", @@ -1525,7 +1525,7 @@ "type": "Identifier", "span": { "start": 903, - "end": 909, + "end": 904, "ctxt": 0 }, "value": "x", @@ -1596,7 +1596,7 @@ "type": "Identifier", "span": { "start": 930, - "end": 940, + "end": 931, "ctxt": 0 }, "value": "x", @@ -1697,7 +1697,7 @@ "type": "Identifier", "span": { "start": 957, - "end": 967, + "end": 958, "ctxt": 0 }, "value": "x", @@ -1798,7 +1798,7 @@ "type": "Identifier", "span": { "start": 993, - "end": 999, + "end": 994, "ctxt": 0 }, "value": "x", @@ -1869,7 +1869,7 @@ "type": "Identifier", "span": { "start": 1020, - "end": 1031, + "end": 1021, "ctxt": 0 }, "value": "x", @@ -1942,7 +1942,7 @@ "type": "Identifier", "span": { "start": 1048, - "end": 1059, + "end": 1049, "ctxt": 0 }, "value": "x", @@ -2015,7 +2015,7 @@ "type": "Identifier", "span": { "start": 1085, - "end": 1091, + "end": 1086, "ctxt": 0 }, "value": "x", @@ -2086,7 +2086,7 @@ "type": "Identifier", "span": { "start": 1112, - "end": 1123, + "end": 1113, "ctxt": 0 }, "value": "x", @@ -2159,7 +2159,7 @@ "type": "Identifier", "span": { "start": 1140, - "end": 1151, + "end": 1141, "ctxt": 0 }, "value": "x", @@ -2232,7 +2232,7 @@ "type": "Identifier", "span": { "start": 1177, - "end": 1183, + "end": 1178, "ctxt": 0 }, "value": "x", @@ -2303,7 +2303,7 @@ "type": "Identifier", "span": { "start": 1204, - "end": 1214, + "end": 1205, "ctxt": 0 }, "value": "x", @@ -2404,7 +2404,7 @@ "type": "Identifier", "span": { "start": 1231, - "end": 1241, + "end": 1232, "ctxt": 0 }, "value": "x", @@ -2505,7 +2505,7 @@ "type": "Identifier", "span": { "start": 1264, - "end": 1270, + "end": 1265, "ctxt": 0 }, "value": "x", @@ -2576,7 +2576,7 @@ "type": "Identifier", "span": { "start": 1291, - "end": 1301, + "end": 1292, "ctxt": 0 }, "value": "x", @@ -2677,7 +2677,7 @@ "type": "Identifier", "span": { "start": 1318, - "end": 1328, + "end": 1319, "ctxt": 0 }, "value": "x", @@ -2778,7 +2778,7 @@ "type": "Identifier", "span": { "start": 1389, - "end": 1395, + "end": 1390, "ctxt": 0 }, "value": "x", @@ -2849,7 +2849,7 @@ "type": "Identifier", "span": { "start": 1417, - "end": 1427, + "end": 1418, "ctxt": 0 }, "value": "x", @@ -2950,7 +2950,7 @@ "type": "Identifier", "span": { "start": 1445, - "end": 1456, + "end": 1446, "ctxt": 0 }, "value": "x", @@ -3023,7 +3023,7 @@ "type": "Identifier", "span": { "start": 1480, - "end": 1486, + "end": 1481, "ctxt": 0 }, "value": "x", @@ -3094,7 +3094,7 @@ "type": "Identifier", "span": { "start": 1508, - "end": 1518, + "end": 1509, "ctxt": 0 }, "value": "x", @@ -3195,7 +3195,7 @@ "type": "Identifier", "span": { "start": 1536, - "end": 1547, + "end": 1537, "ctxt": 0 }, "value": "x", @@ -3268,7 +3268,7 @@ "type": "Identifier", "span": { "start": 1571, - "end": 1577, + "end": 1572, "ctxt": 0 }, "value": "x", @@ -3339,7 +3339,7 @@ "type": "Identifier", "span": { "start": 1599, - "end": 1609, + "end": 1600, "ctxt": 0 }, "value": "x", @@ -3440,7 +3440,7 @@ "type": "Identifier", "span": { "start": 1627, - "end": 1637, + "end": 1628, "ctxt": 0 }, "value": "x", @@ -3541,7 +3541,7 @@ "type": "Identifier", "span": { "start": 1661, - "end": 1667, + "end": 1662, "ctxt": 0 }, "value": "x", @@ -3612,7 +3612,7 @@ "type": "Identifier", "span": { "start": 1690, - "end": 1695, + "end": 1691, "ctxt": 0 }, "value": "x", @@ -3685,7 +3685,7 @@ "type": "Identifier", "span": { "start": 1714, - "end": 1724, + "end": 1715, "ctxt": 0 }, "value": "x", @@ -3786,7 +3786,7 @@ "type": "Identifier", "span": { "start": 1749, - "end": 1755, + "end": 1750, "ctxt": 0 }, "value": "x", @@ -3857,7 +3857,7 @@ "type": "Identifier", "span": { "start": 1777, - "end": 1787, + "end": 1778, "ctxt": 0 }, "value": "x", @@ -3958,7 +3958,7 @@ "type": "Identifier", "span": { "start": 1805, - "end": 1816, + "end": 1806, "ctxt": 0 }, "value": "x", @@ -4031,7 +4031,7 @@ "type": "Identifier", "span": { "start": 1840, - "end": 1846, + "end": 1841, "ctxt": 0 }, "value": "x", @@ -4102,7 +4102,7 @@ "type": "Identifier", "span": { "start": 1868, - "end": 1878, + "end": 1869, "ctxt": 0 }, "value": "x", @@ -4203,7 +4203,7 @@ "type": "Identifier", "span": { "start": 1896, - "end": 1907, + "end": 1897, "ctxt": 0 }, "value": "x", @@ -4276,7 +4276,7 @@ "type": "Identifier", "span": { "start": 1931, - "end": 1937, + "end": 1932, "ctxt": 0 }, "value": "x", @@ -4347,7 +4347,7 @@ "type": "Identifier", "span": { "start": 1959, - "end": 1964, + "end": 1960, "ctxt": 0 }, "value": "x", @@ -4420,7 +4420,7 @@ "type": "Identifier", "span": { "start": 1982, - "end": 1992, + "end": 1983, "ctxt": 0 }, "value": "x", @@ -4521,7 +4521,7 @@ "type": "Identifier", "span": { "start": 2016, - "end": 2022, + "end": 2017, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.json index 1d263047b77e..13ff9ce477ba 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 77, - "end": 81, + "end": 78, "ctxt": 0 }, "value": "x", @@ -232,7 +232,7 @@ "type": "Identifier", "span": { "start": 138, - "end": 142, + "end": 139, "ctxt": 0 }, "value": "x", @@ -522,7 +522,7 @@ "type": "Identifier", "span": { "start": 198, - "end": 202, + "end": 199, "ctxt": 0 }, "value": "x", @@ -675,7 +675,7 @@ "type": "Identifier", "span": { "start": 252, - "end": 256, + "end": 253, "ctxt": 0 }, "value": "x", @@ -961,7 +961,7 @@ "type": "Identifier", "span": { "start": 304, - "end": 308, + "end": 305, "ctxt": 0 }, "value": "x", @@ -1284,7 +1284,7 @@ "type": "Identifier", "span": { "start": 357, - "end": 361, + "end": 358, "ctxt": 0 }, "value": "x", @@ -1537,7 +1537,7 @@ "type": "Identifier", "span": { "start": 396, - "end": 416, + "end": 397, "ctxt": 0 }, "value": "x", @@ -1637,7 +1637,7 @@ "type": "Identifier", "span": { "start": 434, - "end": 454, + "end": 435, "ctxt": 0 }, "value": "x", @@ -1737,7 +1737,7 @@ "type": "Identifier", "span": { "start": 481, - "end": 487, + "end": 482, "ctxt": 0 }, "value": "x", @@ -1808,7 +1808,7 @@ "type": "Identifier", "span": { "start": 509, - "end": 538, + "end": 510, "ctxt": 0 }, "value": "x", @@ -1917,7 +1917,7 @@ "type": "Identifier", "span": { "start": 556, - "end": 585, + "end": 557, "ctxt": 0 }, "value": "x", @@ -2026,7 +2026,7 @@ "type": "Identifier", "span": { "start": 612, - "end": 618, + "end": 613, "ctxt": 0 }, "value": "x", @@ -2097,7 +2097,7 @@ "type": "Identifier", "span": { "start": 639, - "end": 676, + "end": 640, "ctxt": 0 }, "value": "x", @@ -2215,7 +2215,7 @@ "type": "Identifier", "span": { "start": 693, - "end": 730, + "end": 694, "ctxt": 0 }, "value": "x", @@ -2333,7 +2333,7 @@ "type": "Identifier", "span": { "start": 756, - "end": 762, + "end": 757, "ctxt": 0 }, "value": "x", @@ -2404,7 +2404,7 @@ "type": "Identifier", "span": { "start": 783, - "end": 794, + "end": 784, "ctxt": 0 }, "value": "x", @@ -2477,7 +2477,7 @@ "type": "Identifier", "span": { "start": 811, - "end": 822, + "end": 812, "ctxt": 0 }, "value": "x", @@ -2550,7 +2550,7 @@ "type": "Identifier", "span": { "start": 848, - "end": 854, + "end": 849, "ctxt": 0 }, "value": "x", @@ -2621,7 +2621,7 @@ "type": "Identifier", "span": { "start": 875, - "end": 886, + "end": 876, "ctxt": 0 }, "value": "x", @@ -2694,7 +2694,7 @@ "type": "Identifier", "span": { "start": 903, - "end": 914, + "end": 904, "ctxt": 0 }, "value": "x", @@ -2767,7 +2767,7 @@ "type": "Identifier", "span": { "start": 940, - "end": 946, + "end": 941, "ctxt": 0 }, "value": "x", @@ -2838,7 +2838,7 @@ "type": "Identifier", "span": { "start": 967, - "end": 987, + "end": 968, "ctxt": 0 }, "value": "x", @@ -2938,7 +2938,7 @@ "type": "Identifier", "span": { "start": 1004, - "end": 1039, + "end": 1005, "ctxt": 0 }, "value": "x", @@ -3066,7 +3066,7 @@ "type": "Identifier", "span": { "start": 1070, - "end": 1076, + "end": 1071, "ctxt": 0 }, "value": "x", @@ -3137,7 +3137,7 @@ "type": "Identifier", "span": { "start": 1097, - "end": 1117, + "end": 1098, "ctxt": 0 }, "value": "x", @@ -3237,7 +3237,7 @@ "type": "Identifier", "span": { "start": 1134, - "end": 1173, + "end": 1135, "ctxt": 0 }, "value": "x", @@ -3383,7 +3383,7 @@ "type": "Identifier", "span": { "start": 1199, - "end": 1205, + "end": 1200, "ctxt": 0 }, "value": "x", @@ -3454,7 +3454,7 @@ "type": "Identifier", "span": { "start": 1227, - "end": 1248, + "end": 1228, "ctxt": 0 }, "value": "x", @@ -3554,7 +3554,7 @@ "type": "Identifier", "span": { "start": 1266, - "end": 1277, + "end": 1267, "ctxt": 0 }, "value": "x", @@ -3627,7 +3627,7 @@ "type": "Identifier", "span": { "start": 1301, - "end": 1307, + "end": 1302, "ctxt": 0 }, "value": "x", @@ -3698,7 +3698,7 @@ "type": "Identifier", "span": { "start": 1329, - "end": 1350, + "end": 1330, "ctxt": 0 }, "value": "x", @@ -3798,7 +3798,7 @@ "type": "Identifier", "span": { "start": 1368, - "end": 1379, + "end": 1369, "ctxt": 0 }, "value": "x", @@ -3871,7 +3871,7 @@ "type": "Identifier", "span": { "start": 1403, - "end": 1409, + "end": 1404, "ctxt": 0 }, "value": "x", @@ -3942,7 +3942,7 @@ "type": "Identifier", "span": { "start": 1431, - "end": 1476, + "end": 1432, "ctxt": 0 }, "value": "x", @@ -4107,7 +4107,7 @@ "type": "Identifier", "span": { "start": 1494, - "end": 1531, + "end": 1495, "ctxt": 0 }, "value": "x", @@ -4263,7 +4263,7 @@ "type": "Identifier", "span": { "start": 1555, - "end": 1561, + "end": 1556, "ctxt": 0 }, "value": "x", @@ -4334,7 +4334,7 @@ "type": "Identifier", "span": { "start": 1584, - "end": 1589, + "end": 1585, "ctxt": 0 }, "value": "x", @@ -4407,7 +4407,7 @@ "type": "Identifier", "span": { "start": 1608, - "end": 1637, + "end": 1609, "ctxt": 0 }, "value": "x", @@ -4516,7 +4516,7 @@ "type": "Identifier", "span": { "start": 1670, - "end": 1676, + "end": 1671, "ctxt": 0 }, "value": "x", @@ -4587,7 +4587,7 @@ "type": "Identifier", "span": { "start": 1698, - "end": 1730, + "end": 1699, "ctxt": 0 }, "value": "x", @@ -4735,7 +4735,7 @@ "type": "Identifier", "span": { "start": 1748, - "end": 1759, + "end": 1749, "ctxt": 0 }, "value": "x", @@ -4808,7 +4808,7 @@ "type": "Identifier", "span": { "start": 1783, - "end": 1789, + "end": 1784, "ctxt": 0 }, "value": "x", @@ -4879,7 +4879,7 @@ "type": "Identifier", "span": { "start": 1811, - "end": 1846, + "end": 1812, "ctxt": 0 }, "value": "x", @@ -5017,7 +5017,7 @@ "type": "Identifier", "span": { "start": 1864, - "end": 1875, + "end": 1865, "ctxt": 0 }, "value": "x", @@ -5090,7 +5090,7 @@ "type": "Identifier", "span": { "start": 1899, - "end": 1905, + "end": 1900, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.json index 4ba65d10b70c..f2a1988d4f25 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 74, - "end": 78, + "end": 75, "ctxt": 0 }, "value": "x", @@ -209,7 +209,7 @@ "type": "Identifier", "span": { "start": 129, - "end": 133, + "end": 130, "ctxt": 0 }, "value": "x", @@ -384,7 +384,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 184, + "end": 181, "ctxt": 0 }, "value": "x", @@ -518,7 +518,7 @@ "type": "Identifier", "span": { "start": 222, - "end": 226, + "end": 223, "ctxt": 0 }, "value": "x", @@ -697,7 +697,7 @@ "type": "Identifier", "span": { "start": 254, - "end": 258, + "end": 255, "ctxt": 0 }, "value": "x", @@ -890,7 +890,7 @@ "type": "Identifier", "span": { "start": 285, - "end": 289, + "end": 286, "ctxt": 0 }, "value": "x", @@ -1080,7 +1080,7 @@ "type": "Identifier", "span": { "start": 334, - "end": 346, + "end": 335, "ctxt": 0 }, "value": "x", @@ -1171,7 +1171,7 @@ "type": "Identifier", "span": { "start": 364, - "end": 376, + "end": 365, "ctxt": 0 }, "value": "x", @@ -1262,7 +1262,7 @@ "type": "Identifier", "span": { "start": 403, - "end": 409, + "end": 404, "ctxt": 0 }, "value": "x", @@ -1333,7 +1333,7 @@ "type": "Identifier", "span": { "start": 431, - "end": 443, + "end": 432, "ctxt": 0 }, "value": "x", @@ -1424,7 +1424,7 @@ "type": "Identifier", "span": { "start": 461, - "end": 473, + "end": 462, "ctxt": 0 }, "value": "x", @@ -1515,7 +1515,7 @@ "type": "Identifier", "span": { "start": 500, - "end": 506, + "end": 501, "ctxt": 0 }, "value": "x", @@ -1586,7 +1586,7 @@ "type": "Identifier", "span": { "start": 527, - "end": 539, + "end": 528, "ctxt": 0 }, "value": "x", @@ -1677,7 +1677,7 @@ "type": "Identifier", "span": { "start": 556, - "end": 568, + "end": 557, "ctxt": 0 }, "value": "x", @@ -1768,7 +1768,7 @@ "type": "Identifier", "span": { "start": 594, - "end": 600, + "end": 595, "ctxt": 0 }, "value": "x", @@ -1839,7 +1839,7 @@ "type": "Identifier", "span": { "start": 621, - "end": 632, + "end": 622, "ctxt": 0 }, "value": "x", @@ -1912,7 +1912,7 @@ "type": "Identifier", "span": { "start": 649, - "end": 660, + "end": 650, "ctxt": 0 }, "value": "x", @@ -1985,7 +1985,7 @@ "type": "Identifier", "span": { "start": 686, - "end": 692, + "end": 687, "ctxt": 0 }, "value": "x", @@ -2056,7 +2056,7 @@ "type": "Identifier", "span": { "start": 713, - "end": 724, + "end": 714, "ctxt": 0 }, "value": "x", @@ -2129,7 +2129,7 @@ "type": "Identifier", "span": { "start": 741, - "end": 752, + "end": 742, "ctxt": 0 }, "value": "x", @@ -2202,7 +2202,7 @@ "type": "Identifier", "span": { "start": 778, - "end": 784, + "end": 779, "ctxt": 0 }, "value": "x", @@ -2273,7 +2273,7 @@ "type": "Identifier", "span": { "start": 805, - "end": 817, + "end": 806, "ctxt": 0 }, "value": "x", @@ -2364,7 +2364,7 @@ "type": "Identifier", "span": { "start": 834, - "end": 846, + "end": 835, "ctxt": 0 }, "value": "x", @@ -2455,7 +2455,7 @@ "type": "Identifier", "span": { "start": 877, - "end": 883, + "end": 878, "ctxt": 0 }, "value": "x", @@ -2526,7 +2526,7 @@ "type": "Identifier", "span": { "start": 904, - "end": 916, + "end": 905, "ctxt": 0 }, "value": "x", @@ -2617,7 +2617,7 @@ "type": "Identifier", "span": { "start": 933, - "end": 945, + "end": 934, "ctxt": 0 }, "value": "x", @@ -2708,7 +2708,7 @@ "type": "Identifier", "span": { "start": 971, - "end": 977, + "end": 972, "ctxt": 0 }, "value": "x", @@ -2779,7 +2779,7 @@ "type": "Identifier", "span": { "start": 999, - "end": 1011, + "end": 1000, "ctxt": 0 }, "value": "x", @@ -2870,7 +2870,7 @@ "type": "Identifier", "span": { "start": 1029, - "end": 1040, + "end": 1030, "ctxt": 0 }, "value": "x", @@ -2943,7 +2943,7 @@ "type": "Identifier", "span": { "start": 1072, - "end": 1078, + "end": 1073, "ctxt": 0 }, "value": "x", @@ -3014,7 +3014,7 @@ "type": "Identifier", "span": { "start": 1100, - "end": 1112, + "end": 1101, "ctxt": 0 }, "value": "x", @@ -3105,7 +3105,7 @@ "type": "Identifier", "span": { "start": 1130, - "end": 1141, + "end": 1131, "ctxt": 0 }, "value": "x", @@ -3178,7 +3178,7 @@ "type": "Identifier", "span": { "start": 1165, - "end": 1171, + "end": 1166, "ctxt": 0 }, "value": "x", @@ -3249,7 +3249,7 @@ "type": "Identifier", "span": { "start": 1193, - "end": 1205, + "end": 1194, "ctxt": 0 }, "value": "x", @@ -3340,7 +3340,7 @@ "type": "Identifier", "span": { "start": 1223, - "end": 1235, + "end": 1224, "ctxt": 0 }, "value": "x", @@ -3431,7 +3431,7 @@ "type": "Identifier", "span": { "start": 1262, - "end": 1268, + "end": 1263, "ctxt": 0 }, "value": "x", @@ -3502,7 +3502,7 @@ "type": "Identifier", "span": { "start": 1291, - "end": 1296, + "end": 1292, "ctxt": 0 }, "value": "x", @@ -3575,7 +3575,7 @@ "type": "Identifier", "span": { "start": 1315, - "end": 1327, + "end": 1316, "ctxt": 0 }, "value": "x", @@ -3666,7 +3666,7 @@ "type": "Identifier", "span": { "start": 1360, - "end": 1366, + "end": 1361, "ctxt": 0 }, "value": "x", @@ -3737,7 +3737,7 @@ "type": "Identifier", "span": { "start": 1388, - "end": 1400, + "end": 1389, "ctxt": 0 }, "value": "x", @@ -3828,7 +3828,7 @@ "type": "Identifier", "span": { "start": 1418, - "end": 1429, + "end": 1419, "ctxt": 0 }, "value": "x", @@ -3901,7 +3901,7 @@ "type": "Identifier", "span": { "start": 1461, - "end": 1467, + "end": 1462, "ctxt": 0 }, "value": "x", @@ -3972,7 +3972,7 @@ "type": "Identifier", "span": { "start": 1489, - "end": 1501, + "end": 1490, "ctxt": 0 }, "value": "x", @@ -4063,7 +4063,7 @@ "type": "Identifier", "span": { "start": 1519, - "end": 1530, + "end": 1520, "ctxt": 0 }, "value": "x", @@ -4136,7 +4136,7 @@ "type": "Identifier", "span": { "start": 1554, - "end": 1560, + "end": 1555, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.json index 783efcf2bba5..679c1bd84216 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 365, - "end": 369, + "end": 366, "ctxt": 0 }, "value": "x", @@ -102,7 +102,7 @@ "type": "Identifier", "span": { "start": 371, - "end": 376, + "end": 372, "ctxt": 0 }, "value": "y", @@ -255,7 +255,7 @@ "type": "Identifier", "span": { "start": 427, - "end": 431, + "end": 428, "ctxt": 0 }, "value": "x", @@ -301,7 +301,7 @@ "type": "Identifier", "span": { "start": 433, - "end": 438, + "end": 434, "ctxt": 0 }, "value": "y", @@ -476,7 +476,7 @@ "type": "Identifier", "span": { "start": 485, - "end": 489, + "end": 486, "ctxt": 0 }, "value": "x", @@ -513,7 +513,7 @@ "type": "Identifier", "span": { "start": 491, - "end": 496, + "end": 492, "ctxt": 0 }, "value": "y", @@ -647,7 +647,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 538, + "end": 535, "ctxt": 0 }, "value": "x", @@ -684,7 +684,7 @@ "type": "Identifier", "span": { "start": 540, - "end": 545, + "end": 541, "ctxt": 0 }, "value": "y", @@ -863,7 +863,7 @@ "type": "Identifier", "span": { "start": 573, - "end": 577, + "end": 574, "ctxt": 0 }, "value": "x", @@ -900,7 +900,7 @@ "type": "Identifier", "span": { "start": 579, - "end": 584, + "end": 580, "ctxt": 0 }, "value": "y", @@ -1093,7 +1093,7 @@ "type": "Identifier", "span": { "start": 611, - "end": 615, + "end": 612, "ctxt": 0 }, "value": "x", @@ -1139,7 +1139,7 @@ "type": "Identifier", "span": { "start": 617, - "end": 622, + "end": 618, "ctxt": 0 }, "value": "y", @@ -1342,7 +1342,7 @@ "type": "Identifier", "span": { "start": 720, - "end": 732, + "end": 721, "ctxt": 0 }, "value": "x", @@ -1433,7 +1433,7 @@ "type": "Identifier", "span": { "start": 750, - "end": 762, + "end": 751, "ctxt": 0 }, "value": "x", @@ -1524,7 +1524,7 @@ "type": "Identifier", "span": { "start": 789, - "end": 795, + "end": 790, "ctxt": 0 }, "value": "x", @@ -1595,7 +1595,7 @@ "type": "Identifier", "span": { "start": 817, - "end": 829, + "end": 818, "ctxt": 0 }, "value": "x", @@ -1686,7 +1686,7 @@ "type": "Identifier", "span": { "start": 847, - "end": 859, + "end": 848, "ctxt": 0 }, "value": "x", @@ -1777,7 +1777,7 @@ "type": "Identifier", "span": { "start": 886, - "end": 892, + "end": 887, "ctxt": 0 }, "value": "x", @@ -1848,7 +1848,7 @@ "type": "Identifier", "span": { "start": 913, - "end": 925, + "end": 914, "ctxt": 0 }, "value": "x", @@ -1939,7 +1939,7 @@ "type": "Identifier", "span": { "start": 942, - "end": 954, + "end": 943, "ctxt": 0 }, "value": "x", @@ -2030,7 +2030,7 @@ "type": "Identifier", "span": { "start": 980, - "end": 986, + "end": 981, "ctxt": 0 }, "value": "x", @@ -2101,7 +2101,7 @@ "type": "Identifier", "span": { "start": 1007, - "end": 1018, + "end": 1008, "ctxt": 0 }, "value": "x", @@ -2174,7 +2174,7 @@ "type": "Identifier", "span": { "start": 1035, - "end": 1046, + "end": 1036, "ctxt": 0 }, "value": "x", @@ -2247,7 +2247,7 @@ "type": "Identifier", "span": { "start": 1072, - "end": 1078, + "end": 1073, "ctxt": 0 }, "value": "x", @@ -2318,7 +2318,7 @@ "type": "Identifier", "span": { "start": 1099, - "end": 1110, + "end": 1100, "ctxt": 0 }, "value": "x", @@ -2391,7 +2391,7 @@ "type": "Identifier", "span": { "start": 1127, - "end": 1138, + "end": 1128, "ctxt": 0 }, "value": "x", @@ -2464,7 +2464,7 @@ "type": "Identifier", "span": { "start": 1164, - "end": 1170, + "end": 1165, "ctxt": 0 }, "value": "x", @@ -2535,7 +2535,7 @@ "type": "Identifier", "span": { "start": 1191, - "end": 1203, + "end": 1192, "ctxt": 0 }, "value": "x", @@ -2642,7 +2642,7 @@ "type": "Identifier", "span": { "start": 1228, - "end": 1240, + "end": 1229, "ctxt": 0 }, "value": "x", @@ -2749,7 +2749,7 @@ "type": "Identifier", "span": { "start": 1279, - "end": 1285, + "end": 1280, "ctxt": 0 }, "value": "x", @@ -2836,7 +2836,7 @@ "type": "Identifier", "span": { "start": 1311, - "end": 1323, + "end": 1312, "ctxt": 0 }, "value": "x", @@ -2927,7 +2927,7 @@ "type": "Identifier", "span": { "start": 1340, - "end": 1352, + "end": 1341, "ctxt": 0 }, "value": "x", @@ -3018,7 +3018,7 @@ "type": "Identifier", "span": { "start": 1406, - "end": 1412, + "end": 1407, "ctxt": 0 }, "value": "x", @@ -3089,7 +3089,7 @@ "type": "Identifier", "span": { "start": 1434, - "end": 1446, + "end": 1435, "ctxt": 0 }, "value": "x", @@ -3180,7 +3180,7 @@ "type": "Identifier", "span": { "start": 1464, - "end": 1475, + "end": 1465, "ctxt": 0 }, "value": "x", @@ -3253,7 +3253,7 @@ "type": "Identifier", "span": { "start": 1507, - "end": 1513, + "end": 1508, "ctxt": 0 }, "value": "x", @@ -3324,7 +3324,7 @@ "type": "Identifier", "span": { "start": 1535, - "end": 1547, + "end": 1536, "ctxt": 0 }, "value": "x", @@ -3415,7 +3415,7 @@ "type": "Identifier", "span": { "start": 1565, - "end": 1576, + "end": 1566, "ctxt": 0 }, "value": "x", @@ -3488,7 +3488,7 @@ "type": "Identifier", "span": { "start": 1600, - "end": 1606, + "end": 1601, "ctxt": 0 }, "value": "x", @@ -3559,7 +3559,7 @@ "type": "Identifier", "span": { "start": 1628, - "end": 1640, + "end": 1629, "ctxt": 0 }, "value": "x", @@ -3650,7 +3650,7 @@ "type": "Identifier", "span": { "start": 1658, - "end": 1670, + "end": 1659, "ctxt": 0 }, "value": "x", @@ -3741,7 +3741,7 @@ "type": "Identifier", "span": { "start": 1694, - "end": 1700, + "end": 1695, "ctxt": 0 }, "value": "x", @@ -3812,7 +3812,7 @@ "type": "Identifier", "span": { "start": 1723, - "end": 1728, + "end": 1724, "ctxt": 0 }, "value": "x", @@ -3885,7 +3885,7 @@ "type": "Identifier", "span": { "start": 1747, - "end": 1759, + "end": 1748, "ctxt": 0 }, "value": "x", @@ -3976,7 +3976,7 @@ "type": "Identifier", "span": { "start": 1792, - "end": 1798, + "end": 1793, "ctxt": 0 }, "value": "x", @@ -4047,7 +4047,7 @@ "type": "Identifier", "span": { "start": 1820, - "end": 1832, + "end": 1821, "ctxt": 0 }, "value": "x", @@ -4138,7 +4138,7 @@ "type": "Identifier", "span": { "start": 1850, - "end": 1861, + "end": 1851, "ctxt": 0 }, "value": "x", @@ -4211,7 +4211,7 @@ "type": "Identifier", "span": { "start": 1893, - "end": 1899, + "end": 1894, "ctxt": 0 }, "value": "x", @@ -4282,7 +4282,7 @@ "type": "Identifier", "span": { "start": 1921, - "end": 1933, + "end": 1922, "ctxt": 0 }, "value": "x", @@ -4373,7 +4373,7 @@ "type": "Identifier", "span": { "start": 1951, - "end": 1962, + "end": 1952, "ctxt": 0 }, "value": "x", @@ -4446,7 +4446,7 @@ "type": "Identifier", "span": { "start": 1986, - "end": 1992, + "end": 1987, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.json index 83cede7733d8..da53c1e88efd 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 368, - "end": 372, + "end": 369, "ctxt": 0 }, "value": "x", @@ -102,7 +102,7 @@ "type": "Identifier", "span": { "start": 374, - "end": 379, + "end": 375, "ctxt": 0 }, "value": "y", @@ -278,7 +278,7 @@ "type": "Identifier", "span": { "start": 433, - "end": 437, + "end": 434, "ctxt": 0 }, "value": "x", @@ -324,7 +324,7 @@ "type": "Identifier", "span": { "start": 439, - "end": 444, + "end": 440, "ctxt": 0 }, "value": "y", @@ -545,7 +545,7 @@ "type": "Identifier", "span": { "start": 495, - "end": 499, + "end": 496, "ctxt": 0 }, "value": "x", @@ -582,7 +582,7 @@ "type": "Identifier", "span": { "start": 501, - "end": 506, + "end": 502, "ctxt": 0 }, "value": "y", @@ -735,7 +735,7 @@ "type": "Identifier", "span": { "start": 551, - "end": 555, + "end": 552, "ctxt": 0 }, "value": "x", @@ -772,7 +772,7 @@ "type": "Identifier", "span": { "start": 557, - "end": 562, + "end": 558, "ctxt": 0 }, "value": "y", @@ -993,7 +993,7 @@ "type": "Identifier", "span": { "start": 596, - "end": 600, + "end": 597, "ctxt": 0 }, "value": "x", @@ -1030,7 +1030,7 @@ "type": "Identifier", "span": { "start": 602, - "end": 607, + "end": 603, "ctxt": 0 }, "value": "y", @@ -1265,7 +1265,7 @@ "type": "Identifier", "span": { "start": 639, - "end": 643, + "end": 640, "ctxt": 0 }, "value": "x", @@ -1311,7 +1311,7 @@ "type": "Identifier", "span": { "start": 645, - "end": 650, + "end": 646, "ctxt": 0 }, "value": "y", @@ -1556,7 +1556,7 @@ "type": "Identifier", "span": { "start": 751, - "end": 771, + "end": 752, "ctxt": 0 }, "value": "x", @@ -1656,7 +1656,7 @@ "type": "Identifier", "span": { "start": 789, - "end": 809, + "end": 790, "ctxt": 0 }, "value": "x", @@ -1756,7 +1756,7 @@ "type": "Identifier", "span": { "start": 836, - "end": 842, + "end": 837, "ctxt": 0 }, "value": "x", @@ -1827,7 +1827,7 @@ "type": "Identifier", "span": { "start": 864, - "end": 884, + "end": 865, "ctxt": 0 }, "value": "x", @@ -1927,7 +1927,7 @@ "type": "Identifier", "span": { "start": 902, - "end": 922, + "end": 903, "ctxt": 0 }, "value": "x", @@ -2027,7 +2027,7 @@ "type": "Identifier", "span": { "start": 949, - "end": 955, + "end": 950, "ctxt": 0 }, "value": "x", @@ -2098,7 +2098,7 @@ "type": "Identifier", "span": { "start": 976, - "end": 996, + "end": 977, "ctxt": 0 }, "value": "x", @@ -2198,7 +2198,7 @@ "type": "Identifier", "span": { "start": 1013, - "end": 1033, + "end": 1014, "ctxt": 0 }, "value": "x", @@ -2298,7 +2298,7 @@ "type": "Identifier", "span": { "start": 1059, - "end": 1065, + "end": 1060, "ctxt": 0 }, "value": "x", @@ -2369,7 +2369,7 @@ "type": "Identifier", "span": { "start": 1086, - "end": 1097, + "end": 1087, "ctxt": 0 }, "value": "x", @@ -2442,7 +2442,7 @@ "type": "Identifier", "span": { "start": 1114, - "end": 1125, + "end": 1115, "ctxt": 0 }, "value": "x", @@ -2515,7 +2515,7 @@ "type": "Identifier", "span": { "start": 1151, - "end": 1157, + "end": 1152, "ctxt": 0 }, "value": "x", @@ -2586,7 +2586,7 @@ "type": "Identifier", "span": { "start": 1178, - "end": 1189, + "end": 1179, "ctxt": 0 }, "value": "x", @@ -2659,7 +2659,7 @@ "type": "Identifier", "span": { "start": 1206, - "end": 1217, + "end": 1207, "ctxt": 0 }, "value": "x", @@ -2732,7 +2732,7 @@ "type": "Identifier", "span": { "start": 1243, - "end": 1249, + "end": 1244, "ctxt": 0 }, "value": "x", @@ -2803,7 +2803,7 @@ "type": "Identifier", "span": { "start": 1270, - "end": 1290, + "end": 1271, "ctxt": 0 }, "value": "x", @@ -2903,7 +2903,7 @@ "type": "Identifier", "span": { "start": 1307, - "end": 1327, + "end": 1308, "ctxt": 0 }, "value": "x", @@ -3003,7 +3003,7 @@ "type": "Identifier", "span": { "start": 1358, - "end": 1364, + "end": 1359, "ctxt": 0 }, "value": "x", @@ -3074,7 +3074,7 @@ "type": "Identifier", "span": { "start": 1385, - "end": 1405, + "end": 1386, "ctxt": 0 }, "value": "x", @@ -3174,7 +3174,7 @@ "type": "Identifier", "span": { "start": 1422, - "end": 1442, + "end": 1423, "ctxt": 0 }, "value": "x", @@ -3274,7 +3274,7 @@ "type": "Identifier", "span": { "start": 1468, - "end": 1474, + "end": 1469, "ctxt": 0 }, "value": "x", @@ -3345,7 +3345,7 @@ "type": "Identifier", "span": { "start": 1496, - "end": 1516, + "end": 1497, "ctxt": 0 }, "value": "x", @@ -3445,7 +3445,7 @@ "type": "Identifier", "span": { "start": 1534, - "end": 1545, + "end": 1535, "ctxt": 0 }, "value": "x", @@ -3518,7 +3518,7 @@ "type": "Identifier", "span": { "start": 1577, - "end": 1583, + "end": 1578, "ctxt": 0 }, "value": "x", @@ -3589,7 +3589,7 @@ "type": "Identifier", "span": { "start": 1605, - "end": 1625, + "end": 1606, "ctxt": 0 }, "value": "x", @@ -3689,7 +3689,7 @@ "type": "Identifier", "span": { "start": 1643, - "end": 1654, + "end": 1644, "ctxt": 0 }, "value": "x", @@ -3762,7 +3762,7 @@ "type": "Identifier", "span": { "start": 1678, - "end": 1684, + "end": 1679, "ctxt": 0 }, "value": "x", @@ -3833,7 +3833,7 @@ "type": "Identifier", "span": { "start": 1706, - "end": 1726, + "end": 1707, "ctxt": 0 }, "value": "x", @@ -3933,7 +3933,7 @@ "type": "Identifier", "span": { "start": 1744, - "end": 1764, + "end": 1745, "ctxt": 0 }, "value": "x", @@ -4033,7 +4033,7 @@ "type": "Identifier", "span": { "start": 1796, - "end": 1802, + "end": 1797, "ctxt": 0 }, "value": "x", @@ -4104,7 +4104,7 @@ "type": "Identifier", "span": { "start": 1825, - "end": 1830, + "end": 1826, "ctxt": 0 }, "value": "x", @@ -4177,7 +4177,7 @@ "type": "Identifier", "span": { "start": 1849, - "end": 1869, + "end": 1850, "ctxt": 0 }, "value": "x", @@ -4277,7 +4277,7 @@ "type": "Identifier", "span": { "start": 1894, - "end": 1900, + "end": 1895, "ctxt": 0 }, "value": "x", @@ -4348,7 +4348,7 @@ "type": "Identifier", "span": { "start": 1922, - "end": 1942, + "end": 1923, "ctxt": 0 }, "value": "x", @@ -4448,7 +4448,7 @@ "type": "Identifier", "span": { "start": 1960, - "end": 1971, + "end": 1961, "ctxt": 0 }, "value": "x", @@ -4521,7 +4521,7 @@ "type": "Identifier", "span": { "start": 2003, - "end": 2009, + "end": 2004, "ctxt": 0 }, "value": "x", @@ -4592,7 +4592,7 @@ "type": "Identifier", "span": { "start": 2031, - "end": 2051, + "end": 2032, "ctxt": 0 }, "value": "x", @@ -4692,7 +4692,7 @@ "type": "Identifier", "span": { "start": 2069, - "end": 2080, + "end": 2070, "ctxt": 0 }, "value": "x", @@ -4765,7 +4765,7 @@ "type": "Identifier", "span": { "start": 2104, - "end": 2110, + "end": 2105, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.json index 3b16ba820826..0f1cc8b8ad9d 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 368, - "end": 372, + "end": 369, "ctxt": 0 }, "value": "x", @@ -102,7 +102,7 @@ "type": "Identifier", "span": { "start": 374, - "end": 378, + "end": 375, "ctxt": 0 }, "value": "y", @@ -278,7 +278,7 @@ "type": "Identifier", "span": { "start": 432, - "end": 436, + "end": 433, "ctxt": 0 }, "value": "x", @@ -324,7 +324,7 @@ "type": "Identifier", "span": { "start": 438, - "end": 443, + "end": 439, "ctxt": 0 }, "value": "y", @@ -545,7 +545,7 @@ "type": "Identifier", "span": { "start": 493, - "end": 497, + "end": 494, "ctxt": 0 }, "value": "x", @@ -582,7 +582,7 @@ "type": "Identifier", "span": { "start": 499, - "end": 504, + "end": 500, "ctxt": 0 }, "value": "y", @@ -735,7 +735,7 @@ "type": "Identifier", "span": { "start": 548, - "end": 552, + "end": 549, "ctxt": 0 }, "value": "x", @@ -772,7 +772,7 @@ "type": "Identifier", "span": { "start": 554, - "end": 558, + "end": 555, "ctxt": 0 }, "value": "y", @@ -993,7 +993,7 @@ "type": "Identifier", "span": { "start": 593, - "end": 597, + "end": 594, "ctxt": 0 }, "value": "x", @@ -1030,7 +1030,7 @@ "type": "Identifier", "span": { "start": 599, - "end": 604, + "end": 600, "ctxt": 0 }, "value": "y", @@ -1265,7 +1265,7 @@ "type": "Identifier", "span": { "start": 638, - "end": 642, + "end": 639, "ctxt": 0 }, "value": "x", @@ -1311,7 +1311,7 @@ "type": "Identifier", "span": { "start": 644, - "end": 648, + "end": 645, "ctxt": 0 }, "value": "y", @@ -1556,7 +1556,7 @@ "type": "Identifier", "span": { "start": 749, - "end": 769, + "end": 750, "ctxt": 0 }, "value": "x", @@ -1656,7 +1656,7 @@ "type": "Identifier", "span": { "start": 787, - "end": 807, + "end": 788, "ctxt": 0 }, "value": "x", @@ -1756,7 +1756,7 @@ "type": "Identifier", "span": { "start": 834, - "end": 840, + "end": 835, "ctxt": 0 }, "value": "x", @@ -1827,7 +1827,7 @@ "type": "Identifier", "span": { "start": 862, - "end": 882, + "end": 863, "ctxt": 0 }, "value": "x", @@ -1927,7 +1927,7 @@ "type": "Identifier", "span": { "start": 900, - "end": 920, + "end": 901, "ctxt": 0 }, "value": "x", @@ -2027,7 +2027,7 @@ "type": "Identifier", "span": { "start": 947, - "end": 953, + "end": 948, "ctxt": 0 }, "value": "x", @@ -2098,7 +2098,7 @@ "type": "Identifier", "span": { "start": 974, - "end": 994, + "end": 975, "ctxt": 0 }, "value": "x", @@ -2198,7 +2198,7 @@ "type": "Identifier", "span": { "start": 1011, - "end": 1031, + "end": 1012, "ctxt": 0 }, "value": "x", @@ -2298,7 +2298,7 @@ "type": "Identifier", "span": { "start": 1057, - "end": 1063, + "end": 1058, "ctxt": 0 }, "value": "x", @@ -2369,7 +2369,7 @@ "type": "Identifier", "span": { "start": 1084, - "end": 1095, + "end": 1085, "ctxt": 0 }, "value": "x", @@ -2442,7 +2442,7 @@ "type": "Identifier", "span": { "start": 1112, - "end": 1123, + "end": 1113, "ctxt": 0 }, "value": "x", @@ -2515,7 +2515,7 @@ "type": "Identifier", "span": { "start": 1149, - "end": 1155, + "end": 1150, "ctxt": 0 }, "value": "x", @@ -2586,7 +2586,7 @@ "type": "Identifier", "span": { "start": 1176, - "end": 1187, + "end": 1177, "ctxt": 0 }, "value": "x", @@ -2659,7 +2659,7 @@ "type": "Identifier", "span": { "start": 1204, - "end": 1215, + "end": 1205, "ctxt": 0 }, "value": "x", @@ -2732,7 +2732,7 @@ "type": "Identifier", "span": { "start": 1241, - "end": 1247, + "end": 1242, "ctxt": 0 }, "value": "x", @@ -2803,7 +2803,7 @@ "type": "Identifier", "span": { "start": 1268, - "end": 1288, + "end": 1269, "ctxt": 0 }, "value": "x", @@ -2903,7 +2903,7 @@ "type": "Identifier", "span": { "start": 1305, - "end": 1325, + "end": 1306, "ctxt": 0 }, "value": "x", @@ -3003,7 +3003,7 @@ "type": "Identifier", "span": { "start": 1356, - "end": 1362, + "end": 1357, "ctxt": 0 }, "value": "x", @@ -3074,7 +3074,7 @@ "type": "Identifier", "span": { "start": 1383, - "end": 1403, + "end": 1384, "ctxt": 0 }, "value": "x", @@ -3174,7 +3174,7 @@ "type": "Identifier", "span": { "start": 1420, - "end": 1440, + "end": 1421, "ctxt": 0 }, "value": "x", @@ -3274,7 +3274,7 @@ "type": "Identifier", "span": { "start": 1494, - "end": 1500, + "end": 1495, "ctxt": 0 }, "value": "x", @@ -3345,7 +3345,7 @@ "type": "Identifier", "span": { "start": 1522, - "end": 1542, + "end": 1523, "ctxt": 0 }, "value": "x", @@ -3445,7 +3445,7 @@ "type": "Identifier", "span": { "start": 1560, - "end": 1571, + "end": 1561, "ctxt": 0 }, "value": "x", @@ -3518,7 +3518,7 @@ "type": "Identifier", "span": { "start": 1603, - "end": 1609, + "end": 1604, "ctxt": 0 }, "value": "x", @@ -3589,7 +3589,7 @@ "type": "Identifier", "span": { "start": 1631, - "end": 1651, + "end": 1632, "ctxt": 0 }, "value": "x", @@ -3689,7 +3689,7 @@ "type": "Identifier", "span": { "start": 1669, - "end": 1680, + "end": 1670, "ctxt": 0 }, "value": "x", @@ -3762,7 +3762,7 @@ "type": "Identifier", "span": { "start": 1704, - "end": 1710, + "end": 1705, "ctxt": 0 }, "value": "x", @@ -3833,7 +3833,7 @@ "type": "Identifier", "span": { "start": 1732, - "end": 1752, + "end": 1733, "ctxt": 0 }, "value": "x", @@ -3933,7 +3933,7 @@ "type": "Identifier", "span": { "start": 1770, - "end": 1790, + "end": 1771, "ctxt": 0 }, "value": "x", @@ -4033,7 +4033,7 @@ "type": "Identifier", "span": { "start": 1814, - "end": 1820, + "end": 1815, "ctxt": 0 }, "value": "x", @@ -4104,7 +4104,7 @@ "type": "Identifier", "span": { "start": 1843, - "end": 1848, + "end": 1844, "ctxt": 0 }, "value": "x", @@ -4177,7 +4177,7 @@ "type": "Identifier", "span": { "start": 1867, - "end": 1887, + "end": 1868, "ctxt": 0 }, "value": "x", @@ -4277,7 +4277,7 @@ "type": "Identifier", "span": { "start": 1920, - "end": 1926, + "end": 1921, "ctxt": 0 }, "value": "x", @@ -4348,7 +4348,7 @@ "type": "Identifier", "span": { "start": 1948, - "end": 1968, + "end": 1949, "ctxt": 0 }, "value": "x", @@ -4448,7 +4448,7 @@ "type": "Identifier", "span": { "start": 1986, - "end": 1997, + "end": 1987, "ctxt": 0 }, "value": "x", @@ -4521,7 +4521,7 @@ "type": "Identifier", "span": { "start": 2029, - "end": 2035, + "end": 2030, "ctxt": 0 }, "value": "x", @@ -4592,7 +4592,7 @@ "type": "Identifier", "span": { "start": 2057, - "end": 2077, + "end": 2058, "ctxt": 0 }, "value": "x", @@ -4692,7 +4692,7 @@ "type": "Identifier", "span": { "start": 2095, - "end": 2106, + "end": 2096, "ctxt": 0 }, "value": "x", @@ -4765,7 +4765,7 @@ "type": "Identifier", "span": { "start": 2130, - "end": 2136, + "end": 2131, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers1.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers1.json index 61f208256cfb..a20f4b34df7b 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers1.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers1.json @@ -724,7 +724,7 @@ "type": "Identifier", "span": { "start": 343, - "end": 347, + "end": 344, "ctxt": 0 }, "value": "x", @@ -797,7 +797,7 @@ "type": "Identifier", "span": { "start": 364, - "end": 368, + "end": 365, "ctxt": 0 }, "value": "x", @@ -870,7 +870,7 @@ "type": "Identifier", "span": { "start": 394, - "end": 400, + "end": 395, "ctxt": 0 }, "value": "x", @@ -941,7 +941,7 @@ "type": "Identifier", "span": { "start": 422, - "end": 426, + "end": 423, "ctxt": 0 }, "value": "x", @@ -1014,7 +1014,7 @@ "type": "Identifier", "span": { "start": 444, - "end": 448, + "end": 445, "ctxt": 0 }, "value": "x", @@ -1087,7 +1087,7 @@ "type": "Identifier", "span": { "start": 475, - "end": 481, + "end": 476, "ctxt": 0 }, "value": "x", @@ -1158,7 +1158,7 @@ "type": "Identifier", "span": { "start": 503, - "end": 515, + "end": 504, "ctxt": 0 }, "value": "x", @@ -1249,7 +1249,7 @@ "type": "Identifier", "span": { "start": 533, - "end": 545, + "end": 534, "ctxt": 0 }, "value": "x", @@ -1340,7 +1340,7 @@ "type": "Identifier", "span": { "start": 572, - "end": 578, + "end": 573, "ctxt": 0 }, "value": "x", @@ -1411,7 +1411,7 @@ "type": "Identifier", "span": { "start": 599, - "end": 603, + "end": 600, "ctxt": 0 }, "value": "x", @@ -1484,7 +1484,7 @@ "type": "Identifier", "span": { "start": 620, - "end": 624, + "end": 621, "ctxt": 0 }, "value": "x", @@ -1557,7 +1557,7 @@ "type": "Identifier", "span": { "start": 650, - "end": 656, + "end": 651, "ctxt": 0 }, "value": "x", @@ -1628,7 +1628,7 @@ "type": "Identifier", "span": { "start": 677, - "end": 688, + "end": 678, "ctxt": 0 }, "value": "x", @@ -1701,7 +1701,7 @@ "type": "Identifier", "span": { "start": 705, - "end": 716, + "end": 706, "ctxt": 0 }, "value": "x", @@ -1774,7 +1774,7 @@ "type": "Identifier", "span": { "start": 742, - "end": 748, + "end": 743, "ctxt": 0 }, "value": "x", @@ -1845,7 +1845,7 @@ "type": "Identifier", "span": { "start": 769, - "end": 780, + "end": 770, "ctxt": 0 }, "value": "x", @@ -1918,7 +1918,7 @@ "type": "Identifier", "span": { "start": 797, - "end": 808, + "end": 798, "ctxt": 0 }, "value": "x", @@ -1991,7 +1991,7 @@ "type": "Identifier", "span": { "start": 834, - "end": 840, + "end": 835, "ctxt": 0 }, "value": "x", @@ -2062,7 +2062,7 @@ "type": "Identifier", "span": { "start": 861, - "end": 865, + "end": 862, "ctxt": 0 }, "value": "x", @@ -2135,7 +2135,7 @@ "type": "Identifier", "span": { "start": 882, - "end": 886, + "end": 883, "ctxt": 0 }, "value": "x", @@ -2208,7 +2208,7 @@ "type": "Identifier", "span": { "start": 912, - "end": 918, + "end": 913, "ctxt": 0 }, "value": "x", @@ -2279,7 +2279,7 @@ "type": "Identifier", "span": { "start": 940, - "end": 944, + "end": 941, "ctxt": 0 }, "value": "x", @@ -2352,7 +2352,7 @@ "type": "Identifier", "span": { "start": 962, - "end": 974, + "end": 963, "ctxt": 0 }, "value": "x", @@ -2443,7 +2443,7 @@ "type": "Identifier", "span": { "start": 1001, - "end": 1007, + "end": 1002, "ctxt": 0 }, "value": "x", @@ -2514,7 +2514,7 @@ "type": "Identifier", "span": { "start": 1029, - "end": 1033, + "end": 1030, "ctxt": 0 }, "value": "x", @@ -2587,7 +2587,7 @@ "type": "Identifier", "span": { "start": 1051, - "end": 1056, + "end": 1052, "ctxt": 0 }, "value": "x", @@ -2660,7 +2660,7 @@ "type": "Identifier", "span": { "start": 1083, - "end": 1089, + "end": 1084, "ctxt": 0 }, "value": "x", @@ -2731,7 +2731,7 @@ "type": "Identifier", "span": { "start": 1111, - "end": 1115, + "end": 1112, "ctxt": 0 }, "value": "x", @@ -2804,7 +2804,7 @@ "type": "Identifier", "span": { "start": 1133, - "end": 1138, + "end": 1134, "ctxt": 0 }, "value": "x", @@ -2877,7 +2877,7 @@ "type": "Identifier", "span": { "start": 1165, - "end": 1171, + "end": 1166, "ctxt": 0 }, "value": "x", @@ -2948,7 +2948,7 @@ "type": "Identifier", "span": { "start": 1192, - "end": 1196, + "end": 1193, "ctxt": 0 }, "value": "x", @@ -3021,7 +3021,7 @@ "type": "Identifier", "span": { "start": 1213, - "end": 1217, + "end": 1214, "ctxt": 0 }, "value": "x", @@ -3094,7 +3094,7 @@ "type": "Identifier", "span": { "start": 1243, - "end": 1249, + "end": 1244, "ctxt": 0 }, "value": "x", @@ -3165,7 +3165,7 @@ "type": "Identifier", "span": { "start": 1270, - "end": 1274, + "end": 1271, "ctxt": 0 }, "value": "x", @@ -3238,7 +3238,7 @@ "type": "Identifier", "span": { "start": 1291, - "end": 1302, + "end": 1292, "ctxt": 0 }, "value": "x", @@ -3311,7 +3311,7 @@ "type": "Identifier", "span": { "start": 1328, - "end": 1334, + "end": 1329, "ctxt": 0 }, "value": "x", @@ -3382,7 +3382,7 @@ "type": "Identifier", "span": { "start": 1355, - "end": 1359, + "end": 1356, "ctxt": 0 }, "value": "x", @@ -3455,7 +3455,7 @@ "type": "Identifier", "span": { "start": 1376, - "end": 1380, + "end": 1377, "ctxt": 0 }, "value": "x", @@ -3528,7 +3528,7 @@ "type": "Identifier", "span": { "start": 1406, - "end": 1412, + "end": 1407, "ctxt": 0 }, "value": "x", @@ -3599,7 +3599,7 @@ "type": "Identifier", "span": { "start": 1433, - "end": 1437, + "end": 1434, "ctxt": 0 }, "value": "x", @@ -3672,7 +3672,7 @@ "type": "Identifier", "span": { "start": 1454, - "end": 1466, + "end": 1455, "ctxt": 0 }, "value": "x", @@ -3763,7 +3763,7 @@ "type": "Identifier", "span": { "start": 1492, - "end": 1498, + "end": 1493, "ctxt": 0 }, "value": "x", @@ -3834,7 +3834,7 @@ "type": "Identifier", "span": { "start": 1520, - "end": 1524, + "end": 1521, "ctxt": 0 }, "value": "x", @@ -3907,7 +3907,7 @@ "type": "Identifier", "span": { "start": 1542, - "end": 1553, + "end": 1543, "ctxt": 0 }, "value": "x", @@ -3980,7 +3980,7 @@ "type": "Identifier", "span": { "start": 1580, - "end": 1586, + "end": 1581, "ctxt": 0 }, "value": "x", @@ -4051,7 +4051,7 @@ "type": "Identifier", "span": { "start": 1608, - "end": 1612, + "end": 1609, "ctxt": 0 }, "value": "x", @@ -4124,7 +4124,7 @@ "type": "Identifier", "span": { "start": 1630, - "end": 1641, + "end": 1631, "ctxt": 0 }, "value": "x", @@ -4197,7 +4197,7 @@ "type": "Identifier", "span": { "start": 1668, - "end": 1674, + "end": 1669, "ctxt": 0 }, "value": "x", @@ -4268,7 +4268,7 @@ "type": "Identifier", "span": { "start": 1697, - "end": 1701, + "end": 1698, "ctxt": 0 }, "value": "x", @@ -4341,7 +4341,7 @@ "type": "Identifier", "span": { "start": 1720, - "end": 1725, + "end": 1721, "ctxt": 0 }, "value": "x", @@ -4414,7 +4414,7 @@ "type": "Identifier", "span": { "start": 1753, - "end": 1759, + "end": 1754, "ctxt": 0 }, "value": "x", @@ -4485,7 +4485,7 @@ "type": "Identifier", "span": { "start": 1782, - "end": 1786, + "end": 1783, "ctxt": 0 }, "value": "x", @@ -4558,7 +4558,7 @@ "type": "Identifier", "span": { "start": 1805, - "end": 1810, + "end": 1806, "ctxt": 0 }, "value": "x", @@ -4631,7 +4631,7 @@ "type": "Identifier", "span": { "start": 1838, - "end": 1844, + "end": 1839, "ctxt": 0 }, "value": "x", @@ -4702,7 +4702,7 @@ "type": "Identifier", "span": { "start": 1866, - "end": 1870, + "end": 1867, "ctxt": 0 }, "value": "x", @@ -4775,7 +4775,7 @@ "type": "Identifier", "span": { "start": 1888, - "end": 1900, + "end": 1889, "ctxt": 0 }, "value": "x", @@ -4866,7 +4866,7 @@ "type": "Identifier", "span": { "start": 1927, - "end": 1933, + "end": 1928, "ctxt": 0 }, "value": "x", @@ -4937,7 +4937,7 @@ "type": "Identifier", "span": { "start": 1955, - "end": 1959, + "end": 1956, "ctxt": 0 }, "value": "x", @@ -5010,7 +5010,7 @@ "type": "Identifier", "span": { "start": 1977, - "end": 1988, + "end": 1978, "ctxt": 0 }, "value": "x", @@ -5083,7 +5083,7 @@ "type": "Identifier", "span": { "start": 2015, - "end": 2021, + "end": 2016, "ctxt": 0 }, "value": "x", @@ -5154,7 +5154,7 @@ "type": "Identifier", "span": { "start": 2043, - "end": 2047, + "end": 2044, "ctxt": 0 }, "value": "x", @@ -5227,7 +5227,7 @@ "type": "Identifier", "span": { "start": 2065, - "end": 2076, + "end": 2066, "ctxt": 0 }, "value": "x", @@ -5300,7 +5300,7 @@ "type": "Identifier", "span": { "start": 2103, - "end": 2109, + "end": 2104, "ctxt": 0 }, "value": "x", @@ -5371,7 +5371,7 @@ "type": "Identifier", "span": { "start": 2131, - "end": 2135, + "end": 2132, "ctxt": 0 }, "value": "x", @@ -5444,7 +5444,7 @@ "type": "Identifier", "span": { "start": 2153, - "end": 2158, + "end": 2154, "ctxt": 0 }, "value": "x", @@ -5517,7 +5517,7 @@ "type": "Identifier", "span": { "start": 2185, - "end": 2191, + "end": 2186, "ctxt": 0 }, "value": "x", @@ -5588,7 +5588,7 @@ "type": "Identifier", "span": { "start": 2213, - "end": 2217, + "end": 2214, "ctxt": 0 }, "value": "x", @@ -5661,7 +5661,7 @@ "type": "Identifier", "span": { "start": 2235, - "end": 2240, + "end": 2236, "ctxt": 0 }, "value": "x", @@ -5734,7 +5734,7 @@ "type": "Identifier", "span": { "start": 2267, - "end": 2273, + "end": 2268, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers2.json index be16f750c8c1..e81c4934e48a 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers2.json @@ -952,7 +952,7 @@ "type": "Identifier", "span": { "start": 426, - "end": 430, + "end": 427, "ctxt": 0 }, "value": "x", @@ -1025,7 +1025,7 @@ "type": "Identifier", "span": { "start": 447, - "end": 451, + "end": 448, "ctxt": 0 }, "value": "x", @@ -1098,7 +1098,7 @@ "type": "Identifier", "span": { "start": 477, - "end": 483, + "end": 478, "ctxt": 0 }, "value": "x", @@ -1169,7 +1169,7 @@ "type": "Identifier", "span": { "start": 505, - "end": 509, + "end": 506, "ctxt": 0 }, "value": "x", @@ -1242,7 +1242,7 @@ "type": "Identifier", "span": { "start": 527, - "end": 531, + "end": 528, "ctxt": 0 }, "value": "x", @@ -1315,7 +1315,7 @@ "type": "Identifier", "span": { "start": 558, - "end": 564, + "end": 559, "ctxt": 0 }, "value": "x", @@ -1386,7 +1386,7 @@ "type": "Identifier", "span": { "start": 586, - "end": 598, + "end": 587, "ctxt": 0 }, "value": "x", @@ -1477,7 +1477,7 @@ "type": "Identifier", "span": { "start": 616, - "end": 628, + "end": 617, "ctxt": 0 }, "value": "x", @@ -1568,7 +1568,7 @@ "type": "Identifier", "span": { "start": 655, - "end": 661, + "end": 656, "ctxt": 0 }, "value": "x", @@ -1639,7 +1639,7 @@ "type": "Identifier", "span": { "start": 682, - "end": 686, + "end": 683, "ctxt": 0 }, "value": "x", @@ -1712,7 +1712,7 @@ "type": "Identifier", "span": { "start": 703, - "end": 707, + "end": 704, "ctxt": 0 }, "value": "x", @@ -1785,7 +1785,7 @@ "type": "Identifier", "span": { "start": 733, - "end": 739, + "end": 734, "ctxt": 0 }, "value": "x", @@ -1856,7 +1856,7 @@ "type": "Identifier", "span": { "start": 760, - "end": 771, + "end": 761, "ctxt": 0 }, "value": "x", @@ -1929,7 +1929,7 @@ "type": "Identifier", "span": { "start": 788, - "end": 799, + "end": 789, "ctxt": 0 }, "value": "x", @@ -2002,7 +2002,7 @@ "type": "Identifier", "span": { "start": 825, - "end": 831, + "end": 826, "ctxt": 0 }, "value": "x", @@ -2073,7 +2073,7 @@ "type": "Identifier", "span": { "start": 852, - "end": 863, + "end": 853, "ctxt": 0 }, "value": "x", @@ -2146,7 +2146,7 @@ "type": "Identifier", "span": { "start": 880, - "end": 891, + "end": 881, "ctxt": 0 }, "value": "x", @@ -2219,7 +2219,7 @@ "type": "Identifier", "span": { "start": 917, - "end": 923, + "end": 918, "ctxt": 0 }, "value": "x", @@ -2290,7 +2290,7 @@ "type": "Identifier", "span": { "start": 944, - "end": 948, + "end": 945, "ctxt": 0 }, "value": "x", @@ -2363,7 +2363,7 @@ "type": "Identifier", "span": { "start": 965, - "end": 969, + "end": 966, "ctxt": 0 }, "value": "x", @@ -2436,7 +2436,7 @@ "type": "Identifier", "span": { "start": 992, - "end": 998, + "end": 993, "ctxt": 0 }, "value": "x", @@ -2507,7 +2507,7 @@ "type": "Identifier", "span": { "start": 1020, - "end": 1024, + "end": 1021, "ctxt": 0 }, "value": "x", @@ -2580,7 +2580,7 @@ "type": "Identifier", "span": { "start": 1042, - "end": 1055, + "end": 1043, "ctxt": 0 }, "value": "x", @@ -2681,7 +2681,7 @@ "type": "Identifier", "span": { "start": 1079, - "end": 1085, + "end": 1080, "ctxt": 0 }, "value": "x", @@ -2752,7 +2752,7 @@ "type": "Identifier", "span": { "start": 1107, - "end": 1111, + "end": 1108, "ctxt": 0 }, "value": "x", @@ -2825,7 +2825,7 @@ "type": "Identifier", "span": { "start": 1129, - "end": 1134, + "end": 1130, "ctxt": 0 }, "value": "x", @@ -2898,7 +2898,7 @@ "type": "Identifier", "span": { "start": 1161, - "end": 1167, + "end": 1162, "ctxt": 0 }, "value": "x", @@ -2969,7 +2969,7 @@ "type": "Identifier", "span": { "start": 1189, - "end": 1193, + "end": 1190, "ctxt": 0 }, "value": "x", @@ -3042,7 +3042,7 @@ "type": "Identifier", "span": { "start": 1211, - "end": 1216, + "end": 1212, "ctxt": 0 }, "value": "x", @@ -3115,7 +3115,7 @@ "type": "Identifier", "span": { "start": 1240, - "end": 1246, + "end": 1241, "ctxt": 0 }, "value": "x", @@ -3186,7 +3186,7 @@ "type": "Identifier", "span": { "start": 1267, - "end": 1271, + "end": 1268, "ctxt": 0 }, "value": "x", @@ -3259,7 +3259,7 @@ "type": "Identifier", "span": { "start": 1288, - "end": 1292, + "end": 1289, "ctxt": 0 }, "value": "x", @@ -3332,7 +3332,7 @@ "type": "Identifier", "span": { "start": 1315, - "end": 1321, + "end": 1316, "ctxt": 0 }, "value": "x", @@ -3403,7 +3403,7 @@ "type": "Identifier", "span": { "start": 1342, - "end": 1346, + "end": 1343, "ctxt": 0 }, "value": "x", @@ -3476,7 +3476,7 @@ "type": "Identifier", "span": { "start": 1363, - "end": 1374, + "end": 1364, "ctxt": 0 }, "value": "x", @@ -3549,7 +3549,7 @@ "type": "Identifier", "span": { "start": 1400, - "end": 1406, + "end": 1401, "ctxt": 0 }, "value": "x", @@ -3620,7 +3620,7 @@ "type": "Identifier", "span": { "start": 1427, - "end": 1431, + "end": 1428, "ctxt": 0 }, "value": "x", @@ -3693,7 +3693,7 @@ "type": "Identifier", "span": { "start": 1448, - "end": 1452, + "end": 1449, "ctxt": 0 }, "value": "x", @@ -3766,7 +3766,7 @@ "type": "Identifier", "span": { "start": 1478, - "end": 1484, + "end": 1479, "ctxt": 0 }, "value": "x", @@ -3837,7 +3837,7 @@ "type": "Identifier", "span": { "start": 1505, - "end": 1509, + "end": 1506, "ctxt": 0 }, "value": "x", @@ -3910,7 +3910,7 @@ "type": "Identifier", "span": { "start": 1526, - "end": 1536, + "end": 1527, "ctxt": 0 }, "value": "x", @@ -4011,7 +4011,7 @@ "type": "Identifier", "span": { "start": 1559, - "end": 1565, + "end": 1560, "ctxt": 0 }, "value": "x", @@ -4082,7 +4082,7 @@ "type": "Identifier", "span": { "start": 1587, - "end": 1591, + "end": 1588, "ctxt": 0 }, "value": "x", @@ -4155,7 +4155,7 @@ "type": "Identifier", "span": { "start": 1609, - "end": 1620, + "end": 1610, "ctxt": 0 }, "value": "x", @@ -4228,7 +4228,7 @@ "type": "Identifier", "span": { "start": 1644, - "end": 1650, + "end": 1645, "ctxt": 0 }, "value": "x", @@ -4299,7 +4299,7 @@ "type": "Identifier", "span": { "start": 1672, - "end": 1676, + "end": 1673, "ctxt": 0 }, "value": "x", @@ -4372,7 +4372,7 @@ "type": "Identifier", "span": { "start": 1694, - "end": 1705, + "end": 1695, "ctxt": 0 }, "value": "x", @@ -4445,7 +4445,7 @@ "type": "Identifier", "span": { "start": 1732, - "end": 1738, + "end": 1733, "ctxt": 0 }, "value": "x", @@ -4516,7 +4516,7 @@ "type": "Identifier", "span": { "start": 1761, - "end": 1765, + "end": 1762, "ctxt": 0 }, "value": "x", @@ -4589,7 +4589,7 @@ "type": "Identifier", "span": { "start": 1784, - "end": 1789, + "end": 1785, "ctxt": 0 }, "value": "x", @@ -4662,7 +4662,7 @@ "type": "Identifier", "span": { "start": 1814, - "end": 1820, + "end": 1815, "ctxt": 0 }, "value": "x", @@ -4733,7 +4733,7 @@ "type": "Identifier", "span": { "start": 1843, - "end": 1847, + "end": 1844, "ctxt": 0 }, "value": "x", @@ -4806,7 +4806,7 @@ "type": "Identifier", "span": { "start": 1866, - "end": 1871, + "end": 1867, "ctxt": 0 }, "value": "x", @@ -4879,7 +4879,7 @@ "type": "Identifier", "span": { "start": 1899, - "end": 1905, + "end": 1900, "ctxt": 0 }, "value": "x", @@ -4950,7 +4950,7 @@ "type": "Identifier", "span": { "start": 1927, - "end": 1931, + "end": 1928, "ctxt": 0 }, "value": "x", @@ -5023,7 +5023,7 @@ "type": "Identifier", "span": { "start": 1949, - "end": 1962, + "end": 1950, "ctxt": 0 }, "value": "x", @@ -5124,7 +5124,7 @@ "type": "Identifier", "span": { "start": 1989, - "end": 1995, + "end": 1990, "ctxt": 0 }, "value": "x", @@ -5195,7 +5195,7 @@ "type": "Identifier", "span": { "start": 2017, - "end": 2021, + "end": 2018, "ctxt": 0 }, "value": "x", @@ -5268,7 +5268,7 @@ "type": "Identifier", "span": { "start": 2039, - "end": 2050, + "end": 2040, "ctxt": 0 }, "value": "x", @@ -5341,7 +5341,7 @@ "type": "Identifier", "span": { "start": 2074, - "end": 2080, + "end": 2075, "ctxt": 0 }, "value": "x", @@ -5412,7 +5412,7 @@ "type": "Identifier", "span": { "start": 2102, - "end": 2106, + "end": 2103, "ctxt": 0 }, "value": "x", @@ -5485,7 +5485,7 @@ "type": "Identifier", "span": { "start": 2124, - "end": 2135, + "end": 2125, "ctxt": 0 }, "value": "x", @@ -5558,7 +5558,7 @@ "type": "Identifier", "span": { "start": 2162, - "end": 2168, + "end": 2163, "ctxt": 0 }, "value": "x", @@ -5629,7 +5629,7 @@ "type": "Identifier", "span": { "start": 2190, - "end": 2194, + "end": 2191, "ctxt": 0 }, "value": "x", @@ -5702,7 +5702,7 @@ "type": "Identifier", "span": { "start": 2212, - "end": 2217, + "end": 2213, "ctxt": 0 }, "value": "x", @@ -5775,7 +5775,7 @@ "type": "Identifier", "span": { "start": 2241, - "end": 2247, + "end": 2242, "ctxt": 0 }, "value": "x", @@ -5846,7 +5846,7 @@ "type": "Identifier", "span": { "start": 2269, - "end": 2273, + "end": 2270, "ctxt": 0 }, "value": "x", @@ -5919,7 +5919,7 @@ "type": "Identifier", "span": { "start": 2291, - "end": 2296, + "end": 2292, "ctxt": 0 }, "value": "x", @@ -5992,7 +5992,7 @@ "type": "Identifier", "span": { "start": 2323, - "end": 2329, + "end": 2324, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers3.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers3.json index 8c3326ec6f78..b777347b8eba 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers3.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers3.json @@ -724,7 +724,7 @@ "type": "Identifier", "span": { "start": 343, - "end": 347, + "end": 344, "ctxt": 0 }, "value": "x", @@ -797,7 +797,7 @@ "type": "Identifier", "span": { "start": 364, - "end": 368, + "end": 365, "ctxt": 0 }, "value": "x", @@ -870,7 +870,7 @@ "type": "Identifier", "span": { "start": 394, - "end": 400, + "end": 395, "ctxt": 0 }, "value": "x", @@ -941,7 +941,7 @@ "type": "Identifier", "span": { "start": 422, - "end": 426, + "end": 423, "ctxt": 0 }, "value": "x", @@ -1014,7 +1014,7 @@ "type": "Identifier", "span": { "start": 444, - "end": 448, + "end": 445, "ctxt": 0 }, "value": "x", @@ -1087,7 +1087,7 @@ "type": "Identifier", "span": { "start": 475, - "end": 481, + "end": 476, "ctxt": 0 }, "value": "x", @@ -1158,7 +1158,7 @@ "type": "Identifier", "span": { "start": 503, - "end": 515, + "end": 504, "ctxt": 0 }, "value": "x", @@ -1249,7 +1249,7 @@ "type": "Identifier", "span": { "start": 533, - "end": 545, + "end": 534, "ctxt": 0 }, "value": "x", @@ -1340,7 +1340,7 @@ "type": "Identifier", "span": { "start": 572, - "end": 578, + "end": 573, "ctxt": 0 }, "value": "x", @@ -1411,7 +1411,7 @@ "type": "Identifier", "span": { "start": 599, - "end": 603, + "end": 600, "ctxt": 0 }, "value": "x", @@ -1484,7 +1484,7 @@ "type": "Identifier", "span": { "start": 620, - "end": 624, + "end": 621, "ctxt": 0 }, "value": "x", @@ -1557,7 +1557,7 @@ "type": "Identifier", "span": { "start": 650, - "end": 656, + "end": 651, "ctxt": 0 }, "value": "x", @@ -1628,7 +1628,7 @@ "type": "Identifier", "span": { "start": 677, - "end": 688, + "end": 678, "ctxt": 0 }, "value": "x", @@ -1701,7 +1701,7 @@ "type": "Identifier", "span": { "start": 705, - "end": 716, + "end": 706, "ctxt": 0 }, "value": "x", @@ -1774,7 +1774,7 @@ "type": "Identifier", "span": { "start": 742, - "end": 748, + "end": 743, "ctxt": 0 }, "value": "x", @@ -1845,7 +1845,7 @@ "type": "Identifier", "span": { "start": 769, - "end": 780, + "end": 770, "ctxt": 0 }, "value": "x", @@ -1918,7 +1918,7 @@ "type": "Identifier", "span": { "start": 797, - "end": 808, + "end": 798, "ctxt": 0 }, "value": "x", @@ -1991,7 +1991,7 @@ "type": "Identifier", "span": { "start": 834, - "end": 840, + "end": 835, "ctxt": 0 }, "value": "x", @@ -2062,7 +2062,7 @@ "type": "Identifier", "span": { "start": 861, - "end": 865, + "end": 862, "ctxt": 0 }, "value": "x", @@ -2135,7 +2135,7 @@ "type": "Identifier", "span": { "start": 882, - "end": 886, + "end": 883, "ctxt": 0 }, "value": "x", @@ -2208,7 +2208,7 @@ "type": "Identifier", "span": { "start": 909, - "end": 915, + "end": 910, "ctxt": 0 }, "value": "x", @@ -2279,7 +2279,7 @@ "type": "Identifier", "span": { "start": 937, - "end": 941, + "end": 938, "ctxt": 0 }, "value": "x", @@ -2352,7 +2352,7 @@ "type": "Identifier", "span": { "start": 959, - "end": 971, + "end": 960, "ctxt": 0 }, "value": "x", @@ -2443,7 +2443,7 @@ "type": "Identifier", "span": { "start": 998, - "end": 1004, + "end": 999, "ctxt": 0 }, "value": "x", @@ -2514,7 +2514,7 @@ "type": "Identifier", "span": { "start": 1026, - "end": 1030, + "end": 1027, "ctxt": 0 }, "value": "x", @@ -2587,7 +2587,7 @@ "type": "Identifier", "span": { "start": 1048, - "end": 1053, + "end": 1049, "ctxt": 0 }, "value": "x", @@ -2660,7 +2660,7 @@ "type": "Identifier", "span": { "start": 1080, - "end": 1086, + "end": 1081, "ctxt": 0 }, "value": "x", @@ -2731,7 +2731,7 @@ "type": "Identifier", "span": { "start": 1108, - "end": 1112, + "end": 1109, "ctxt": 0 }, "value": "x", @@ -2804,7 +2804,7 @@ "type": "Identifier", "span": { "start": 1130, - "end": 1135, + "end": 1131, "ctxt": 0 }, "value": "x", @@ -2877,7 +2877,7 @@ "type": "Identifier", "span": { "start": 1159, - "end": 1165, + "end": 1160, "ctxt": 0 }, "value": "x", @@ -2948,7 +2948,7 @@ "type": "Identifier", "span": { "start": 1186, - "end": 1190, + "end": 1187, "ctxt": 0 }, "value": "x", @@ -3021,7 +3021,7 @@ "type": "Identifier", "span": { "start": 1207, - "end": 1211, + "end": 1208, "ctxt": 0 }, "value": "x", @@ -3094,7 +3094,7 @@ "type": "Identifier", "span": { "start": 1234, - "end": 1240, + "end": 1235, "ctxt": 0 }, "value": "x", @@ -3165,7 +3165,7 @@ "type": "Identifier", "span": { "start": 1261, - "end": 1265, + "end": 1262, "ctxt": 0 }, "value": "x", @@ -3238,7 +3238,7 @@ "type": "Identifier", "span": { "start": 1282, - "end": 1293, + "end": 1283, "ctxt": 0 }, "value": "x", @@ -3311,7 +3311,7 @@ "type": "Identifier", "span": { "start": 1316, - "end": 1322, + "end": 1317, "ctxt": 0 }, "value": "x", @@ -3382,7 +3382,7 @@ "type": "Identifier", "span": { "start": 1343, - "end": 1347, + "end": 1344, "ctxt": 0 }, "value": "x", @@ -3455,7 +3455,7 @@ "type": "Identifier", "span": { "start": 1364, - "end": 1368, + "end": 1365, "ctxt": 0 }, "value": "x", @@ -3528,7 +3528,7 @@ "type": "Identifier", "span": { "start": 1394, - "end": 1400, + "end": 1395, "ctxt": 0 }, "value": "x", @@ -3599,7 +3599,7 @@ "type": "Identifier", "span": { "start": 1421, - "end": 1425, + "end": 1422, "ctxt": 0 }, "value": "x", @@ -3672,7 +3672,7 @@ "type": "Identifier", "span": { "start": 1442, - "end": 1454, + "end": 1443, "ctxt": 0 }, "value": "x", @@ -3763,7 +3763,7 @@ "type": "Identifier", "span": { "start": 1477, - "end": 1483, + "end": 1478, "ctxt": 0 }, "value": "x", @@ -3834,7 +3834,7 @@ "type": "Identifier", "span": { "start": 1505, - "end": 1509, + "end": 1506, "ctxt": 0 }, "value": "x", @@ -3907,7 +3907,7 @@ "type": "Identifier", "span": { "start": 1527, - "end": 1538, + "end": 1528, "ctxt": 0 }, "value": "x", @@ -3980,7 +3980,7 @@ "type": "Identifier", "span": { "start": 1565, - "end": 1571, + "end": 1566, "ctxt": 0 }, "value": "x", @@ -4051,7 +4051,7 @@ "type": "Identifier", "span": { "start": 1593, - "end": 1597, + "end": 1594, "ctxt": 0 }, "value": "x", @@ -4124,7 +4124,7 @@ "type": "Identifier", "span": { "start": 1615, - "end": 1626, + "end": 1616, "ctxt": 0 }, "value": "x", @@ -4197,7 +4197,7 @@ "type": "Identifier", "span": { "start": 1650, - "end": 1656, + "end": 1651, "ctxt": 0 }, "value": "x", @@ -4268,7 +4268,7 @@ "type": "Identifier", "span": { "start": 1679, - "end": 1683, + "end": 1680, "ctxt": 0 }, "value": "x", @@ -4341,7 +4341,7 @@ "type": "Identifier", "span": { "start": 1702, - "end": 1707, + "end": 1703, "ctxt": 0 }, "value": "x", @@ -4414,7 +4414,7 @@ "type": "Identifier", "span": { "start": 1732, - "end": 1738, + "end": 1733, "ctxt": 0 }, "value": "x", @@ -4485,7 +4485,7 @@ "type": "Identifier", "span": { "start": 1761, - "end": 1765, + "end": 1762, "ctxt": 0 }, "value": "x", @@ -4558,7 +4558,7 @@ "type": "Identifier", "span": { "start": 1784, - "end": 1789, + "end": 1785, "ctxt": 0 }, "value": "x", @@ -4631,7 +4631,7 @@ "type": "Identifier", "span": { "start": 1817, - "end": 1823, + "end": 1818, "ctxt": 0 }, "value": "x", @@ -4702,7 +4702,7 @@ "type": "Identifier", "span": { "start": 1845, - "end": 1849, + "end": 1846, "ctxt": 0 }, "value": "x", @@ -4775,7 +4775,7 @@ "type": "Identifier", "span": { "start": 1867, - "end": 1879, + "end": 1868, "ctxt": 0 }, "value": "x", @@ -4866,7 +4866,7 @@ "type": "Identifier", "span": { "start": 1903, - "end": 1909, + "end": 1904, "ctxt": 0 }, "value": "x", @@ -4937,7 +4937,7 @@ "type": "Identifier", "span": { "start": 1931, - "end": 1935, + "end": 1932, "ctxt": 0 }, "value": "x", @@ -5010,7 +5010,7 @@ "type": "Identifier", "span": { "start": 1953, - "end": 1964, + "end": 1954, "ctxt": 0 }, "value": "x", @@ -5083,7 +5083,7 @@ "type": "Identifier", "span": { "start": 1991, - "end": 1997, + "end": 1992, "ctxt": 0 }, "value": "x", @@ -5154,7 +5154,7 @@ "type": "Identifier", "span": { "start": 2019, - "end": 2023, + "end": 2020, "ctxt": 0 }, "value": "x", @@ -5227,7 +5227,7 @@ "type": "Identifier", "span": { "start": 2041, - "end": 2052, + "end": 2042, "ctxt": 0 }, "value": "x", @@ -5300,7 +5300,7 @@ "type": "Identifier", "span": { "start": 2076, - "end": 2082, + "end": 2077, "ctxt": 0 }, "value": "x", @@ -5371,7 +5371,7 @@ "type": "Identifier", "span": { "start": 2104, - "end": 2108, + "end": 2105, "ctxt": 0 }, "value": "x", @@ -5444,7 +5444,7 @@ "type": "Identifier", "span": { "start": 2126, - "end": 2131, + "end": 2127, "ctxt": 0 }, "value": "x", @@ -5517,7 +5517,7 @@ "type": "Identifier", "span": { "start": 2155, - "end": 2161, + "end": 2156, "ctxt": 0 }, "value": "x", @@ -5588,7 +5588,7 @@ "type": "Identifier", "span": { "start": 2183, - "end": 2187, + "end": 2184, "ctxt": 0 }, "value": "x", @@ -5661,7 +5661,7 @@ "type": "Identifier", "span": { "start": 2205, - "end": 2210, + "end": 2206, "ctxt": 0 }, "value": "x", @@ -5734,7 +5734,7 @@ "type": "Identifier", "span": { "start": 2237, - "end": 2243, + "end": 2238, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithOptionality.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithOptionality.json index 1bfd00cc59e6..f4620121acc5 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithOptionality.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithOptionality.json @@ -518,7 +518,7 @@ "type": "Identifier", "span": { "start": 229, - "end": 233, + "end": 230, "ctxt": 0 }, "value": "x", @@ -591,7 +591,7 @@ "type": "Identifier", "span": { "start": 250, - "end": 254, + "end": 251, "ctxt": 0 }, "value": "x", @@ -664,7 +664,7 @@ "type": "Identifier", "span": { "start": 280, - "end": 286, + "end": 281, "ctxt": 0 }, "value": "x", @@ -735,7 +735,7 @@ "type": "Identifier", "span": { "start": 307, - "end": 318, + "end": 308, "ctxt": 0 }, "value": "x", @@ -808,7 +808,7 @@ "type": "Identifier", "span": { "start": 335, - "end": 346, + "end": 336, "ctxt": 0 }, "value": "x", @@ -881,7 +881,7 @@ "type": "Identifier", "span": { "start": 372, - "end": 378, + "end": 373, "ctxt": 0 }, "value": "x", @@ -952,7 +952,7 @@ "type": "Identifier", "span": { "start": 399, - "end": 403, + "end": 400, "ctxt": 0 }, "value": "x", @@ -1025,7 +1025,7 @@ "type": "Identifier", "span": { "start": 420, - "end": 424, + "end": 421, "ctxt": 0 }, "value": "x", @@ -1098,7 +1098,7 @@ "type": "Identifier", "span": { "start": 447, - "end": 453, + "end": 448, "ctxt": 0 }, "value": "x", @@ -1169,7 +1169,7 @@ "type": "Identifier", "span": { "start": 474, - "end": 478, + "end": 475, "ctxt": 0 }, "value": "x", @@ -1242,7 +1242,7 @@ "type": "Identifier", "span": { "start": 495, - "end": 506, + "end": 496, "ctxt": 0 }, "value": "x", @@ -1315,7 +1315,7 @@ "type": "Identifier", "span": { "start": 529, - "end": 535, + "end": 530, "ctxt": 0 }, "value": "x", @@ -1386,7 +1386,7 @@ "type": "Identifier", "span": { "start": 556, - "end": 560, + "end": 557, "ctxt": 0 }, "value": "x", @@ -1459,7 +1459,7 @@ "type": "Identifier", "span": { "start": 577, - "end": 581, + "end": 578, "ctxt": 0 }, "value": "x", @@ -1532,7 +1532,7 @@ "type": "Identifier", "span": { "start": 604, - "end": 610, + "end": 605, "ctxt": 0 }, "value": "x", @@ -1603,7 +1603,7 @@ "type": "Identifier", "span": { "start": 632, - "end": 636, + "end": 633, "ctxt": 0 }, "value": "x", @@ -1676,7 +1676,7 @@ "type": "Identifier", "span": { "start": 654, - "end": 665, + "end": 655, "ctxt": 0 }, "value": "x", @@ -1749,7 +1749,7 @@ "type": "Identifier", "span": { "start": 689, - "end": 695, + "end": 690, "ctxt": 0 }, "value": "x", @@ -1820,7 +1820,7 @@ "type": "Identifier", "span": { "start": 717, - "end": 721, + "end": 718, "ctxt": 0 }, "value": "x", @@ -1893,7 +1893,7 @@ "type": "Identifier", "span": { "start": 739, - "end": 751, + "end": 740, "ctxt": 0 }, "value": "x", @@ -1984,7 +1984,7 @@ "type": "Identifier", "span": { "start": 775, - "end": 781, + "end": 776, "ctxt": 0 }, "value": "x", @@ -2055,7 +2055,7 @@ "type": "Identifier", "span": { "start": 803, - "end": 807, + "end": 804, "ctxt": 0 }, "value": "x", @@ -2128,7 +2128,7 @@ "type": "Identifier", "span": { "start": 825, - "end": 836, + "end": 826, "ctxt": 0 }, "value": "x", @@ -2201,7 +2201,7 @@ "type": "Identifier", "span": { "start": 863, - "end": 869, + "end": 864, "ctxt": 0 }, "value": "x", @@ -2272,7 +2272,7 @@ "type": "Identifier", "span": { "start": 891, - "end": 895, + "end": 892, "ctxt": 0 }, "value": "x", @@ -2345,7 +2345,7 @@ "type": "Identifier", "span": { "start": 913, - "end": 924, + "end": 914, "ctxt": 0 }, "value": "x", @@ -2418,7 +2418,7 @@ "type": "Identifier", "span": { "start": 948, - "end": 954, + "end": 949, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates.json index 52c2b81263d3..7aa39e0eeec7 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates.json @@ -588,7 +588,7 @@ "type": "Identifier", "span": { "start": 299, - "end": 303, + "end": 300, "ctxt": 0 }, "value": "x", @@ -661,7 +661,7 @@ "type": "Identifier", "span": { "start": 320, - "end": 324, + "end": 321, "ctxt": 0 }, "value": "x", @@ -734,7 +734,7 @@ "type": "Identifier", "span": { "start": 350, - "end": 356, + "end": 351, "ctxt": 0 }, "value": "x", @@ -805,7 +805,7 @@ "type": "Identifier", "span": { "start": 378, - "end": 382, + "end": 379, "ctxt": 0 }, "value": "x", @@ -878,7 +878,7 @@ "type": "Identifier", "span": { "start": 400, - "end": 404, + "end": 401, "ctxt": 0 }, "value": "x", @@ -951,7 +951,7 @@ "type": "Identifier", "span": { "start": 431, - "end": 437, + "end": 432, "ctxt": 0 }, "value": "x", @@ -1022,7 +1022,7 @@ "type": "Identifier", "span": { "start": 459, - "end": 471, + "end": 460, "ctxt": 0 }, "value": "x", @@ -1113,7 +1113,7 @@ "type": "Identifier", "span": { "start": 489, - "end": 501, + "end": 490, "ctxt": 0 }, "value": "x", @@ -1204,7 +1204,7 @@ "type": "Identifier", "span": { "start": 528, - "end": 534, + "end": 529, "ctxt": 0 }, "value": "x", @@ -1275,7 +1275,7 @@ "type": "Identifier", "span": { "start": 555, - "end": 559, + "end": 556, "ctxt": 0 }, "value": "x", @@ -1348,7 +1348,7 @@ "type": "Identifier", "span": { "start": 576, - "end": 580, + "end": 577, "ctxt": 0 }, "value": "x", @@ -1421,7 +1421,7 @@ "type": "Identifier", "span": { "start": 606, - "end": 612, + "end": 607, "ctxt": 0 }, "value": "x", @@ -1492,7 +1492,7 @@ "type": "Identifier", "span": { "start": 633, - "end": 644, + "end": 634, "ctxt": 0 }, "value": "x", @@ -1565,7 +1565,7 @@ "type": "Identifier", "span": { "start": 661, - "end": 672, + "end": 662, "ctxt": 0 }, "value": "x", @@ -1638,7 +1638,7 @@ "type": "Identifier", "span": { "start": 698, - "end": 704, + "end": 699, "ctxt": 0 }, "value": "x", @@ -1709,7 +1709,7 @@ "type": "Identifier", "span": { "start": 725, - "end": 736, + "end": 726, "ctxt": 0 }, "value": "x", @@ -1782,7 +1782,7 @@ "type": "Identifier", "span": { "start": 753, - "end": 764, + "end": 754, "ctxt": 0 }, "value": "x", @@ -1855,7 +1855,7 @@ "type": "Identifier", "span": { "start": 790, - "end": 796, + "end": 791, "ctxt": 0 }, "value": "x", @@ -1926,7 +1926,7 @@ "type": "Identifier", "span": { "start": 817, - "end": 821, + "end": 818, "ctxt": 0 }, "value": "x", @@ -1999,7 +1999,7 @@ "type": "Identifier", "span": { "start": 838, - "end": 842, + "end": 839, "ctxt": 0 }, "value": "x", @@ -2072,7 +2072,7 @@ "type": "Identifier", "span": { "start": 871, - "end": 877, + "end": 872, "ctxt": 0 }, "value": "x", @@ -2143,7 +2143,7 @@ "type": "Identifier", "span": { "start": 899, - "end": 903, + "end": 900, "ctxt": 0 }, "value": "x", @@ -2216,7 +2216,7 @@ "type": "Identifier", "span": { "start": 921, - "end": 933, + "end": 922, "ctxt": 0 }, "value": "x", @@ -2307,7 +2307,7 @@ "type": "Identifier", "span": { "start": 963, - "end": 969, + "end": 964, "ctxt": 0 }, "value": "x", @@ -2378,7 +2378,7 @@ "type": "Identifier", "span": { "start": 991, - "end": 995, + "end": 992, "ctxt": 0 }, "value": "x", @@ -2451,7 +2451,7 @@ "type": "Identifier", "span": { "start": 1013, - "end": 1018, + "end": 1014, "ctxt": 0 }, "value": "x", @@ -2524,7 +2524,7 @@ "type": "Identifier", "span": { "start": 1045, - "end": 1051, + "end": 1046, "ctxt": 0 }, "value": "x", @@ -2595,7 +2595,7 @@ "type": "Identifier", "span": { "start": 1073, - "end": 1077, + "end": 1074, "ctxt": 0 }, "value": "x", @@ -2668,7 +2668,7 @@ "type": "Identifier", "span": { "start": 1095, - "end": 1100, + "end": 1096, "ctxt": 0 }, "value": "x", @@ -2741,7 +2741,7 @@ "type": "Identifier", "span": { "start": 1130, - "end": 1136, + "end": 1131, "ctxt": 0 }, "value": "x", @@ -2812,7 +2812,7 @@ "type": "Identifier", "span": { "start": 1157, - "end": 1161, + "end": 1158, "ctxt": 0 }, "value": "x", @@ -2885,7 +2885,7 @@ "type": "Identifier", "span": { "start": 1178, - "end": 1182, + "end": 1179, "ctxt": 0 }, "value": "x", @@ -2958,7 +2958,7 @@ "type": "Identifier", "span": { "start": 1211, - "end": 1217, + "end": 1212, "ctxt": 0 }, "value": "x", @@ -3029,7 +3029,7 @@ "type": "Identifier", "span": { "start": 1238, - "end": 1242, + "end": 1239, "ctxt": 0 }, "value": "x", @@ -3102,7 +3102,7 @@ "type": "Identifier", "span": { "start": 1259, - "end": 1270, + "end": 1260, "ctxt": 0 }, "value": "x", @@ -3175,7 +3175,7 @@ "type": "Identifier", "span": { "start": 1299, - "end": 1305, + "end": 1300, "ctxt": 0 }, "value": "x", @@ -3246,7 +3246,7 @@ "type": "Identifier", "span": { "start": 1326, - "end": 1330, + "end": 1327, "ctxt": 0 }, "value": "x", @@ -3319,7 +3319,7 @@ "type": "Identifier", "span": { "start": 1347, - "end": 1351, + "end": 1348, "ctxt": 0 }, "value": "x", @@ -3392,7 +3392,7 @@ "type": "Identifier", "span": { "start": 1380, - "end": 1386, + "end": 1381, "ctxt": 0 }, "value": "x", @@ -3463,7 +3463,7 @@ "type": "Identifier", "span": { "start": 1407, - "end": 1411, + "end": 1408, "ctxt": 0 }, "value": "x", @@ -3536,7 +3536,7 @@ "type": "Identifier", "span": { "start": 1428, - "end": 1440, + "end": 1429, "ctxt": 0 }, "value": "x", @@ -3627,7 +3627,7 @@ "type": "Identifier", "span": { "start": 1469, - "end": 1475, + "end": 1470, "ctxt": 0 }, "value": "x", @@ -3698,7 +3698,7 @@ "type": "Identifier", "span": { "start": 1497, - "end": 1501, + "end": 1498, "ctxt": 0 }, "value": "x", @@ -3771,7 +3771,7 @@ "type": "Identifier", "span": { "start": 1519, - "end": 1530, + "end": 1520, "ctxt": 0 }, "value": "x", @@ -3844,7 +3844,7 @@ "type": "Identifier", "span": { "start": 1560, - "end": 1566, + "end": 1561, "ctxt": 0 }, "value": "x", @@ -3915,7 +3915,7 @@ "type": "Identifier", "span": { "start": 1588, - "end": 1592, + "end": 1589, "ctxt": 0 }, "value": "x", @@ -3988,7 +3988,7 @@ "type": "Identifier", "span": { "start": 1610, - "end": 1621, + "end": 1611, "ctxt": 0 }, "value": "x", @@ -4061,7 +4061,7 @@ "type": "Identifier", "span": { "start": 1651, - "end": 1657, + "end": 1652, "ctxt": 0 }, "value": "x", @@ -4132,7 +4132,7 @@ "type": "Identifier", "span": { "start": 1680, - "end": 1684, + "end": 1681, "ctxt": 0 }, "value": "x", @@ -4205,7 +4205,7 @@ "type": "Identifier", "span": { "start": 1703, - "end": 1708, + "end": 1704, "ctxt": 0 }, "value": "x", @@ -4278,7 +4278,7 @@ "type": "Identifier", "span": { "start": 1739, - "end": 1745, + "end": 1740, "ctxt": 0 }, "value": "x", @@ -4349,7 +4349,7 @@ "type": "Identifier", "span": { "start": 1768, - "end": 1772, + "end": 1769, "ctxt": 0 }, "value": "x", @@ -4422,7 +4422,7 @@ "type": "Identifier", "span": { "start": 1791, - "end": 1796, + "end": 1792, "ctxt": 0 }, "value": "x", @@ -4495,7 +4495,7 @@ "type": "Identifier", "span": { "start": 1824, - "end": 1830, + "end": 1825, "ctxt": 0 }, "value": "x", @@ -4566,7 +4566,7 @@ "type": "Identifier", "span": { "start": 1852, - "end": 1856, + "end": 1853, "ctxt": 0 }, "value": "x", @@ -4639,7 +4639,7 @@ "type": "Identifier", "span": { "start": 1874, - "end": 1886, + "end": 1875, "ctxt": 0 }, "value": "x", @@ -4730,7 +4730,7 @@ "type": "Identifier", "span": { "start": 1916, - "end": 1922, + "end": 1917, "ctxt": 0 }, "value": "x", @@ -4801,7 +4801,7 @@ "type": "Identifier", "span": { "start": 1944, - "end": 1948, + "end": 1945, "ctxt": 0 }, "value": "x", @@ -4874,7 +4874,7 @@ "type": "Identifier", "span": { "start": 1966, - "end": 1977, + "end": 1967, "ctxt": 0 }, "value": "x", @@ -4947,7 +4947,7 @@ "type": "Identifier", "span": { "start": 2004, - "end": 2010, + "end": 2005, "ctxt": 0 }, "value": "x", @@ -5018,7 +5018,7 @@ "type": "Identifier", "span": { "start": 2032, - "end": 2036, + "end": 2033, "ctxt": 0 }, "value": "x", @@ -5091,7 +5091,7 @@ "type": "Identifier", "span": { "start": 2054, - "end": 2065, + "end": 2055, "ctxt": 0 }, "value": "x", @@ -5164,7 +5164,7 @@ "type": "Identifier", "span": { "start": 2092, - "end": 2098, + "end": 2093, "ctxt": 0 }, "value": "x", @@ -5235,7 +5235,7 @@ "type": "Identifier", "span": { "start": 2120, - "end": 2124, + "end": 2121, "ctxt": 0 }, "value": "x", @@ -5308,7 +5308,7 @@ "type": "Identifier", "span": { "start": 2142, - "end": 2147, + "end": 2143, "ctxt": 0 }, "value": "x", @@ -5381,7 +5381,7 @@ "type": "Identifier", "span": { "start": 2177, - "end": 2183, + "end": 2178, "ctxt": 0 }, "value": "x", @@ -5452,7 +5452,7 @@ "type": "Identifier", "span": { "start": 2205, - "end": 2209, + "end": 2206, "ctxt": 0 }, "value": "x", @@ -5525,7 +5525,7 @@ "type": "Identifier", "span": { "start": 2227, - "end": 2232, + "end": 2228, "ctxt": 0 }, "value": "x", @@ -5598,7 +5598,7 @@ "type": "Identifier", "span": { "start": 2262, - "end": 2268, + "end": 2263, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates2.json index e53af3c693ff..c349fc281667 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates2.json @@ -241,7 +241,7 @@ "type": "Identifier", "span": { "start": 124, - "end": 136, + "end": 125, "ctxt": 0 }, "value": "x", @@ -332,7 +332,7 @@ "type": "Identifier", "span": { "start": 153, - "end": 165, + "end": 154, "ctxt": 0 }, "value": "x", @@ -423,7 +423,7 @@ "type": "Identifier", "span": { "start": 188, - "end": 194, + "end": 189, "ctxt": 0 }, "value": "x", @@ -494,7 +494,7 @@ "type": "Identifier", "span": { "start": 215, - "end": 227, + "end": 216, "ctxt": 0 }, "value": "x", @@ -585,7 +585,7 @@ "type": "Identifier", "span": { "start": 244, - "end": 256, + "end": 245, "ctxt": 0 }, "value": "x", @@ -676,7 +676,7 @@ "type": "Identifier", "span": { "start": 279, - "end": 285, + "end": 280, "ctxt": 0 }, "value": "x", @@ -747,7 +747,7 @@ "type": "Identifier", "span": { "start": 306, - "end": 318, + "end": 307, "ctxt": 0 }, "value": "x", @@ -838,7 +838,7 @@ "type": "Identifier", "span": { "start": 335, - "end": 347, + "end": 336, "ctxt": 0 }, "value": "x", @@ -929,7 +929,7 @@ "type": "Identifier", "span": { "start": 370, - "end": 376, + "end": 371, "ctxt": 0 }, "value": "x", @@ -1000,7 +1000,7 @@ "type": "Identifier", "span": { "start": 397, - "end": 409, + "end": 398, "ctxt": 0 }, "value": "x", @@ -1107,7 +1107,7 @@ "type": "Identifier", "span": { "start": 435, - "end": 447, + "end": 436, "ctxt": 0 }, "value": "x", @@ -1214,7 +1214,7 @@ "type": "Identifier", "span": { "start": 486, - "end": 492, + "end": 487, "ctxt": 0 }, "value": "x", @@ -1489,7 +1489,7 @@ "type": "Identifier", "span": { "start": 581, - "end": 593, + "end": 582, "ctxt": 0 }, "value": "x", @@ -1596,7 +1596,7 @@ "type": "Identifier", "span": { "start": 618, - "end": 630, + "end": 619, "ctxt": 0 }, "value": "x", @@ -1703,7 +1703,7 @@ "type": "Identifier", "span": { "start": 664, - "end": 670, + "end": 665, "ctxt": 0 }, "value": "x", @@ -1790,7 +1790,7 @@ "type": "Identifier", "span": { "start": 696, - "end": 708, + "end": 697, "ctxt": 0 }, "value": "x", @@ -1897,7 +1897,7 @@ "type": "Identifier", "span": { "start": 733, - "end": 745, + "end": 734, "ctxt": 0 }, "value": "x", @@ -2004,7 +2004,7 @@ "type": "Identifier", "span": { "start": 779, - "end": 785, + "end": 780, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPublics.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPublics.json index 4e366edb9295..b227ccb34fa1 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPublics.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPublics.json @@ -518,7 +518,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 252, + "end": 249, "ctxt": 0 }, "value": "x", @@ -591,7 +591,7 @@ "type": "Identifier", "span": { "start": 269, - "end": 273, + "end": 270, "ctxt": 0 }, "value": "x", @@ -664,7 +664,7 @@ "type": "Identifier", "span": { "start": 299, - "end": 305, + "end": 300, "ctxt": 0 }, "value": "x", @@ -735,7 +735,7 @@ "type": "Identifier", "span": { "start": 327, - "end": 331, + "end": 328, "ctxt": 0 }, "value": "x", @@ -808,7 +808,7 @@ "type": "Identifier", "span": { "start": 349, - "end": 353, + "end": 350, "ctxt": 0 }, "value": "x", @@ -881,7 +881,7 @@ "type": "Identifier", "span": { "start": 380, - "end": 386, + "end": 381, "ctxt": 0 }, "value": "x", @@ -952,7 +952,7 @@ "type": "Identifier", "span": { "start": 408, - "end": 420, + "end": 409, "ctxt": 0 }, "value": "x", @@ -1043,7 +1043,7 @@ "type": "Identifier", "span": { "start": 438, - "end": 450, + "end": 439, "ctxt": 0 }, "value": "x", @@ -1134,7 +1134,7 @@ "type": "Identifier", "span": { "start": 477, - "end": 483, + "end": 478, "ctxt": 0 }, "value": "x", @@ -1205,7 +1205,7 @@ "type": "Identifier", "span": { "start": 504, - "end": 508, + "end": 505, "ctxt": 0 }, "value": "x", @@ -1278,7 +1278,7 @@ "type": "Identifier", "span": { "start": 525, - "end": 529, + "end": 526, "ctxt": 0 }, "value": "x", @@ -1351,7 +1351,7 @@ "type": "Identifier", "span": { "start": 555, - "end": 561, + "end": 556, "ctxt": 0 }, "value": "x", @@ -1422,7 +1422,7 @@ "type": "Identifier", "span": { "start": 582, - "end": 593, + "end": 583, "ctxt": 0 }, "value": "x", @@ -1495,7 +1495,7 @@ "type": "Identifier", "span": { "start": 610, - "end": 621, + "end": 611, "ctxt": 0 }, "value": "x", @@ -1568,7 +1568,7 @@ "type": "Identifier", "span": { "start": 647, - "end": 653, + "end": 648, "ctxt": 0 }, "value": "x", @@ -1639,7 +1639,7 @@ "type": "Identifier", "span": { "start": 674, - "end": 685, + "end": 675, "ctxt": 0 }, "value": "x", @@ -1712,7 +1712,7 @@ "type": "Identifier", "span": { "start": 702, - "end": 713, + "end": 703, "ctxt": 0 }, "value": "x", @@ -1785,7 +1785,7 @@ "type": "Identifier", "span": { "start": 739, - "end": 745, + "end": 740, "ctxt": 0 }, "value": "x", @@ -1856,7 +1856,7 @@ "type": "Identifier", "span": { "start": 766, - "end": 770, + "end": 767, "ctxt": 0 }, "value": "x", @@ -1929,7 +1929,7 @@ "type": "Identifier", "span": { "start": 787, - "end": 791, + "end": 788, "ctxt": 0 }, "value": "x", @@ -2002,7 +2002,7 @@ "type": "Identifier", "span": { "start": 817, - "end": 823, + "end": 818, "ctxt": 0 }, "value": "x", @@ -2073,7 +2073,7 @@ "type": "Identifier", "span": { "start": 845, - "end": 849, + "end": 846, "ctxt": 0 }, "value": "x", @@ -2146,7 +2146,7 @@ "type": "Identifier", "span": { "start": 867, - "end": 879, + "end": 868, "ctxt": 0 }, "value": "x", @@ -2237,7 +2237,7 @@ "type": "Identifier", "span": { "start": 906, - "end": 912, + "end": 907, "ctxt": 0 }, "value": "x", @@ -2308,7 +2308,7 @@ "type": "Identifier", "span": { "start": 933, - "end": 937, + "end": 934, "ctxt": 0 }, "value": "x", @@ -2381,7 +2381,7 @@ "type": "Identifier", "span": { "start": 954, - "end": 958, + "end": 955, "ctxt": 0 }, "value": "x", @@ -2454,7 +2454,7 @@ "type": "Identifier", "span": { "start": 984, - "end": 990, + "end": 985, "ctxt": 0 }, "value": "x", @@ -2525,7 +2525,7 @@ "type": "Identifier", "span": { "start": 1011, - "end": 1015, + "end": 1012, "ctxt": 0 }, "value": "x", @@ -2598,7 +2598,7 @@ "type": "Identifier", "span": { "start": 1032, - "end": 1043, + "end": 1033, "ctxt": 0 }, "value": "x", @@ -2671,7 +2671,7 @@ "type": "Identifier", "span": { "start": 1069, - "end": 1075, + "end": 1070, "ctxt": 0 }, "value": "x", @@ -2742,7 +2742,7 @@ "type": "Identifier", "span": { "start": 1096, - "end": 1100, + "end": 1097, "ctxt": 0 }, "value": "x", @@ -2815,7 +2815,7 @@ "type": "Identifier", "span": { "start": 1117, - "end": 1121, + "end": 1118, "ctxt": 0 }, "value": "x", @@ -2888,7 +2888,7 @@ "type": "Identifier", "span": { "start": 1147, - "end": 1153, + "end": 1148, "ctxt": 0 }, "value": "x", @@ -2959,7 +2959,7 @@ "type": "Identifier", "span": { "start": 1174, - "end": 1178, + "end": 1175, "ctxt": 0 }, "value": "x", @@ -3032,7 +3032,7 @@ "type": "Identifier", "span": { "start": 1195, - "end": 1207, + "end": 1196, "ctxt": 0 }, "value": "x", @@ -3123,7 +3123,7 @@ "type": "Identifier", "span": { "start": 1233, - "end": 1239, + "end": 1234, "ctxt": 0 }, "value": "x", @@ -3194,7 +3194,7 @@ "type": "Identifier", "span": { "start": 1261, - "end": 1265, + "end": 1262, "ctxt": 0 }, "value": "x", @@ -3267,7 +3267,7 @@ "type": "Identifier", "span": { "start": 1283, - "end": 1294, + "end": 1284, "ctxt": 0 }, "value": "x", @@ -3340,7 +3340,7 @@ "type": "Identifier", "span": { "start": 1321, - "end": 1327, + "end": 1322, "ctxt": 0 }, "value": "x", @@ -3411,7 +3411,7 @@ "type": "Identifier", "span": { "start": 1349, - "end": 1353, + "end": 1350, "ctxt": 0 }, "value": "x", @@ -3484,7 +3484,7 @@ "type": "Identifier", "span": { "start": 1371, - "end": 1382, + "end": 1372, "ctxt": 0 }, "value": "x", @@ -3557,7 +3557,7 @@ "type": "Identifier", "span": { "start": 1409, - "end": 1415, + "end": 1410, "ctxt": 0 }, "value": "x", @@ -3628,7 +3628,7 @@ "type": "Identifier", "span": { "start": 1437, - "end": 1441, + "end": 1438, "ctxt": 0 }, "value": "x", @@ -3701,7 +3701,7 @@ "type": "Identifier", "span": { "start": 1459, - "end": 1471, + "end": 1460, "ctxt": 0 }, "value": "x", @@ -3792,7 +3792,7 @@ "type": "Identifier", "span": { "start": 1498, - "end": 1504, + "end": 1499, "ctxt": 0 }, "value": "x", @@ -3863,7 +3863,7 @@ "type": "Identifier", "span": { "start": 1526, - "end": 1530, + "end": 1527, "ctxt": 0 }, "value": "x", @@ -3936,7 +3936,7 @@ "type": "Identifier", "span": { "start": 1548, - "end": 1559, + "end": 1549, "ctxt": 0 }, "value": "x", @@ -4009,7 +4009,7 @@ "type": "Identifier", "span": { "start": 1586, - "end": 1592, + "end": 1587, "ctxt": 0 }, "value": "x", @@ -4080,7 +4080,7 @@ "type": "Identifier", "span": { "start": 1614, - "end": 1618, + "end": 1615, "ctxt": 0 }, "value": "x", @@ -4153,7 +4153,7 @@ "type": "Identifier", "span": { "start": 1636, - "end": 1647, + "end": 1637, "ctxt": 0 }, "value": "x", @@ -4226,7 +4226,7 @@ "type": "Identifier", "span": { "start": 1674, - "end": 1680, + "end": 1675, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers.json index 832b9ceb0b18..bceaf86c5556 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers.json @@ -724,7 +724,7 @@ "type": "Identifier", "span": { "start": 345, - "end": 349, + "end": 346, "ctxt": 0 }, "value": "x", @@ -797,7 +797,7 @@ "type": "Identifier", "span": { "start": 366, - "end": 370, + "end": 367, "ctxt": 0 }, "value": "x", @@ -870,7 +870,7 @@ "type": "Identifier", "span": { "start": 396, - "end": 402, + "end": 397, "ctxt": 0 }, "value": "x", @@ -941,7 +941,7 @@ "type": "Identifier", "span": { "start": 424, - "end": 428, + "end": 425, "ctxt": 0 }, "value": "x", @@ -1014,7 +1014,7 @@ "type": "Identifier", "span": { "start": 446, - "end": 450, + "end": 447, "ctxt": 0 }, "value": "x", @@ -1087,7 +1087,7 @@ "type": "Identifier", "span": { "start": 477, - "end": 483, + "end": 478, "ctxt": 0 }, "value": "x", @@ -1158,7 +1158,7 @@ "type": "Identifier", "span": { "start": 505, - "end": 517, + "end": 506, "ctxt": 0 }, "value": "x", @@ -1249,7 +1249,7 @@ "type": "Identifier", "span": { "start": 535, - "end": 547, + "end": 536, "ctxt": 0 }, "value": "x", @@ -1340,7 +1340,7 @@ "type": "Identifier", "span": { "start": 574, - "end": 580, + "end": 575, "ctxt": 0 }, "value": "x", @@ -1411,7 +1411,7 @@ "type": "Identifier", "span": { "start": 601, - "end": 605, + "end": 602, "ctxt": 0 }, "value": "x", @@ -1484,7 +1484,7 @@ "type": "Identifier", "span": { "start": 622, - "end": 626, + "end": 623, "ctxt": 0 }, "value": "x", @@ -1557,7 +1557,7 @@ "type": "Identifier", "span": { "start": 652, - "end": 658, + "end": 653, "ctxt": 0 }, "value": "x", @@ -1628,7 +1628,7 @@ "type": "Identifier", "span": { "start": 679, - "end": 690, + "end": 680, "ctxt": 0 }, "value": "x", @@ -1701,7 +1701,7 @@ "type": "Identifier", "span": { "start": 707, - "end": 718, + "end": 708, "ctxt": 0 }, "value": "x", @@ -1774,7 +1774,7 @@ "type": "Identifier", "span": { "start": 744, - "end": 750, + "end": 745, "ctxt": 0 }, "value": "x", @@ -1845,7 +1845,7 @@ "type": "Identifier", "span": { "start": 771, - "end": 782, + "end": 772, "ctxt": 0 }, "value": "x", @@ -1918,7 +1918,7 @@ "type": "Identifier", "span": { "start": 799, - "end": 810, + "end": 800, "ctxt": 0 }, "value": "x", @@ -1991,7 +1991,7 @@ "type": "Identifier", "span": { "start": 836, - "end": 842, + "end": 837, "ctxt": 0 }, "value": "x", @@ -2062,7 +2062,7 @@ "type": "Identifier", "span": { "start": 863, - "end": 867, + "end": 864, "ctxt": 0 }, "value": "x", @@ -2135,7 +2135,7 @@ "type": "Identifier", "span": { "start": 884, - "end": 888, + "end": 885, "ctxt": 0 }, "value": "x", @@ -2208,7 +2208,7 @@ "type": "Identifier", "span": { "start": 914, - "end": 920, + "end": 915, "ctxt": 0 }, "value": "x", @@ -2279,7 +2279,7 @@ "type": "Identifier", "span": { "start": 942, - "end": 946, + "end": 943, "ctxt": 0 }, "value": "x", @@ -2352,7 +2352,7 @@ "type": "Identifier", "span": { "start": 964, - "end": 976, + "end": 965, "ctxt": 0 }, "value": "x", @@ -2443,7 +2443,7 @@ "type": "Identifier", "span": { "start": 1003, - "end": 1009, + "end": 1004, "ctxt": 0 }, "value": "x", @@ -2514,7 +2514,7 @@ "type": "Identifier", "span": { "start": 1031, - "end": 1035, + "end": 1032, "ctxt": 0 }, "value": "x", @@ -2587,7 +2587,7 @@ "type": "Identifier", "span": { "start": 1053, - "end": 1058, + "end": 1054, "ctxt": 0 }, "value": "x", @@ -2660,7 +2660,7 @@ "type": "Identifier", "span": { "start": 1085, - "end": 1091, + "end": 1086, "ctxt": 0 }, "value": "x", @@ -2731,7 +2731,7 @@ "type": "Identifier", "span": { "start": 1113, - "end": 1117, + "end": 1114, "ctxt": 0 }, "value": "x", @@ -2804,7 +2804,7 @@ "type": "Identifier", "span": { "start": 1135, - "end": 1140, + "end": 1136, "ctxt": 0 }, "value": "x", @@ -2877,7 +2877,7 @@ "type": "Identifier", "span": { "start": 1167, - "end": 1173, + "end": 1168, "ctxt": 0 }, "value": "x", @@ -2948,7 +2948,7 @@ "type": "Identifier", "span": { "start": 1194, - "end": 1198, + "end": 1195, "ctxt": 0 }, "value": "x", @@ -3021,7 +3021,7 @@ "type": "Identifier", "span": { "start": 1215, - "end": 1219, + "end": 1216, "ctxt": 0 }, "value": "x", @@ -3094,7 +3094,7 @@ "type": "Identifier", "span": { "start": 1245, - "end": 1251, + "end": 1246, "ctxt": 0 }, "value": "x", @@ -3165,7 +3165,7 @@ "type": "Identifier", "span": { "start": 1272, - "end": 1276, + "end": 1273, "ctxt": 0 }, "value": "x", @@ -3238,7 +3238,7 @@ "type": "Identifier", "span": { "start": 1293, - "end": 1304, + "end": 1294, "ctxt": 0 }, "value": "x", @@ -3311,7 +3311,7 @@ "type": "Identifier", "span": { "start": 1330, - "end": 1336, + "end": 1331, "ctxt": 0 }, "value": "x", @@ -3382,7 +3382,7 @@ "type": "Identifier", "span": { "start": 1357, - "end": 1361, + "end": 1358, "ctxt": 0 }, "value": "x", @@ -3455,7 +3455,7 @@ "type": "Identifier", "span": { "start": 1378, - "end": 1382, + "end": 1379, "ctxt": 0 }, "value": "x", @@ -3528,7 +3528,7 @@ "type": "Identifier", "span": { "start": 1408, - "end": 1414, + "end": 1409, "ctxt": 0 }, "value": "x", @@ -3599,7 +3599,7 @@ "type": "Identifier", "span": { "start": 1435, - "end": 1439, + "end": 1436, "ctxt": 0 }, "value": "x", @@ -3672,7 +3672,7 @@ "type": "Identifier", "span": { "start": 1456, - "end": 1468, + "end": 1457, "ctxt": 0 }, "value": "x", @@ -3763,7 +3763,7 @@ "type": "Identifier", "span": { "start": 1494, - "end": 1500, + "end": 1495, "ctxt": 0 }, "value": "x", @@ -3834,7 +3834,7 @@ "type": "Identifier", "span": { "start": 1522, - "end": 1526, + "end": 1523, "ctxt": 0 }, "value": "x", @@ -3907,7 +3907,7 @@ "type": "Identifier", "span": { "start": 1544, - "end": 1555, + "end": 1545, "ctxt": 0 }, "value": "x", @@ -3980,7 +3980,7 @@ "type": "Identifier", "span": { "start": 1582, - "end": 1588, + "end": 1583, "ctxt": 0 }, "value": "x", @@ -4051,7 +4051,7 @@ "type": "Identifier", "span": { "start": 1610, - "end": 1614, + "end": 1611, "ctxt": 0 }, "value": "x", @@ -4124,7 +4124,7 @@ "type": "Identifier", "span": { "start": 1632, - "end": 1643, + "end": 1633, "ctxt": 0 }, "value": "x", @@ -4197,7 +4197,7 @@ "type": "Identifier", "span": { "start": 1670, - "end": 1676, + "end": 1671, "ctxt": 0 }, "value": "x", @@ -4268,7 +4268,7 @@ "type": "Identifier", "span": { "start": 1699, - "end": 1703, + "end": 1700, "ctxt": 0 }, "value": "x", @@ -4341,7 +4341,7 @@ "type": "Identifier", "span": { "start": 1722, - "end": 1727, + "end": 1723, "ctxt": 0 }, "value": "x", @@ -4414,7 +4414,7 @@ "type": "Identifier", "span": { "start": 1755, - "end": 1761, + "end": 1756, "ctxt": 0 }, "value": "x", @@ -4485,7 +4485,7 @@ "type": "Identifier", "span": { "start": 1784, - "end": 1788, + "end": 1785, "ctxt": 0 }, "value": "x", @@ -4558,7 +4558,7 @@ "type": "Identifier", "span": { "start": 1807, - "end": 1812, + "end": 1808, "ctxt": 0 }, "value": "x", @@ -4631,7 +4631,7 @@ "type": "Identifier", "span": { "start": 1840, - "end": 1846, + "end": 1841, "ctxt": 0 }, "value": "x", @@ -4702,7 +4702,7 @@ "type": "Identifier", "span": { "start": 1868, - "end": 1872, + "end": 1869, "ctxt": 0 }, "value": "x", @@ -4775,7 +4775,7 @@ "type": "Identifier", "span": { "start": 1890, - "end": 1902, + "end": 1891, "ctxt": 0 }, "value": "x", @@ -4866,7 +4866,7 @@ "type": "Identifier", "span": { "start": 1929, - "end": 1935, + "end": 1930, "ctxt": 0 }, "value": "x", @@ -4937,7 +4937,7 @@ "type": "Identifier", "span": { "start": 1957, - "end": 1961, + "end": 1958, "ctxt": 0 }, "value": "x", @@ -5010,7 +5010,7 @@ "type": "Identifier", "span": { "start": 1979, - "end": 1990, + "end": 1980, "ctxt": 0 }, "value": "x", @@ -5083,7 +5083,7 @@ "type": "Identifier", "span": { "start": 2017, - "end": 2023, + "end": 2018, "ctxt": 0 }, "value": "x", @@ -5154,7 +5154,7 @@ "type": "Identifier", "span": { "start": 2045, - "end": 2049, + "end": 2046, "ctxt": 0 }, "value": "x", @@ -5227,7 +5227,7 @@ "type": "Identifier", "span": { "start": 2067, - "end": 2078, + "end": 2068, "ctxt": 0 }, "value": "x", @@ -5300,7 +5300,7 @@ "type": "Identifier", "span": { "start": 2105, - "end": 2111, + "end": 2106, "ctxt": 0 }, "value": "x", @@ -5371,7 +5371,7 @@ "type": "Identifier", "span": { "start": 2133, - "end": 2137, + "end": 2134, "ctxt": 0 }, "value": "x", @@ -5444,7 +5444,7 @@ "type": "Identifier", "span": { "start": 2155, - "end": 2160, + "end": 2156, "ctxt": 0 }, "value": "x", @@ -5517,7 +5517,7 @@ "type": "Identifier", "span": { "start": 2187, - "end": 2193, + "end": 2188, "ctxt": 0 }, "value": "x", @@ -5588,7 +5588,7 @@ "type": "Identifier", "span": { "start": 2215, - "end": 2219, + "end": 2216, "ctxt": 0 }, "value": "x", @@ -5661,7 +5661,7 @@ "type": "Identifier", "span": { "start": 2237, - "end": 2242, + "end": 2238, "ctxt": 0 }, "value": "x", @@ -5734,7 +5734,7 @@ "type": "Identifier", "span": { "start": 2269, - "end": 2275, + "end": 2270, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers2.json index 44803337d3f6..7f5bfd15100e 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers2.json @@ -952,7 +952,7 @@ "type": "Identifier", "span": { "start": 428, - "end": 432, + "end": 429, "ctxt": 0 }, "value": "x", @@ -1025,7 +1025,7 @@ "type": "Identifier", "span": { "start": 449, - "end": 453, + "end": 450, "ctxt": 0 }, "value": "x", @@ -1098,7 +1098,7 @@ "type": "Identifier", "span": { "start": 479, - "end": 485, + "end": 480, "ctxt": 0 }, "value": "x", @@ -1169,7 +1169,7 @@ "type": "Identifier", "span": { "start": 507, - "end": 511, + "end": 508, "ctxt": 0 }, "value": "x", @@ -1242,7 +1242,7 @@ "type": "Identifier", "span": { "start": 529, - "end": 533, + "end": 530, "ctxt": 0 }, "value": "x", @@ -1315,7 +1315,7 @@ "type": "Identifier", "span": { "start": 560, - "end": 566, + "end": 561, "ctxt": 0 }, "value": "x", @@ -1386,7 +1386,7 @@ "type": "Identifier", "span": { "start": 588, - "end": 600, + "end": 589, "ctxt": 0 }, "value": "x", @@ -1477,7 +1477,7 @@ "type": "Identifier", "span": { "start": 618, - "end": 630, + "end": 619, "ctxt": 0 }, "value": "x", @@ -1568,7 +1568,7 @@ "type": "Identifier", "span": { "start": 657, - "end": 663, + "end": 658, "ctxt": 0 }, "value": "x", @@ -1639,7 +1639,7 @@ "type": "Identifier", "span": { "start": 684, - "end": 688, + "end": 685, "ctxt": 0 }, "value": "x", @@ -1712,7 +1712,7 @@ "type": "Identifier", "span": { "start": 705, - "end": 709, + "end": 706, "ctxt": 0 }, "value": "x", @@ -1785,7 +1785,7 @@ "type": "Identifier", "span": { "start": 735, - "end": 741, + "end": 736, "ctxt": 0 }, "value": "x", @@ -1856,7 +1856,7 @@ "type": "Identifier", "span": { "start": 762, - "end": 773, + "end": 763, "ctxt": 0 }, "value": "x", @@ -1929,7 +1929,7 @@ "type": "Identifier", "span": { "start": 790, - "end": 801, + "end": 791, "ctxt": 0 }, "value": "x", @@ -2002,7 +2002,7 @@ "type": "Identifier", "span": { "start": 827, - "end": 833, + "end": 828, "ctxt": 0 }, "value": "x", @@ -2073,7 +2073,7 @@ "type": "Identifier", "span": { "start": 854, - "end": 865, + "end": 855, "ctxt": 0 }, "value": "x", @@ -2146,7 +2146,7 @@ "type": "Identifier", "span": { "start": 882, - "end": 893, + "end": 883, "ctxt": 0 }, "value": "x", @@ -2219,7 +2219,7 @@ "type": "Identifier", "span": { "start": 919, - "end": 925, + "end": 920, "ctxt": 0 }, "value": "x", @@ -2290,7 +2290,7 @@ "type": "Identifier", "span": { "start": 946, - "end": 950, + "end": 947, "ctxt": 0 }, "value": "x", @@ -2363,7 +2363,7 @@ "type": "Identifier", "span": { "start": 967, - "end": 971, + "end": 968, "ctxt": 0 }, "value": "x", @@ -2436,7 +2436,7 @@ "type": "Identifier", "span": { "start": 994, - "end": 1000, + "end": 995, "ctxt": 0 }, "value": "x", @@ -2507,7 +2507,7 @@ "type": "Identifier", "span": { "start": 1022, - "end": 1026, + "end": 1023, "ctxt": 0 }, "value": "x", @@ -2580,7 +2580,7 @@ "type": "Identifier", "span": { "start": 1044, - "end": 1057, + "end": 1045, "ctxt": 0 }, "value": "x", @@ -2681,7 +2681,7 @@ "type": "Identifier", "span": { "start": 1081, - "end": 1087, + "end": 1082, "ctxt": 0 }, "value": "x", @@ -2752,7 +2752,7 @@ "type": "Identifier", "span": { "start": 1109, - "end": 1113, + "end": 1110, "ctxt": 0 }, "value": "x", @@ -2825,7 +2825,7 @@ "type": "Identifier", "span": { "start": 1131, - "end": 1136, + "end": 1132, "ctxt": 0 }, "value": "x", @@ -2898,7 +2898,7 @@ "type": "Identifier", "span": { "start": 1163, - "end": 1169, + "end": 1164, "ctxt": 0 }, "value": "x", @@ -2969,7 +2969,7 @@ "type": "Identifier", "span": { "start": 1191, - "end": 1195, + "end": 1192, "ctxt": 0 }, "value": "x", @@ -3042,7 +3042,7 @@ "type": "Identifier", "span": { "start": 1213, - "end": 1218, + "end": 1214, "ctxt": 0 }, "value": "x", @@ -3115,7 +3115,7 @@ "type": "Identifier", "span": { "start": 1242, - "end": 1248, + "end": 1243, "ctxt": 0 }, "value": "x", @@ -3186,7 +3186,7 @@ "type": "Identifier", "span": { "start": 1269, - "end": 1273, + "end": 1270, "ctxt": 0 }, "value": "x", @@ -3259,7 +3259,7 @@ "type": "Identifier", "span": { "start": 1290, - "end": 1294, + "end": 1291, "ctxt": 0 }, "value": "x", @@ -3332,7 +3332,7 @@ "type": "Identifier", "span": { "start": 1317, - "end": 1323, + "end": 1318, "ctxt": 0 }, "value": "x", @@ -3403,7 +3403,7 @@ "type": "Identifier", "span": { "start": 1344, - "end": 1348, + "end": 1345, "ctxt": 0 }, "value": "x", @@ -3476,7 +3476,7 @@ "type": "Identifier", "span": { "start": 1365, - "end": 1376, + "end": 1366, "ctxt": 0 }, "value": "x", @@ -3549,7 +3549,7 @@ "type": "Identifier", "span": { "start": 1402, - "end": 1408, + "end": 1403, "ctxt": 0 }, "value": "x", @@ -3620,7 +3620,7 @@ "type": "Identifier", "span": { "start": 1429, - "end": 1433, + "end": 1430, "ctxt": 0 }, "value": "x", @@ -3693,7 +3693,7 @@ "type": "Identifier", "span": { "start": 1450, - "end": 1454, + "end": 1451, "ctxt": 0 }, "value": "x", @@ -3766,7 +3766,7 @@ "type": "Identifier", "span": { "start": 1480, - "end": 1486, + "end": 1481, "ctxt": 0 }, "value": "x", @@ -3837,7 +3837,7 @@ "type": "Identifier", "span": { "start": 1507, - "end": 1511, + "end": 1508, "ctxt": 0 }, "value": "x", @@ -3910,7 +3910,7 @@ "type": "Identifier", "span": { "start": 1528, - "end": 1538, + "end": 1529, "ctxt": 0 }, "value": "x", @@ -4011,7 +4011,7 @@ "type": "Identifier", "span": { "start": 1561, - "end": 1567, + "end": 1562, "ctxt": 0 }, "value": "x", @@ -4082,7 +4082,7 @@ "type": "Identifier", "span": { "start": 1589, - "end": 1593, + "end": 1590, "ctxt": 0 }, "value": "x", @@ -4155,7 +4155,7 @@ "type": "Identifier", "span": { "start": 1611, - "end": 1622, + "end": 1612, "ctxt": 0 }, "value": "x", @@ -4228,7 +4228,7 @@ "type": "Identifier", "span": { "start": 1646, - "end": 1652, + "end": 1647, "ctxt": 0 }, "value": "x", @@ -4299,7 +4299,7 @@ "type": "Identifier", "span": { "start": 1674, - "end": 1678, + "end": 1675, "ctxt": 0 }, "value": "x", @@ -4372,7 +4372,7 @@ "type": "Identifier", "span": { "start": 1696, - "end": 1707, + "end": 1697, "ctxt": 0 }, "value": "x", @@ -4445,7 +4445,7 @@ "type": "Identifier", "span": { "start": 1734, - "end": 1740, + "end": 1735, "ctxt": 0 }, "value": "x", @@ -4516,7 +4516,7 @@ "type": "Identifier", "span": { "start": 1763, - "end": 1767, + "end": 1764, "ctxt": 0 }, "value": "x", @@ -4589,7 +4589,7 @@ "type": "Identifier", "span": { "start": 1786, - "end": 1791, + "end": 1787, "ctxt": 0 }, "value": "x", @@ -4662,7 +4662,7 @@ "type": "Identifier", "span": { "start": 1816, - "end": 1822, + "end": 1817, "ctxt": 0 }, "value": "x", @@ -4733,7 +4733,7 @@ "type": "Identifier", "span": { "start": 1845, - "end": 1849, + "end": 1846, "ctxt": 0 }, "value": "x", @@ -4806,7 +4806,7 @@ "type": "Identifier", "span": { "start": 1868, - "end": 1873, + "end": 1869, "ctxt": 0 }, "value": "x", @@ -4879,7 +4879,7 @@ "type": "Identifier", "span": { "start": 1901, - "end": 1907, + "end": 1902, "ctxt": 0 }, "value": "x", @@ -4950,7 +4950,7 @@ "type": "Identifier", "span": { "start": 1929, - "end": 1933, + "end": 1930, "ctxt": 0 }, "value": "x", @@ -5023,7 +5023,7 @@ "type": "Identifier", "span": { "start": 1951, - "end": 1964, + "end": 1952, "ctxt": 0 }, "value": "x", @@ -5124,7 +5124,7 @@ "type": "Identifier", "span": { "start": 1991, - "end": 1997, + "end": 1992, "ctxt": 0 }, "value": "x", @@ -5195,7 +5195,7 @@ "type": "Identifier", "span": { "start": 2019, - "end": 2023, + "end": 2020, "ctxt": 0 }, "value": "x", @@ -5268,7 +5268,7 @@ "type": "Identifier", "span": { "start": 2041, - "end": 2052, + "end": 2042, "ctxt": 0 }, "value": "x", @@ -5341,7 +5341,7 @@ "type": "Identifier", "span": { "start": 2076, - "end": 2082, + "end": 2077, "ctxt": 0 }, "value": "x", @@ -5412,7 +5412,7 @@ "type": "Identifier", "span": { "start": 2104, - "end": 2108, + "end": 2105, "ctxt": 0 }, "value": "x", @@ -5485,7 +5485,7 @@ "type": "Identifier", "span": { "start": 2126, - "end": 2137, + "end": 2127, "ctxt": 0 }, "value": "x", @@ -5558,7 +5558,7 @@ "type": "Identifier", "span": { "start": 2164, - "end": 2170, + "end": 2165, "ctxt": 0 }, "value": "x", @@ -5629,7 +5629,7 @@ "type": "Identifier", "span": { "start": 2192, - "end": 2196, + "end": 2193, "ctxt": 0 }, "value": "x", @@ -5702,7 +5702,7 @@ "type": "Identifier", "span": { "start": 2214, - "end": 2219, + "end": 2215, "ctxt": 0 }, "value": "x", @@ -5775,7 +5775,7 @@ "type": "Identifier", "span": { "start": 2243, - "end": 2249, + "end": 2244, "ctxt": 0 }, "value": "x", @@ -5846,7 +5846,7 @@ "type": "Identifier", "span": { "start": 2271, - "end": 2275, + "end": 2272, "ctxt": 0 }, "value": "x", @@ -5919,7 +5919,7 @@ "type": "Identifier", "span": { "start": 2293, - "end": 2298, + "end": 2294, "ctxt": 0 }, "value": "x", @@ -5992,7 +5992,7 @@ "type": "Identifier", "span": { "start": 2325, - "end": 2331, + "end": 2326, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/optionalChainingInference.json b/crates/swc_ecma_parser/tests/tsc/optionalChainingInference.json index 76eeae8fa9e2..8df701df43c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalChainingInference.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalChainingInference.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 83, - "end": 112, + "end": 86, "ctxt": 0 }, "value": "box", diff --git a/crates/swc_ecma_parser/tests/tsc/optionalMethods.json b/crates/swc_ecma_parser/tests/tsc/optionalMethods.json index 0cb846070547..d63be2f8c944 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalMethods.json @@ -225,7 +225,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 157, + "end": 152, "ctxt": 0 }, "value": "x", @@ -899,7 +899,7 @@ "type": "Identifier", "span": { "start": 355, - "end": 365, + "end": 356, "ctxt": 0 }, "value": "d", @@ -1194,7 +1194,7 @@ "type": "Identifier", "span": { "start": 533, - "end": 539, + "end": 534, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/overloadResolution.json b/crates/swc_ecma_parser/tests/tsc/overloadResolution.json index 79ee450b47db..771e9a3d7d85 100644 --- a/crates/swc_ecma_parser/tests/tsc/overloadResolution.json +++ b/crates/swc_ecma_parser/tests/tsc/overloadResolution.json @@ -328,7 +328,7 @@ "type": "Identifier", "span": { "start": 302, - "end": 311, + "end": 303, "ctxt": 0 }, "value": "s", @@ -407,7 +407,7 @@ "type": "Identifier", "span": { "start": 335, - "end": 344, + "end": 336, "ctxt": 0 }, "value": "s", @@ -693,7 +693,7 @@ "type": "Identifier", "span": { "start": 608, - "end": 617, + "end": 609, "ctxt": 0 }, "value": "s", @@ -729,7 +729,7 @@ "type": "Identifier", "span": { "start": 619, - "end": 628, + "end": 620, "ctxt": 0 }, "value": "n", @@ -808,7 +808,7 @@ "type": "Identifier", "span": { "start": 655, - "end": 664, + "end": 656, "ctxt": 0 }, "value": "n", @@ -844,7 +844,7 @@ "type": "Identifier", "span": { "start": 666, - "end": 670, + "end": 667, "ctxt": 0 }, "value": "t", @@ -1411,7 +1411,7 @@ "type": "Identifier", "span": { "start": 1280, - "end": 1284, + "end": 1281, "ctxt": 0 }, "value": "n", @@ -1532,7 +1532,7 @@ "type": "Identifier", "span": { "start": 1314, - "end": 1323, + "end": 1315, "ctxt": 0 }, "value": "s", @@ -1568,7 +1568,7 @@ "type": "Identifier", "span": { "start": 1325, - "end": 1329, + "end": 1326, "ctxt": 0 }, "value": "t", @@ -1614,7 +1614,7 @@ "type": "Identifier", "span": { "start": 1331, - "end": 1335, + "end": 1332, "ctxt": 0 }, "value": "u", @@ -1768,7 +1768,7 @@ "type": "Identifier", "span": { "start": 1363, - "end": 1367, + "end": 1364, "ctxt": 0 }, "value": "v", @@ -1814,7 +1814,7 @@ "type": "Identifier", "span": { "start": 1369, - "end": 1373, + "end": 1370, "ctxt": 0 }, "value": "u", @@ -1860,7 +1860,7 @@ "type": "Identifier", "span": { "start": 1375, - "end": 1379, + "end": 1376, "ctxt": 0 }, "value": "t", @@ -2781,7 +2781,7 @@ "type": "Identifier", "span": { "start": 2026, - "end": 2030, + "end": 2027, "ctxt": 0 }, "value": "n", @@ -2827,7 +2827,7 @@ "type": "Identifier", "span": { "start": 2032, - "end": 2036, + "end": 2033, "ctxt": 0 }, "value": "m", @@ -2971,7 +2971,7 @@ "type": "Identifier", "span": { "start": 2088, - "end": 2092, + "end": 2089, "ctxt": 0 }, "value": "n", @@ -3017,7 +3017,7 @@ "type": "Identifier", "span": { "start": 2094, - "end": 2098, + "end": 2095, "ctxt": 0 }, "value": "m", @@ -3933,7 +3933,7 @@ "type": "Identifier", "span": { "start": 2835, - "end": 2857, + "end": 2836, "ctxt": 0 }, "value": "f", @@ -3957,7 +3957,7 @@ "type": "Identifier", "span": { "start": 2839, - "end": 2848, + "end": 2840, "ctxt": 0 }, "value": "n", @@ -4058,7 +4058,7 @@ "type": "Identifier", "span": { "start": 2881, - "end": 2903, + "end": 2882, "ctxt": 0 }, "value": "f", @@ -4082,7 +4082,7 @@ "type": "Identifier", "span": { "start": 2885, - "end": 2894, + "end": 2886, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/overloadResolutionClassConstructors.json b/crates/swc_ecma_parser/tests/tsc/overloadResolutionClassConstructors.json index 3d89a35fb797..5228709d96dc 100644 --- a/crates/swc_ecma_parser/tests/tsc/overloadResolutionClassConstructors.json +++ b/crates/swc_ecma_parser/tests/tsc/overloadResolutionClassConstructors.json @@ -352,7 +352,7 @@ "type": "Identifier", "span": { "start": 317, - "end": 326, + "end": 318, "ctxt": 0 }, "value": "s", @@ -411,7 +411,7 @@ "type": "Identifier", "span": { "start": 345, - "end": 354, + "end": 346, "ctxt": 0 }, "value": "s", @@ -610,7 +610,7 @@ "type": "Identifier", "span": { "start": 604, - "end": 613, + "end": 605, "ctxt": 0 }, "value": "s", @@ -646,7 +646,7 @@ "type": "Identifier", "span": { "start": 615, - "end": 624, + "end": 616, "ctxt": 0 }, "value": "n", @@ -705,7 +705,7 @@ "type": "Identifier", "span": { "start": 643, - "end": 652, + "end": 644, "ctxt": 0 }, "value": "n", @@ -741,7 +741,7 @@ "type": "Identifier", "span": { "start": 654, - "end": 658, + "end": 655, "ctxt": 0 }, "value": "t", @@ -1223,7 +1223,7 @@ "type": "Identifier", "span": { "start": 1273, - "end": 1277, + "end": 1274, "ctxt": 0 }, "value": "n", @@ -1292,7 +1292,7 @@ "type": "Identifier", "span": { "start": 1296, - "end": 1305, + "end": 1297, "ctxt": 0 }, "value": "s", @@ -1328,7 +1328,7 @@ "type": "Identifier", "span": { "start": 1307, - "end": 1311, + "end": 1308, "ctxt": 0 }, "value": "t", @@ -1374,7 +1374,7 @@ "type": "Identifier", "span": { "start": 1313, - "end": 1317, + "end": 1314, "ctxt": 0 }, "value": "u", @@ -1443,7 +1443,7 @@ "type": "Identifier", "span": { "start": 1336, - "end": 1340, + "end": 1337, "ctxt": 0 }, "value": "v", @@ -1489,7 +1489,7 @@ "type": "Identifier", "span": { "start": 1342, - "end": 1346, + "end": 1343, "ctxt": 0 }, "value": "u", @@ -1535,7 +1535,7 @@ "type": "Identifier", "span": { "start": 1348, - "end": 1352, + "end": 1349, "ctxt": 0 }, "value": "t", @@ -2249,7 +2249,7 @@ "type": "Identifier", "span": { "start": 1982, - "end": 1986, + "end": 1983, "ctxt": 0 }, "value": "n", @@ -2295,7 +2295,7 @@ "type": "Identifier", "span": { "start": 1988, - "end": 1992, + "end": 1989, "ctxt": 0 }, "value": "m", @@ -3230,7 +3230,7 @@ "type": "Identifier", "span": { "start": 2819, - "end": 2841, + "end": 2820, "ctxt": 0 }, "value": "f", @@ -3254,7 +3254,7 @@ "type": "Identifier", "span": { "start": 2823, - "end": 2832, + "end": 2824, "ctxt": 0 }, "value": "n", @@ -3335,7 +3335,7 @@ "type": "Identifier", "span": { "start": 2860, - "end": 2882, + "end": 2861, "ctxt": 0 }, "value": "f", @@ -3359,7 +3359,7 @@ "type": "Identifier", "span": { "start": 2864, - "end": 2873, + "end": 2865, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/overloadResolutionConstructors.json b/crates/swc_ecma_parser/tests/tsc/overloadResolutionConstructors.json index 41e7bfdc1f14..5da640d32d85 100644 --- a/crates/swc_ecma_parser/tests/tsc/overloadResolutionConstructors.json +++ b/crates/swc_ecma_parser/tests/tsc/overloadResolutionConstructors.json @@ -342,7 +342,7 @@ "type": "Identifier", "span": { "start": 249, - "end": 258, + "end": 250, "ctxt": 0 }, "value": "s", @@ -397,7 +397,7 @@ "type": "Identifier", "span": { "start": 278, - "end": 287, + "end": 279, "ctxt": 0 }, "value": "s", @@ -698,7 +698,7 @@ "type": "Identifier", "span": { "start": 618, - "end": 627, + "end": 619, "ctxt": 0 }, "value": "s", @@ -725,7 +725,7 @@ "type": "Identifier", "span": { "start": 629, - "end": 638, + "end": 630, "ctxt": 0 }, "value": "n", @@ -780,7 +780,7 @@ "type": "Identifier", "span": { "start": 661, - "end": 670, + "end": 662, "ctxt": 0 }, "value": "n", @@ -807,7 +807,7 @@ "type": "Identifier", "span": { "start": 672, - "end": 676, + "end": 673, "ctxt": 0 }, "value": "t", @@ -1387,7 +1387,7 @@ "type": "Identifier", "span": { "start": 1292, - "end": 1296, + "end": 1293, "ctxt": 0 }, "value": "n", @@ -1484,7 +1484,7 @@ "type": "Identifier", "span": { "start": 1321, - "end": 1330, + "end": 1322, "ctxt": 0 }, "value": "s", @@ -1511,7 +1511,7 @@ "type": "Identifier", "span": { "start": 1332, - "end": 1336, + "end": 1333, "ctxt": 0 }, "value": "t", @@ -1548,7 +1548,7 @@ "type": "Identifier", "span": { "start": 1338, - "end": 1342, + "end": 1339, "ctxt": 0 }, "value": "u", @@ -1678,7 +1678,7 @@ "type": "Identifier", "span": { "start": 1365, - "end": 1369, + "end": 1366, "ctxt": 0 }, "value": "v", @@ -1715,7 +1715,7 @@ "type": "Identifier", "span": { "start": 1371, - "end": 1375, + "end": 1372, "ctxt": 0 }, "value": "u", @@ -1752,7 +1752,7 @@ "type": "Identifier", "span": { "start": 1377, - "end": 1381, + "end": 1378, "ctxt": 0 }, "value": "t", @@ -2688,7 +2688,7 @@ "type": "Identifier", "span": { "start": 2051, - "end": 2055, + "end": 2052, "ctxt": 0 }, "value": "n", @@ -2725,7 +2725,7 @@ "type": "Identifier", "span": { "start": 2057, - "end": 2061, + "end": 2058, "ctxt": 0 }, "value": "m", @@ -2845,7 +2845,7 @@ "type": "Identifier", "span": { "start": 2108, - "end": 2112, + "end": 2109, "ctxt": 0 }, "value": "n", @@ -2882,7 +2882,7 @@ "type": "Identifier", "span": { "start": 2114, - "end": 2118, + "end": 2115, "ctxt": 0 }, "value": "m", @@ -3830,7 +3830,7 @@ "type": "Identifier", "span": { "start": 2908, - "end": 2930, + "end": 2909, "ctxt": 0 }, "value": "f", @@ -3854,7 +3854,7 @@ "type": "Identifier", "span": { "start": 2912, - "end": 2921, + "end": 2913, "ctxt": 0 }, "value": "n", @@ -3931,7 +3931,7 @@ "type": "Identifier", "span": { "start": 2949, - "end": 2971, + "end": 2950, "ctxt": 0 }, "value": "f", @@ -3955,7 +3955,7 @@ "type": "Identifier", "span": { "start": 2953, - "end": 2962, + "end": 2954, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/override1.json b/crates/swc_ecma_parser/tests/tsc/override1.json index c0117987621b..f8e14781cca0 100644 --- a/crates/swc_ecma_parser/tests/tsc/override1.json +++ b/crates/swc_ecma_parser/tests/tsc/override1.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 71, - "end": 80, + "end": 72, "ctxt": 0 }, "value": "v", @@ -140,7 +140,7 @@ "type": "Identifier", "span": { "start": 95, - "end": 104, + "end": 96, "ctxt": 0 }, "value": "v", @@ -250,7 +250,7 @@ "type": "Identifier", "span": { "start": 150, - "end": 159, + "end": 151, "ctxt": 0 }, "value": "v", @@ -333,7 +333,7 @@ "type": "Identifier", "span": { "start": 175, - "end": 184, + "end": 176, "ctxt": 0 }, "value": "v", @@ -416,7 +416,7 @@ "type": "Identifier", "span": { "start": 207, - "end": 216, + "end": 208, "ctxt": 0 }, "value": "v", @@ -535,7 +535,7 @@ "type": "Identifier", "span": { "start": 251, - "end": 260, + "end": 252, "ctxt": 0 }, "value": "v", @@ -670,7 +670,7 @@ "type": "Identifier", "span": { "start": 335, - "end": 344, + "end": 336, "ctxt": 0 }, "value": "v", @@ -753,7 +753,7 @@ "type": "Identifier", "span": { "start": 368, - "end": 377, + "end": 369, "ctxt": 0 }, "value": "v", @@ -836,7 +836,7 @@ "type": "Identifier", "span": { "start": 408, - "end": 417, + "end": 409, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/override19.json b/crates/swc_ecma_parser/tests/tsc/override19.json index b00f28cecf9b..39c78f7c2204 100644 --- a/crates/swc_ecma_parser/tests/tsc/override19.json +++ b/crates/swc_ecma_parser/tests/tsc/override19.json @@ -122,7 +122,7 @@ "type": "Identifier", "span": { "start": 155, - "end": 165, + "end": 162, "ctxt": 0 }, "value": "Context", @@ -168,7 +168,7 @@ "type": "Identifier", "span": { "start": 167, - "end": 174, + "end": 171, "ctxt": 0 }, "value": "Base", diff --git a/crates/swc_ecma_parser/tests/tsc/override2.json b/crates/swc_ecma_parser/tests/tsc/override2.json index c78c6c6e3821..99d070a2c86f 100644 --- a/crates/swc_ecma_parser/tests/tsc/override2.json +++ b/crates/swc_ecma_parser/tests/tsc/override2.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 89, - "end": 98, + "end": 90, "ctxt": 0 }, "value": "v", @@ -148,7 +148,7 @@ "type": "Identifier", "span": { "start": 125, - "end": 134, + "end": 126, "ctxt": 0 }, "value": "v", @@ -239,7 +239,7 @@ "type": "Identifier", "span": { "start": 160, - "end": 169, + "end": 161, "ctxt": 0 }, "value": "v", @@ -392,7 +392,7 @@ "type": "Identifier", "span": { "start": 266, - "end": 271, + "end": 267, "ctxt": 0 }, "value": "v", @@ -528,7 +528,7 @@ "type": "Identifier", "span": { "start": 349, - "end": 354, + "end": 350, "ctxt": 0 }, "value": "v", @@ -788,7 +788,7 @@ "type": "Identifier", "span": { "start": 472, - "end": 477, + "end": 473, "ctxt": 0 }, "value": "v", @@ -896,7 +896,7 @@ "type": "Identifier", "span": { "start": 505, - "end": 510, + "end": 506, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/override4.json b/crates/swc_ecma_parser/tests/tsc/override4.json index c0c7f5c1bca3..c7c7c0d9789a 100644 --- a/crates/swc_ecma_parser/tests/tsc/override4.json +++ b/crates/swc_ecma_parser/tests/tsc/override4.json @@ -291,7 +291,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 160, + "end": 152, "ctxt": 0 }, "value": "v", @@ -374,7 +374,7 @@ "type": "Identifier", "span": { "start": 175, - "end": 184, + "end": 176, "ctxt": 0 }, "value": "v", @@ -718,7 +718,7 @@ "type": "Identifier", "span": { "start": 328, - "end": 337, + "end": 329, "ctxt": 0 }, "value": "v", @@ -801,7 +801,7 @@ "type": "Identifier", "span": { "start": 353, - "end": 362, + "end": 354, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/override6.json b/crates/swc_ecma_parser/tests/tsc/override6.json index 76c3580d8a83..917a975b2e49 100644 --- a/crates/swc_ecma_parser/tests/tsc/override6.json +++ b/crates/swc_ecma_parser/tests/tsc/override6.json @@ -113,7 +113,7 @@ "type": "Identifier", "span": { "start": 113, - "end": 124, + "end": 116, "ctxt": 0 }, "value": "foo", @@ -152,7 +152,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 144, + "end": 136, "ctxt": 0 }, "value": "bar", @@ -303,7 +303,7 @@ "type": "Identifier", "span": { "start": 228, - "end": 239, + "end": 231, "ctxt": 0 }, "value": "foo", @@ -342,7 +342,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 259, + "end": 251, "ctxt": 0 }, "value": "baz", diff --git a/crates/swc_ecma_parser/tests/tsc/override8.json b/crates/swc_ecma_parser/tests/tsc/override8.json index bf75199c489c..5190c836509f 100644 --- a/crates/swc_ecma_parser/tests/tsc/override8.json +++ b/crates/swc_ecma_parser/tests/tsc/override8.json @@ -131,7 +131,7 @@ "type": "Identifier", "span": { "start": 122, - "end": 131, + "end": 123, "ctxt": 0 }, "value": "a", @@ -170,7 +170,7 @@ "type": "Identifier", "span": { "start": 140, - "end": 149, + "end": 141, "ctxt": 0 }, "value": "b", @@ -303,7 +303,7 @@ "type": "Identifier", "span": { "start": 213, - "end": 222, + "end": 214, "ctxt": 0 }, "value": "a", @@ -400,7 +400,7 @@ "type": "Identifier", "span": { "start": 281, - "end": 290, + "end": 282, "ctxt": 0 }, "value": "a", @@ -589,7 +589,7 @@ "type": "Identifier", "span": { "start": 382, - "end": 391, + "end": 383, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/overrideInterfaceProperty.json b/crates/swc_ecma_parser/tests/tsc/overrideInterfaceProperty.json index 441856ea9bf0..4c0fbba6e29a 100644 --- a/crates/swc_ecma_parser/tests/tsc/overrideInterfaceProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/overrideInterfaceProperty.json @@ -237,7 +237,7 @@ "type": "Identifier", "span": { "start": 173, - "end": 218, + "end": 180, "ctxt": 0 }, "value": "entries", diff --git a/crates/swc_ecma_parser/tests/tsc/paramTagOnCallExpression.json b/crates/swc_ecma_parser/tests/tsc/paramTagOnCallExpression.json index 8757b0f2a906..5ab01e10dfe3 100644 --- a/crates/swc_ecma_parser/tests/tsc/paramTagOnCallExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/paramTagOnCallExpression.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 104, - "end": 116, + "end": 108, "ctxt": 0 }, "value": "type", diff --git a/crates/swc_ecma_parser/tests/tsc/paramTagOnFunctionUsingArguments.json b/crates/swc_ecma_parser/tests/tsc/paramTagOnFunctionUsingArguments.json index d9d1da99c61a..fc9fc16298c9 100644 --- a/crates/swc_ecma_parser/tests/tsc/paramTagOnFunctionUsingArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/paramTagOnFunctionUsingArguments.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 133, + "end": 125, "ctxt": 0 }, "value": "type", diff --git a/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1.json b/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1.json index b0395be8e75d..062d32df596a 100644 --- a/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1.json +++ b/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1.json @@ -1180,7 +1180,7 @@ "type": "Identifier", "span": { "start": 674, - "end": 686, + "end": 678, "ctxt": 0 }, "value": "foo1", diff --git a/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1_es6.json b/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1_es6.json index c2ec559e01e5..40f6f876e871 100644 --- a/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1_es6.json @@ -1180,7 +1180,7 @@ "type": "Identifier", "span": { "start": 694, - "end": 706, + "end": 698, "ctxt": 0 }, "value": "foo1", diff --git a/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping1.json b/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping1.json index 2fad314dcee4..3b10637b9aad 100644 --- a/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping1.json +++ b/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping1.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 18, - "end": 32, + "end": 19, "ctxt": 0 }, "value": "g", @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 22, - "end": 26, + "end": 23, "ctxt": 0 }, "value": "x", @@ -134,7 +134,7 @@ "type": "Identifier", "span": { "start": 34, - "end": 38, + "end": 35, "ctxt": 0 }, "value": "x", @@ -265,7 +265,7 @@ "type": "Identifier", "span": { "start": 60, - "end": 74, + "end": 61, "ctxt": 0 }, "value": "g", @@ -289,7 +289,7 @@ "type": "Identifier", "span": { "start": 64, - "end": 68, + "end": 65, "ctxt": 0 }, "value": "x", @@ -367,7 +367,7 @@ "type": "Identifier", "span": { "start": 76, - "end": 90, + "end": 77, "ctxt": 0 }, "value": "h", @@ -391,7 +391,7 @@ "type": "Identifier", "span": { "start": 80, - "end": 84, + "end": 81, "ctxt": 0 }, "value": "y", @@ -469,7 +469,7 @@ "type": "Identifier", "span": { "start": 92, - "end": 96, + "end": 93, "ctxt": 0 }, "value": "x", @@ -600,7 +600,7 @@ "type": "Identifier", "span": { "start": 118, - "end": 132, + "end": 119, "ctxt": 0 }, "value": "g", @@ -624,7 +624,7 @@ "type": "Identifier", "span": { "start": 122, - "end": 126, + "end": 123, "ctxt": 0 }, "value": "x", @@ -702,7 +702,7 @@ "type": "Identifier", "span": { "start": 134, - "end": 138, + "end": 135, "ctxt": 0 }, "value": "x", @@ -3035,7 +3035,7 @@ "type": "Identifier", "span": { "start": 773, - "end": 782, + "end": 774, "ctxt": 0 }, "value": "x", @@ -3164,7 +3164,7 @@ "type": "Identifier", "span": { "start": 818, - "end": 827, + "end": 819, "ctxt": 0 }, "value": "x", @@ -3324,7 +3324,7 @@ "type": "Identifier", "span": { "start": 873, - "end": 882, + "end": 874, "ctxt": 0 }, "value": "p", @@ -3411,7 +3411,7 @@ "type": "Identifier", "span": { "start": 899, - "end": 908, + "end": 900, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping2.json b/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping2.json index 8d45757fb549..c6e3823f4eed 100644 --- a/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping2.json +++ b/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping2.json @@ -37,7 +37,7 @@ "type": "Identifier", "span": { "start": 376, - "end": 393, + "end": 377, "ctxt": 0 }, "value": "x", @@ -61,7 +61,7 @@ "type": "Identifier", "span": { "start": 383, - "end": 387, + "end": 384, "ctxt": 0 }, "value": "p", @@ -215,7 +215,7 @@ "type": "Identifier", "span": { "start": 425, - "end": 436, + "end": 426, "ctxt": 0 }, "value": "f", @@ -261,7 +261,7 @@ "type": "Identifier", "span": { "start": 438, - "end": 442, + "end": 439, "ctxt": 0 }, "value": "x", @@ -392,7 +392,7 @@ "type": "Identifier", "span": { "start": 464, - "end": 475, + "end": 465, "ctxt": 0 }, "value": "f", @@ -438,7 +438,7 @@ "type": "Identifier", "span": { "start": 477, - "end": 488, + "end": 478, "ctxt": 0 }, "value": "g", @@ -484,7 +484,7 @@ "type": "Identifier", "span": { "start": 490, - "end": 494, + "end": 491, "ctxt": 0 }, "value": "x", @@ -4713,7 +4713,7 @@ "type": "Identifier", "span": { "start": 1920, - "end": 1929, + "end": 1921, "ctxt": 0 }, "value": "p", @@ -4800,7 +4800,7 @@ "type": "Identifier", "span": { "start": 1946, - "end": 1955, + "end": 1947, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping3.json b/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping3.json index 96208d137f6d..3f1698ea7e44 100644 --- a/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping3.json +++ b/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping3.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 174, - "end": 204, + "end": 182, "ctxt": 0 }, "value": "tempStrs", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 206, - "end": 220, + "end": 207, "ctxt": 0 }, "value": "g", @@ -102,7 +102,7 @@ "type": "Identifier", "span": { "start": 210, - "end": 214, + "end": 211, "ctxt": 0 }, "value": "x", @@ -180,7 +180,7 @@ "type": "Identifier", "span": { "start": 222, - "end": 226, + "end": 223, "ctxt": 0 }, "value": "x", @@ -311,7 +311,7 @@ "type": "Identifier", "span": { "start": 252, - "end": 282, + "end": 260, "ctxt": 0 }, "value": "tempStrs", @@ -357,7 +357,7 @@ "type": "Identifier", "span": { "start": 284, - "end": 298, + "end": 285, "ctxt": 0 }, "value": "g", @@ -381,7 +381,7 @@ "type": "Identifier", "span": { "start": 288, - "end": 292, + "end": 289, "ctxt": 0 }, "value": "x", @@ -459,7 +459,7 @@ "type": "Identifier", "span": { "start": 300, - "end": 314, + "end": 301, "ctxt": 0 }, "value": "h", @@ -483,7 +483,7 @@ "type": "Identifier", "span": { "start": 304, - "end": 308, + "end": 305, "ctxt": 0 }, "value": "y", @@ -561,7 +561,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 320, + "end": 317, "ctxt": 0 }, "value": "x", @@ -692,7 +692,7 @@ "type": "Identifier", "span": { "start": 346, - "end": 376, + "end": 354, "ctxt": 0 }, "value": "tempStrs", @@ -738,7 +738,7 @@ "type": "Identifier", "span": { "start": 378, - "end": 392, + "end": 379, "ctxt": 0 }, "value": "g", @@ -762,7 +762,7 @@ "type": "Identifier", "span": { "start": 382, - "end": 386, + "end": 383, "ctxt": 0 }, "value": "x", @@ -840,7 +840,7 @@ "type": "Identifier", "span": { "start": 394, - "end": 398, + "end": 395, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/parenthesizedTypes.json b/crates/swc_ecma_parser/tests/tsc/parenthesizedTypes.json index 7a7cd49d8959..7c0d65bb1a7a 100644 --- a/crates/swc_ecma_parser/tests/tsc/parenthesizedTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/parenthesizedTypes.json @@ -643,7 +643,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 189, + "end": 181, "ctxt": 0 }, "value": "x", @@ -745,7 +745,7 @@ "type": "Identifier", "span": { "start": 211, - "end": 222, + "end": 212, "ctxt": 0 }, "value": "x", @@ -1186,7 +1186,7 @@ "type": "Identifier", "span": { "start": 346, - "end": 355, + "end": 347, "ctxt": 0 }, "value": "x", @@ -1249,7 +1249,7 @@ "type": "Identifier", "span": { "start": 372, - "end": 381, + "end": 373, "ctxt": 0 }, "value": "x", @@ -1379,7 +1379,7 @@ "type": "Identifier", "span": { "start": 409, - "end": 418, + "end": 410, "ctxt": 0 }, "value": "x", @@ -1444,7 +1444,7 @@ "type": "Identifier", "span": { "start": 435, - "end": 444, + "end": 436, "ctxt": 0 }, "value": "x", @@ -1585,7 +1585,7 @@ "type": "Identifier", "span": { "start": 475, - "end": 484, + "end": 476, "ctxt": 0 }, "value": "x", @@ -1648,7 +1648,7 @@ "type": "Identifier", "span": { "start": 501, - "end": 510, + "end": 502, "ctxt": 0 }, "value": "x", @@ -1790,7 +1790,7 @@ "type": "Identifier", "span": { "start": 541, - "end": 550, + "end": 542, "ctxt": 0 }, "value": "x", @@ -1855,7 +1855,7 @@ "type": "Identifier", "span": { "start": 567, - "end": 576, + "end": 568, "ctxt": 0 }, "value": "x", @@ -2005,7 +2005,7 @@ "type": "Identifier", "span": { "start": 607, - "end": 616, + "end": 608, "ctxt": 0 }, "value": "x", @@ -2070,7 +2070,7 @@ "type": "Identifier", "span": { "start": 633, - "end": 642, + "end": 634, "ctxt": 0 }, "value": "x", @@ -2394,7 +2394,7 @@ "type": "Identifier", "span": { "start": 734, - "end": 745, + "end": 740, "ctxt": 0 }, "value": "string", diff --git a/crates/swc_ecma_parser/tests/tsc/parser536727.json b/crates/swc_ecma_parser/tests/tsc/parser536727.json index d11a4a0cecca..a33a1278046f 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser536727.json +++ b/crates/swc_ecma_parser/tests/tsc/parser536727.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 14, - "end": 38, + "end": 15, "ctxt": 0 }, "value": "f", @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 18, - "end": 27, + "end": 19, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/parserArgumentList1.json b/crates/swc_ecma_parser/tests/tsc/parserArgumentList1.json index b0803d076c30..4c8fd414d3a2 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserArgumentList1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserArgumentList1.json @@ -39,7 +39,7 @@ "type": "Identifier", "span": { "start": 30, - "end": 46, + "end": 34, "ctxt": 0 }, "value": "node", @@ -85,7 +85,7 @@ "type": "Identifier", "span": { "start": 48, - "end": 64, + "end": 57, "ctxt": 0 }, "value": "className", diff --git a/crates/swc_ecma_parser/tests/tsc/parserArrowFunctionExpression6.json b/crates/swc_ecma_parser/tests/tsc/parserArrowFunctionExpression6.json index adffddec04e2..e2d82ed3e372 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserArrowFunctionExpression6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserArrowFunctionExpression6.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 14, - "end": 23, + "end": 15, "ctxt": 0 }, "value": "q", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 25, - "end": 34, + "end": 26, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/parserAstSpans1.json b/crates/swc_ecma_parser/tests/tsc/parserAstSpans1.json index 3681edec7b62..0b5b6f722674 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserAstSpans1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserAstSpans1.json @@ -3187,7 +3187,7 @@ "type": "Identifier", "span": { "start": 1801, - "end": 1810, + "end": 1802, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/parserClass1.json b/crates/swc_ecma_parser/tests/tsc/parserClass1.json index 5e3f796ede11..15c752e3538a 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClass1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClass1.json @@ -464,7 +464,7 @@ "type": "Identifier", "span": { "start": 327, - "end": 336, + "end": 328, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/parserClass2.json b/crates/swc_ecma_parser/tests/tsc/parserClass2.json index 81ca691b6b51..d293ca856d7b 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClass2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClass2.json @@ -66,7 +66,7 @@ "type": "Identifier", "span": { "start": 83, - "end": 98, + "end": 89, "ctxt": 0 }, "value": "logger", diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration17.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration17.json index 05f1d67823a9..1b59f76ebd67 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration17.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration17.json @@ -202,7 +202,7 @@ "type": "Identifier", "span": { "start": 134, - "end": 140, + "end": 135, "ctxt": 0 }, "value": "o", diff --git a/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_IncompleteMemberVariable1.json b/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_IncompleteMemberVariable1.json index 2f4856affdd0..7f9573850854 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_IncompleteMemberVariable1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_IncompleteMemberVariable1.json @@ -218,7 +218,7 @@ "type": "Identifier", "span": { "start": 223, - "end": 232, + "end": 224, "ctxt": 0 }, "value": "x", @@ -257,7 +257,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 250, + "end": 242, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_ParameterList6.json b/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_ParameterList6.json index 5859d3aae485..8cc8998ce95c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_ParameterList6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_ParameterList6.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 32, - "end": 40, + "end": 33, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/parserGenericsInTypeContexts1.json b/crates/swc_ecma_parser/tests/tsc/parserGenericsInTypeContexts1.json index a9db8324ac2b..eacb722f8b72 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserGenericsInTypeContexts1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserGenericsInTypeContexts1.json @@ -632,7 +632,7 @@ "type": "Identifier", "span": { "start": 142, - "end": 149, + "end": 143, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/parserGenericsInTypeContexts2.json b/crates/swc_ecma_parser/tests/tsc/parserGenericsInTypeContexts2.json index d99c8096b517..70360ad7c243 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserGenericsInTypeContexts2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserGenericsInTypeContexts2.json @@ -1353,7 +1353,7 @@ "type": "Identifier", "span": { "start": 226, - "end": 245, + "end": 227, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/parserInterfaceDeclaration9.json b/crates/swc_ecma_parser/tests/tsc/parserInterfaceDeclaration9.json index 8f21a2a35be7..354ce591680d 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserInterfaceDeclaration9.json +++ b/crates/swc_ecma_parser/tests/tsc/parserInterfaceDeclaration9.json @@ -96,7 +96,7 @@ "type": "Identifier", "span": { "start": 51, - "end": 64, + "end": 56, "ctxt": 0 }, "value": "value", @@ -213,7 +213,7 @@ "type": "Identifier", "span": { "start": 120, - "end": 133, + "end": 125, "ctxt": 0 }, "value": "value", @@ -330,7 +330,7 @@ "type": "Identifier", "span": { "start": 188, - "end": 201, + "end": 193, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration15.json b/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration15.json index 65e03a6a21e1..89869da76717 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration15.json +++ b/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration15.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 45, - "end": 54, + "end": 46, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/parserModule1.json b/crates/swc_ecma_parser/tests/tsc/parserModule1.json index 0207fa5bf4a1..5c21e02c5318 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserModule1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserModule1.json @@ -149,7 +149,7 @@ "type": "Identifier", "span": { "start": 138, - "end": 152, + "end": 144, "ctxt": 0 }, "value": "output", @@ -369,7 +369,7 @@ "type": "Identifier", "span": { "start": 312, - "end": 326, + "end": 318, "ctxt": 0 }, "value": "output", @@ -538,7 +538,7 @@ "type": "Identifier", "span": { "start": 474, - "end": 483, + "end": 475, "ctxt": 0 }, "value": "s", @@ -689,7 +689,7 @@ "type": "Identifier", "span": { "start": 594, - "end": 612, + "end": 603, "ctxt": 0 }, "value": "condition", @@ -725,7 +725,7 @@ "type": "Identifier", "span": { "start": 614, - "end": 623, + "end": 615, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/parserModuleDeclaration11.json b/crates/swc_ecma_parser/tests/tsc/parserModuleDeclaration11.json index 84464b977634..dd8fa990bd4b 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserModuleDeclaration11.json +++ b/crates/swc_ecma_parser/tests/tsc/parserModuleDeclaration11.json @@ -96,7 +96,7 @@ "type": "Identifier", "span": { "start": 69, - "end": 78, + "end": 70, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/parserOptionalTypeMembers1.json b/crates/swc_ecma_parser/tests/tsc/parserOptionalTypeMembers1.json index a6e10c3ff0d2..73b930da5091 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserOptionalTypeMembers1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserOptionalTypeMembers1.json @@ -263,7 +263,7 @@ "type": "Identifier", "span": { "start": 154, - "end": 160, + "end": 155, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/parserOverloadOnConstants1.json b/crates/swc_ecma_parser/tests/tsc/parserOverloadOnConstants1.json index ca2cb4ec1037..e0690392ea58 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserOverloadOnConstants1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserOverloadOnConstants1.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 40, - "end": 55, + "end": 47, "ctxt": 0 }, "value": "tagName", @@ -137,7 +137,7 @@ "type": "Identifier", "span": { "start": 89, - "end": 106, + "end": 96, "ctxt": 0 }, "value": "tagName", @@ -224,7 +224,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 160, + "end": 153, "ctxt": 0 }, "value": "tagName", @@ -311,7 +311,7 @@ "type": "Identifier", "span": { "start": 197, - "end": 212, + "end": 204, "ctxt": 0 }, "value": "tagName", diff --git a/crates/swc_ecma_parser/tests/tsc/parserParameterList6.json b/crates/swc_ecma_parser/tests/tsc/parserParameterList6.json index da52bc54781e..c2207231d6d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserParameterList6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserParameterList6.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 25, - "end": 45, + "end": 26, "ctxt": 0 }, "value": "C", diff --git a/crates/swc_ecma_parser/tests/tsc/parserParameterList7.json b/crates/swc_ecma_parser/tests/tsc/parserParameterList7.json index 8bf2f255958b..d900d7a08846 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserParameterList7.json +++ b/crates/swc_ecma_parser/tests/tsc/parserParameterList7.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 32, - "end": 41, + "end": 34, "ctxt": 0 }, "value": "p1", @@ -121,7 +121,7 @@ "type": "Identifier", "span": { "start": 74, - "end": 83, + "end": 76, "ctxt": 0 }, "value": "p2", @@ -183,7 +183,7 @@ "type": "Identifier", "span": { "start": 115, - "end": 121, + "end": 117, "ctxt": 0 }, "value": "p3", diff --git a/crates/swc_ecma_parser/tests/tsc/parserParameterList8.json b/crates/swc_ecma_parser/tests/tsc/parserParameterList8.json index 48fbaa3d84e0..928bc1d81c30 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserParameterList8.json +++ b/crates/swc_ecma_parser/tests/tsc/parserParameterList8.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 40, - "end": 49, + "end": 42, "ctxt": 0 }, "value": "p1", @@ -121,7 +121,7 @@ "type": "Identifier", "span": { "start": 82, - "end": 91, + "end": 84, "ctxt": 0 }, "value": "p2", @@ -183,7 +183,7 @@ "type": "Identifier", "span": { "start": 123, - "end": 129, + "end": 125, "ctxt": 0 }, "value": "p3", diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource1.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource1.json index ad08740d4dbf..8db66bd510ac 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource1.json @@ -176,7 +176,7 @@ "type": "Identifier", "span": { "start": 369, - "end": 383, + "end": 375, "ctxt": 0 }, "value": "output", @@ -396,7 +396,7 @@ "type": "Identifier", "span": { "start": 543, - "end": 557, + "end": 549, "ctxt": 0 }, "value": "output", @@ -565,7 +565,7 @@ "type": "Identifier", "span": { "start": 705, - "end": 714, + "end": 706, "ctxt": 0 }, "value": "s", @@ -716,7 +716,7 @@ "type": "Identifier", "span": { "start": 825, - "end": 843, + "end": 834, "ctxt": 0 }, "value": "condition", @@ -752,7 +752,7 @@ "type": "Identifier", "span": { "start": 845, - "end": 854, + "end": 846, "ctxt": 0 }, "value": "s", @@ -1172,7 +1172,7 @@ "type": "Identifier", "span": { "start": 1178, - "end": 1187, + "end": 1179, "ctxt": 0 }, "value": "s", @@ -1677,7 +1677,7 @@ "type": "Identifier", "span": { "start": 1529, - "end": 1538, + "end": 1530, "ctxt": 0 }, "value": "s", @@ -2058,7 +2058,7 @@ "type": "Identifier", "span": { "start": 1819, - "end": 1834, + "end": 1825, "ctxt": 0 }, "value": "logger", @@ -3107,7 +3107,7 @@ "type": "Identifier", "span": { "start": 2417, - "end": 2426, + "end": 2418, "ctxt": 0 }, "value": "s", @@ -3775,7 +3775,7 @@ "type": "Identifier", "span": { "start": 2849, - "end": 2858, + "end": 2850, "ctxt": 0 }, "value": "s", @@ -3981,7 +3981,7 @@ "type": "Identifier", "span": { "start": 2956, - "end": 2971, + "end": 2962, "ctxt": 0 }, "value": "logger", @@ -4027,7 +4027,7 @@ "type": "Identifier", "span": { "start": 2973, - "end": 2996, + "end": 2988, "ctxt": 0 }, "value": "funcDescription", @@ -4063,7 +4063,7 @@ "type": "Identifier", "span": { "start": 2998, - "end": 3012, + "end": 3002, "ctxt": 0 }, "value": "func", @@ -4513,7 +4513,7 @@ "type": "Identifier", "span": { "start": 3262, - "end": 3275, + "end": 3267, "ctxt": 0 }, "value": "value", @@ -4549,7 +4549,7 @@ "type": "Identifier", "span": { "start": 3277, - "end": 3291, + "end": 3283, "ctxt": 0 }, "value": "length", diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource12.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource12.json index 36cdf5c34ff0..401737e0a8c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource12.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource12.json @@ -93,7 +93,7 @@ "type": "Identifier", "span": { "start": 279, - "end": 287, + "end": 282, "ctxt": 0 }, "value": "ast", @@ -130,7 +130,7 @@ "type": "Identifier", "span": { "start": 289, - "end": 300, + "end": 295, "ctxt": 0 }, "value": "parent", @@ -465,7 +465,7 @@ "type": "Identifier", "span": { "start": 604, - "end": 616, + "end": 608, "ctxt": 0 }, "value": "stop", @@ -707,7 +707,7 @@ "type": "Identifier", "span": { "start": 770, - "end": 778, + "end": 773, "ctxt": 0 }, "value": "ast", @@ -744,7 +744,7 @@ "type": "Identifier", "span": { "start": 780, - "end": 791, + "end": 786, "ctxt": 0 }, "value": "parent", @@ -781,7 +781,7 @@ "type": "Identifier", "span": { "start": 793, - "end": 811, + "end": 799, "ctxt": 0 }, "value": "walker", @@ -895,7 +895,7 @@ "type": "Identifier", "span": { "start": 875, - "end": 886, + "end": 881, "ctxt": 0 }, "value": "preAst", @@ -932,7 +932,7 @@ "type": "Identifier", "span": { "start": 888, - "end": 899, + "end": 894, "ctxt": 0 }, "value": "parent", @@ -969,7 +969,7 @@ "type": "Identifier", "span": { "start": 901, - "end": 919, + "end": 907, "ctxt": 0 }, "value": "walker", @@ -1079,7 +1079,7 @@ "type": "Identifier", "span": { "start": 1021, - "end": 1056, + "end": 1036, "ctxt": 0 }, "value": "childrenWalkers", @@ -1136,7 +1136,7 @@ "type": "Identifier", "span": { "start": 1078, - "end": 1099, + "end": 1081, "ctxt": 0 }, "value": "pre", @@ -1185,7 +1185,7 @@ "type": "Identifier", "span": { "start": 1121, - "end": 1143, + "end": 1125, "ctxt": 0 }, "value": "post", @@ -1234,7 +1234,7 @@ "type": "Identifier", "span": { "start": 1164, - "end": 1187, + "end": 1171, "ctxt": 0 }, "value": "options", @@ -1283,7 +1283,7 @@ "type": "Identifier", "span": { "start": 1208, - "end": 1218, + "end": 1213, "ctxt": 0 }, "value": "state", @@ -1351,7 +1351,7 @@ "type": "Identifier", "span": { "start": 1253, - "end": 1261, + "end": 1256, "ctxt": 0 }, "value": "ast", @@ -1397,7 +1397,7 @@ "type": "Identifier", "span": { "start": 1263, - "end": 1274, + "end": 1269, "ctxt": 0 }, "value": "parent", @@ -2676,7 +2676,7 @@ "type": "Identifier", "span": { "start": 2454, - "end": 2462, + "end": 2457, "ctxt": 0 }, "value": "ast", @@ -2722,7 +2722,7 @@ "type": "Identifier", "span": { "start": 2464, - "end": 2485, + "end": 2467, "ctxt": 0 }, "value": "pre", @@ -2768,7 +2768,7 @@ "type": "Identifier", "span": { "start": 2487, - "end": 2510, + "end": 2491, "ctxt": 0 }, "value": "post", @@ -2814,7 +2814,7 @@ "type": "Identifier", "span": { "start": 2512, - "end": 2536, + "end": 2519, "ctxt": 0 }, "value": "options", @@ -2860,7 +2860,7 @@ "type": "Identifier", "span": { "start": 2538, - "end": 2549, + "end": 2543, "ctxt": 0 }, "value": "state", @@ -3120,7 +3120,7 @@ "type": "Identifier", "span": { "start": 2671, - "end": 2692, + "end": 2674, "ctxt": 0 }, "value": "pre", @@ -3166,7 +3166,7 @@ "type": "Identifier", "span": { "start": 2694, - "end": 2717, + "end": 2698, "ctxt": 0 }, "value": "post", @@ -3212,7 +3212,7 @@ "type": "Identifier", "span": { "start": 2719, - "end": 2743, + "end": 2726, "ctxt": 0 }, "value": "options", @@ -3258,7 +3258,7 @@ "type": "Identifier", "span": { "start": 2745, - "end": 2756, + "end": 2750, "ctxt": 0 }, "value": "state", @@ -3465,7 +3465,7 @@ "type": "Identifier", "span": { "start": 2879, - "end": 2900, + "end": 2882, "ctxt": 0 }, "value": "pre", @@ -3511,7 +3511,7 @@ "type": "Identifier", "span": { "start": 2902, - "end": 2925, + "end": 2906, "ctxt": 0 }, "value": "post", @@ -3557,7 +3557,7 @@ "type": "Identifier", "span": { "start": 2927, - "end": 2951, + "end": 2934, "ctxt": 0 }, "value": "options", @@ -3603,7 +3603,7 @@ "type": "Identifier", "span": { "start": 2953, - "end": 2964, + "end": 2958, "ctxt": 0 }, "value": "state", @@ -16807,7 +16807,7 @@ "type": "Identifier", "span": { "start": 13744, - "end": 13759, + "end": 13750, "ctxt": 0 }, "value": "preAst", @@ -16853,7 +16853,7 @@ "type": "Identifier", "span": { "start": 13761, - "end": 13772, + "end": 13767, "ctxt": 0 }, "value": "parent", @@ -16899,7 +16899,7 @@ "type": "Identifier", "span": { "start": 13774, - "end": 13792, + "end": 13780, "ctxt": 0 }, "value": "walker", @@ -17004,7 +17004,7 @@ "type": "Identifier", "span": { "start": 13883, - "end": 13898, + "end": 13889, "ctxt": 0 }, "value": "preAst", @@ -17050,7 +17050,7 @@ "type": "Identifier", "span": { "start": 13900, - "end": 13911, + "end": 13906, "ctxt": 0 }, "value": "parent", @@ -17096,7 +17096,7 @@ "type": "Identifier", "span": { "start": 13913, - "end": 13931, + "end": 13919, "ctxt": 0 }, "value": "walker", @@ -18081,7 +18081,7 @@ "type": "Identifier", "span": { "start": 14607, - "end": 14630, + "end": 14613, "ctxt": 0 }, "value": "preAst", @@ -18127,7 +18127,7 @@ "type": "Identifier", "span": { "start": 14632, - "end": 14643, + "end": 14638, "ctxt": 0 }, "value": "parent", @@ -18173,7 +18173,7 @@ "type": "Identifier", "span": { "start": 14645, - "end": 14663, + "end": 14651, "ctxt": 0 }, "value": "walker", @@ -18629,7 +18629,7 @@ "type": "Identifier", "span": { "start": 14976, - "end": 15000, + "end": 14982, "ctxt": 0 }, "value": "preAst", @@ -18675,7 +18675,7 @@ "type": "Identifier", "span": { "start": 15002, - "end": 15013, + "end": 15008, "ctxt": 0 }, "value": "parent", @@ -18721,7 +18721,7 @@ "type": "Identifier", "span": { "start": 15015, - "end": 15033, + "end": 15021, "ctxt": 0 }, "value": "walker", @@ -19743,7 +19743,7 @@ "type": "Identifier", "span": { "start": 15793, - "end": 15814, + "end": 15799, "ctxt": 0 }, "value": "preAst", @@ -19789,7 +19789,7 @@ "type": "Identifier", "span": { "start": 15816, - "end": 15827, + "end": 15822, "ctxt": 0 }, "value": "parent", @@ -19835,7 +19835,7 @@ "type": "Identifier", "span": { "start": 15829, - "end": 15847, + "end": 15835, "ctxt": 0 }, "value": "walker", @@ -20116,7 +20116,7 @@ "type": "Identifier", "span": { "start": 16028, - "end": 16050, + "end": 16034, "ctxt": 0 }, "value": "preAst", @@ -20162,7 +20162,7 @@ "type": "Identifier", "span": { "start": 16052, - "end": 16063, + "end": 16058, "ctxt": 0 }, "value": "parent", @@ -20208,7 +20208,7 @@ "type": "Identifier", "span": { "start": 16065, - "end": 16083, + "end": 16071, "ctxt": 0 }, "value": "walker", @@ -21045,7 +21045,7 @@ "type": "Identifier", "span": { "start": 16627, - "end": 16656, + "end": 16633, "ctxt": 0 }, "value": "preAst", @@ -21091,7 +21091,7 @@ "type": "Identifier", "span": { "start": 16658, - "end": 16669, + "end": 16664, "ctxt": 0 }, "value": "parent", @@ -21137,7 +21137,7 @@ "type": "Identifier", "span": { "start": 16671, - "end": 16689, + "end": 16677, "ctxt": 0 }, "value": "walker", @@ -21894,7 +21894,7 @@ "type": "Identifier", "span": { "start": 17186, - "end": 17202, + "end": 17192, "ctxt": 0 }, "value": "preAst", @@ -21940,7 +21940,7 @@ "type": "Identifier", "span": { "start": 17204, - "end": 17215, + "end": 17210, "ctxt": 0 }, "value": "parent", @@ -21986,7 +21986,7 @@ "type": "Identifier", "span": { "start": 17217, - "end": 17235, + "end": 17223, "ctxt": 0 }, "value": "walker", @@ -23262,7 +23262,7 @@ "type": "Identifier", "span": { "start": 18006, - "end": 18023, + "end": 18012, "ctxt": 0 }, "value": "preAst", @@ -23308,7 +23308,7 @@ "type": "Identifier", "span": { "start": 18025, - "end": 18036, + "end": 18031, "ctxt": 0 }, "value": "parent", @@ -23354,7 +23354,7 @@ "type": "Identifier", "span": { "start": 18038, - "end": 18056, + "end": 18044, "ctxt": 0 }, "value": "walker", @@ -24083,7 +24083,7 @@ "type": "Identifier", "span": { "start": 18510, - "end": 18533, + "end": 18516, "ctxt": 0 }, "value": "preAst", @@ -24129,7 +24129,7 @@ "type": "Identifier", "span": { "start": 18535, - "end": 18546, + "end": 18541, "ctxt": 0 }, "value": "parent", @@ -24175,7 +24175,7 @@ "type": "Identifier", "span": { "start": 18548, - "end": 18566, + "end": 18554, "ctxt": 0 }, "value": "walker", @@ -24456,7 +24456,7 @@ "type": "Identifier", "span": { "start": 18781, - "end": 18801, + "end": 18787, "ctxt": 0 }, "value": "preAst", @@ -24502,7 +24502,7 @@ "type": "Identifier", "span": { "start": 18803, - "end": 18814, + "end": 18809, "ctxt": 0 }, "value": "parent", @@ -24548,7 +24548,7 @@ "type": "Identifier", "span": { "start": 18816, - "end": 18834, + "end": 18822, "ctxt": 0 }, "value": "walker", @@ -25519,7 +25519,7 @@ "type": "Identifier", "span": { "start": 19441, - "end": 19463, + "end": 19447, "ctxt": 0 }, "value": "preAst", @@ -25565,7 +25565,7 @@ "type": "Identifier", "span": { "start": 19465, - "end": 19476, + "end": 19471, "ctxt": 0 }, "value": "parent", @@ -25611,7 +25611,7 @@ "type": "Identifier", "span": { "start": 19478, - "end": 19496, + "end": 19484, "ctxt": 0 }, "value": "walker", @@ -26276,7 +26276,7 @@ "type": "Identifier", "span": { "start": 19892, - "end": 19911, + "end": 19898, "ctxt": 0 }, "value": "preAst", @@ -26322,7 +26322,7 @@ "type": "Identifier", "span": { "start": 19913, - "end": 19924, + "end": 19919, "ctxt": 0 }, "value": "parent", @@ -26368,7 +26368,7 @@ "type": "Identifier", "span": { "start": 19926, - "end": 19944, + "end": 19932, "ctxt": 0 }, "value": "walker", @@ -27078,7 +27078,7 @@ "type": "Identifier", "span": { "start": 20380, - "end": 20402, + "end": 20386, "ctxt": 0 }, "value": "preAst", @@ -27124,7 +27124,7 @@ "type": "Identifier", "span": { "start": 20404, - "end": 20415, + "end": 20410, "ctxt": 0 }, "value": "parent", @@ -27170,7 +27170,7 @@ "type": "Identifier", "span": { "start": 20417, - "end": 20435, + "end": 20423, "ctxt": 0 }, "value": "walker", @@ -27642,7 +27642,7 @@ "type": "Identifier", "span": { "start": 20712, - "end": 20736, + "end": 20718, "ctxt": 0 }, "value": "preAst", @@ -27688,7 +27688,7 @@ "type": "Identifier", "span": { "start": 20738, - "end": 20749, + "end": 20744, "ctxt": 0 }, "value": "parent", @@ -27734,7 +27734,7 @@ "type": "Identifier", "span": { "start": 20751, - "end": 20769, + "end": 20757, "ctxt": 0 }, "value": "walker", @@ -28206,7 +28206,7 @@ "type": "Identifier", "span": { "start": 21035, - "end": 21048, + "end": 21041, "ctxt": 0 }, "value": "preAst", @@ -28252,7 +28252,7 @@ "type": "Identifier", "span": { "start": 21050, - "end": 21061, + "end": 21056, "ctxt": 0 }, "value": "parent", @@ -28298,7 +28298,7 @@ "type": "Identifier", "span": { "start": 21063, - "end": 21081, + "end": 21069, "ctxt": 0 }, "value": "walker", @@ -28606,7 +28606,7 @@ "type": "Identifier", "span": { "start": 21288, - "end": 21309, + "end": 21294, "ctxt": 0 }, "value": "preAst", @@ -28652,7 +28652,7 @@ "type": "Identifier", "span": { "start": 21311, - "end": 21322, + "end": 21317, "ctxt": 0 }, "value": "parent", @@ -28698,7 +28698,7 @@ "type": "Identifier", "span": { "start": 21324, - "end": 21342, + "end": 21330, "ctxt": 0 }, "value": "walker", @@ -29236,7 +29236,7 @@ "type": "Identifier", "span": { "start": 21675, - "end": 21698, + "end": 21681, "ctxt": 0 }, "value": "preAst", @@ -29282,7 +29282,7 @@ "type": "Identifier", "span": { "start": 21700, - "end": 21711, + "end": 21706, "ctxt": 0 }, "value": "parent", @@ -29328,7 +29328,7 @@ "type": "Identifier", "span": { "start": 21713, - "end": 21731, + "end": 21719, "ctxt": 0 }, "value": "walker", @@ -29874,7 +29874,7 @@ "type": "Identifier", "span": { "start": 22063, - "end": 22074, + "end": 22069, "ctxt": 0 }, "value": "preAst", @@ -29920,7 +29920,7 @@ "type": "Identifier", "span": { "start": 22076, - "end": 22087, + "end": 22082, "ctxt": 0 }, "value": "parent", @@ -29966,7 +29966,7 @@ "type": "Identifier", "span": { "start": 22089, - "end": 22107, + "end": 22095, "ctxt": 0 }, "value": "walker", @@ -30247,7 +30247,7 @@ "type": "Identifier", "span": { "start": 22282, - "end": 22298, + "end": 22288, "ctxt": 0 }, "value": "preAst", @@ -30293,7 +30293,7 @@ "type": "Identifier", "span": { "start": 22300, - "end": 22311, + "end": 22306, "ctxt": 0 }, "value": "parent", @@ -30339,7 +30339,7 @@ "type": "Identifier", "span": { "start": 22313, - "end": 22331, + "end": 22319, "ctxt": 0 }, "value": "walker", @@ -30912,7 +30912,7 @@ "type": "Identifier", "span": { "start": 22688, - "end": 22706, + "end": 22694, "ctxt": 0 }, "value": "preAst", @@ -30958,7 +30958,7 @@ "type": "Identifier", "span": { "start": 22708, - "end": 22719, + "end": 22714, "ctxt": 0 }, "value": "parent", @@ -31004,7 +31004,7 @@ "type": "Identifier", "span": { "start": 22721, - "end": 22739, + "end": 22727, "ctxt": 0 }, "value": "walker", @@ -31542,7 +31542,7 @@ "type": "Identifier", "span": { "start": 23094, - "end": 23109, + "end": 23100, "ctxt": 0 }, "value": "preAst", @@ -31588,7 +31588,7 @@ "type": "Identifier", "span": { "start": 23111, - "end": 23122, + "end": 23117, "ctxt": 0 }, "value": "parent", @@ -31634,7 +31634,7 @@ "type": "Identifier", "span": { "start": 23124, - "end": 23142, + "end": 23130, "ctxt": 0 }, "value": "walker", @@ -31915,7 +31915,7 @@ "type": "Identifier", "span": { "start": 23314, - "end": 23327, + "end": 23320, "ctxt": 0 }, "value": "preAst", @@ -31961,7 +31961,7 @@ "type": "Identifier", "span": { "start": 23329, - "end": 23340, + "end": 23335, "ctxt": 0 }, "value": "parent", @@ -32007,7 +32007,7 @@ "type": "Identifier", "span": { "start": 23342, - "end": 23360, + "end": 23348, "ctxt": 0 }, "value": "walker", @@ -32553,7 +32553,7 @@ "type": "Identifier", "span": { "start": 23689, - "end": 23713, + "end": 23695, "ctxt": 0 }, "value": "preAst", @@ -32599,7 +32599,7 @@ "type": "Identifier", "span": { "start": 23715, - "end": 23726, + "end": 23721, "ctxt": 0 }, "value": "parent", @@ -32645,7 +32645,7 @@ "type": "Identifier", "span": { "start": 23728, - "end": 23746, + "end": 23734, "ctxt": 0 }, "value": "walker", @@ -33163,7 +33163,7 @@ "type": "Identifier", "span": { "start": 24045, - "end": 24068, + "end": 24051, "ctxt": 0 }, "value": "preAst", @@ -33209,7 +33209,7 @@ "type": "Identifier", "span": { "start": 24070, - "end": 24081, + "end": 24076, "ctxt": 0 }, "value": "parent", @@ -33255,7 +33255,7 @@ "type": "Identifier", "span": { "start": 24083, - "end": 24101, + "end": 24089, "ctxt": 0 }, "value": "walker", @@ -33429,7 +33429,7 @@ "type": "Identifier", "span": { "start": 24224, - "end": 24248, + "end": 24230, "ctxt": 0 }, "value": "preAst", @@ -33475,7 +33475,7 @@ "type": "Identifier", "span": { "start": 24250, - "end": 24261, + "end": 24256, "ctxt": 0 }, "value": "parent", @@ -33521,7 +33521,7 @@ "type": "Identifier", "span": { "start": 24263, - "end": 24281, + "end": 24269, "ctxt": 0 }, "value": "walker", @@ -34209,7 +34209,7 @@ "type": "Identifier", "span": { "start": 24757, - "end": 24771, + "end": 24763, "ctxt": 0 }, "value": "preAst", @@ -34255,7 +34255,7 @@ "type": "Identifier", "span": { "start": 24773, - "end": 24784, + "end": 24779, "ctxt": 0 }, "value": "parent", @@ -34301,7 +34301,7 @@ "type": "Identifier", "span": { "start": 24786, - "end": 24804, + "end": 24792, "ctxt": 0 }, "value": "walker", @@ -34609,7 +34609,7 @@ "type": "Identifier", "span": { "start": 24985, - "end": 25013, + "end": 24991, "ctxt": 0 }, "value": "preAst", @@ -34655,7 +34655,7 @@ "type": "Identifier", "span": { "start": 25015, - "end": 25026, + "end": 25021, "ctxt": 0 }, "value": "parent", @@ -34701,7 +34701,7 @@ "type": "Identifier", "span": { "start": 25028, - "end": 25046, + "end": 25034, "ctxt": 0 }, "value": "walker", @@ -35389,7 +35389,7 @@ "type": "Identifier", "span": { "start": 25577, - "end": 25602, + "end": 25583, "ctxt": 0 }, "value": "preAst", @@ -35435,7 +35435,7 @@ "type": "Identifier", "span": { "start": 25604, - "end": 25615, + "end": 25610, "ctxt": 0 }, "value": "parent", @@ -35481,7 +35481,7 @@ "type": "Identifier", "span": { "start": 25617, - "end": 25635, + "end": 25623, "ctxt": 0 }, "value": "walker", @@ -35655,7 +35655,7 @@ "type": "Identifier", "span": { "start": 25759, - "end": 25784, + "end": 25765, "ctxt": 0 }, "value": "preAst", @@ -35701,7 +35701,7 @@ "type": "Identifier", "span": { "start": 25786, - "end": 25797, + "end": 25792, "ctxt": 0 }, "value": "parent", @@ -35747,7 +35747,7 @@ "type": "Identifier", "span": { "start": 25799, - "end": 25817, + "end": 25805, "ctxt": 0 }, "value": "walker", @@ -36230,7 +36230,7 @@ "type": "Identifier", "span": { "start": 26115, - "end": 26136, + "end": 26121, "ctxt": 0 }, "value": "preAst", @@ -36276,7 +36276,7 @@ "type": "Identifier", "span": { "start": 26138, - "end": 26149, + "end": 26144, "ctxt": 0 }, "value": "parent", @@ -36322,7 +36322,7 @@ "type": "Identifier", "span": { "start": 26151, - "end": 26169, + "end": 26157, "ctxt": 0 }, "value": "walker", @@ -36833,7 +36833,7 @@ "type": "Identifier", "span": { "start": 26483, - "end": 26496, + "end": 26489, "ctxt": 0 }, "value": "preAst", @@ -36879,7 +36879,7 @@ "type": "Identifier", "span": { "start": 26498, - "end": 26509, + "end": 26504, "ctxt": 0 }, "value": "parent", @@ -36925,7 +36925,7 @@ "type": "Identifier", "span": { "start": 26511, - "end": 26529, + "end": 26517, "ctxt": 0 }, "value": "walker", @@ -37030,7 +37030,7 @@ "type": "Identifier", "span": { "start": 26634, - "end": 26658, + "end": 26640, "ctxt": 0 }, "value": "preAst", @@ -37076,7 +37076,7 @@ "type": "Identifier", "span": { "start": 26660, - "end": 26671, + "end": 26666, "ctxt": 0 }, "value": "parent", @@ -37122,7 +37122,7 @@ "type": "Identifier", "span": { "start": 26673, - "end": 26691, + "end": 26679, "ctxt": 0 }, "value": "walker", diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource13.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource13.json index 88e4f9fc78b6..45d1c11613be 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource13.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource13.json @@ -123,7 +123,7 @@ "type": "Identifier", "span": { "start": 336, - "end": 344, + "end": 339, "ctxt": 0 }, "value": "ast", @@ -212,7 +212,7 @@ "type": "Identifier", "span": { "start": 389, - "end": 397, + "end": 392, "ctxt": 0 }, "value": "ast", @@ -301,7 +301,7 @@ "type": "Identifier", "span": { "start": 437, - "end": 445, + "end": 440, "ctxt": 0 }, "value": "ast", @@ -390,7 +390,7 @@ "type": "Identifier", "span": { "start": 486, - "end": 494, + "end": 489, "ctxt": 0 }, "value": "ast", @@ -479,7 +479,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 542, + "end": 537, "ctxt": 0 }, "value": "ast", @@ -568,7 +568,7 @@ "type": "Identifier", "span": { "start": 583, - "end": 591, + "end": 586, "ctxt": 0 }, "value": "ast", @@ -657,7 +657,7 @@ "type": "Identifier", "span": { "start": 634, - "end": 642, + "end": 637, "ctxt": 0 }, "value": "ast", @@ -746,7 +746,7 @@ "type": "Identifier", "span": { "start": 683, - "end": 691, + "end": 686, "ctxt": 0 }, "value": "ast", @@ -835,7 +835,7 @@ "type": "Identifier", "span": { "start": 731, - "end": 739, + "end": 734, "ctxt": 0 }, "value": "ast", @@ -924,7 +924,7 @@ "type": "Identifier", "span": { "start": 783, - "end": 791, + "end": 786, "ctxt": 0 }, "value": "ast", @@ -1013,7 +1013,7 @@ "type": "Identifier", "span": { "start": 836, - "end": 844, + "end": 839, "ctxt": 0 }, "value": "ast", @@ -1102,7 +1102,7 @@ "type": "Identifier", "span": { "start": 884, - "end": 892, + "end": 887, "ctxt": 0 }, "value": "ast", @@ -1191,7 +1191,7 @@ "type": "Identifier", "span": { "start": 933, - "end": 941, + "end": 936, "ctxt": 0 }, "value": "ast", @@ -1280,7 +1280,7 @@ "type": "Identifier", "span": { "start": 980, - "end": 988, + "end": 983, "ctxt": 0 }, "value": "ast", @@ -1369,7 +1369,7 @@ "type": "Identifier", "span": { "start": 1027, - "end": 1035, + "end": 1030, "ctxt": 0 }, "value": "ast", @@ -1458,7 +1458,7 @@ "type": "Identifier", "span": { "start": 1077, - "end": 1085, + "end": 1080, "ctxt": 0 }, "value": "ast", @@ -1547,7 +1547,7 @@ "type": "Identifier", "span": { "start": 1126, - "end": 1134, + "end": 1129, "ctxt": 0 }, "value": "ast", @@ -1636,7 +1636,7 @@ "type": "Identifier", "span": { "start": 1172, - "end": 1180, + "end": 1175, "ctxt": 0 }, "value": "ast", @@ -1725,7 +1725,7 @@ "type": "Identifier", "span": { "start": 1219, - "end": 1227, + "end": 1222, "ctxt": 0 }, "value": "ast", @@ -1814,7 +1814,7 @@ "type": "Identifier", "span": { "start": 1267, - "end": 1275, + "end": 1270, "ctxt": 0 }, "value": "ast", @@ -1903,7 +1903,7 @@ "type": "Identifier", "span": { "start": 1313, - "end": 1321, + "end": 1316, "ctxt": 0 }, "value": "ast", @@ -1992,7 +1992,7 @@ "type": "Identifier", "span": { "start": 1363, - "end": 1371, + "end": 1366, "ctxt": 0 }, "value": "ast", @@ -2081,7 +2081,7 @@ "type": "Identifier", "span": { "start": 1413, - "end": 1421, + "end": 1416, "ctxt": 0 }, "value": "ast", @@ -2170,7 +2170,7 @@ "type": "Identifier", "span": { "start": 1466, - "end": 1474, + "end": 1469, "ctxt": 0 }, "value": "ast", @@ -2259,7 +2259,7 @@ "type": "Identifier", "span": { "start": 1514, - "end": 1539, + "end": 1527, "ctxt": 0 }, "value": "identifierAst", @@ -2348,7 +2348,7 @@ "type": "Identifier", "span": { "start": 1582, - "end": 1590, + "end": 1585, "ctxt": 0 }, "value": "ast", @@ -2437,7 +2437,7 @@ "type": "Identifier", "span": { "start": 1631, - "end": 1639, + "end": 1634, "ctxt": 0 }, "value": "ast", @@ -2526,7 +2526,7 @@ "type": "Identifier", "span": { "start": 1679, - "end": 1687, + "end": 1682, "ctxt": 0 }, "value": "ast", @@ -2615,7 +2615,7 @@ "type": "Identifier", "span": { "start": 1726, - "end": 1734, + "end": 1729, "ctxt": 0 }, "value": "ast", @@ -2704,7 +2704,7 @@ "type": "Identifier", "span": { "start": 1773, - "end": 1781, + "end": 1776, "ctxt": 0 }, "value": "ast", @@ -2793,7 +2793,7 @@ "type": "Identifier", "span": { "start": 1823, - "end": 1831, + "end": 1826, "ctxt": 0 }, "value": "ast", @@ -2882,7 +2882,7 @@ "type": "Identifier", "span": { "start": 1873, - "end": 1881, + "end": 1876, "ctxt": 0 }, "value": "ast", @@ -2971,7 +2971,7 @@ "type": "Identifier", "span": { "start": 1923, - "end": 1931, + "end": 1926, "ctxt": 0 }, "value": "ast", @@ -3060,7 +3060,7 @@ "type": "Identifier", "span": { "start": 1973, - "end": 1981, + "end": 1976, "ctxt": 0 }, "value": "ast", @@ -3149,7 +3149,7 @@ "type": "Identifier", "span": { "start": 2023, - "end": 2031, + "end": 2026, "ctxt": 0 }, "value": "ast", @@ -3238,7 +3238,7 @@ "type": "Identifier", "span": { "start": 2073, - "end": 2081, + "end": 2076, "ctxt": 0 }, "value": "ast", @@ -3327,7 +3327,7 @@ "type": "Identifier", "span": { "start": 2123, - "end": 2131, + "end": 2126, "ctxt": 0 }, "value": "ast", @@ -3416,7 +3416,7 @@ "type": "Identifier", "span": { "start": 2172, - "end": 2180, + "end": 2175, "ctxt": 0 }, "value": "ast", @@ -3505,7 +3505,7 @@ "type": "Identifier", "span": { "start": 2222, - "end": 2230, + "end": 2225, "ctxt": 0 }, "value": "ast", @@ -3594,7 +3594,7 @@ "type": "Identifier", "span": { "start": 2272, - "end": 2280, + "end": 2275, "ctxt": 0 }, "value": "ast", @@ -3683,7 +3683,7 @@ "type": "Identifier", "span": { "start": 2322, - "end": 2330, + "end": 2325, "ctxt": 0 }, "value": "ast", @@ -3772,7 +3772,7 @@ "type": "Identifier", "span": { "start": 2371, - "end": 2379, + "end": 2374, "ctxt": 0 }, "value": "ast", @@ -3861,7 +3861,7 @@ "type": "Identifier", "span": { "start": 2420, - "end": 2428, + "end": 2423, "ctxt": 0 }, "value": "ast", @@ -3950,7 +3950,7 @@ "type": "Identifier", "span": { "start": 2470, - "end": 2478, + "end": 2473, "ctxt": 0 }, "value": "ast", @@ -4039,7 +4039,7 @@ "type": "Identifier", "span": { "start": 2516, - "end": 2524, + "end": 2519, "ctxt": 0 }, "value": "ast", @@ -4128,7 +4128,7 @@ "type": "Identifier", "span": { "start": 2563, - "end": 2571, + "end": 2566, "ctxt": 0 }, "value": "ast", @@ -4217,7 +4217,7 @@ "type": "Identifier", "span": { "start": 2610, - "end": 2618, + "end": 2613, "ctxt": 0 }, "value": "ast", @@ -4306,7 +4306,7 @@ "type": "Identifier", "span": { "start": 2656, - "end": 2664, + "end": 2659, "ctxt": 0 }, "value": "ast", @@ -4395,7 +4395,7 @@ "type": "Identifier", "span": { "start": 2702, - "end": 2710, + "end": 2705, "ctxt": 0 }, "value": "ast", @@ -4484,7 +4484,7 @@ "type": "Identifier", "span": { "start": 2749, - "end": 2757, + "end": 2752, "ctxt": 0 }, "value": "ast", @@ -4573,7 +4573,7 @@ "type": "Identifier", "span": { "start": 2797, - "end": 2805, + "end": 2800, "ctxt": 0 }, "value": "ast", @@ -4662,7 +4662,7 @@ "type": "Identifier", "span": { "start": 2843, - "end": 2851, + "end": 2846, "ctxt": 0 }, "value": "ast", @@ -4751,7 +4751,7 @@ "type": "Identifier", "span": { "start": 2889, - "end": 2897, + "end": 2892, "ctxt": 0 }, "value": "ast", @@ -4840,7 +4840,7 @@ "type": "Identifier", "span": { "start": 2935, - "end": 2943, + "end": 2938, "ctxt": 0 }, "value": "ast", @@ -4929,7 +4929,7 @@ "type": "Identifier", "span": { "start": 2981, - "end": 2989, + "end": 2984, "ctxt": 0 }, "value": "ast", @@ -5018,7 +5018,7 @@ "type": "Identifier", "span": { "start": 3028, - "end": 3036, + "end": 3031, "ctxt": 0 }, "value": "ast", @@ -5107,7 +5107,7 @@ "type": "Identifier", "span": { "start": 3075, - "end": 3083, + "end": 3078, "ctxt": 0 }, "value": "ast", @@ -5196,7 +5196,7 @@ "type": "Identifier", "span": { "start": 3122, - "end": 3130, + "end": 3125, "ctxt": 0 }, "value": "ast", @@ -5285,7 +5285,7 @@ "type": "Identifier", "span": { "start": 3169, - "end": 3177, + "end": 3172, "ctxt": 0 }, "value": "ast", @@ -5374,7 +5374,7 @@ "type": "Identifier", "span": { "start": 3216, - "end": 3224, + "end": 3219, "ctxt": 0 }, "value": "ast", @@ -5463,7 +5463,7 @@ "type": "Identifier", "span": { "start": 3263, - "end": 3271, + "end": 3266, "ctxt": 0 }, "value": "ast", @@ -5552,7 +5552,7 @@ "type": "Identifier", "span": { "start": 3310, - "end": 3318, + "end": 3313, "ctxt": 0 }, "value": "ast", @@ -5641,7 +5641,7 @@ "type": "Identifier", "span": { "start": 3357, - "end": 3365, + "end": 3360, "ctxt": 0 }, "value": "ast", @@ -5730,7 +5730,7 @@ "type": "Identifier", "span": { "start": 3404, - "end": 3412, + "end": 3407, "ctxt": 0 }, "value": "ast", @@ -5819,7 +5819,7 @@ "type": "Identifier", "span": { "start": 3454, - "end": 3462, + "end": 3457, "ctxt": 0 }, "value": "ast", @@ -5908,7 +5908,7 @@ "type": "Identifier", "span": { "start": 3504, - "end": 3512, + "end": 3507, "ctxt": 0 }, "value": "ast", @@ -5997,7 +5997,7 @@ "type": "Identifier", "span": { "start": 3554, - "end": 3562, + "end": 3557, "ctxt": 0 }, "value": "ast", @@ -6086,7 +6086,7 @@ "type": "Identifier", "span": { "start": 3605, - "end": 3613, + "end": 3608, "ctxt": 0 }, "value": "ast", @@ -6175,7 +6175,7 @@ "type": "Identifier", "span": { "start": 3656, - "end": 3664, + "end": 3659, "ctxt": 0 }, "value": "ast", @@ -6264,7 +6264,7 @@ "type": "Identifier", "span": { "start": 3713, - "end": 3721, + "end": 3716, "ctxt": 0 }, "value": "ast", @@ -6353,7 +6353,7 @@ "type": "Identifier", "span": { "start": 3765, - "end": 3783, + "end": 3773, "ctxt": 0 }, "value": "funcDecl", @@ -6442,7 +6442,7 @@ "type": "Identifier", "span": { "start": 3825, - "end": 3833, + "end": 3828, "ctxt": 0 }, "value": "ast", @@ -6531,7 +6531,7 @@ "type": "Identifier", "span": { "start": 3876, - "end": 3892, + "end": 3883, "ctxt": 0 }, "value": "varDecl", @@ -6620,7 +6620,7 @@ "type": "Identifier", "span": { "start": 3935, - "end": 3943, + "end": 3938, "ctxt": 0 }, "value": "ast", @@ -6709,7 +6709,7 @@ "type": "Identifier", "span": { "start": 3985, - "end": 3993, + "end": 3988, "ctxt": 0 }, "value": "ast", @@ -6798,7 +6798,7 @@ "type": "Identifier", "span": { "start": 4034, - "end": 4042, + "end": 4037, "ctxt": 0 }, "value": "ast", @@ -6887,7 +6887,7 @@ "type": "Identifier", "span": { "start": 4086, - "end": 4094, + "end": 4089, "ctxt": 0 }, "value": "ast", @@ -6976,7 +6976,7 @@ "type": "Identifier", "span": { "start": 4135, - "end": 4143, + "end": 4138, "ctxt": 0 }, "value": "ast", @@ -7065,7 +7065,7 @@ "type": "Identifier", "span": { "start": 4182, - "end": 4190, + "end": 4185, "ctxt": 0 }, "value": "ast", @@ -7154,7 +7154,7 @@ "type": "Identifier", "span": { "start": 4231, - "end": 4239, + "end": 4234, "ctxt": 0 }, "value": "ast", @@ -7243,7 +7243,7 @@ "type": "Identifier", "span": { "start": 4277, - "end": 4285, + "end": 4280, "ctxt": 0 }, "value": "ast", @@ -7332,7 +7332,7 @@ "type": "Identifier", "span": { "start": 4326, - "end": 4334, + "end": 4329, "ctxt": 0 }, "value": "ast", @@ -7421,7 +7421,7 @@ "type": "Identifier", "span": { "start": 4377, - "end": 4385, + "end": 4380, "ctxt": 0 }, "value": "ast", @@ -7510,7 +7510,7 @@ "type": "Identifier", "span": { "start": 4426, - "end": 4438, + "end": 4431, "ctxt": 0 }, "value": "block", @@ -7599,7 +7599,7 @@ "type": "Identifier", "span": { "start": 4478, - "end": 4486, + "end": 4481, "ctxt": 0 }, "value": "ast", @@ -7688,7 +7688,7 @@ "type": "Identifier", "span": { "start": 4528, - "end": 4536, + "end": 4531, "ctxt": 0 }, "value": "ast", @@ -7777,7 +7777,7 @@ "type": "Identifier", "span": { "start": 4575, - "end": 4583, + "end": 4578, "ctxt": 0 }, "value": "ast", @@ -7866,7 +7866,7 @@ "type": "Identifier", "span": { "start": 4627, - "end": 4635, + "end": 4630, "ctxt": 0 }, "value": "ast", @@ -7955,7 +7955,7 @@ "type": "Identifier", "span": { "start": 4681, - "end": 4689, + "end": 4684, "ctxt": 0 }, "value": "ast", @@ -8044,7 +8044,7 @@ "type": "Identifier", "span": { "start": 4732, - "end": 4740, + "end": 4735, "ctxt": 0 }, "value": "ast", @@ -8133,7 +8133,7 @@ "type": "Identifier", "span": { "start": 4781, - "end": 4789, + "end": 4784, "ctxt": 0 }, "value": "ast", @@ -8222,7 +8222,7 @@ "type": "Identifier", "span": { "start": 4829, - "end": 4845, + "end": 4836, "ctxt": 0 }, "value": "astList", @@ -8311,7 +8311,7 @@ "type": "Identifier", "span": { "start": 4887, - "end": 4901, + "end": 4893, "ctxt": 0 }, "value": "script", @@ -8400,7 +8400,7 @@ "type": "Identifier", "span": { "start": 4953, - "end": 4961, + "end": 4956, "ctxt": 0 }, "value": "ast", @@ -8489,7 +8489,7 @@ "type": "Identifier", "span": { "start": 5017, - "end": 5052, + "end": 5030, "ctxt": 0 }, "value": "interfaceDecl", @@ -8578,7 +8578,7 @@ "type": "Identifier", "span": { "start": 5105, - "end": 5134, + "end": 5115, "ctxt": 0 }, "value": "moduleDecl", @@ -8667,7 +8667,7 @@ "type": "Identifier", "span": { "start": 5187, - "end": 5195, + "end": 5190, "ctxt": 0 }, "value": "ast", @@ -8756,7 +8756,7 @@ "type": "Identifier", "span": { "start": 5235, - "end": 5243, + "end": 5238, "ctxt": 0 }, "value": "ast", @@ -8845,7 +8845,7 @@ "type": "Identifier", "span": { "start": 5284, - "end": 5297, + "end": 5292, "ctxt": 0 }, "value": "labelAST", @@ -8934,7 +8934,7 @@ "type": "Identifier", "span": { "start": 5349, - "end": 5357, + "end": 5352, "ctxt": 0 }, "value": "ast", @@ -9023,7 +9023,7 @@ "type": "Identifier", "span": { "start": 5400, - "end": 5408, + "end": 5403, "ctxt": 0 }, "value": "ast", @@ -9112,7 +9112,7 @@ "type": "Identifier", "span": { "start": 5450, - "end": 5458, + "end": 5453, "ctxt": 0 }, "value": "ast", @@ -9201,7 +9201,7 @@ "type": "Identifier", "span": { "start": 5501, - "end": 5509, + "end": 5504, "ctxt": 0 }, "value": "ast", @@ -9290,7 +9290,7 @@ "type": "Identifier", "span": { "start": 5550, - "end": 5558, + "end": 5553, "ctxt": 0 }, "value": "ast", @@ -9379,7 +9379,7 @@ "type": "Identifier", "span": { "start": 5601, - "end": 5609, + "end": 5604, "ctxt": 0 }, "value": "ast", @@ -9468,7 +9468,7 @@ "type": "Identifier", "span": { "start": 5653, - "end": 5661, + "end": 5656, "ctxt": 0 }, "value": "ast", @@ -9557,7 +9557,7 @@ "type": "Identifier", "span": { "start": 5704, - "end": 5712, + "end": 5707, "ctxt": 0 }, "value": "ast", @@ -9647,7 +9647,7 @@ "type": "Identifier", "span": { "start": 5756, - "end": 5770, + "end": 5762, "ctxt": 0 }, "value": "script", @@ -9693,7 +9693,7 @@ "type": "Identifier", "span": { "start": 5772, - "end": 5805, + "end": 5780, "ctxt": 0 }, "value": "callback", @@ -10473,7 +10473,7 @@ "type": "Identifier", "span": { "start": 6262, - "end": 6274, + "end": 6265, "ctxt": 0 }, "value": "pre", @@ -10509,7 +10509,7 @@ "type": "Identifier", "span": { "start": 6276, - "end": 6284, + "end": 6279, "ctxt": 0 }, "value": "ast", @@ -10555,7 +10555,7 @@ "type": "Identifier", "span": { "start": 6286, - "end": 6319, + "end": 6294, "ctxt": 0 }, "value": "callback", diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource14.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource14.json index a214ebca1e1e..dd81211f4bb2 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource14.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource14.json @@ -66,7 +66,7 @@ "type": "Identifier", "span": { "start": 259, - "end": 271, + "end": 264, "ctxt": 0 }, "value": "items", @@ -358,7 +358,7 @@ "type": "Identifier", "span": { "start": 399, - "end": 408, + "end": 400, "ctxt": 0 }, "value": "a", @@ -394,7 +394,7 @@ "type": "Identifier", "span": { "start": 410, - "end": 419, + "end": 411, "ctxt": 0 }, "value": "b", @@ -555,7 +555,7 @@ "type": "Identifier", "span": { "start": 493, - "end": 502, + "end": 494, "ctxt": 0 }, "value": "a", @@ -591,7 +591,7 @@ "type": "Identifier", "span": { "start": 504, - "end": 513, + "end": 505, "ctxt": 0 }, "value": "b", @@ -924,7 +924,7 @@ "type": "Identifier", "span": { "start": 856, - "end": 868, + "end": 861, "ctxt": 0 }, "value": "items", @@ -968,7 +968,7 @@ "type": "Identifier", "span": { "start": 870, - "end": 883, + "end": 875, "ctxt": 0 }, "value": "index", @@ -2030,7 +2030,7 @@ "type": "Identifier", "span": { "start": 1475, - "end": 1494, + "end": 1478, "ctxt": 0 }, "value": "ast", @@ -3786,7 +3786,7 @@ "type": "Identifier", "span": { "start": 2545, - "end": 2558, + "end": 2550, "ctxt": 0 }, "value": "index", @@ -34802,7 +34802,7 @@ "type": "Identifier", "span": { "start": 19171, - "end": 19194, + "end": 19174, "ctxt": 0 }, "value": "ast", @@ -35372,7 +35372,7 @@ "type": "Identifier", "span": { "start": 20297, - "end": 20319, + "end": 20303, "ctxt": 0 }, "value": "script", @@ -35431,7 +35431,7 @@ "type": "Identifier", "span": { "start": 20321, - "end": 20332, + "end": 20324, "ctxt": 0 }, "value": "pos", @@ -36368,7 +36368,7 @@ "type": "Identifier", "span": { "start": 21069, - "end": 21088, + "end": 21072, "ctxt": 0 }, "value": "cur", @@ -36427,7 +36427,7 @@ "type": "Identifier", "span": { "start": 21090, - "end": 21112, + "end": 21096, "ctxt": 0 }, "value": "parent", @@ -36486,7 +36486,7 @@ "type": "Identifier", "span": { "start": 21114, - "end": 21132, + "end": 21120, "ctxt": 0 }, "value": "walker", @@ -38250,7 +38250,7 @@ "type": "Identifier", "span": { "start": 23692, - "end": 23717, + "end": 23698, "ctxt": 0 }, "value": "script", @@ -38309,7 +38309,7 @@ "type": "Identifier", "span": { "start": 23719, - "end": 23735, + "end": 23727, "ctxt": 0 }, "value": "position", @@ -39253,7 +39253,7 @@ "type": "Identifier", "span": { "start": 24600, - "end": 24619, + "end": 24603, "ctxt": 0 }, "value": "ast", @@ -39312,7 +39312,7 @@ "type": "Identifier", "span": { "start": 24621, - "end": 24685, + "end": 24629, "ctxt": 0 }, "value": "callback", @@ -39336,7 +39336,7 @@ "type": "Identifier", "span": { "start": 24632, - "end": 24645, + "end": 24636, "ctxt": 0 }, "value": "path", @@ -39373,7 +39373,7 @@ "type": "Identifier", "span": { "start": 24647, - "end": 24676, + "end": 24653, "ctxt": 0 }, "value": "walker", @@ -39501,7 +39501,7 @@ "type": "Identifier", "span": { "start": 24724, - "end": 24743, + "end": 24727, "ctxt": 0 }, "value": "cur", @@ -39560,7 +39560,7 @@ "type": "Identifier", "span": { "start": 24745, - "end": 24767, + "end": 24751, "ctxt": 0 }, "value": "parent", @@ -39619,7 +39619,7 @@ "type": "Identifier", "span": { "start": 24769, - "end": 24798, + "end": 24775, "ctxt": 0 }, "value": "walker", @@ -39968,7 +39968,7 @@ "type": "Identifier", "span": { "start": 24986, - "end": 25005, + "end": 24989, "ctxt": 0 }, "value": "cur", @@ -40027,7 +40027,7 @@ "type": "Identifier", "span": { "start": 25007, - "end": 25029, + "end": 25013, "ctxt": 0 }, "value": "parent", @@ -40086,7 +40086,7 @@ "type": "Identifier", "span": { "start": 25031, - "end": 25060, + "end": 25037, "ctxt": 0 }, "value": "walker", diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource2.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource2.json index 8e2f55ad1f8a..a5854cf81638 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource2.json @@ -66,7 +66,7 @@ "type": "Identifier", "span": { "start": 261, - "end": 272, + "end": 264, "ctxt": 0 }, "value": "val", @@ -102,7 +102,7 @@ "type": "Identifier", "span": { "start": 274, - "end": 286, + "end": 278, "ctxt": 0 }, "value": "flag", @@ -7699,7 +7699,7 @@ "type": "Identifier", "span": { "start": 6747, - "end": 6765, + "end": 6755, "ctxt": 0 }, "value": "fncFlags", @@ -7806,7 +7806,7 @@ "type": "Identifier", "span": { "start": 6812, - "end": 6830, + "end": 6820, "ctxt": 0 }, "value": "varFlags", @@ -7913,7 +7913,7 @@ "type": "Identifier", "span": { "start": 6877, - "end": 6898, + "end": 6885, "ctxt": 0 }, "value": "symFlags", @@ -8020,7 +8020,7 @@ "type": "Identifier", "span": { "start": 6944, - "end": 6968, + "end": 6955, "ctxt": 0 }, "value": "moduleFlags", @@ -8127,7 +8127,7 @@ "type": "Identifier", "span": { "start": 7014, - "end": 7048, + "end": 7043, "ctxt": 0 }, "value": "fncOrVarOrSymbolOrModuleFlags", @@ -9492,7 +9492,7 @@ "type": "Identifier", "span": { "start": 8320, - "end": 8333, + "end": 8325, "ctxt": 0 }, "value": "flags", diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource5.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource5.json index 142eaf33dbff..e65af1826b8b 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource5.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource5.json @@ -268,7 +268,7 @@ "type": "Identifier", "span": { "start": 479, - "end": 499, + "end": 486, "ctxt": 0 }, "value": "outfile", @@ -317,7 +317,7 @@ "type": "Identifier", "span": { "start": 508, - "end": 522, + "end": 514, "ctxt": 0 }, "value": "parser", @@ -1692,7 +1692,7 @@ "type": "Identifier", "span": { "start": 1499, - "end": 1507, + "end": 1502, "ctxt": 0 }, "value": "ast", @@ -1738,7 +1738,7 @@ "type": "Identifier", "span": { "start": 1509, - "end": 1520, + "end": 1515, "ctxt": 0 }, "value": "parent", @@ -1784,7 +1784,7 @@ "type": "Identifier", "span": { "start": 1522, - "end": 1540, + "end": 1528, "ctxt": 0 }, "value": "walker", @@ -2111,7 +2111,7 @@ "type": "Identifier", "span": { "start": 1717, - "end": 1725, + "end": 1720, "ctxt": 0 }, "value": "ast", @@ -2157,7 +2157,7 @@ "type": "Identifier", "span": { "start": 1727, - "end": 1738, + "end": 1733, "ctxt": 0 }, "value": "parent", @@ -2203,7 +2203,7 @@ "type": "Identifier", "span": { "start": 1740, - "end": 1758, + "end": 1746, "ctxt": 0 }, "value": "walker", diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource6.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource6.json index b489b1eb6f1d..5e543cfde177 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource6.json @@ -155,7 +155,7 @@ "type": "Identifier", "span": { "start": 340, - "end": 362, + "end": 350, "ctxt": 0 }, "value": "scopeChain", @@ -204,7 +204,7 @@ "type": "Identifier", "span": { "start": 371, - "end": 391, + "end": 378, "ctxt": 0 }, "value": "checker", @@ -546,7 +546,7 @@ "type": "Identifier", "span": { "start": 627, - "end": 641, + "end": 631, "ctxt": 0 }, "value": "flow", @@ -595,7 +595,7 @@ "type": "Identifier", "span": { "start": 650, - "end": 661, + "end": 653, "ctxt": 0 }, "value": "pos", @@ -634,7 +634,7 @@ "type": "Identifier", "span": { "start": 670, - "end": 689, + "end": 679, "ctxt": 0 }, "value": "matchFlag", @@ -1323,7 +1323,7 @@ "type": "Identifier", "span": { "start": 1281, - "end": 1296, + "end": 1287, "ctxt": 0 }, "value": "logger", @@ -1372,7 +1372,7 @@ "type": "Identifier", "span": { "start": 1325, - "end": 1339, + "end": 1331, "ctxt": 0 }, "value": "script", @@ -1421,7 +1421,7 @@ "type": "Identifier", "span": { "start": 1368, - "end": 1385, + "end": 1372, "ctxt": 0 }, "value": "text", @@ -1470,7 +1470,7 @@ "type": "Identifier", "span": { "start": 1414, - "end": 1425, + "end": 1417, "ctxt": 0 }, "value": "pos", @@ -1509,7 +1509,7 @@ "type": "Identifier", "span": { "start": 1454, - "end": 1481, + "end": 1472, "ctxt": 0 }, "value": "isMemberCompletion", @@ -2883,7 +2883,7 @@ "type": "Identifier", "span": { "start": 2629, - "end": 2637, + "end": 2632, "ctxt": 0 }, "value": "ast", @@ -2929,7 +2929,7 @@ "type": "Identifier", "span": { "start": 2639, - "end": 2650, + "end": 2645, "ctxt": 0 }, "value": "parent", @@ -2975,7 +2975,7 @@ "type": "Identifier", "span": { "start": 2652, - "end": 2670, + "end": 2658, "ctxt": 0 }, "value": "walker", @@ -3862,7 +3862,7 @@ "type": "Identifier", "span": { "start": 3178, - "end": 3195, + "end": 3187, "ctxt": 0 }, "value": "container", @@ -3908,7 +3908,7 @@ "type": "Identifier", "span": { "start": 3205, - "end": 3232, + "end": 3217, "ctxt": 0 }, "value": "valueMembers", @@ -3954,7 +3954,7 @@ "type": "Identifier", "span": { "start": 3242, - "end": 3276, + "end": 3261, "ctxt": 0 }, "value": "ambientValueMembers", @@ -4000,7 +4000,7 @@ "type": "Identifier", "span": { "start": 3286, - "end": 3314, + "end": 3299, "ctxt": 0 }, "value": "enclosedTypes", @@ -4046,7 +4046,7 @@ "type": "Identifier", "span": { "start": 3324, - "end": 3359, + "end": 3344, "ctxt": 0 }, "value": "ambientEnclosedTypes", @@ -4092,7 +4092,7 @@ "type": "Identifier", "span": { "start": 3369, - "end": 3399, + "end": 3376, "ctxt": 0 }, "value": "context", @@ -4138,7 +4138,7 @@ "type": "Identifier", "span": { "start": 3409, - "end": 3423, + "end": 3417, "ctxt": 0 }, "value": "thisType", @@ -4184,7 +4184,7 @@ "type": "Identifier", "span": { "start": 3433, - "end": 3448, + "end": 3442, "ctxt": 0 }, "value": "classType", @@ -4230,7 +4230,7 @@ "type": "Identifier", "span": { "start": 3458, - "end": 3487, + "end": 3468, "ctxt": 0 }, "value": "moduleDecl", @@ -4805,7 +4805,7 @@ "type": "Identifier", "span": { "start": 3911, - "end": 3941, + "end": 3918, "ctxt": 0 }, "value": "context", @@ -4986,7 +4986,7 @@ "type": "Identifier", "span": { "start": 4052, - "end": 4060, + "end": 4055, "ctxt": 0 }, "value": "ast", @@ -5032,7 +5032,7 @@ "type": "Identifier", "span": { "start": 4062, - "end": 4073, + "end": 4068, "ctxt": 0 }, "value": "parent", @@ -5078,7 +5078,7 @@ "type": "Identifier", "span": { "start": 4075, - "end": 4093, + "end": 4081, "ctxt": 0 }, "value": "walker", @@ -8770,7 +8770,7 @@ "type": "Identifier", "span": { "start": 8331, - "end": 8346, + "end": 8337, "ctxt": 0 }, "value": "logger", @@ -8816,7 +8816,7 @@ "type": "Identifier", "span": { "start": 8348, - "end": 8362, + "end": 8354, "ctxt": 0 }, "value": "script", @@ -8862,7 +8862,7 @@ "type": "Identifier", "span": { "start": 8364, - "end": 8381, + "end": 8368, "ctxt": 0 }, "value": "text", @@ -8908,7 +8908,7 @@ "type": "Identifier", "span": { "start": 8383, - "end": 8394, + "end": 8386, "ctxt": 0 }, "value": "pos", @@ -8944,7 +8944,7 @@ "type": "Identifier", "span": { "start": 8396, - "end": 8423, + "end": 8414, "ctxt": 0 }, "value": "isMemberCompletion", diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource8.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource8.json index 19bc8ec86d8b..f2850e997aad 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource8.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource8.json @@ -93,7 +93,7 @@ "type": "Identifier", "span": { "start": 299, - "end": 321, + "end": 309, "ctxt": 0 }, "value": "scopeChain", @@ -142,7 +142,7 @@ "type": "Identifier", "span": { "start": 351, - "end": 369, + "end": 359, "ctxt": 0 }, "value": "typeFlow", @@ -191,7 +191,7 @@ "type": "Identifier", "span": { "start": 399, - "end": 432, + "end": 411, "ctxt": 0 }, "value": "modDeclChain", @@ -287,7 +287,7 @@ "type": "Identifier", "span": { "start": 489, - "end": 507, + "end": 494, "ctxt": 0 }, "value": "scope", @@ -333,7 +333,7 @@ "type": "Identifier", "span": { "start": 517, - "end": 544, + "end": 524, "ctxt": 0 }, "value": "context", @@ -379,7 +379,7 @@ "type": "Identifier", "span": { "start": 554, - "end": 564, + "end": 558, "ctxt": 0 }, "value": "type", @@ -425,7 +425,7 @@ "type": "Identifier", "span": { "start": 574, - "end": 589, + "end": 583, "ctxt": 0 }, "value": "classType", @@ -471,7 +471,7 @@ "type": "Identifier", "span": { "start": 599, - "end": 612, + "end": 602, "ctxt": 0 }, "value": "fnc", @@ -889,7 +889,7 @@ "type": "Identifier", "span": { "start": 857, - "end": 884, + "end": 864, "ctxt": 0 }, "value": "context", @@ -1070,7 +1070,7 @@ "type": "Identifier", "span": { "start": 989, - "end": 998, + "end": 990, "ctxt": 0 }, "value": "a", @@ -1116,7 +1116,7 @@ "type": "Identifier", "span": { "start": 1000, - "end": 1009, + "end": 1001, "ctxt": 0 }, "value": "b", @@ -1377,7 +1377,7 @@ "type": "Identifier", "span": { "start": 1196, - "end": 1205, + "end": 1197, "ctxt": 0 }, "value": "s", @@ -1540,7 +1540,7 @@ "type": "Identifier", "span": { "start": 1321, - "end": 1360, + "end": 1327, "ctxt": 0 }, "value": "select", @@ -1564,7 +1564,7 @@ "type": "Identifier", "span": { "start": 1330, - "end": 1339, + "end": 1331, "ctxt": 0 }, "value": "a", @@ -1601,7 +1601,7 @@ "type": "Identifier", "span": { "start": 1341, - "end": 1350, + "end": 1342, "ctxt": 0 }, "value": "b", @@ -1682,7 +1682,7 @@ "type": "Identifier", "span": { "start": 1397, - "end": 1424, + "end": 1401, "ctxt": 0 }, "value": "stop", @@ -1706,7 +1706,7 @@ "type": "Identifier", "span": { "start": 1404, - "end": 1413, + "end": 1405, "ctxt": 0 }, "value": "s", @@ -1966,7 +1966,7 @@ "type": "Identifier", "span": { "start": 1560, - "end": 1569, + "end": 1561, "ctxt": 0 }, "value": "b", @@ -2440,7 +2440,7 @@ "type": "Identifier", "span": { "start": 1944, - "end": 1952, + "end": 1947, "ctxt": 0 }, "value": "ast", @@ -2486,7 +2486,7 @@ "type": "Identifier", "span": { "start": 1954, - "end": 1981, + "end": 1961, "ctxt": 0 }, "value": "context", @@ -4150,7 +4150,7 @@ "type": "Identifier", "span": { "start": 3155, - "end": 3163, + "end": 3158, "ctxt": 0 }, "value": "ast", @@ -4196,7 +4196,7 @@ "type": "Identifier", "span": { "start": 3165, - "end": 3192, + "end": 3172, "ctxt": 0 }, "value": "context", @@ -5999,7 +5999,7 @@ "type": "Identifier", "span": { "start": 4540, - "end": 4548, + "end": 4543, "ctxt": 0 }, "value": "ast", @@ -6045,7 +6045,7 @@ "type": "Identifier", "span": { "start": 4550, - "end": 4577, + "end": 4557, "ctxt": 0 }, "value": "context", @@ -7166,7 +7166,7 @@ "type": "Identifier", "span": { "start": 5375, - "end": 5383, + "end": 5378, "ctxt": 0 }, "value": "ast", @@ -7212,7 +7212,7 @@ "type": "Identifier", "span": { "start": 5385, - "end": 5412, + "end": 5392, "ctxt": 0 }, "value": "context", @@ -8555,7 +8555,7 @@ "type": "Identifier", "span": { "start": 6400, - "end": 6408, + "end": 6403, "ctxt": 0 }, "value": "ast", @@ -8601,7 +8601,7 @@ "type": "Identifier", "span": { "start": 6410, - "end": 6437, + "end": 6417, "ctxt": 0 }, "value": "context", @@ -18522,7 +18522,7 @@ "type": "Identifier", "span": { "start": 16867, - "end": 16875, + "end": 16870, "ctxt": 0 }, "value": "ast", @@ -18568,7 +18568,7 @@ "type": "Identifier", "span": { "start": 16877, - "end": 16904, + "end": 16884, "ctxt": 0 }, "value": "context", @@ -19369,7 +19369,7 @@ "type": "Identifier", "span": { "start": 17609, - "end": 17617, + "end": 17612, "ctxt": 0 }, "value": "ast", @@ -19415,7 +19415,7 @@ "type": "Identifier", "span": { "start": 17619, - "end": 17630, + "end": 17625, "ctxt": 0 }, "value": "parent", @@ -19461,7 +19461,7 @@ "type": "Identifier", "span": { "start": 17632, - "end": 17650, + "end": 17638, "ctxt": 0 }, "value": "walker", @@ -20990,7 +20990,7 @@ "type": "Identifier", "span": { "start": 18906, - "end": 18914, + "end": 18909, "ctxt": 0 }, "value": "ast", @@ -21036,7 +21036,7 @@ "type": "Identifier", "span": { "start": 18916, - "end": 18927, + "end": 18922, "ctxt": 0 }, "value": "parent", @@ -21082,7 +21082,7 @@ "type": "Identifier", "span": { "start": 18929, - "end": 18947, + "end": 18935, "ctxt": 0 }, "value": "walker", diff --git a/crates/swc_ecma_parser/tests/tsc/parserindenter.json b/crates/swc_ecma_parser/tests/tsc/parserindenter.json index 26321f349a9c..0fb1ff8f2ba3 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserindenter.json +++ b/crates/swc_ecma_parser/tests/tsc/parserindenter.json @@ -248,7 +248,7 @@ "type": "Identifier", "span": { "start": 954, - "end": 980, + "end": 960, "ctxt": 0 }, "value": "logger", @@ -310,7 +310,7 @@ "type": "Identifier", "span": { "start": 1001, - "end": 1016, + "end": 1005, "ctxt": 0 }, "value": "tree", @@ -359,7 +359,7 @@ "type": "Identifier", "span": { "start": 1037, - "end": 1060, + "end": 1045, "ctxt": 0 }, "value": "snapshot", @@ -408,7 +408,7 @@ "type": "Identifier", "span": { "start": 1081, - "end": 1112, + "end": 1104, "ctxt": 0 }, "value": "languageHostIndentation", @@ -447,7 +447,7 @@ "type": "Identifier", "span": { "start": 1133, - "end": 1170, + "end": 1146, "ctxt": 0 }, "value": "editorOptions", @@ -509,7 +509,7 @@ "type": "Identifier", "span": { "start": 1191, - "end": 1212, + "end": 1201, "ctxt": 0 }, "value": "firstToken", @@ -558,7 +558,7 @@ "type": "Identifier", "span": { "start": 1233, - "end": 1253, + "end": 1244, "ctxt": 0 }, "value": "smartIndent", @@ -1116,7 +1116,7 @@ "type": "Identifier", "span": { "start": 1797, - "end": 1813, + "end": 1802, "ctxt": 0 }, "value": "token", @@ -1162,7 +1162,7 @@ "type": "Identifier", "span": { "start": 1815, - "end": 1835, + "end": 1824, "ctxt": 0 }, "value": "nextToken", @@ -1208,7 +1208,7 @@ "type": "Identifier", "span": { "start": 1837, - "end": 1852, + "end": 1841, "ctxt": 0 }, "value": "node", @@ -1254,7 +1254,7 @@ "type": "Identifier", "span": { "start": 1854, - "end": 1877, + "end": 1868, "ctxt": 0 }, "value": "sameLineIndent", @@ -2744,7 +2744,7 @@ "type": "Identifier", "span": { "start": 2830, - "end": 2846, + "end": 2835, "ctxt": 0 }, "value": "token", @@ -2790,7 +2790,7 @@ "type": "Identifier", "span": { "start": 2848, - "end": 2868, + "end": 2857, "ctxt": 0 }, "value": "nextToken", @@ -2836,7 +2836,7 @@ "type": "Identifier", "span": { "start": 2870, - "end": 2885, + "end": 2874, "ctxt": 0 }, "value": "node", @@ -2882,7 +2882,7 @@ "type": "Identifier", "span": { "start": 2887, - "end": 2910, + "end": 2901, "ctxt": 0 }, "value": "sameLineIndent", @@ -5260,7 +5260,7 @@ "type": "Identifier", "span": { "start": 7064, - "end": 7080, + "end": 7069, "ctxt": 0 }, "value": "token", @@ -6758,7 +6758,7 @@ "type": "Identifier", "span": { "start": 8594, - "end": 8612, + "end": 8604, "ctxt": 0 }, "value": "indentText", @@ -6794,7 +6794,7 @@ "type": "Identifier", "span": { "start": 8614, - "end": 8651, + "end": 8627, "ctxt": 0 }, "value": "editorOptions", @@ -6984,7 +6984,7 @@ "type": "Identifier", "span": { "start": 8814, - "end": 8826, + "end": 8818, "ctxt": 0 }, "value": "text", @@ -7020,7 +7020,7 @@ "type": "Identifier", "span": { "start": 8828, - "end": 8865, + "end": 8841, "ctxt": 0 }, "value": "editorOptions", @@ -7079,7 +7079,7 @@ "type": "Identifier", "span": { "start": 8867, - "end": 8897, + "end": 8888, "ctxt": 0 }, "value": "includeNonIndentChars", @@ -7784,7 +7784,7 @@ "type": "Identifier", "span": { "start": 9532, - "end": 9548, + "end": 9537, "ctxt": 0 }, "value": "token", @@ -7830,7 +7830,7 @@ "type": "Identifier", "span": { "start": 9550, - "end": 9565, + "end": 9554, "ctxt": 0 }, "value": "node", @@ -9268,7 +9268,7 @@ "type": "Identifier", "span": { "start": 11428, - "end": 11443, + "end": 11432, "ctxt": 0 }, "value": "node", @@ -10141,7 +10141,7 @@ "type": "Identifier", "span": { "start": 12388, - "end": 12404, + "end": 12393, "ctxt": 0 }, "value": "token", @@ -10187,7 +10187,7 @@ "type": "Identifier", "span": { "start": 12406, - "end": 12421, + "end": 12410, "ctxt": 0 }, "value": "node", @@ -10986,7 +10986,7 @@ "type": "Identifier", "span": { "start": 13680, - "end": 13696, + "end": 13685, "ctxt": 0 }, "value": "token", @@ -11032,7 +11032,7 @@ "type": "Identifier", "span": { "start": 13698, - "end": 13713, + "end": 13702, "ctxt": 0 }, "value": "node", @@ -12030,7 +12030,7 @@ "type": "Identifier", "span": { "start": 14590, - "end": 14606, + "end": 14595, "ctxt": 0 }, "value": "token", @@ -12076,7 +12076,7 @@ "type": "Identifier", "span": { "start": 14608, - "end": 14623, + "end": 14612, "ctxt": 0 }, "value": "node", @@ -13211,7 +13211,7 @@ "type": "Identifier", "span": { "start": 16290, - "end": 16321, + "end": 16313, "ctxt": 0 }, "value": "languageHostIndentation", @@ -13247,7 +13247,7 @@ "type": "Identifier", "span": { "start": 16323, - "end": 16338, + "end": 16327, "ctxt": 0 }, "value": "tree", @@ -13629,7 +13629,7 @@ "type": "Identifier", "span": { "start": 18939, - "end": 18966, + "end": 18949, "ctxt": 0 }, "value": "indentInfo", @@ -13675,7 +13675,7 @@ "type": "Identifier", "span": { "start": 18968, - "end": 18994, + "end": 18986, "ctxt": 0 }, "value": "tokenStartPosition", @@ -13711,7 +13711,7 @@ "type": "Identifier", "span": { "start": 18996, - "end": 19019, + "end": 19010, "ctxt": 0 }, "value": "sameLineIndent", @@ -15110,7 +15110,7 @@ "type": "Identifier", "span": { "start": 20453, - "end": 20480, + "end": 20472, "ctxt": 0 }, "value": "existingIndentation", @@ -15146,7 +15146,7 @@ "type": "Identifier", "span": { "start": 20482, - "end": 20495, + "end": 20487, "ctxt": 0 }, "value": "level", @@ -16209,7 +16209,7 @@ "type": "Identifier", "span": { "start": 21559, - "end": 21573, + "end": 21565, "ctxt": 0 }, "value": "prefix", @@ -16245,7 +16245,7 @@ "type": "Identifier", "span": { "start": 21575, - "end": 21598, + "end": 21590, "ctxt": 0 }, "value": "totalIndentSize", @@ -16281,7 +16281,7 @@ "type": "Identifier", "span": { "start": 21600, - "end": 21615, + "end": 21607, "ctxt": 0 }, "value": "tabSize", @@ -16317,7 +16317,7 @@ "type": "Identifier", "span": { "start": 21617, - "end": 21645, + "end": 21636, "ctxt": 0 }, "value": "convertTabsToSpaces", @@ -17007,7 +17007,7 @@ "type": "Identifier", "span": { "start": 22301, - "end": 22317, + "end": 22306, "ctxt": 0 }, "value": "token", @@ -17053,7 +17053,7 @@ "type": "Identifier", "span": { "start": 22319, - "end": 22334, + "end": 22323, "ctxt": 0 }, "value": "node", @@ -17982,7 +17982,7 @@ "type": "Identifier", "span": { "start": 23171, - "end": 23197, + "end": 23189, "ctxt": 0 }, "value": "tokenStartPosition", @@ -18018,7 +18018,7 @@ "type": "Identifier", "span": { "start": 23199, - "end": 23212, + "end": 23204, "ctxt": 0 }, "value": "delta", @@ -18553,7 +18553,7 @@ "type": "Identifier", "span": { "start": 23756, - "end": 23777, + "end": 23769, "ctxt": 0 }, "value": "currentIndent", @@ -18589,7 +18589,7 @@ "type": "Identifier", "span": { "start": 23779, - "end": 23792, + "end": 23784, "ctxt": 0 }, "value": "delta", @@ -19317,7 +19317,7 @@ "type": "Identifier", "span": { "start": 24448, - "end": 24474, + "end": 24466, "ctxt": 0 }, "value": "tokenStartPosition", @@ -19353,7 +19353,7 @@ "type": "Identifier", "span": { "start": 24476, - "end": 24507, + "end": 24499, "ctxt": 0 }, "value": "childTokenStartPosition", @@ -21088,7 +21088,7 @@ "type": "Identifier", "span": { "start": 27446, - "end": 27461, + "end": 27450, "ctxt": 0 }, "value": "tree", @@ -25181,7 +25181,7 @@ "type": "Identifier", "span": { "start": 32372, - "end": 32386, + "end": 32378, "ctxt": 0 }, "value": "offset", @@ -26083,7 +26083,7 @@ "type": "Identifier", "span": { "start": 33236, - "end": 33256, + "end": 33242, "ctxt": 0 }, "value": "indent", @@ -26129,7 +26129,7 @@ "type": "Identifier", "span": { "start": 33258, - "end": 33281, + "end": 33272, "ctxt": 0 }, "value": "sameLineIndent", @@ -26851,7 +26851,7 @@ "type": "Identifier", "span": { "start": 34080, - "end": 34096, + "end": 34088, "ctxt": 0 }, "value": "position", @@ -26887,7 +26887,7 @@ "type": "Identifier", "span": { "start": 34098, - "end": 34112, + "end": 34104, "ctxt": 0 }, "value": "indent", @@ -27107,7 +27107,7 @@ "type": "Identifier", "span": { "start": 34267, - "end": 34283, + "end": 34272, "ctxt": 0 }, "value": "token", @@ -27153,7 +27153,7 @@ "type": "Identifier", "span": { "start": 34285, - "end": 34300, + "end": 34289, "ctxt": 0 }, "value": "node", @@ -28130,7 +28130,7 @@ "type": "Identifier", "span": { "start": 35223, - "end": 35239, + "end": 35228, "ctxt": 0 }, "value": "token", diff --git a/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionInferenceError.json b/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionInferenceError.json index b1cc7672f9f5..a38191744edb 100644 --- a/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionInferenceError.json +++ b/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionInferenceError.json @@ -185,7 +185,7 @@ "type": "Identifier", "span": { "start": 108, - "end": 132, + "end": 109, "ctxt": 0 }, "value": "a", @@ -209,7 +209,7 @@ "type": "Identifier", "span": { "start": 112, - "end": 116, + "end": 113, "ctxt": 0 }, "value": "t", @@ -246,7 +246,7 @@ "type": "Identifier", "span": { "start": 118, - "end": 123, + "end": 120, "ctxt": 0 }, "value": "t1", diff --git a/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionInferenceWithTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionInferenceWithTypeParameter.json index 67f3181b1f3c..5a30e9e06566 100644 --- a/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionInferenceWithTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionInferenceWithTypeParameter.json @@ -185,7 +185,7 @@ "type": "Identifier", "span": { "start": 103, - "end": 127, + "end": 104, "ctxt": 0 }, "value": "a", @@ -209,7 +209,7 @@ "type": "Identifier", "span": { "start": 107, - "end": 111, + "end": 108, "ctxt": 0 }, "value": "t", @@ -246,7 +246,7 @@ "type": "Identifier", "span": { "start": 113, - "end": 118, + "end": 115, "ctxt": 0 }, "value": "t1", @@ -417,7 +417,7 @@ "type": "Identifier", "span": { "start": 172, - "end": 208, + "end": 173, "ctxt": 0 }, "value": "a", @@ -441,7 +441,7 @@ "type": "Identifier", "span": { "start": 176, - "end": 180, + "end": 177, "ctxt": 0 }, "value": "t", @@ -478,7 +478,7 @@ "type": "Identifier", "span": { "start": 182, - "end": 187, + "end": 184, "ctxt": 0 }, "value": "t1", diff --git a/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionWitoutTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionWitoutTypeParameter.json index 1c6d01e4608e..74105ed4918d 100644 --- a/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionWitoutTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionWitoutTypeParameter.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 98, + "end": 66, "ctxt": 0 }, "value": "f", @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 69, - "end": 78, + "end": 70, "ctxt": 0 }, "value": "a", @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 80, - "end": 89, + "end": 81, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/partiallyNamedTuples.json b/crates/swc_ecma_parser/tests/tsc/partiallyNamedTuples.json index 014ea5561bc5..8b9e3729439e 100644 --- a/crates/swc_ecma_parser/tests/tsc/partiallyNamedTuples.json +++ b/crates/swc_ecma_parser/tests/tsc/partiallyNamedTuples.json @@ -203,7 +203,7 @@ "type": "Identifier", "span": { "start": 105, - "end": 125, + "end": 106, "ctxt": 0 }, "value": "a", @@ -571,7 +571,7 @@ "type": "Identifier", "span": { "start": 297, - "end": 319, + "end": 298, "ctxt": 0 }, "value": "a", @@ -712,7 +712,7 @@ "type": "Identifier", "span": { "start": 367, - "end": 389, + "end": 368, "ctxt": 0 }, "value": "a", @@ -2892,7 +2892,7 @@ "type": "Identifier", "span": { "start": 1562, - "end": 1640, + "end": 1565, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/primtiveTypesAreIdentical.json b/crates/swc_ecma_parser/tests/tsc/primtiveTypesAreIdentical.json index 33bf06dd705a..9424b8ff7bc8 100644 --- a/crates/swc_ecma_parser/tests/tsc/primtiveTypesAreIdentical.json +++ b/crates/swc_ecma_parser/tests/tsc/primtiveTypesAreIdentical.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 104, - "end": 113, + "end": 105, "ctxt": 0 }, "value": "x", @@ -95,7 +95,7 @@ "type": "Identifier", "span": { "start": 130, - "end": 139, + "end": 131, "ctxt": 0 }, "value": "x", @@ -158,7 +158,7 @@ "type": "Identifier", "span": { "start": 156, - "end": 162, + "end": 157, "ctxt": 0 }, "value": "x", @@ -229,7 +229,7 @@ "type": "Identifier", "span": { "start": 183, - "end": 192, + "end": 184, "ctxt": 0 }, "value": "x", @@ -292,7 +292,7 @@ "type": "Identifier", "span": { "start": 209, - "end": 218, + "end": 210, "ctxt": 0 }, "value": "x", @@ -355,7 +355,7 @@ "type": "Identifier", "span": { "start": 235, - "end": 241, + "end": 236, "ctxt": 0 }, "value": "x", @@ -426,7 +426,7 @@ "type": "Identifier", "span": { "start": 262, - "end": 272, + "end": 263, "ctxt": 0 }, "value": "x", @@ -489,7 +489,7 @@ "type": "Identifier", "span": { "start": 289, - "end": 299, + "end": 290, "ctxt": 0 }, "value": "x", @@ -552,7 +552,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 322, + "end": 317, "ctxt": 0 }, "value": "x", @@ -623,7 +623,7 @@ "type": "Identifier", "span": { "start": 343, - "end": 349, + "end": 344, "ctxt": 0 }, "value": "x", @@ -686,7 +686,7 @@ "type": "Identifier", "span": { "start": 366, - "end": 372, + "end": 367, "ctxt": 0 }, "value": "x", @@ -749,7 +749,7 @@ "type": "Identifier", "span": { "start": 389, - "end": 395, + "end": 390, "ctxt": 0 }, "value": "x", @@ -820,7 +820,7 @@ "type": "Identifier", "span": { "start": 416, - "end": 422, + "end": 417, "ctxt": 0 }, "value": "x", @@ -892,7 +892,7 @@ "type": "Identifier", "span": { "start": 439, - "end": 445, + "end": 440, "ctxt": 0 }, "value": "x", @@ -964,7 +964,7 @@ "type": "Identifier", "span": { "start": 462, - "end": 471, + "end": 463, "ctxt": 0 }, "value": "x", @@ -1027,7 +1027,7 @@ "type": "Identifier", "span": { "start": 488, - "end": 494, + "end": 489, "ctxt": 0 }, "value": "x", @@ -1139,7 +1139,7 @@ "type": "Identifier", "span": { "start": 528, - "end": 532, + "end": 529, "ctxt": 0 }, "value": "x", @@ -1212,7 +1212,7 @@ "type": "Identifier", "span": { "start": 549, - "end": 553, + "end": 550, "ctxt": 0 }, "value": "x", @@ -1285,7 +1285,7 @@ "type": "Identifier", "span": { "start": 570, - "end": 576, + "end": 571, "ctxt": 0 }, "value": "x", @@ -1356,7 +1356,7 @@ "type": "Identifier", "span": { "start": 597, - "end": 604, + "end": 598, "ctxt": 0 }, "value": "x", @@ -1419,7 +1419,7 @@ "type": "Identifier", "span": { "start": 621, - "end": 628, + "end": 622, "ctxt": 0 }, "value": "x", @@ -1482,7 +1482,7 @@ "type": "Identifier", "span": { "start": 645, - "end": 651, + "end": 646, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameAccessors.json b/crates/swc_ecma_parser/tests/tsc/privateNameAccessors.json index da960895146a..e69a58f6173a 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameAccessors.json @@ -138,7 +138,7 @@ "type": "Identifier", "span": { "start": 91, - "end": 104, + "end": 96, "ctxt": 0 }, "value": "param", @@ -293,7 +293,7 @@ "type": "Identifier", "span": { "start": 161, - "end": 173, + "end": 165, "ctxt": 0 }, "value": "name", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameAndAny.json b/crates/swc_ecma_parser/tests/tsc/privateNameAndAny.json index e8a67f58ac4a..ff77792afc0f 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameAndAny.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameAndAny.json @@ -198,7 +198,7 @@ "type": "Identifier", "span": { "start": 114, - "end": 124, + "end": 119, "ctxt": 0 }, "value": "thing", @@ -522,7 +522,7 @@ "type": "Identifier", "span": { "start": 263, - "end": 277, + "end": 268, "ctxt": 0 }, "value": "thing", @@ -846,7 +846,7 @@ "type": "Identifier", "span": { "start": 401, - "end": 413, + "end": 406, "ctxt": 0 }, "value": "thing", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameAndIndexSignature.json b/crates/swc_ecma_parser/tests/tsc/privateNameAndIndexSignature.json index 5da95aa75ad8..e8e77176a0bb 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameAndIndexSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameAndIndexSignature.json @@ -226,7 +226,7 @@ "type": "Identifier", "span": { "start": 212, - "end": 227, + "end": 219, "ctxt": 0 }, "value": "message", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameAndObjectRestSpread.json b/crates/swc_ecma_parser/tests/tsc/privateNameAndObjectRestSpread.json index 5b97564d7c63..ba15b2b47d1d 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameAndObjectRestSpread.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameAndObjectRestSpread.json @@ -145,7 +145,7 @@ "type": "Identifier", "span": { "start": 100, - "end": 108, + "end": 105, "ctxt": 0 }, "value": "other", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName2.json b/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName2.json index 23f8d84df90b..dff4294a62c4 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName2.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName2.json @@ -51,7 +51,7 @@ "type": "Identifier", "span": { "start": 48, - "end": 52, + "end": 49, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameDuplicateField.json b/crates/swc_ecma_parser/tests/tsc/privateNameDuplicateField.json index bbcdf9bac767..90a7a24be251 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameDuplicateField.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameDuplicateField.json @@ -521,7 +521,7 @@ "type": "Identifier", "span": { "start": 413, - "end": 426, + "end": 418, "ctxt": 0 }, "value": "value", @@ -1067,7 +1067,7 @@ "type": "Identifier", "span": { "start": 849, - "end": 862, + "end": 854, "ctxt": 0 }, "value": "value", @@ -1688,7 +1688,7 @@ "type": "Identifier", "span": { "start": 1247, - "end": 1260, + "end": 1252, "ctxt": 0 }, "value": "value", @@ -2274,7 +2274,7 @@ "type": "Identifier", "span": { "start": 1675, - "end": 1688, + "end": 1680, "ctxt": 0 }, "value": "value", @@ -2971,7 +2971,7 @@ "type": "Identifier", "span": { "start": 2122, - "end": 2135, + "end": 2127, "ctxt": 0 }, "value": "value", @@ -3643,7 +3643,7 @@ "type": "Identifier", "span": { "start": 2599, - "end": 2612, + "end": 2604, "ctxt": 0 }, "value": "value", @@ -3796,7 +3796,7 @@ "type": "Identifier", "span": { "start": 2704, - "end": 2717, + "end": 2709, "ctxt": 0 }, "value": "value", @@ -3958,7 +3958,7 @@ "type": "Identifier", "span": { "start": 2810, - "end": 2823, + "end": 2815, "ctxt": 0 }, "value": "value", @@ -4130,7 +4130,7 @@ "type": "Identifier", "span": { "start": 2910, - "end": 2923, + "end": 2915, "ctxt": 0 }, "value": "value", @@ -4321,7 +4321,7 @@ "type": "Identifier", "span": { "start": 3026, - "end": 3039, + "end": 3031, "ctxt": 0 }, "value": "value", @@ -4412,7 +4412,7 @@ "type": "Identifier", "span": { "start": 3062, - "end": 3075, + "end": 3067, "ctxt": 0 }, "value": "value", @@ -4530,7 +4530,7 @@ "type": "Identifier", "span": { "start": 3151, - "end": 3164, + "end": 3156, "ctxt": 0 }, "value": "value", @@ -4692,7 +4692,7 @@ "type": "Identifier", "span": { "start": 3270, - "end": 3283, + "end": 3275, "ctxt": 0 }, "value": "value", @@ -4864,7 +4864,7 @@ "type": "Identifier", "span": { "start": 3386, - "end": 3399, + "end": 3391, "ctxt": 0 }, "value": "value", @@ -5055,7 +5055,7 @@ "type": "Identifier", "span": { "start": 3515, - "end": 3528, + "end": 3520, "ctxt": 0 }, "value": "value", @@ -5146,7 +5146,7 @@ "type": "Identifier", "span": { "start": 3558, - "end": 3571, + "end": 3563, "ctxt": 0 }, "value": "value", @@ -5727,7 +5727,7 @@ "type": "Identifier", "span": { "start": 4021, - "end": 4034, + "end": 4026, "ctxt": 0 }, "value": "value", @@ -6273,7 +6273,7 @@ "type": "Identifier", "span": { "start": 4509, - "end": 4522, + "end": 4514, "ctxt": 0 }, "value": "value", @@ -6894,7 +6894,7 @@ "type": "Identifier", "span": { "start": 4965, - "end": 4978, + "end": 4970, "ctxt": 0 }, "value": "value", @@ -7480,7 +7480,7 @@ "type": "Identifier", "span": { "start": 5445, - "end": 5458, + "end": 5450, "ctxt": 0 }, "value": "value", @@ -8177,7 +8177,7 @@ "type": "Identifier", "span": { "start": 5954, - "end": 5967, + "end": 5959, "ctxt": 0 }, "value": "value", @@ -8849,7 +8849,7 @@ "type": "Identifier", "span": { "start": 6479, - "end": 6492, + "end": 6484, "ctxt": 0 }, "value": "value", @@ -9002,7 +9002,7 @@ "type": "Identifier", "span": { "start": 6603, - "end": 6616, + "end": 6608, "ctxt": 0 }, "value": "value", @@ -9164,7 +9164,7 @@ "type": "Identifier", "span": { "start": 6722, - "end": 6735, + "end": 6727, "ctxt": 0 }, "value": "value", @@ -9336,7 +9336,7 @@ "type": "Identifier", "span": { "start": 6839, - "end": 6852, + "end": 6844, "ctxt": 0 }, "value": "value", @@ -9527,7 +9527,7 @@ "type": "Identifier", "span": { "start": 6968, - "end": 6981, + "end": 6973, "ctxt": 0 }, "value": "value", @@ -9618,7 +9618,7 @@ "type": "Identifier", "span": { "start": 7004, - "end": 7017, + "end": 7009, "ctxt": 0 }, "value": "value", @@ -9736,7 +9736,7 @@ "type": "Identifier", "span": { "start": 7106, - "end": 7119, + "end": 7111, "ctxt": 0 }, "value": "value", @@ -9898,7 +9898,7 @@ "type": "Identifier", "span": { "start": 7238, - "end": 7251, + "end": 7243, "ctxt": 0 }, "value": "value", @@ -10070,7 +10070,7 @@ "type": "Identifier", "span": { "start": 7364, - "end": 7377, + "end": 7369, "ctxt": 0 }, "value": "value", @@ -10261,7 +10261,7 @@ "type": "Identifier", "span": { "start": 7506, - "end": 7519, + "end": 7511, "ctxt": 0 }, "value": "value", @@ -10352,7 +10352,7 @@ "type": "Identifier", "span": { "start": 7549, - "end": 7562, + "end": 7554, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameES5Ban.json b/crates/swc_ecma_parser/tests/tsc/privateNameES5Ban.json index 1bb50f37e118..d51b6a74fbe5 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameES5Ban.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameES5Ban.json @@ -364,7 +364,7 @@ "type": "Identifier", "span": { "start": 188, - "end": 197, + "end": 189, "ctxt": 0 }, "value": "x", @@ -528,7 +528,7 @@ "type": "Identifier", "span": { "start": 260, - "end": 269, + "end": 261, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameEmitHelpers.json b/crates/swc_ecma_parser/tests/tsc/privateNameEmitHelpers.json index f21c5b223841..272a4764ef7b 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameEmitHelpers.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameEmitHelpers.json @@ -232,7 +232,7 @@ "type": "Identifier", "span": { "start": 161, - "end": 170, + "end": 162, "ctxt": 0 }, "value": "v", @@ -387,7 +387,7 @@ "type": "Identifier", "span": { "start": 380, - "end": 391, + "end": 388, "ctxt": 0 }, "value": "receiver", @@ -433,7 +433,7 @@ "type": "Identifier", "span": { "start": 393, - "end": 403, + "end": 398, "ctxt": 0 }, "value": "state", @@ -593,7 +593,7 @@ "type": "Identifier", "span": { "start": 477, - "end": 488, + "end": 485, "ctxt": 0 }, "value": "receiver", @@ -639,7 +639,7 @@ "type": "Identifier", "span": { "start": 490, - "end": 500, + "end": 495, "ctxt": 0 }, "value": "state", @@ -675,7 +675,7 @@ "type": "Identifier", "span": { "start": 502, - "end": 510, + "end": 507, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameField.json b/crates/swc_ecma_parser/tests/tsc/privateNameField.json index 057e92fbde19..06dacef994f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameField.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameField.json @@ -107,7 +107,7 @@ "type": "Identifier", "span": { "start": 80, - "end": 92, + "end": 84, "ctxt": 0 }, "value": "name", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameFieldDestructuredBinding.json b/crates/swc_ecma_parser/tests/tsc/privateNameFieldDestructuredBinding.json index 2a6888f32fae..c6dbe4e4256e 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameFieldDestructuredBinding.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameFieldDestructuredBinding.json @@ -1468,7 +1468,7 @@ "type": "Identifier", "span": { "start": 621, - "end": 626, + "end": 623, "ctxt": 0 }, "value": "_a", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameFieldParenthesisLeftAssignment.json b/crates/swc_ecma_parser/tests/tsc/privateNameFieldParenthesisLeftAssignment.json index f379d0f2cad5..4429745d0a86 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameFieldParenthesisLeftAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameFieldParenthesisLeftAssignment.json @@ -107,7 +107,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 79, + "end": 71, "ctxt": 0 }, "value": "value", @@ -237,7 +237,7 @@ "type": "Identifier", "span": { "start": 122, - "end": 131, + "end": 123, "ctxt": 0 }, "value": "p", @@ -407,7 +407,7 @@ "type": "Identifier", "span": { "start": 182, - "end": 191, + "end": 183, "ctxt": 0 }, "value": "p", @@ -593,7 +593,7 @@ "type": "Identifier", "span": { "start": 246, - "end": 255, + "end": 247, "ctxt": 0 }, "value": "p", @@ -746,7 +746,7 @@ "type": "Identifier", "span": { "start": 296, - "end": 305, + "end": 297, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameInInExpressionUnused.json b/crates/swc_ecma_parser/tests/tsc/privateNameInInExpressionUnused.json index 42c5ae37f532..02497f11e929 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameInInExpressionUnused.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameInInExpressionUnused.json @@ -159,7 +159,7 @@ "type": "Identifier", "span": { "start": 183, - "end": 189, + "end": 184, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameInLhsReceiverExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameInLhsReceiverExpression.json index 9178b37c6dda..37f6e8a4fa86 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameInLhsReceiverExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameInLhsReceiverExpression.json @@ -101,7 +101,7 @@ "type": "Identifier", "span": { "start": 69, - "end": 97, + "end": 72, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameMethod.json b/crates/swc_ecma_parser/tests/tsc/privateNameMethod.json index 8b57277d57eb..d0f14d510999 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameMethod.json @@ -65,7 +65,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 71, + "end": 63, "ctxt": 0 }, "value": "param", @@ -182,7 +182,7 @@ "type": "Identifier", "span": { "start": 124, - "end": 136, + "end": 128, "ctxt": 0 }, "value": "name", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameMethodAssignment.json b/crates/swc_ecma_parser/tests/tsc/privateNameMethodAssignment.json index 20f8fbd8a21c..d3941450492e 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameMethodAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameMethodAssignment.json @@ -118,7 +118,7 @@ "type": "Identifier", "span": { "start": 67, - "end": 72, + "end": 68, "ctxt": 0 }, "value": "a", @@ -164,7 +164,7 @@ "type": "Identifier", "span": { "start": 74, - "end": 80, + "end": 75, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameSetterExprReturnValue.json b/crates/swc_ecma_parser/tests/tsc/privateNameSetterExprReturnValue.json index 0e25670fa1bc..a54b39fa7277 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameSetterExprReturnValue.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameSetterExprReturnValue.json @@ -65,7 +65,7 @@ "type": "Identifier", "span": { "start": 44, - "end": 53, + "end": 45, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessors.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessors.json index b4b871006f64..bd82bfedd01c 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessors.json @@ -138,7 +138,7 @@ "type": "Identifier", "span": { "start": 105, - "end": 118, + "end": 110, "ctxt": 0 }, "value": "param", @@ -293,7 +293,7 @@ "type": "Identifier", "span": { "start": 182, - "end": 194, + "end": 186, "ctxt": 0 }, "value": "name", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorssDerivedClasses.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorssDerivedClasses.json index 0dbbf9d20ab2..5cd8e60f77da 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorssDerivedClasses.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorssDerivedClasses.json @@ -146,7 +146,7 @@ "type": "Identifier", "span": { "start": 100, - "end": 117, + "end": 101, "ctxt": 0 }, "value": "x", @@ -353,7 +353,7 @@ "type": "Identifier", "span": { "start": 206, - "end": 223, + "end": 207, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticEmitHelpers.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticEmitHelpers.json index 44d6c06f9150..38284690db11 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticEmitHelpers.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticEmitHelpers.json @@ -343,7 +343,7 @@ "type": "Identifier", "span": { "start": 393, - "end": 404, + "end": 401, "ctxt": 0 }, "value": "receiver", @@ -389,7 +389,7 @@ "type": "Identifier", "span": { "start": 406, - "end": 416, + "end": 411, "ctxt": 0 }, "value": "state", @@ -549,7 +549,7 @@ "type": "Identifier", "span": { "start": 490, - "end": 501, + "end": 498, "ctxt": 0 }, "value": "receiver", @@ -595,7 +595,7 @@ "type": "Identifier", "span": { "start": 503, - "end": 513, + "end": 508, "ctxt": 0 }, "value": "state", @@ -631,7 +631,7 @@ "type": "Identifier", "span": { "start": 515, - "end": 523, + "end": 520, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldDestructuredBinding.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldDestructuredBinding.json index f064654d8c68..69c0ffe1d330 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldDestructuredBinding.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldDestructuredBinding.json @@ -1476,7 +1476,7 @@ "type": "Identifier", "span": { "start": 628, - "end": 640, + "end": 630, "ctxt": 0 }, "value": "_a", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethod.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethod.json index 6212a812520e..33ffca7a6252 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethod.json @@ -65,7 +65,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 78, + "end": 70, "ctxt": 0 }, "value": "param", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodAssignment.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodAssignment.json index 5807da462425..dbf033428023 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodAssignment.json @@ -118,7 +118,7 @@ "type": "Identifier", "span": { "start": 74, - "end": 86, + "end": 75, "ctxt": 0 }, "value": "a", @@ -164,7 +164,7 @@ "type": "Identifier", "span": { "start": 88, - "end": 94, + "end": 89, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticsAndStaticMethods.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticsAndStaticMethods.json index 81e328f07edc..abde5879beff 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticsAndStaticMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticsAndStaticMethods.json @@ -65,7 +65,7 @@ "type": "Identifier", "span": { "start": 131, - "end": 140, + "end": 132, "ctxt": 0 }, "value": "a", @@ -156,7 +156,7 @@ "type": "Identifier", "span": { "start": 167, - "end": 176, + "end": 168, "ctxt": 0 }, "value": "a", @@ -247,7 +247,7 @@ "type": "Identifier", "span": { "start": 204, - "end": 213, + "end": 205, "ctxt": 0 }, "value": "a", @@ -521,7 +521,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 369, + "end": 361, "ctxt": 0 }, "value": "val", @@ -1098,7 +1098,7 @@ "type": "Identifier", "span": { "start": 579, - "end": 588, + "end": 580, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameUnused.json b/crates/swc_ecma_parser/tests/tsc/privateNameUnused.json index 911671251ab3..c077de740ccd 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameUnused.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameUnused.json @@ -675,7 +675,7 @@ "type": "Identifier", "span": { "start": 369, - "end": 382, + "end": 374, "ctxt": 0 }, "value": "value", @@ -855,7 +855,7 @@ "type": "Identifier", "span": { "start": 443, - "end": 456, + "end": 448, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesAndMethods.json b/crates/swc_ecma_parser/tests/tsc/privateNamesAndMethods.json index e0ad38e068a0..2c82e7e4fd15 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesAndMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesAndMethods.json @@ -65,7 +65,7 @@ "type": "Identifier", "span": { "start": 107, - "end": 116, + "end": 108, "ctxt": 0 }, "value": "a", @@ -156,7 +156,7 @@ "type": "Identifier", "span": { "start": 136, - "end": 145, + "end": 137, "ctxt": 0 }, "value": "a", @@ -247,7 +247,7 @@ "type": "Identifier", "span": { "start": 166, - "end": 175, + "end": 167, "ctxt": 0 }, "value": "a", @@ -521,7 +521,7 @@ "type": "Identifier", "span": { "start": 299, - "end": 310, + "end": 302, "ctxt": 0 }, "value": "val", @@ -1086,7 +1086,7 @@ "type": "Identifier", "span": { "start": 531, - "end": 540, + "end": 532, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesAndStaticMethods.json b/crates/swc_ecma_parser/tests/tsc/privateNamesAndStaticMethods.json index 81e328f07edc..abde5879beff 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesAndStaticMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesAndStaticMethods.json @@ -65,7 +65,7 @@ "type": "Identifier", "span": { "start": 131, - "end": 140, + "end": 132, "ctxt": 0 }, "value": "a", @@ -156,7 +156,7 @@ "type": "Identifier", "span": { "start": 167, - "end": 176, + "end": 168, "ctxt": 0 }, "value": "a", @@ -247,7 +247,7 @@ "type": "Identifier", "span": { "start": 204, - "end": 213, + "end": 205, "ctxt": 0 }, "value": "a", @@ -521,7 +521,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 369, + "end": 361, "ctxt": 0 }, "value": "val", @@ -1098,7 +1098,7 @@ "type": "Identifier", "span": { "start": 579, - "end": 588, + "end": 580, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesAndkeyof.json b/crates/swc_ecma_parser/tests/tsc/privateNamesAndkeyof.json index c6ee9c9a479a..8d9d35a7ceca 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesAndkeyof.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesAndkeyof.json @@ -252,7 +252,7 @@ "type": "Identifier", "span": { "start": 137, - "end": 150, + "end": 142, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesAssertion.json b/crates/swc_ecma_parser/tests/tsc/privateNamesAssertion.json index 9d0d78db60bf..02ac82387a8d 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesAssertion.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesAssertion.json @@ -190,7 +190,7 @@ "type": "Identifier", "span": { "start": 103, - "end": 109, + "end": 104, "ctxt": 0 }, "value": "v", @@ -300,7 +300,7 @@ "type": "Identifier", "span": { "start": 236, - "end": 246, + "end": 237, "ctxt": 0 }, "value": "v", @@ -503,7 +503,7 @@ "type": "Identifier", "span": { "start": 312, - "end": 318, + "end": 313, "ctxt": 0 }, "value": "v", @@ -715,7 +715,7 @@ "type": "Identifier", "span": { "start": 434, - "end": 444, + "end": 435, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-2.json b/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-2.json index 49bd7c2d8d8c..9cd78eaf746a 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-2.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-2.json @@ -99,7 +99,7 @@ "type": "Identifier", "span": { "start": 75, - "end": 99, + "end": 80, "ctxt": 0 }, "value": "other", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-3.json b/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-3.json index 8cca21bd899c..05d225ab41c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-3.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-3.json @@ -214,7 +214,7 @@ "type": "Identifier", "span": { "start": 341, - "end": 345, + "end": 342, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/privateWriteOnlyAccessorRead.json b/crates/swc_ecma_parser/tests/tsc/privateWriteOnlyAccessorRead.json index 8a25014d2f59..3a04dc5637c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateWriteOnlyAccessorRead.json +++ b/crates/swc_ecma_parser/tests/tsc/privateWriteOnlyAccessorRead.json @@ -65,7 +65,7 @@ "type": "Identifier", "span": { "start": 46, - "end": 73, + "end": 47, "ctxt": 0 }, "value": "v", @@ -240,7 +240,7 @@ "type": "Identifier", "span": { "start": 95, - "end": 106, + "end": 96, "ctxt": 0 }, "value": "v", @@ -339,7 +339,7 @@ "type": "Identifier", "span": { "start": 127, - "end": 136, + "end": 128, "ctxt": 0 }, "value": "v", @@ -430,7 +430,7 @@ "type": "Identifier", "span": { "start": 162, - "end": 171, + "end": 163, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints2.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints2.json index e93d24eea783..436685a1c3ca 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints2.json @@ -531,7 +531,7 @@ "type": "Identifier", "span": { "start": 352, - "end": 356, + "end": 353, "ctxt": 0 }, "value": "x", @@ -1773,7 +1773,7 @@ "type": "Identifier", "span": { "start": 1037, - "end": 1041, + "end": 1038, "ctxt": 0 }, "value": "x", @@ -1939,7 +1939,7 @@ "type": "Identifier", "span": { "start": 1078, - "end": 1082, + "end": 1079, "ctxt": 0 }, "value": "x", @@ -1976,7 +1976,7 @@ "type": "Identifier", "span": { "start": 1084, - "end": 1088, + "end": 1085, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints3.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints3.json index 7b8d406140bd..9afc53fc1eb6 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints3.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints3.json @@ -531,7 +531,7 @@ "type": "Identifier", "span": { "start": 374, - "end": 378, + "end": 375, "ctxt": 0 }, "value": "x", @@ -1773,7 +1773,7 @@ "type": "Identifier", "span": { "start": 755, - "end": 759, + "end": 756, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessWidening.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessWidening.json index c4afd39e6c90..119e36a67fcd 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessWidening.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessWidening.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 53, - "end": 69, + "end": 64, "ctxt": 0 }, "value": "headerNames", @@ -323,7 +323,7 @@ "type": "Identifier", "span": { "start": 191, - "end": 207, + "end": 202, "ctxt": 0 }, "value": "headerNames", @@ -622,7 +622,7 @@ "type": "Identifier", "span": { "start": 411, - "end": 445, + "end": 418, "ctxt": 0 }, "value": "options", diff --git a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors4.json b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors4.json index de4c85d7ccd7..291368e9ca7d 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors4.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors4.json @@ -111,7 +111,7 @@ "type": "Identifier", "span": { "start": 112, - "end": 123, + "end": 115, "ctxt": 0 }, "value": "val", diff --git a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors5.json b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors5.json index 97a33ed4a2b1..7a35dc055e12 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors5.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors5.json @@ -151,7 +151,7 @@ "type": "Identifier", "span": { "start": 140, - "end": 149, + "end": 141, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergeWithInterfaceMethod.json b/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergeWithInterfaceMethod.json index 643534437802..1202e051dffc 100644 --- a/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergeWithInterfaceMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergeWithInterfaceMethod.json @@ -93,7 +93,7 @@ "type": "Identifier", "span": { "start": 209, - "end": 229, + "end": 214, "ctxt": 0 }, "value": "query", @@ -250,7 +250,7 @@ "type": "Identifier", "span": { "start": 265, - "end": 291, + "end": 270, "ctxt": 0 }, "value": "scope", @@ -465,7 +465,7 @@ "type": "Identifier", "span": { "start": 345, - "end": 374, + "end": 352, "ctxt": 0 }, "value": "queries", diff --git a/crates/swc_ecma_parser/tests/tsc/readonlyArraysAndTuples2.json b/crates/swc_ecma_parser/tests/tsc/readonlyArraysAndTuples2.json index 9d035ed01f4c..41db9fa2bd6c 100644 --- a/crates/swc_ecma_parser/tests/tsc/readonlyArraysAndTuples2.json +++ b/crates/swc_ecma_parser/tests/tsc/readonlyArraysAndTuples2.json @@ -370,7 +370,7 @@ "type": "Identifier", "span": { "start": 306, - "end": 318, + "end": 308, "ctxt": 0 }, "value": "ma", @@ -414,7 +414,7 @@ "type": "Identifier", "span": { "start": 320, - "end": 341, + "end": 322, "ctxt": 0 }, "value": "ra", @@ -467,7 +467,7 @@ "type": "Identifier", "span": { "start": 343, - "end": 363, + "end": 345, "ctxt": 0 }, "value": "mt", @@ -540,7 +540,7 @@ "type": "Identifier", "span": { "start": 365, - "end": 394, + "end": 367, "ctxt": 0 }, "value": "rt", diff --git a/crates/swc_ecma_parser/tests/tsc/readonlyConstructorAssignment.json b/crates/swc_ecma_parser/tests/tsc/readonlyConstructorAssignment.json index 925cafc5668d..d8ad10c2a554 100644 --- a/crates/swc_ecma_parser/tests/tsc/readonlyConstructorAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/readonlyConstructorAssignment.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 130, + "end": 122, "ctxt": 0 }, "value": "x", @@ -207,7 +207,7 @@ "type": "Identifier", "span": { "start": 199, - "end": 208, + "end": 200, "ctxt": 0 }, "value": "x", @@ -407,7 +407,7 @@ "type": "Identifier", "span": { "start": 467, - "end": 476, + "end": 468, "ctxt": 0 }, "value": "x", @@ -607,7 +607,7 @@ "type": "Identifier", "span": { "start": 570, - "end": 579, + "end": 571, "ctxt": 0 }, "value": "x", @@ -758,7 +758,7 @@ "type": "Identifier", "span": { "start": 701, - "end": 710, + "end": 702, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/readonlyInAmbientClass.json b/crates/swc_ecma_parser/tests/tsc/readonlyInAmbientClass.json index 76727719c9c9..a222ecc8d6de 100644 --- a/crates/swc_ecma_parser/tests/tsc/readonlyInAmbientClass.json +++ b/crates/swc_ecma_parser/tests/tsc/readonlyInAmbientClass.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 40, - "end": 49, + "end": 41, "ctxt": 0 }, "value": "x", @@ -119,7 +119,7 @@ "type": "Identifier", "span": { "start": 69, - "end": 78, + "end": 70, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/readonlyRestParameters.json b/crates/swc_ecma_parser/tests/tsc/readonlyRestParameters.json index 4519d183def0..bf38cd220e28 100644 --- a/crates/swc_ecma_parser/tests/tsc/readonlyRestParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/readonlyRestParameters.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 53, - "end": 62, + "end": 54, "ctxt": 0 }, "value": "a", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 64, - "end": 73, + "end": 65, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/recursiveMappedTypes.json b/crates/swc_ecma_parser/tests/tsc/recursiveMappedTypes.json index 986195274cfe..d68a712208ee 100644 --- a/crates/swc_ecma_parser/tests/tsc/recursiveMappedTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/recursiveMappedTypes.json @@ -686,7 +686,7 @@ "type": "Identifier", "span": { "start": 386, - "end": 404, + "end": 389, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/recursiveTypeReferences1.json b/crates/swc_ecma_parser/tests/tsc/recursiveTypeReferences1.json index 94a93227301c..661ec8849824 100644 --- a/crates/swc_ecma_parser/tests/tsc/recursiveTypeReferences1.json +++ b/crates/swc_ecma_parser/tests/tsc/recursiveTypeReferences1.json @@ -1777,7 +1777,7 @@ "type": "Identifier", "span": { "start": 795, - "end": 801, + "end": 797, "ctxt": 0 }, "value": "t1", @@ -1823,7 +1823,7 @@ "type": "Identifier", "span": { "start": 803, - "end": 809, + "end": 805, "ctxt": 0 }, "value": "t2", @@ -1869,7 +1869,7 @@ "type": "Identifier", "span": { "start": 811, - "end": 817, + "end": 813, "ctxt": 0 }, "value": "t3", @@ -3099,7 +3099,7 @@ "type": "Identifier", "span": { "start": 1265, - "end": 1279, + "end": 1266, "ctxt": 0 }, "value": "a", @@ -3286,7 +3286,7 @@ "type": "Identifier", "span": { "start": 1318, - "end": 1340, + "end": 1319, "ctxt": 0 }, "value": "a", @@ -3530,7 +3530,7 @@ "type": "Identifier", "span": { "start": 1378, - "end": 1411, + "end": 1379, "ctxt": 0 }, "value": "a", @@ -6143,7 +6143,7 @@ "type": "Identifier", "span": { "start": 2337, - "end": 2356, + "end": 2338, "ctxt": 0 }, "value": "a", @@ -6717,7 +6717,7 @@ "type": "Identifier", "span": { "start": 2558, - "end": 2577, + "end": 2559, "ctxt": 0 }, "value": "a", @@ -7113,7 +7113,7 @@ "type": "Identifier", "span": { "start": 2757, - "end": 2767, + "end": 2761, "ctxt": 0 }, "value": "node", @@ -7166,7 +7166,7 @@ "type": "Identifier", "span": { "start": 2769, - "end": 2784, + "end": 2774, "ctxt": 0 }, "value": "index", @@ -7961,7 +7961,7 @@ "type": "Identifier", "span": { "start": 3117, - "end": 3141, + "end": 3119, "ctxt": 0 }, "value": "hs", @@ -9056,7 +9056,7 @@ "type": "Identifier", "span": { "start": 3548, - "end": 3569, + "end": 3549, "ctxt": 0 }, "value": "h", diff --git a/crates/swc_ecma_parser/tests/tsc/recursiveTypesUsedAsFunctionParameters.json b/crates/swc_ecma_parser/tests/tsc/recursiveTypesUsedAsFunctionParameters.json index 1351fa9cfea6..47f072077bd4 100644 --- a/crates/swc_ecma_parser/tests/tsc/recursiveTypesUsedAsFunctionParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/recursiveTypesUsedAsFunctionParameters.json @@ -482,7 +482,7 @@ "type": "Identifier", "span": { "start": 137, - "end": 147, + "end": 138, "ctxt": 0 }, "value": "x", @@ -615,7 +615,7 @@ "type": "Identifier", "span": { "start": 166, - "end": 176, + "end": 167, "ctxt": 0 }, "value": "x", @@ -748,7 +748,7 @@ "type": "Identifier", "span": { "start": 215, - "end": 225, + "end": 216, "ctxt": 0 }, "value": "x", @@ -889,7 +889,7 @@ "type": "Identifier", "span": { "start": 249, - "end": 259, + "end": 250, "ctxt": 0 }, "value": "x", @@ -1022,7 +1022,7 @@ "type": "Identifier", "span": { "start": 279, - "end": 291, + "end": 280, "ctxt": 0 }, "value": "x", @@ -1155,7 +1155,7 @@ "type": "Identifier", "span": { "start": 357, - "end": 363, + "end": 358, "ctxt": 0 }, "value": "x", @@ -1286,7 +1286,7 @@ "type": "Identifier", "span": { "start": 479, - "end": 483, + "end": 480, "ctxt": 0 }, "value": "x", @@ -1391,7 +1391,7 @@ "type": "Identifier", "span": { "start": 507, - "end": 519, + "end": 508, "ctxt": 0 }, "value": "x", @@ -1532,7 +1532,7 @@ "type": "Identifier", "span": { "start": 588, - "end": 592, + "end": 589, "ctxt": 0 }, "value": "x", @@ -1637,7 +1637,7 @@ "type": "Identifier", "span": { "start": 616, - "end": 626, + "end": 617, "ctxt": 0 }, "value": "x", @@ -1778,7 +1778,7 @@ "type": "Identifier", "span": { "start": 664, - "end": 668, + "end": 665, "ctxt": 0 }, "value": "x", @@ -1899,7 +1899,7 @@ "type": "Identifier", "span": { "start": 700, - "end": 710, + "end": 701, "ctxt": 0 }, "value": "x", @@ -2048,7 +2048,7 @@ "type": "Identifier", "span": { "start": 742, - "end": 754, + "end": 743, "ctxt": 0 }, "value": "x", @@ -2197,7 +2197,7 @@ "type": "Identifier", "span": { "start": 787, - "end": 793, + "end": 788, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/recursiveTypesWithTypeof.json b/crates/swc_ecma_parser/tests/tsc/recursiveTypesWithTypeof.json index a5ca3a60a547..076ef5be78c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/recursiveTypesWithTypeof.json +++ b/crates/swc_ecma_parser/tests/tsc/recursiveTypesWithTypeof.json @@ -1155,7 +1155,7 @@ "type": "Identifier", "span": { "start": 449, - "end": 460, + "end": 450, "ctxt": 0 }, "value": "x", @@ -1336,7 +1336,7 @@ "type": "Identifier", "span": { "start": 517, - "end": 521, + "end": 518, "ctxt": 0 }, "value": "x", @@ -1697,7 +1697,7 @@ "type": "Identifier", "span": { "start": 650, - "end": 662, + "end": 651, "ctxt": 0 }, "value": "x", @@ -1879,7 +1879,7 @@ "type": "Identifier", "span": { "start": 732, - "end": 736, + "end": 733, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/redefinedPararameterProperty.json b/crates/swc_ecma_parser/tests/tsc/redefinedPararameterProperty.json index f914147d01bb..93c827792a54 100644 --- a/crates/swc_ecma_parser/tests/tsc/redefinedPararameterProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/redefinedPararameterProperty.json @@ -178,7 +178,7 @@ "type": "Identifier", "span": { "start": 227, - "end": 236, + "end": 228, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/relativePathToDeclarationFile.json b/crates/swc_ecma_parser/tests/tsc/relativePathToDeclarationFile.json index 6d37b1bea53f..be2e1589bff8 100644 --- a/crates/swc_ecma_parser/tests/tsc/relativePathToDeclarationFile.json +++ b/crates/swc_ecma_parser/tests/tsc/relativePathToDeclarationFile.json @@ -246,7 +246,7 @@ "type": "Identifier", "span": { "start": 265, - "end": 274, + "end": 266, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/requireAssertsFromTypescript.json b/crates/swc_ecma_parser/tests/tsc/requireAssertsFromTypescript.json index fd79c9ac8e9a..d9778eb7d488 100644 --- a/crates/swc_ecma_parser/tests/tsc/requireAssertsFromTypescript.json +++ b/crates/swc_ecma_parser/tests/tsc/requireAssertsFromTypescript.json @@ -39,7 +39,7 @@ "type": "Identifier", "span": { "start": 130, - "end": 140, + "end": 135, "ctxt": 0 }, "value": "value", @@ -75,7 +75,7 @@ "type": "Identifier", "span": { "start": 142, - "end": 166, + "end": 149, "ctxt": 0 }, "value": "message", @@ -195,7 +195,7 @@ "type": "Identifier", "span": { "start": 228, - "end": 238, + "end": 233, "ctxt": 0 }, "value": "value", @@ -231,7 +231,7 @@ "type": "Identifier", "span": { "start": 240, - "end": 264, + "end": 247, "ctxt": 0 }, "value": "message", diff --git a/crates/swc_ecma_parser/tests/tsc/restTuplesFromContextualTypes.json b/crates/swc_ecma_parser/tests/tsc/restTuplesFromContextualTypes.json index 8ab9404d024f..9cfb565a5b86 100644 --- a/crates/swc_ecma_parser/tests/tsc/restTuplesFromContextualTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/restTuplesFromContextualTypes.json @@ -797,7 +797,7 @@ "type": "Identifier", "span": { "start": 269, - "end": 301, + "end": 271, "ctxt": 0 }, "value": "cb", @@ -2201,7 +2201,7 @@ "type": "Identifier", "span": { "start": 651, - "end": 683, + "end": 653, "ctxt": 0 }, "value": "cb", @@ -3652,7 +3652,7 @@ "type": "Identifier", "span": { "start": 1040, - "end": 1083, + "end": 1042, "ctxt": 0 }, "value": "cb", @@ -3676,7 +3676,7 @@ "type": "Identifier", "span": { "start": 1045, - "end": 1054, + "end": 1046, "ctxt": 0 }, "value": "x", @@ -4302,7 +4302,7 @@ "type": "Identifier", "span": { "start": 1229, - "end": 1233, + "end": 1230, "ctxt": 0 }, "value": "t", @@ -4765,7 +4765,7 @@ "type": "Identifier", "span": { "start": 1357, - "end": 1392, + "end": 1359, "ctxt": 0 }, "value": "cb", @@ -4789,7 +4789,7 @@ "type": "Identifier", "span": { "start": 1362, - "end": 1371, + "end": 1363, "ctxt": 0 }, "value": "x", @@ -5261,7 +5261,7 @@ "type": "Identifier", "span": { "start": 1512, - "end": 1532, + "end": 1513, "ctxt": 0 }, "value": "f", @@ -6127,7 +6127,7 @@ "type": "Identifier", "span": { "start": 1769, - "end": 1789, + "end": 1770, "ctxt": 0 }, "value": "f", @@ -6243,7 +6243,7 @@ "type": "Identifier", "span": { "start": 1791, - "end": 1805, + "end": 1792, "ctxt": 0 }, "value": "g", @@ -6267,7 +6267,7 @@ "type": "Identifier", "span": { "start": 1795, - "end": 1799, + "end": 1796, "ctxt": 0 }, "value": "x", @@ -7379,7 +7379,7 @@ "type": "Identifier", "span": { "start": 2147, - "end": 2181, + "end": 2149, "ctxt": 0 }, "value": "cb", @@ -7403,7 +7403,7 @@ "type": "Identifier", "span": { "start": 2152, - "end": 2161, + "end": 2153, "ctxt": 0 }, "value": "a", @@ -7430,7 +7430,7 @@ "type": "Identifier", "span": { "start": 2163, - "end": 2172, + "end": 2164, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/scannerClass2.json b/crates/swc_ecma_parser/tests/tsc/scannerClass2.json index 81ca691b6b51..d293ca856d7b 100644 --- a/crates/swc_ecma_parser/tests/tsc/scannerClass2.json +++ b/crates/swc_ecma_parser/tests/tsc/scannerClass2.json @@ -66,7 +66,7 @@ "type": "Identifier", "span": { "start": 83, - "end": 98, + "end": 89, "ctxt": 0 }, "value": "logger", diff --git a/crates/swc_ecma_parser/tests/tsc/scannertest1.json b/crates/swc_ecma_parser/tests/tsc/scannertest1.json index e1a857175718..4a8051e85128 100644 --- a/crates/swc_ecma_parser/tests/tsc/scannertest1.json +++ b/crates/swc_ecma_parser/tests/tsc/scannertest1.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 95, - "end": 104, + "end": 96, "ctxt": 0 }, "value": "c", @@ -268,7 +268,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 227, + "end": 219, "ctxt": 0 }, "value": "c", @@ -650,7 +650,7 @@ "type": "Identifier", "span": { "start": 442, - "end": 451, + "end": 443, "ctxt": 0 }, "value": "c", diff --git a/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.json b/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.json index 4fb8cc945278..6cb37f4341d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 37, - "end": 43, + "end": 38, "ctxt": 0 }, "value": "x", @@ -104,7 +104,7 @@ "type": "Identifier", "span": { "start": 59, - "end": 68, + "end": 60, "ctxt": 0 }, "value": "x", @@ -200,7 +200,7 @@ "type": "Identifier", "span": { "start": 93, - "end": 99, + "end": 94, "ctxt": 0 }, "value": "x", @@ -284,7 +284,7 @@ "type": "Identifier", "span": { "start": 110, - "end": 119, + "end": 111, "ctxt": 0 }, "value": "x", @@ -359,7 +359,7 @@ "type": "Identifier", "span": { "start": 130, - "end": 136, + "end": 131, "ctxt": 0 }, "value": "x", @@ -469,7 +469,7 @@ "type": "Identifier", "span": { "start": 167, - "end": 173, + "end": 168, "ctxt": 0 }, "value": "x", @@ -553,7 +553,7 @@ "type": "Identifier", "span": { "start": 184, - "end": 188, + "end": 185, "ctxt": 0 }, "value": "x", @@ -638,7 +638,7 @@ "type": "Identifier", "span": { "start": 199, - "end": 205, + "end": 200, "ctxt": 0 }, "value": "x", @@ -780,7 +780,7 @@ "type": "Identifier", "span": { "start": 251, - "end": 257, + "end": 252, "ctxt": 0 }, "value": "x", @@ -864,7 +864,7 @@ "type": "Identifier", "span": { "start": 268, - "end": 272, + "end": 269, "ctxt": 0 }, "value": "x", @@ -949,7 +949,7 @@ "type": "Identifier", "span": { "start": 283, - "end": 289, + "end": 284, "ctxt": 0 }, "value": "x", @@ -1098,7 +1098,7 @@ "type": "Identifier", "span": { "start": 317, - "end": 323, + "end": 318, "ctxt": 0 }, "value": "x", @@ -1146,7 +1146,7 @@ "type": "Identifier", "span": { "start": 331, - "end": 340, + "end": 332, "ctxt": 0 }, "value": "x", @@ -1198,7 +1198,7 @@ "type": "Identifier", "span": { "start": 351, - "end": 357, + "end": 352, "ctxt": 0 }, "value": "x", @@ -1259,7 +1259,7 @@ "type": "Identifier", "span": { "start": 368, - "end": 377, + "end": 369, "ctxt": 0 }, "value": "x", @@ -1361,7 +1361,7 @@ "type": "Identifier", "span": { "start": 406, - "end": 412, + "end": 407, "ctxt": 0 }, "value": "x", @@ -1409,7 +1409,7 @@ "type": "Identifier", "span": { "start": 420, - "end": 424, + "end": 421, "ctxt": 0 }, "value": "x", @@ -1471,7 +1471,7 @@ "type": "Identifier", "span": { "start": 435, - "end": 441, + "end": 436, "ctxt": 0 }, "value": "x", @@ -1532,7 +1532,7 @@ "type": "Identifier", "span": { "start": 452, - "end": 456, + "end": 453, "ctxt": 0 }, "value": "x", @@ -1662,7 +1662,7 @@ "type": "Identifier", "span": { "start": 500, - "end": 506, + "end": 501, "ctxt": 0 }, "value": "x", @@ -1710,7 +1710,7 @@ "type": "Identifier", "span": { "start": 514, - "end": 518, + "end": 515, "ctxt": 0 }, "value": "x", @@ -1772,7 +1772,7 @@ "type": "Identifier", "span": { "start": 529, - "end": 535, + "end": 530, "ctxt": 0 }, "value": "x", @@ -1833,7 +1833,7 @@ "type": "Identifier", "span": { "start": 546, - "end": 550, + "end": 547, "ctxt": 0 }, "value": "x", @@ -1926,7 +1926,7 @@ "type": "Identifier", "span": { "start": 570, - "end": 576, + "end": 571, "ctxt": 0 }, "value": "x", @@ -1974,7 +1974,7 @@ "type": "Identifier", "span": { "start": 584, - "end": 593, + "end": 585, "ctxt": 0 }, "value": "x", @@ -2026,7 +2026,7 @@ "type": "Identifier", "span": { "start": 604, - "end": 610, + "end": 605, "ctxt": 0 }, "value": "x", @@ -2087,7 +2087,7 @@ "type": "Identifier", "span": { "start": 621, - "end": 630, + "end": 622, "ctxt": 0 }, "value": "x", @@ -2176,7 +2176,7 @@ "type": "Identifier", "span": { "start": 651, - "end": 657, + "end": 652, "ctxt": 0 }, "value": "x", @@ -2224,7 +2224,7 @@ "type": "Identifier", "span": { "start": 668, - "end": 672, + "end": 669, "ctxt": 0 }, "value": "x", @@ -2318,7 +2318,7 @@ "type": "Identifier", "span": { "start": 683, - "end": 689, + "end": 684, "ctxt": 0 }, "value": "x", @@ -2379,7 +2379,7 @@ "type": "Identifier", "span": { "start": 703, - "end": 707, + "end": 704, "ctxt": 0 }, "value": "x", @@ -2510,7 +2510,7 @@ "type": "Identifier", "span": { "start": 728, - "end": 734, + "end": 729, "ctxt": 0 }, "value": "x", @@ -2558,7 +2558,7 @@ "type": "Identifier", "span": { "start": 745, - "end": 749, + "end": 746, "ctxt": 0 }, "value": "x", @@ -2652,7 +2652,7 @@ "type": "Identifier", "span": { "start": 760, - "end": 766, + "end": 761, "ctxt": 0 }, "value": "x", @@ -2713,7 +2713,7 @@ "type": "Identifier", "span": { "start": 795, - "end": 799, + "end": 796, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsSubtypeOfNonSpecializedSignature.json b/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsSubtypeOfNonSpecializedSignature.json index e512dddd941d..32f49c56235f 100644 --- a/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsSubtypeOfNonSpecializedSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsSubtypeOfNonSpecializedSignature.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 128, - "end": 134, + "end": 129, "ctxt": 0 }, "value": "x", @@ -104,7 +104,7 @@ "type": "Identifier", "span": { "start": 150, - "end": 159, + "end": 151, "ctxt": 0 }, "value": "x", @@ -167,7 +167,7 @@ "type": "Identifier", "span": { "start": 175, - "end": 181, + "end": 176, "ctxt": 0 }, "value": "x", @@ -263,7 +263,7 @@ "type": "Identifier", "span": { "start": 206, - "end": 212, + "end": 207, "ctxt": 0 }, "value": "x", @@ -347,7 +347,7 @@ "type": "Identifier", "span": { "start": 223, - "end": 232, + "end": 224, "ctxt": 0 }, "value": "x", @@ -422,7 +422,7 @@ "type": "Identifier", "span": { "start": 243, - "end": 249, + "end": 244, "ctxt": 0 }, "value": "x", @@ -532,7 +532,7 @@ "type": "Identifier", "span": { "start": 280, - "end": 286, + "end": 281, "ctxt": 0 }, "value": "x", @@ -616,7 +616,7 @@ "type": "Identifier", "span": { "start": 297, - "end": 306, + "end": 298, "ctxt": 0 }, "value": "x", @@ -691,7 +691,7 @@ "type": "Identifier", "span": { "start": 317, - "end": 321, + "end": 318, "ctxt": 0 }, "value": "x", @@ -776,7 +776,7 @@ "type": "Identifier", "span": { "start": 332, - "end": 338, + "end": 333, "ctxt": 0 }, "value": "x", @@ -918,7 +918,7 @@ "type": "Identifier", "span": { "start": 384, - "end": 390, + "end": 385, "ctxt": 0 }, "value": "x", @@ -1002,7 +1002,7 @@ "type": "Identifier", "span": { "start": 401, - "end": 410, + "end": 402, "ctxt": 0 }, "value": "x", @@ -1077,7 +1077,7 @@ "type": "Identifier", "span": { "start": 421, - "end": 425, + "end": 422, "ctxt": 0 }, "value": "x", @@ -1162,7 +1162,7 @@ "type": "Identifier", "span": { "start": 436, - "end": 442, + "end": 437, "ctxt": 0 }, "value": "x", @@ -1311,7 +1311,7 @@ "type": "Identifier", "span": { "start": 470, - "end": 476, + "end": 471, "ctxt": 0 }, "value": "x", @@ -1359,7 +1359,7 @@ "type": "Identifier", "span": { "start": 484, - "end": 493, + "end": 485, "ctxt": 0 }, "value": "x", @@ -1398,7 +1398,7 @@ "type": "Identifier", "span": { "start": 501, - "end": 510, + "end": 502, "ctxt": 0 }, "value": "x", @@ -1450,7 +1450,7 @@ "type": "Identifier", "span": { "start": 521, - "end": 527, + "end": 522, "ctxt": 0 }, "value": "x", @@ -1511,7 +1511,7 @@ "type": "Identifier", "span": { "start": 538, - "end": 547, + "end": 539, "ctxt": 0 }, "value": "x", @@ -1563,7 +1563,7 @@ "type": "Identifier", "span": { "start": 558, - "end": 567, + "end": 559, "ctxt": 0 }, "value": "x", @@ -1665,7 +1665,7 @@ "type": "Identifier", "span": { "start": 596, - "end": 602, + "end": 597, "ctxt": 0 }, "value": "x", @@ -1713,7 +1713,7 @@ "type": "Identifier", "span": { "start": 610, - "end": 614, + "end": 611, "ctxt": 0 }, "value": "x", @@ -1762,7 +1762,7 @@ "type": "Identifier", "span": { "start": 622, - "end": 631, + "end": 623, "ctxt": 0 }, "value": "x", @@ -1814,7 +1814,7 @@ "type": "Identifier", "span": { "start": 642, - "end": 648, + "end": 643, "ctxt": 0 }, "value": "x", @@ -1875,7 +1875,7 @@ "type": "Identifier", "span": { "start": 659, - "end": 668, + "end": 660, "ctxt": 0 }, "value": "x", @@ -1927,7 +1927,7 @@ "type": "Identifier", "span": { "start": 679, - "end": 683, + "end": 680, "ctxt": 0 }, "value": "x", @@ -2057,7 +2057,7 @@ "type": "Identifier", "span": { "start": 727, - "end": 733, + "end": 728, "ctxt": 0 }, "value": "x", @@ -2105,7 +2105,7 @@ "type": "Identifier", "span": { "start": 741, - "end": 750, + "end": 742, "ctxt": 0 }, "value": "x", @@ -2144,7 +2144,7 @@ "type": "Identifier", "span": { "start": 758, - "end": 762, + "end": 759, "ctxt": 0 }, "value": "x", @@ -2206,7 +2206,7 @@ "type": "Identifier", "span": { "start": 773, - "end": 779, + "end": 774, "ctxt": 0 }, "value": "x", @@ -2267,7 +2267,7 @@ "type": "Identifier", "span": { "start": 790, - "end": 799, + "end": 791, "ctxt": 0 }, "value": "x", @@ -2319,7 +2319,7 @@ "type": "Identifier", "span": { "start": 810, - "end": 814, + "end": 811, "ctxt": 0 }, "value": "x", @@ -2412,7 +2412,7 @@ "type": "Identifier", "span": { "start": 834, - "end": 843, + "end": 835, "ctxt": 0 }, "value": "x", @@ -2451,7 +2451,7 @@ "type": "Identifier", "span": { "start": 851, - "end": 857, + "end": 852, "ctxt": 0 }, "value": "x", @@ -2499,7 +2499,7 @@ "type": "Identifier", "span": { "start": 865, - "end": 874, + "end": 866, "ctxt": 0 }, "value": "x", @@ -2551,7 +2551,7 @@ "type": "Identifier", "span": { "start": 885, - "end": 894, + "end": 886, "ctxt": 0 }, "value": "x", @@ -2603,7 +2603,7 @@ "type": "Identifier", "span": { "start": 905, - "end": 911, + "end": 906, "ctxt": 0 }, "value": "x", @@ -2664,7 +2664,7 @@ "type": "Identifier", "span": { "start": 922, - "end": 931, + "end": 923, "ctxt": 0 }, "value": "x", @@ -2753,7 +2753,7 @@ "type": "Identifier", "span": { "start": 952, - "end": 958, + "end": 953, "ctxt": 0 }, "value": "x", @@ -2801,7 +2801,7 @@ "type": "Identifier", "span": { "start": 966, - "end": 975, + "end": 967, "ctxt": 0 }, "value": "x", @@ -2840,7 +2840,7 @@ "type": "Identifier", "span": { "start": 986, - "end": 990, + "end": 987, "ctxt": 0 }, "value": "x", @@ -2934,7 +2934,7 @@ "type": "Identifier", "span": { "start": 1001, - "end": 1010, + "end": 1002, "ctxt": 0 }, "value": "x", @@ -2986,7 +2986,7 @@ "type": "Identifier", "span": { "start": 1021, - "end": 1027, + "end": 1022, "ctxt": 0 }, "value": "x", @@ -3047,7 +3047,7 @@ "type": "Identifier", "span": { "start": 1041, - "end": 1045, + "end": 1042, "ctxt": 0 }, "value": "x", @@ -3178,7 +3178,7 @@ "type": "Identifier", "span": { "start": 1066, - "end": 1072, + "end": 1067, "ctxt": 0 }, "value": "x", @@ -3226,7 +3226,7 @@ "type": "Identifier", "span": { "start": 1083, - "end": 1087, + "end": 1084, "ctxt": 0 }, "value": "x", @@ -3307,7 +3307,7 @@ "type": "Identifier", "span": { "start": 1095, - "end": 1104, + "end": 1096, "ctxt": 0 }, "value": "x", @@ -3359,7 +3359,7 @@ "type": "Identifier", "span": { "start": 1115, - "end": 1124, + "end": 1116, "ctxt": 0 }, "value": "x", @@ -3411,7 +3411,7 @@ "type": "Identifier", "span": { "start": 1135, - "end": 1141, + "end": 1136, "ctxt": 0 }, "value": "x", @@ -3472,7 +3472,7 @@ "type": "Identifier", "span": { "start": 1170, - "end": 1174, + "end": 1171, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/specializedSignatureWithOptional.json b/crates/swc_ecma_parser/tests/tsc/specializedSignatureWithOptional.json index 13a4c5614863..f71215ff4c63 100644 --- a/crates/swc_ecma_parser/tests/tsc/specializedSignatureWithOptional.json +++ b/crates/swc_ecma_parser/tests/tsc/specializedSignatureWithOptional.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 20, - "end": 28, + "end": 21, "ctxt": 0 }, "value": "x", @@ -120,7 +120,7 @@ "type": "Identifier", "span": { "start": 56, - "end": 66, + "end": 57, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/spreadObjectOrFalsy.json b/crates/swc_ecma_parser/tests/tsc/spreadObjectOrFalsy.json index 55d880c556b7..07220b9c5683 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadObjectOrFalsy.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadObjectOrFalsy.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 56, - "end": 72, + "end": 57, "ctxt": 0 }, "value": "a", @@ -201,7 +201,7 @@ "type": "Identifier", "span": { "start": 125, - "end": 145, + "end": 126, "ctxt": 0 }, "value": "a", @@ -399,7 +399,7 @@ "type": "Identifier", "span": { "start": 206, - "end": 210, + "end": 207, "ctxt": 0 }, "value": "a", @@ -557,7 +557,7 @@ "type": "Identifier", "span": { "start": 281, - "end": 294, + "end": 282, "ctxt": 0 }, "value": "a", @@ -734,7 +734,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 366, + "end": 359, "ctxt": 0 }, "value": "a", @@ -944,7 +944,7 @@ "type": "Identifier", "span": { "start": 436, - "end": 440, + "end": 437, "ctxt": 0 }, "value": "a", @@ -1121,7 +1121,7 @@ "type": "Identifier", "span": { "start": 554, - "end": 558, + "end": 555, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/spreadOverwritesProperty.json b/crates/swc_ecma_parser/tests/tsc/spreadOverwritesProperty.json index e91385855770..4f38a6ee17e7 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadOverwritesProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadOverwritesProperty.json @@ -540,7 +540,7 @@ "type": "Identifier", "span": { "start": 255, - "end": 285, + "end": 258, "ctxt": 0 }, "value": "obj", @@ -732,7 +732,7 @@ "type": "Identifier", "span": { "start": 331, - "end": 349, + "end": 334, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/tsc/spreadOverwritesPropertyStrict.json b/crates/swc_ecma_parser/tests/tsc/spreadOverwritesPropertyStrict.json index d72fec297103..4f96097cc20c 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadOverwritesPropertyStrict.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadOverwritesPropertyStrict.json @@ -706,7 +706,7 @@ "type": "Identifier", "span": { "start": 417, - "end": 447, + "end": 420, "ctxt": 0 }, "value": "obj", @@ -898,7 +898,7 @@ "type": "Identifier", "span": { "start": 528, - "end": 558, + "end": 531, "ctxt": 0 }, "value": "obj", @@ -1090,7 +1090,7 @@ "type": "Identifier", "span": { "start": 634, - "end": 668, + "end": 637, "ctxt": 0 }, "value": "obj", @@ -1324,7 +1324,7 @@ "type": "Identifier", "span": { "start": 722, - "end": 732, + "end": 723, "ctxt": 0 }, "value": "b", @@ -1360,7 +1360,7 @@ "type": "Identifier", "span": { "start": 734, - "end": 768, + "end": 735, "ctxt": 0 }, "value": "t", @@ -1744,7 +1744,7 @@ "type": "Identifier", "span": { "start": 920, - "end": 954, + "end": 921, "ctxt": 0 }, "value": "t", @@ -2020,7 +2020,7 @@ "type": "Identifier", "span": { "start": 1054, - "end": 1077, + "end": 1065, "ctxt": 0 }, "value": "anyrequired", @@ -2193,7 +2193,7 @@ "type": "Identifier", "span": { "start": 1143, - "end": 1167, + "end": 1154, "ctxt": 0 }, "value": "anyoptional", diff --git a/crates/swc_ecma_parser/tests/tsc/spreadTypeVariable.json b/crates/swc_ecma_parser/tests/tsc/spreadTypeVariable.json index 8ece9da1d9c7..ff2aea04a65f 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadTypeVariable.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadTypeVariable.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 31, - "end": 37, + "end": 34, "ctxt": 0 }, "value": "arg", @@ -190,7 +190,7 @@ "type": "Identifier", "span": { "start": 97, - "end": 103, + "end": 100, "ctxt": 0 }, "value": "arg", @@ -356,7 +356,7 @@ "type": "Identifier", "span": { "start": 171, - "end": 177, + "end": 174, "ctxt": 0 }, "value": "arg", @@ -541,7 +541,7 @@ "type": "Identifier", "span": { "start": 259, - "end": 265, + "end": 262, "ctxt": 0 }, "value": "arg", @@ -775,7 +775,7 @@ "type": "Identifier", "span": { "start": 349, - "end": 355, + "end": 352, "ctxt": 0 }, "value": "arg", @@ -1017,7 +1017,7 @@ "type": "Identifier", "span": { "start": 397, - "end": 403, + "end": 400, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/spreadUnion3.json b/crates/swc_ecma_parser/tests/tsc/spreadUnion3.json index 652ab4f4b47a..8e533ce15a18 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadUnion3.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadUnion3.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 39, - "end": 67, + "end": 40, "ctxt": 0 }, "value": "x", @@ -324,7 +324,7 @@ "type": "Identifier", "span": { "start": 164, - "end": 188, + "end": 165, "ctxt": 0 }, "value": "t", diff --git a/crates/swc_ecma_parser/tests/tsc/staticIndexSignature6.json b/crates/swc_ecma_parser/tests/tsc/staticIndexSignature6.json index 160a9ca0409e..6ff537997a7b 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticIndexSignature6.json +++ b/crates/swc_ecma_parser/tests/tsc/staticIndexSignature6.json @@ -203,7 +203,7 @@ "type": "Identifier", "span": { "start": 138, - "end": 142, + "end": 139, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/staticMemberAssignsToConstructorFunctionMembers.json b/crates/swc_ecma_parser/tests/tsc/staticMemberAssignsToConstructorFunctionMembers.json index b153d50a0baa..83b1b65adfed 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticMemberAssignsToConstructorFunctionMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/staticMemberAssignsToConstructorFunctionMembers.json @@ -171,7 +171,7 @@ "type": "Identifier", "span": { "start": 78, - "end": 87, + "end": 79, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/staticMembersUsingClassTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/staticMembersUsingClassTypeParameter.json index 5f9b331ddaae..df71a3965a62 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticMembersUsingClassTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/staticMembersUsingClassTypeParameter.json @@ -112,7 +112,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 62, + "end": 59, "ctxt": 0 }, "value": "x", @@ -319,7 +319,7 @@ "type": "Identifier", "span": { "start": 117, - "end": 121, + "end": 118, "ctxt": 0 }, "value": "x", @@ -549,7 +549,7 @@ "type": "Identifier", "span": { "start": 187, - "end": 191, + "end": 188, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/staticPropertyNotInClassType.json b/crates/swc_ecma_parser/tests/tsc/staticPropertyNotInClassType.json index 873a55154dc9..a1b78890cbf7 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticPropertyNotInClassType.json +++ b/crates/swc_ecma_parser/tests/tsc/staticPropertyNotInClassType.json @@ -281,7 +281,7 @@ "type": "Identifier", "span": { "start": 157, - "end": 166, + "end": 158, "ctxt": 0 }, "value": "a", @@ -320,7 +320,7 @@ "type": "Identifier", "span": { "start": 176, - "end": 185, + "end": 177, "ctxt": 0 }, "value": "b", @@ -1096,7 +1096,7 @@ "type": "Identifier", "span": { "start": 631, - "end": 635, + "end": 632, "ctxt": 0 }, "value": "a", @@ -1145,7 +1145,7 @@ "type": "Identifier", "span": { "start": 645, - "end": 649, + "end": 646, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/strictBindCallApply1.json b/crates/swc_ecma_parser/tests/tsc/strictBindCallApply1.json index 7b95fdbca3bf..493d0d140079 100644 --- a/crates/swc_ecma_parser/tests/tsc/strictBindCallApply1.json +++ b/crates/swc_ecma_parser/tests/tsc/strictBindCallApply1.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 40, - "end": 49, + "end": 41, "ctxt": 0 }, "value": "a", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 51, - "end": 60, + "end": 52, "ctxt": 0 }, "value": "b", @@ -147,7 +147,7 @@ "type": "Identifier", "span": { "start": 100, - "end": 109, + "end": 101, "ctxt": 0 }, "value": "s", @@ -226,7 +226,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 157, + "end": 149, "ctxt": 0 }, "value": "n", @@ -305,7 +305,7 @@ "type": "Identifier", "span": { "start": 197, - "end": 201, + "end": 198, "ctxt": 0 }, "value": "x", @@ -1961,7 +1961,7 @@ "type": "Identifier", "span": { "start": 915, - "end": 924, + "end": 916, "ctxt": 0 }, "value": "a", @@ -1997,7 +1997,7 @@ "type": "Identifier", "span": { "start": 926, - "end": 935, + "end": 927, "ctxt": 0 }, "value": "b", @@ -2065,7 +2065,7 @@ "type": "Identifier", "span": { "start": 948, - "end": 958, + "end": 952, "ctxt": 0 }, "value": "this", @@ -2100,7 +2100,7 @@ "type": "Identifier", "span": { "start": 960, - "end": 969, + "end": 961, "ctxt": 0 }, "value": "a", @@ -2136,7 +2136,7 @@ "type": "Identifier", "span": { "start": 971, - "end": 980, + "end": 972, "ctxt": 0 }, "value": "b", @@ -2254,7 +2254,7 @@ "type": "Identifier", "span": { "start": 1019, - "end": 1028, + "end": 1020, "ctxt": 0 }, "value": "s", @@ -2345,7 +2345,7 @@ "type": "Identifier", "span": { "start": 1054, - "end": 1063, + "end": 1055, "ctxt": 0 }, "value": "n", @@ -2436,7 +2436,7 @@ "type": "Identifier", "span": { "start": 1089, - "end": 1095, + "end": 1090, "ctxt": 0 }, "value": "x", @@ -2571,7 +2571,7 @@ "type": "Identifier", "span": { "start": 1143, - "end": 1147, + "end": 1144, "ctxt": 0 }, "value": "x", @@ -6116,7 +6116,7 @@ "type": "Identifier", "span": { "start": 2419, - "end": 2458, + "end": 2427, "ctxt": 0 }, "value": "callback", @@ -6140,7 +6140,7 @@ "type": "Identifier", "span": { "start": 2430, - "end": 2437, + "end": 2434, "ctxt": 0 }, "value": "this", @@ -6462,7 +6462,7 @@ "type": "Identifier", "span": { "start": 2548, - "end": 2630, + "end": 2556, "ctxt": 0 }, "value": "callback", @@ -6486,7 +6486,7 @@ "type": "Identifier", "span": { "start": 2559, - "end": 2566, + "end": 2563, "ctxt": 0 }, "value": "this", diff --git a/crates/swc_ecma_parser/tests/tsc/strictBindCallApply2.json b/crates/swc_ecma_parser/tests/tsc/strictBindCallApply2.json index 906cde1432d9..56a8222dbc6e 100644 --- a/crates/swc_ecma_parser/tests/tsc/strictBindCallApply2.json +++ b/crates/swc_ecma_parser/tests/tsc/strictBindCallApply2.json @@ -112,7 +112,7 @@ "type": "Identifier", "span": { "start": 129, - "end": 138, + "end": 133, "ctxt": 0 }, "value": "this", diff --git a/crates/swc_ecma_parser/tests/tsc/strictNullChecksNoWidening.json b/crates/swc_ecma_parser/tests/tsc/strictNullChecksNoWidening.json index 380bd9a549a6..0a9bce4cfb4f 100644 --- a/crates/swc_ecma_parser/tests/tsc/strictNullChecksNoWidening.json +++ b/crates/swc_ecma_parser/tests/tsc/strictNullChecksNoWidening.json @@ -438,7 +438,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 197, + "end": 194, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/strictPropertyInitialization.json b/crates/swc_ecma_parser/tests/tsc/strictPropertyInitialization.json index aa1499c0b03f..a23b65e35785 100644 --- a/crates/swc_ecma_parser/tests/tsc/strictPropertyInitialization.json +++ b/crates/swc_ecma_parser/tests/tsc/strictPropertyInitialization.json @@ -1976,7 +1976,7 @@ "type": "Identifier", "span": { "start": 1224, - "end": 1237, + "end": 1228, "ctxt": 0 }, "value": "cond", @@ -2319,7 +2319,7 @@ "type": "Identifier", "span": { "start": 1399, - "end": 1412, + "end": 1403, "ctxt": 0 }, "value": "cond", diff --git a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes1.json b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes1.json index 2dcaae7c7e3f..17c5aa949efc 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes1.json @@ -841,7 +841,7 @@ "type": "Identifier", "span": { "start": 335, - "end": 343, + "end": 336, "ctxt": 0 }, "value": "a", @@ -887,7 +887,7 @@ "type": "Identifier", "span": { "start": 345, - "end": 360, + "end": 346, "ctxt": 0 }, "value": "b", @@ -933,7 +933,7 @@ "type": "Identifier", "span": { "start": 362, - "end": 371, + "end": 363, "ctxt": 0 }, "value": "c", @@ -1129,7 +1129,7 @@ "type": "Identifier", "span": { "start": 423, - "end": 436, + "end": 424, "ctxt": 0 }, "value": "a", @@ -1188,7 +1188,7 @@ "type": "Identifier", "span": { "start": 438, - "end": 446, + "end": 439, "ctxt": 0 }, "value": "b", @@ -1870,7 +1870,7 @@ "type": "Identifier", "span": { "start": 667, - "end": 680, + "end": 668, "ctxt": 0 }, "value": "x", @@ -1972,7 +1972,7 @@ "type": "Identifier", "span": { "start": 710, - "end": 722, + "end": 711, "ctxt": 0 }, "value": "x", @@ -2074,7 +2074,7 @@ "type": "Identifier", "span": { "start": 753, - "end": 762, + "end": 754, "ctxt": 0 }, "value": "x", @@ -2163,7 +2163,7 @@ "type": "Identifier", "span": { "start": 786, - "end": 794, + "end": 787, "ctxt": 0 }, "value": "a", @@ -2209,7 +2209,7 @@ "type": "Identifier", "span": { "start": 796, - "end": 811, + "end": 797, "ctxt": 0 }, "value": "b", @@ -2255,7 +2255,7 @@ "type": "Identifier", "span": { "start": 813, - "end": 822, + "end": 814, "ctxt": 0 }, "value": "c", @@ -2703,7 +2703,7 @@ "type": "Identifier", "span": { "start": 962, - "end": 970, + "end": 963, "ctxt": 0 }, "value": "x", @@ -2833,7 +2833,7 @@ "type": "Identifier", "span": { "start": 1038, - "end": 1046, + "end": 1039, "ctxt": 0 }, "value": "x", @@ -3047,7 +3047,7 @@ "type": "Identifier", "span": { "start": 1169, - "end": 1177, + "end": 1170, "ctxt": 0 }, "value": "x", @@ -3303,7 +3303,7 @@ "type": "Identifier", "span": { "start": 1327, - "end": 1342, + "end": 1328, "ctxt": 0 }, "value": "x", @@ -3459,7 +3459,7 @@ "type": "Identifier", "span": { "start": 1420, - "end": 1435, + "end": 1421, "ctxt": 0 }, "value": "x", @@ -3912,7 +3912,7 @@ "type": "Identifier", "span": { "start": 1615, - "end": 1622, + "end": 1616, "ctxt": 0 }, "value": "x", @@ -4180,7 +4180,7 @@ "type": "Identifier", "span": { "start": 1743, - "end": 1750, + "end": 1744, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes2.json b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes2.json index 800cf7506c4e..0c1b0e2ec3d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes2.json @@ -841,7 +841,7 @@ "type": "Identifier", "span": { "start": 363, - "end": 371, + "end": 364, "ctxt": 0 }, "value": "a", @@ -887,7 +887,7 @@ "type": "Identifier", "span": { "start": 373, - "end": 388, + "end": 374, "ctxt": 0 }, "value": "b", @@ -933,7 +933,7 @@ "type": "Identifier", "span": { "start": 390, - "end": 399, + "end": 391, "ctxt": 0 }, "value": "c", @@ -1129,7 +1129,7 @@ "type": "Identifier", "span": { "start": 451, - "end": 464, + "end": 452, "ctxt": 0 }, "value": "a", @@ -1188,7 +1188,7 @@ "type": "Identifier", "span": { "start": 466, - "end": 474, + "end": 467, "ctxt": 0 }, "value": "b", @@ -1870,7 +1870,7 @@ "type": "Identifier", "span": { "start": 695, - "end": 708, + "end": 696, "ctxt": 0 }, "value": "x", @@ -1972,7 +1972,7 @@ "type": "Identifier", "span": { "start": 738, - "end": 750, + "end": 739, "ctxt": 0 }, "value": "x", @@ -2074,7 +2074,7 @@ "type": "Identifier", "span": { "start": 781, - "end": 790, + "end": 782, "ctxt": 0 }, "value": "x", @@ -2163,7 +2163,7 @@ "type": "Identifier", "span": { "start": 814, - "end": 822, + "end": 815, "ctxt": 0 }, "value": "a", @@ -2209,7 +2209,7 @@ "type": "Identifier", "span": { "start": 824, - "end": 839, + "end": 825, "ctxt": 0 }, "value": "b", @@ -2255,7 +2255,7 @@ "type": "Identifier", "span": { "start": 841, - "end": 850, + "end": 842, "ctxt": 0 }, "value": "c", @@ -2703,7 +2703,7 @@ "type": "Identifier", "span": { "start": 990, - "end": 998, + "end": 991, "ctxt": 0 }, "value": "x", @@ -2833,7 +2833,7 @@ "type": "Identifier", "span": { "start": 1066, - "end": 1074, + "end": 1067, "ctxt": 0 }, "value": "x", @@ -3047,7 +3047,7 @@ "type": "Identifier", "span": { "start": 1197, - "end": 1205, + "end": 1198, "ctxt": 0 }, "value": "x", @@ -3303,7 +3303,7 @@ "type": "Identifier", "span": { "start": 1355, - "end": 1370, + "end": 1356, "ctxt": 0 }, "value": "x", @@ -3459,7 +3459,7 @@ "type": "Identifier", "span": { "start": 1448, - "end": 1463, + "end": 1449, "ctxt": 0 }, "value": "x", @@ -3912,7 +3912,7 @@ "type": "Identifier", "span": { "start": 1643, - "end": 1650, + "end": 1644, "ctxt": 0 }, "value": "x", @@ -4180,7 +4180,7 @@ "type": "Identifier", "span": { "start": 1771, - "end": 1778, + "end": 1772, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes3.json b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes3.json index a225d245f5d0..c7eea43e9d24 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes3.json @@ -512,7 +512,7 @@ "type": "Identifier", "span": { "start": 233, - "end": 239, + "end": 234, "ctxt": 0 }, "value": "a", @@ -558,7 +558,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 249, + "end": 242, "ctxt": 0 }, "value": "b", @@ -604,7 +604,7 @@ "type": "Identifier", "span": { "start": 251, - "end": 266, + "end": 252, "ctxt": 0 }, "value": "c", @@ -650,7 +650,7 @@ "type": "Identifier", "span": { "start": 268, - "end": 277, + "end": 269, "ctxt": 0 }, "value": "d", @@ -884,7 +884,7 @@ "type": "Identifier", "span": { "start": 340, - "end": 346, + "end": 341, "ctxt": 0 }, "value": "a", @@ -930,7 +930,7 @@ "type": "Identifier", "span": { "start": 348, - "end": 356, + "end": 349, "ctxt": 0 }, "value": "b", @@ -976,7 +976,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 373, + "end": 359, "ctxt": 0 }, "value": "c", @@ -1022,7 +1022,7 @@ "type": "Identifier", "span": { "start": 375, - "end": 384, + "end": 376, "ctxt": 0 }, "value": "d", @@ -1256,7 +1256,7 @@ "type": "Identifier", "span": { "start": 447, - "end": 453, + "end": 448, "ctxt": 0 }, "value": "a", @@ -1302,7 +1302,7 @@ "type": "Identifier", "span": { "start": 455, - "end": 463, + "end": 456, "ctxt": 0 }, "value": "b", @@ -1348,7 +1348,7 @@ "type": "Identifier", "span": { "start": 465, - "end": 480, + "end": 466, "ctxt": 0 }, "value": "c", @@ -1394,7 +1394,7 @@ "type": "Identifier", "span": { "start": 482, - "end": 491, + "end": 483, "ctxt": 0 }, "value": "d", @@ -1628,7 +1628,7 @@ "type": "Identifier", "span": { "start": 554, - "end": 560, + "end": 555, "ctxt": 0 }, "value": "a", @@ -1674,7 +1674,7 @@ "type": "Identifier", "span": { "start": 562, - "end": 570, + "end": 563, "ctxt": 0 }, "value": "b", @@ -1720,7 +1720,7 @@ "type": "Identifier", "span": { "start": 572, - "end": 587, + "end": 573, "ctxt": 0 }, "value": "c", @@ -1766,7 +1766,7 @@ "type": "Identifier", "span": { "start": 589, - "end": 598, + "end": 590, "ctxt": 0 }, "value": "d", @@ -2000,7 +2000,7 @@ "type": "Identifier", "span": { "start": 661, - "end": 667, + "end": 662, "ctxt": 0 }, "value": "a", @@ -2046,7 +2046,7 @@ "type": "Identifier", "span": { "start": 669, - "end": 677, + "end": 670, "ctxt": 0 }, "value": "b", @@ -2092,7 +2092,7 @@ "type": "Identifier", "span": { "start": 679, - "end": 694, + "end": 680, "ctxt": 0 }, "value": "c", @@ -2138,7 +2138,7 @@ "type": "Identifier", "span": { "start": 696, - "end": 705, + "end": 697, "ctxt": 0 }, "value": "d", @@ -2892,7 +2892,7 @@ "type": "Identifier", "span": { "start": 976, - "end": 982, + "end": 977, "ctxt": 0 }, "value": "a", @@ -2938,7 +2938,7 @@ "type": "Identifier", "span": { "start": 984, - "end": 992, + "end": 985, "ctxt": 0 }, "value": "b", @@ -2984,7 +2984,7 @@ "type": "Identifier", "span": { "start": 994, - "end": 1009, + "end": 995, "ctxt": 0 }, "value": "c", @@ -3030,7 +3030,7 @@ "type": "Identifier", "span": { "start": 1011, - "end": 1020, + "end": 1012, "ctxt": 0 }, "value": "d", @@ -3772,7 +3772,7 @@ "type": "Identifier", "span": { "start": 1315, - "end": 1321, + "end": 1316, "ctxt": 0 }, "value": "a", @@ -3818,7 +3818,7 @@ "type": "Identifier", "span": { "start": 1323, - "end": 1331, + "end": 1324, "ctxt": 0 }, "value": "b", @@ -3864,7 +3864,7 @@ "type": "Identifier", "span": { "start": 1333, - "end": 1348, + "end": 1334, "ctxt": 0 }, "value": "c", @@ -3910,7 +3910,7 @@ "type": "Identifier", "span": { "start": 1350, - "end": 1359, + "end": 1351, "ctxt": 0 }, "value": "d", @@ -4584,7 +4584,7 @@ "type": "Identifier", "span": { "start": 1587, - "end": 1593, + "end": 1588, "ctxt": 0 }, "value": "x", @@ -4898,7 +4898,7 @@ "type": "Identifier", "span": { "start": 1763, - "end": 1771, + "end": 1764, "ctxt": 0 }, "value": "x", @@ -5212,7 +5212,7 @@ "type": "Identifier", "span": { "start": 1943, - "end": 1958, + "end": 1944, "ctxt": 0 }, "value": "x", @@ -5526,7 +5526,7 @@ "type": "Identifier", "span": { "start": 2137, - "end": 2146, + "end": 2138, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralCheckedInIf01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralCheckedInIf01.json index 34d04fbc1293..aaf123afcf7f 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralCheckedInIf01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralCheckedInIf01.json @@ -174,7 +174,7 @@ "type": "Identifier", "span": { "start": 52, - "end": 58, + "end": 55, "ctxt": 0 }, "value": "foo", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralCheckedInIf02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralCheckedInIf02.json index 4dc456c24ef5..1182d01bf233 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralCheckedInIf02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralCheckedInIf02.json @@ -174,7 +174,7 @@ "type": "Identifier", "span": { "start": 54, - "end": 58, + "end": 55, "ctxt": 0 }, "value": "t", @@ -384,7 +384,7 @@ "type": "Identifier", "span": { "start": 119, - "end": 125, + "end": 122, "ctxt": 0 }, "value": "foo", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralType.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralType.json index 674bf0251820..8f4142519b43 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralType.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralType.json @@ -90,7 +90,7 @@ "type": "Identifier", "span": { "start": 26, - "end": 33, + "end": 27, "ctxt": 0 }, "value": "x", @@ -162,7 +162,7 @@ "type": "Identifier", "span": { "start": 47, - "end": 56, + "end": 48, "ctxt": 0 }, "value": "x", @@ -225,7 +225,7 @@ "type": "Identifier", "span": { "start": 70, - "end": 76, + "end": 71, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypeIsSubtypeOfString.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypeIsSubtypeOfString.json index 071e3d7ee1cc..3f4b68fc278f 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypeIsSubtypeOfString.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypeIsSubtypeOfString.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 72, - "end": 78, + "end": 73, "ctxt": 0 }, "value": "x", @@ -104,7 +104,7 @@ "type": "Identifier", "span": { "start": 93, - "end": 102, + "end": 94, "ctxt": 0 }, "value": "x", @@ -167,7 +167,7 @@ "type": "Identifier", "span": { "start": 117, - "end": 126, + "end": 118, "ctxt": 0 }, "value": "x", @@ -238,7 +238,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 157, + "end": 152, "ctxt": 0 }, "value": "x", @@ -310,7 +310,7 @@ "type": "Identifier", "span": { "start": 172, - "end": 178, + "end": 173, "ctxt": 0 }, "value": "x", @@ -373,7 +373,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 199, + "end": 194, "ctxt": 0 }, "value": "x", @@ -444,7 +444,7 @@ "type": "Identifier", "span": { "start": 228, - "end": 234, + "end": 229, "ctxt": 0 }, "value": "x", @@ -516,7 +516,7 @@ "type": "Identifier", "span": { "start": 249, - "end": 258, + "end": 250, "ctxt": 0 }, "value": "x", @@ -589,7 +589,7 @@ "type": "Identifier", "span": { "start": 273, - "end": 279, + "end": 274, "ctxt": 0 }, "value": "x", @@ -660,7 +660,7 @@ "type": "Identifier", "span": { "start": 298, - "end": 304, + "end": 299, "ctxt": 0 }, "value": "x", @@ -732,7 +732,7 @@ "type": "Identifier", "span": { "start": 319, - "end": 324, + "end": 320, "ctxt": 0 }, "value": "x", @@ -795,7 +795,7 @@ "type": "Identifier", "span": { "start": 339, - "end": 345, + "end": 340, "ctxt": 0 }, "value": "x", @@ -866,7 +866,7 @@ "type": "Identifier", "span": { "start": 364, - "end": 370, + "end": 365, "ctxt": 0 }, "value": "x", @@ -938,7 +938,7 @@ "type": "Identifier", "span": { "start": 385, - "end": 394, + "end": 386, "ctxt": 0 }, "value": "x", @@ -1001,7 +1001,7 @@ "type": "Identifier", "span": { "start": 409, - "end": 415, + "end": 410, "ctxt": 0 }, "value": "x", @@ -1072,7 +1072,7 @@ "type": "Identifier", "span": { "start": 434, - "end": 440, + "end": 435, "ctxt": 0 }, "value": "x", @@ -1144,7 +1144,7 @@ "type": "Identifier", "span": { "start": 455, - "end": 465, + "end": 456, "ctxt": 0 }, "value": "x", @@ -1207,7 +1207,7 @@ "type": "Identifier", "span": { "start": 480, - "end": 486, + "end": 481, "ctxt": 0 }, "value": "x", @@ -1278,7 +1278,7 @@ "type": "Identifier", "span": { "start": 505, - "end": 511, + "end": 506, "ctxt": 0 }, "value": "x", @@ -1350,7 +1350,7 @@ "type": "Identifier", "span": { "start": 526, - "end": 533, + "end": 527, "ctxt": 0 }, "value": "x", @@ -1423,7 +1423,7 @@ "type": "Identifier", "span": { "start": 548, - "end": 554, + "end": 549, "ctxt": 0 }, "value": "x", @@ -1494,7 +1494,7 @@ "type": "Identifier", "span": { "start": 573, - "end": 579, + "end": 574, "ctxt": 0 }, "value": "x", @@ -1566,7 +1566,7 @@ "type": "Identifier", "span": { "start": 594, - "end": 603, + "end": 595, "ctxt": 0 }, "value": "x", @@ -1639,7 +1639,7 @@ "type": "Identifier", "span": { "start": 618, - "end": 624, + "end": 619, "ctxt": 0 }, "value": "x", @@ -1710,7 +1710,7 @@ "type": "Identifier", "span": { "start": 643, - "end": 649, + "end": 644, "ctxt": 0 }, "value": "x", @@ -1782,7 +1782,7 @@ "type": "Identifier", "span": { "start": 664, - "end": 675, + "end": 665, "ctxt": 0 }, "value": "x", @@ -1863,7 +1863,7 @@ "type": "Identifier", "span": { "start": 690, - "end": 696, + "end": 691, "ctxt": 0 }, "value": "x", @@ -2038,7 +2038,7 @@ "type": "Identifier", "span": { "start": 782, - "end": 793, + "end": 785, "ctxt": 0 }, "value": "pos", @@ -2154,7 +2154,7 @@ "type": "Identifier", "span": { "start": 835, - "end": 848, + "end": 840, "ctxt": 0 }, "value": "index", @@ -2408,7 +2408,7 @@ "type": "Identifier", "span": { "start": 945, - "end": 965, + "end": 957, "ctxt": 0 }, "value": "searchString", @@ -2444,7 +2444,7 @@ "type": "Identifier", "span": { "start": 967, - "end": 984, + "end": 975, "ctxt": 0 }, "value": "position", @@ -2560,7 +2560,7 @@ "type": "Identifier", "span": { "start": 1027, - "end": 1047, + "end": 1039, "ctxt": 0 }, "value": "searchString", @@ -2596,7 +2596,7 @@ "type": "Identifier", "span": { "start": 1049, - "end": 1066, + "end": 1057, "ctxt": 0 }, "value": "position", @@ -2712,7 +2712,7 @@ "type": "Identifier", "span": { "start": 1111, - "end": 1123, + "end": 1115, "ctxt": 0 }, "value": "that", @@ -2828,7 +2828,7 @@ "type": "Identifier", "span": { "start": 1160, - "end": 1171, + "end": 1166, "ctxt": 0 }, "value": "regexp", @@ -2954,7 +2954,7 @@ "type": "Identifier", "span": { "start": 1220, - "end": 1236, + "end": 1231, "ctxt": 0 }, "value": "searchValue", @@ -2990,7 +2990,7 @@ "type": "Identifier", "span": { "start": 1238, - "end": 1255, + "end": 1250, "ctxt": 0 }, "value": "replaceValue", @@ -3106,7 +3106,7 @@ "type": "Identifier", "span": { "start": 1293, - "end": 1304, + "end": 1299, "ctxt": 0 }, "value": "regexp", @@ -3222,7 +3222,7 @@ "type": "Identifier", "span": { "start": 1341, - "end": 1355, + "end": 1346, "ctxt": 0 }, "value": "start", @@ -3258,7 +3258,7 @@ "type": "Identifier", "span": { "start": 1357, - "end": 1369, + "end": 1360, "ctxt": 0 }, "value": "end", @@ -3374,7 +3374,7 @@ "type": "Identifier", "span": { "start": 1406, - "end": 1420, + "end": 1415, "ctxt": 0 }, "value": "separator", @@ -3410,7 +3410,7 @@ "type": "Identifier", "span": { "start": 1422, - "end": 1436, + "end": 1427, "ctxt": 0 }, "value": "limit", @@ -3534,7 +3534,7 @@ "type": "Identifier", "span": { "start": 1479, - "end": 1492, + "end": 1484, "ctxt": 0 }, "value": "start", @@ -3570,7 +3570,7 @@ "type": "Identifier", "span": { "start": 1494, - "end": 1506, + "end": 1497, "ctxt": 0 }, "value": "end", @@ -4126,7 +4126,7 @@ "type": "Identifier", "span": { "start": 1784, - "end": 1796, + "end": 1788, "ctxt": 0 }, "value": "from", @@ -4162,7 +4162,7 @@ "type": "Identifier", "span": { "start": 1798, - "end": 1813, + "end": 1804, "ctxt": 0 }, "value": "length", @@ -4435,7 +4435,7 @@ "type": "Identifier", "span": { "start": 1938, - "end": 1944, + "end": 1939, "ctxt": 0 }, "value": "x", @@ -4507,7 +4507,7 @@ "type": "Identifier", "span": { "start": 1960, - "end": 1964, + "end": 1961, "ctxt": 0 }, "value": "x", @@ -4580,7 +4580,7 @@ "type": "Identifier", "span": { "start": 1980, - "end": 1986, + "end": 1981, "ctxt": 0 }, "value": "x", @@ -4743,7 +4743,7 @@ "type": "Identifier", "span": { "start": 2069, - "end": 2075, + "end": 2070, "ctxt": 0 }, "value": "x", @@ -4815,7 +4815,7 @@ "type": "Identifier", "span": { "start": 2091, - "end": 2095, + "end": 2092, "ctxt": 0 }, "value": "x", @@ -4888,7 +4888,7 @@ "type": "Identifier", "span": { "start": 2111, - "end": 2117, + "end": 2112, "ctxt": 0 }, "value": "x", @@ -4959,7 +4959,7 @@ "type": "Identifier", "span": { "start": 2140, - "end": 2146, + "end": 2141, "ctxt": 0 }, "value": "x", @@ -5063,7 +5063,7 @@ "type": "Identifier", "span": { "start": 2165, - "end": 2169, + "end": 2166, "ctxt": 0 }, "value": "x", @@ -5168,7 +5168,7 @@ "type": "Identifier", "span": { "start": 2188, - "end": 2194, + "end": 2189, "ctxt": 0 }, "value": "x", @@ -5271,7 +5271,7 @@ "type": "Identifier", "span": { "start": 2232, - "end": 2238, + "end": 2233, "ctxt": 0 }, "value": "x", @@ -5393,7 +5393,7 @@ "type": "Identifier", "span": { "start": 2272, - "end": 2276, + "end": 2273, "ctxt": 0 }, "value": "x", @@ -5516,7 +5516,7 @@ "type": "Identifier", "span": { "start": 2310, - "end": 2316, + "end": 2311, "ctxt": 0 }, "value": "x", @@ -5678,7 +5678,7 @@ "type": "Identifier", "span": { "start": 2349, - "end": 2355, + "end": 2350, "ctxt": 0 }, "value": "x", @@ -5750,7 +5750,7 @@ "type": "Identifier", "span": { "start": 2371, - "end": 2375, + "end": 2372, "ctxt": 0 }, "value": "x", @@ -5823,7 +5823,7 @@ "type": "Identifier", "span": { "start": 2391, - "end": 2397, + "end": 2392, "ctxt": 0 }, "value": "x", @@ -5894,7 +5894,7 @@ "type": "Identifier", "span": { "start": 2433, - "end": 2439, + "end": 2434, "ctxt": 0 }, "value": "x", @@ -6039,7 +6039,7 @@ "type": "Identifier", "span": { "start": 2471, - "end": 2475, + "end": 2472, "ctxt": 0 }, "value": "x", @@ -6185,7 +6185,7 @@ "type": "Identifier", "span": { "start": 2507, - "end": 2513, + "end": 2508, "ctxt": 0 }, "value": "x", @@ -6329,7 +6329,7 @@ "type": "Identifier", "span": { "start": 2564, - "end": 2570, + "end": 2565, "ctxt": 0 }, "value": "x", @@ -6492,7 +6492,7 @@ "type": "Identifier", "span": { "start": 2617, - "end": 2621, + "end": 2618, "ctxt": 0 }, "value": "x", @@ -6656,7 +6656,7 @@ "type": "Identifier", "span": { "start": 2668, - "end": 2674, + "end": 2669, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAndTuples01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAndTuples01.json index d9bf3f701116..7794f2cf7274 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAndTuples01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAndTuples01.json @@ -493,7 +493,7 @@ "type": "Identifier", "span": { "start": 268, - "end": 285, + "end": 272, "ctxt": 0 }, "value": "dino", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags01.json index d79e40f02be6..b3f05fdea8b2 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags01.json @@ -464,7 +464,7 @@ "type": "Identifier", "span": { "start": 226, - "end": 240, + "end": 232, "ctxt": 0 }, "value": "entity", @@ -510,7 +510,7 @@ "type": "Identifier", "span": { "start": 242, - "end": 251, + "end": 246, "ctxt": 0 }, "value": "kind", @@ -635,7 +635,7 @@ "type": "Identifier", "span": { "start": 284, - "end": 298, + "end": 290, "ctxt": 0 }, "value": "entity", @@ -681,7 +681,7 @@ "type": "Identifier", "span": { "start": 300, - "end": 309, + "end": 304, "ctxt": 0 }, "value": "kind", @@ -806,7 +806,7 @@ "type": "Identifier", "span": { "start": 342, - "end": 356, + "end": 348, "ctxt": 0 }, "value": "entity", @@ -852,7 +852,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 368, + "end": 362, "ctxt": 0 }, "value": "kind", @@ -978,7 +978,7 @@ "type": "Identifier", "span": { "start": 406, - "end": 420, + "end": 412, "ctxt": 0 }, "value": "entity", @@ -1024,7 +1024,7 @@ "type": "Identifier", "span": { "start": 422, - "end": 432, + "end": 426, "ctxt": 0 }, "value": "kind", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags02.json index b79836b5c30f..a3d8bdb4e35e 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags02.json @@ -464,7 +464,7 @@ "type": "Identifier", "span": { "start": 226, - "end": 240, + "end": 232, "ctxt": 0 }, "value": "entity", @@ -510,7 +510,7 @@ "type": "Identifier", "span": { "start": 242, - "end": 251, + "end": 246, "ctxt": 0 }, "value": "kind", @@ -635,7 +635,7 @@ "type": "Identifier", "span": { "start": 284, - "end": 298, + "end": 290, "ctxt": 0 }, "value": "entity", @@ -681,7 +681,7 @@ "type": "Identifier", "span": { "start": 300, - "end": 309, + "end": 304, "ctxt": 0 }, "value": "kind", @@ -806,7 +806,7 @@ "type": "Identifier", "span": { "start": 342, - "end": 356, + "end": 348, "ctxt": 0 }, "value": "entity", @@ -852,7 +852,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 368, + "end": 362, "ctxt": 0 }, "value": "kind", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags03.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags03.json index e3baba3447c1..f1ada73967c1 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags03.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags03.json @@ -464,7 +464,7 @@ "type": "Identifier", "span": { "start": 503, - "end": 517, + "end": 509, "ctxt": 0 }, "value": "entity", @@ -510,7 +510,7 @@ "type": "Identifier", "span": { "start": 519, - "end": 534, + "end": 523, "ctxt": 0 }, "value": "kind", @@ -663,7 +663,7 @@ "type": "Identifier", "span": { "start": 567, - "end": 581, + "end": 573, "ctxt": 0 }, "value": "entity", @@ -709,7 +709,7 @@ "type": "Identifier", "span": { "start": 583, - "end": 598, + "end": 587, "ctxt": 0 }, "value": "kind", @@ -862,7 +862,7 @@ "type": "Identifier", "span": { "start": 631, - "end": 645, + "end": 637, "ctxt": 0 }, "value": "entity", @@ -908,7 +908,7 @@ "type": "Identifier", "span": { "start": 647, - "end": 657, + "end": 651, "ctxt": 0 }, "value": "kind", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTypeParameterConstraint01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTypeParameterConstraint01.json index 568abf38efc8..2b95d9b78927 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTypeParameterConstraint01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTypeParameterConstraint01.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 54, - "end": 68, + "end": 55, "ctxt": 0 }, "value": "f", @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 62, + "end": 59, "ctxt": 0 }, "value": "x", @@ -237,7 +237,7 @@ "type": "Identifier", "span": { "start": 127, - "end": 141, + "end": 128, "ctxt": 0 }, "value": "f", @@ -261,7 +261,7 @@ "type": "Identifier", "span": { "start": 131, - "end": 135, + "end": 132, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTypeParameterConstraint02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTypeParameterConstraint02.json index 549531d503ce..12f350bb0578 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTypeParameterConstraint02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTypeParameterConstraint02.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 54, - "end": 68, + "end": 55, "ctxt": 0 }, "value": "f", @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 62, + "end": 59, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures.json index 06ed9d177135..3a494505a30f 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 77, - "end": 84, + "end": 78, "ctxt": 0 }, "value": "x", @@ -139,7 +139,7 @@ "type": "Identifier", "span": { "start": 111, - "end": 118, + "end": 112, "ctxt": 0 }, "value": "x", @@ -375,7 +375,7 @@ "type": "Identifier", "span": { "start": 178, - "end": 185, + "end": 179, "ctxt": 0 }, "value": "x", @@ -483,7 +483,7 @@ "type": "Identifier", "span": { "start": 213, - "end": 220, + "end": 214, "ctxt": 0 }, "value": "x", @@ -544,7 +544,7 @@ "type": "Identifier", "span": { "start": 231, - "end": 238, + "end": 232, "ctxt": 0 }, "value": "x", @@ -580,7 +580,7 @@ "type": "Identifier", "span": { "start": 240, - "end": 247, + "end": 241, "ctxt": 0 }, "value": "y", @@ -672,7 +672,7 @@ "type": "Identifier", "span": { "start": 267, - "end": 274, + "end": 268, "ctxt": 0 }, "value": "x", @@ -733,7 +733,7 @@ "type": "Identifier", "span": { "start": 285, - "end": 292, + "end": 286, "ctxt": 0 }, "value": "x", @@ -839,7 +839,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 323, + "end": 317, "ctxt": 0 }, "value": "x", @@ -930,7 +930,7 @@ "type": "Identifier", "span": { "start": 350, - "end": 357, + "end": 351, "ctxt": 0 }, "value": "x", @@ -975,7 +975,7 @@ "type": "Identifier", "span": { "start": 359, - "end": 366, + "end": 360, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures2.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures2.json index 977207ba7d4c..709790090ca1 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 77, - "end": 83, + "end": 78, "ctxt": 0 }, "value": "x", @@ -95,7 +95,7 @@ "type": "Identifier", "span": { "start": 99, - "end": 106, + "end": 100, "ctxt": 0 }, "value": "x", @@ -200,7 +200,7 @@ "type": "Identifier", "span": { "start": 131, - "end": 140, + "end": 132, "ctxt": 0 }, "value": "x", @@ -275,7 +275,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 158, + "end": 152, "ctxt": 0 }, "value": "x", @@ -383,7 +383,7 @@ "type": "Identifier", "span": { "start": 186, - "end": 192, + "end": 187, "ctxt": 0 }, "value": "x", @@ -431,7 +431,7 @@ "type": "Identifier", "span": { "start": 200, - "end": 207, + "end": 201, "ctxt": 0 }, "value": "x", @@ -492,7 +492,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 224, + "end": 219, "ctxt": 0 }, "value": "x", @@ -528,7 +528,7 @@ "type": "Identifier", "span": { "start": 226, - "end": 232, + "end": 227, "ctxt": 0 }, "value": "y", @@ -589,7 +589,7 @@ "type": "Identifier", "span": { "start": 243, - "end": 250, + "end": 244, "ctxt": 0 }, "value": "x", @@ -625,7 +625,7 @@ "type": "Identifier", "span": { "start": 252, - "end": 259, + "end": 253, "ctxt": 0 }, "value": "y", @@ -717,7 +717,7 @@ "type": "Identifier", "span": { "start": 279, - "end": 286, + "end": 280, "ctxt": 0 }, "value": "x", @@ -765,7 +765,7 @@ "type": "Identifier", "span": { "start": 294, - "end": 300, + "end": 295, "ctxt": 0 }, "value": "x", @@ -826,7 +826,7 @@ "type": "Identifier", "span": { "start": 311, - "end": 318, + "end": 312, "ctxt": 0 }, "value": "x", @@ -887,7 +887,7 @@ "type": "Identifier", "span": { "start": 329, - "end": 335, + "end": 330, "ctxt": 0 }, "value": "x", @@ -993,7 +993,7 @@ "type": "Identifier", "span": { "start": 359, - "end": 366, + "end": 360, "ctxt": 0 }, "value": "x", @@ -1072,7 +1072,7 @@ "type": "Identifier", "span": { "start": 381, - "end": 387, + "end": 382, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability01.json index d62e1663dc5b..f512904f4a1d 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability01.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 35, - "end": 43, + "end": 36, "ctxt": 0 }, "value": "x", @@ -120,7 +120,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 74, + "end": 66, "ctxt": 0 }, "value": "x", @@ -226,7 +226,7 @@ "type": "Identifier", "span": { "start": 114, - "end": 122, + "end": 115, "ctxt": 0 }, "value": "x", @@ -314,7 +314,7 @@ "type": "Identifier", "span": { "start": 144, - "end": 153, + "end": 145, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability02.json index e884fb4cf467..4a1bed3619ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability02.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 35, - "end": 43, + "end": 36, "ctxt": 0 }, "value": "x", @@ -120,7 +120,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 73, + "end": 66, "ctxt": 0 }, "value": "x", @@ -235,7 +235,7 @@ "type": "Identifier", "span": { "start": 113, - "end": 121, + "end": 114, "ctxt": 0 }, "value": "x", @@ -323,7 +323,7 @@ "type": "Identifier", "span": { "start": 143, - "end": 151, + "end": 144, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability03.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability03.json index 9ea5b6ffd524..67be60146d3b 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability03.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability03.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 35, - "end": 43, + "end": 36, "ctxt": 0 }, "value": "x", @@ -120,7 +120,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 74, + "end": 66, "ctxt": 0 }, "value": "x", @@ -226,7 +226,7 @@ "type": "Identifier", "span": { "start": 114, - "end": 122, + "end": 115, "ctxt": 0 }, "value": "x", @@ -314,7 +314,7 @@ "type": "Identifier", "span": { "start": 144, - "end": 153, + "end": 145, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability04.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability04.json index 2858614bff46..240741358905 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability04.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability04.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 35, - "end": 43, + "end": 36, "ctxt": 0 }, "value": "x", @@ -120,7 +120,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 73, + "end": 66, "ctxt": 0 }, "value": "x", @@ -235,7 +235,7 @@ "type": "Identifier", "span": { "start": 113, - "end": 121, + "end": 114, "ctxt": 0 }, "value": "x", @@ -323,7 +323,7 @@ "type": "Identifier", "span": { "start": 143, - "end": 151, + "end": 144, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability05.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability05.json index 1bf0ae8ecd77..7d61f31c9f9a 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability05.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability05.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 35, - "end": 43, + "end": 36, "ctxt": 0 }, "value": "x", @@ -120,7 +120,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 74, + "end": 66, "ctxt": 0 }, "value": "x", @@ -199,7 +199,7 @@ "type": "Identifier", "span": { "start": 96, - "end": 105, + "end": 97, "ctxt": 0 }, "value": "x", @@ -305,7 +305,7 @@ "type": "Identifier", "span": { "start": 145, - "end": 153, + "end": 146, "ctxt": 0 }, "value": "x", @@ -393,7 +393,7 @@ "type": "Identifier", "span": { "start": 175, - "end": 184, + "end": 176, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads01.json index 43f231e048b7..c138a02856d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads01.json @@ -116,7 +116,7 @@ "type": "Identifier", "span": { "start": 106, - "end": 117, + "end": 107, "ctxt": 0 }, "value": "x", @@ -204,7 +204,7 @@ "type": "Identifier", "span": { "start": 155, - "end": 166, + "end": 156, "ctxt": 0 }, "value": "x", @@ -292,7 +292,7 @@ "type": "Identifier", "span": { "start": 204, - "end": 216, + "end": 205, "ctxt": 0 }, "value": "x", @@ -380,7 +380,7 @@ "type": "Identifier", "span": { "start": 255, - "end": 278, + "end": 256, "ctxt": 0 }, "value": "x", @@ -515,7 +515,7 @@ "type": "Identifier", "span": { "start": 326, - "end": 349, + "end": 327, "ctxt": 0 }, "value": "x", @@ -650,7 +650,7 @@ "type": "Identifier", "span": { "start": 397, - "end": 419, + "end": 398, "ctxt": 0 }, "value": "x", @@ -785,7 +785,7 @@ "type": "Identifier", "span": { "start": 466, - "end": 500, + "end": 467, "ctxt": 0 }, "value": "x", @@ -947,7 +947,7 @@ "type": "Identifier", "span": { "start": 557, - "end": 573, + "end": 558, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads02.json index 4a0d573e3d7c..42dc55a97fbb 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads02.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 51, - "end": 62, + "end": 52, "ctxt": 0 }, "value": "x", @@ -120,7 +120,7 @@ "type": "Identifier", "span": { "start": 100, - "end": 111, + "end": 101, "ctxt": 0 }, "value": "x", @@ -208,7 +208,7 @@ "type": "Identifier", "span": { "start": 149, - "end": 161, + "end": 150, "ctxt": 0 }, "value": "x", @@ -296,7 +296,7 @@ "type": "Identifier", "span": { "start": 200, - "end": 223, + "end": 201, "ctxt": 0 }, "value": "x", @@ -431,7 +431,7 @@ "type": "Identifier", "span": { "start": 271, - "end": 294, + "end": 272, "ctxt": 0 }, "value": "x", @@ -566,7 +566,7 @@ "type": "Identifier", "span": { "start": 342, - "end": 364, + "end": 343, "ctxt": 0 }, "value": "x", @@ -701,7 +701,7 @@ "type": "Identifier", "span": { "start": 411, - "end": 445, + "end": 412, "ctxt": 0 }, "value": "x", @@ -863,7 +863,7 @@ "type": "Identifier", "span": { "start": 502, - "end": 511, + "end": 503, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads03.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads03.json index 2c76b7b399f9..e93478328a3c 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads03.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads03.json @@ -623,7 +623,7 @@ "type": "Identifier", "span": { "start": 331, - "end": 341, + "end": 332, "ctxt": 0 }, "value": "p", @@ -721,7 +721,7 @@ "type": "Identifier", "span": { "start": 366, - "end": 386, + "end": 367, "ctxt": 0 }, "value": "p", @@ -847,7 +847,7 @@ "type": "Identifier", "span": { "start": 414, - "end": 424, + "end": 415, "ctxt": 0 }, "value": "p", @@ -945,7 +945,7 @@ "type": "Identifier", "span": { "start": 449, - "end": 458, + "end": 450, "ctxt": 0 }, "value": "p", @@ -1360,7 +1360,7 @@ "type": "Identifier", "span": { "start": 620, - "end": 629, + "end": 621, "ctxt": 0 }, "value": "p", @@ -1449,7 +1449,7 @@ "type": "Identifier", "span": { "start": 649, - "end": 659, + "end": 650, "ctxt": 0 }, "value": "p", @@ -1547,7 +1547,7 @@ "type": "Identifier", "span": { "start": 684, - "end": 704, + "end": 685, "ctxt": 0 }, "value": "p", @@ -1673,7 +1673,7 @@ "type": "Identifier", "span": { "start": 732, - "end": 742, + "end": 733, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads04.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads04.json index ef3b7df15018..c9deff0178d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads04.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads04.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 43, - "end": 73, + "end": 44, "ctxt": 0 }, "value": "x", @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 47, - "end": 63, + "end": 48, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads05.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads05.json index 17230b36c031..6735c7e1c11a 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads05.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads05.json @@ -388,7 +388,7 @@ "type": "Identifier", "span": { "start": 202, - "end": 210, + "end": 203, "ctxt": 0 }, "value": "x", @@ -486,7 +486,7 @@ "type": "Identifier", "span": { "start": 235, - "end": 243, + "end": 236, "ctxt": 0 }, "value": "x", @@ -584,7 +584,7 @@ "type": "Identifier", "span": { "start": 268, - "end": 277, + "end": 269, "ctxt": 0 }, "value": "x", @@ -673,7 +673,7 @@ "type": "Identifier", "span": { "start": 305, - "end": 314, + "end": 306, "ctxt": 0 }, "value": "x", @@ -709,7 +709,7 @@ "type": "Identifier", "span": { "start": 316, - "end": 326, + "end": 317, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesTypePredicates01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesTypePredicates01.json index 0fe0af9b4df7..95eeaf3dfdb5 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesTypePredicates01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesTypePredicates01.json @@ -98,7 +98,7 @@ "type": "Identifier", "span": { "start": 63, - "end": 73, + "end": 67, "ctxt": 0 }, "value": "kind", @@ -144,7 +144,7 @@ "type": "Identifier", "span": { "start": 75, - "end": 82, + "end": 77, "ctxt": 0 }, "value": "is", @@ -268,7 +268,7 @@ "type": "Identifier", "span": { "start": 114, - "end": 124, + "end": 118, "ctxt": 0 }, "value": "kind", @@ -314,7 +314,7 @@ "type": "Identifier", "span": { "start": 126, - "end": 133, + "end": 128, "ctxt": 0 }, "value": "is", @@ -438,7 +438,7 @@ "type": "Identifier", "span": { "start": 165, - "end": 175, + "end": 169, "ctxt": 0 }, "value": "kind", @@ -484,7 +484,7 @@ "type": "Identifier", "span": { "start": 177, - "end": 185, + "end": 179, "ctxt": 0 }, "value": "is", diff --git a/crates/swc_ecma_parser/tests/tsc/stringMappingOverPatternLiterals.json b/crates/swc_ecma_parser/tests/tsc/stringMappingOverPatternLiterals.json index e9c8fc88f734..236fdeb78606 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringMappingOverPatternLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/stringMappingOverPatternLiterals.json @@ -409,7 +409,7 @@ "type": "Identifier", "span": { "start": 220, - "end": 224, + "end": 221, "ctxt": 0 }, "value": "a", @@ -455,7 +455,7 @@ "type": "Identifier", "span": { "start": 230, - "end": 234, + "end": 231, "ctxt": 0 }, "value": "b", @@ -501,7 +501,7 @@ "type": "Identifier", "span": { "start": 240, - "end": 244, + "end": 241, "ctxt": 0 }, "value": "c", @@ -547,7 +547,7 @@ "type": "Identifier", "span": { "start": 250, - "end": 271, + "end": 260, "ctxt": 0 }, "value": "a_template", @@ -593,7 +593,7 @@ "type": "Identifier", "span": { "start": 277, - "end": 298, + "end": 287, "ctxt": 0 }, "value": "b_template", @@ -639,7 +639,7 @@ "type": "Identifier", "span": { "start": 304, - "end": 325, + "end": 314, "ctxt": 0 }, "value": "c_template", @@ -1177,7 +1177,7 @@ "type": "Identifier", "span": { "start": 924, - "end": 934, + "end": 926, "ctxt": 0 }, "value": "x1", @@ -1213,7 +1213,7 @@ "type": "Identifier", "span": { "start": 936, - "end": 957, + "end": 938, "ctxt": 0 }, "value": "x2", @@ -1277,7 +1277,7 @@ "type": "Identifier", "span": { "start": 959, - "end": 980, + "end": 961, "ctxt": 0 }, "value": "x3", @@ -1757,7 +1757,7 @@ "type": "Identifier", "span": { "start": 1225, - "end": 1246, + "end": 1227, "ctxt": 0 }, "value": "x1", @@ -1821,7 +1821,7 @@ "type": "Identifier", "span": { "start": 1252, - "end": 1284, + "end": 1254, "ctxt": 0 }, "value": "x2", @@ -1913,7 +1913,7 @@ "type": "Identifier", "span": { "start": 1290, - "end": 1322, + "end": 1292, "ctxt": 0 }, "value": "x3", @@ -3086,7 +3086,7 @@ "type": "Identifier", "span": { "start": 2228, - "end": 2244, + "end": 2230, "ctxt": 0 }, "value": "x1", @@ -3132,7 +3132,7 @@ "type": "Identifier", "span": { "start": 2246, - "end": 2272, + "end": 2248, "ctxt": 0 }, "value": "x2", @@ -3290,7 +3290,7 @@ "type": "Identifier", "span": { "start": 2399, - "end": 2420, + "end": 2406, "ctxt": 0 }, "value": "cap_tem", @@ -3368,7 +3368,7 @@ "type": "Identifier", "span": { "start": 2426, - "end": 2453, + "end": 2433, "ctxt": 0 }, "value": "cap_str", @@ -3432,7 +3432,7 @@ "type": "Identifier", "span": { "start": 2459, - "end": 2496, + "end": 2470, "ctxt": 0 }, "value": "cap_tem_map", @@ -3538,7 +3538,7 @@ "type": "Identifier", "span": { "start": 2502, - "end": 2540, + "end": 2514, "ctxt": 0 }, "value": "cap_tem_map2", @@ -3644,7 +3644,7 @@ "type": "Identifier", "span": { "start": 2546, - "end": 2569, + "end": 2555, "ctxt": 0 }, "value": "uncap_tem", @@ -3722,7 +3722,7 @@ "type": "Identifier", "span": { "start": 2575, - "end": 2606, + "end": 2584, "ctxt": 0 }, "value": "uncap_str", @@ -3786,7 +3786,7 @@ "type": "Identifier", "span": { "start": 2612, - "end": 2653, + "end": 2625, "ctxt": 0 }, "value": "uncap_tem_map", @@ -3892,7 +3892,7 @@ "type": "Identifier", "span": { "start": 2659, - "end": 2701, + "end": 2673, "ctxt": 0 }, "value": "uncap_tem_map2", diff --git a/crates/swc_ecma_parser/tests/tsc/stringMappingReduction.json b/crates/swc_ecma_parser/tests/tsc/stringMappingReduction.json index 029bade75562..31cfba96899d 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringMappingReduction.json +++ b/crates/swc_ecma_parser/tests/tsc/stringMappingReduction.json @@ -1492,7 +1492,7 @@ "type": "Identifier", "span": { "start": 951, - "end": 985, + "end": 956, "ctxt": 0 }, "value": "event", @@ -1668,7 +1668,7 @@ "type": "Identifier", "span": { "start": 1041, - "end": 1069, + "end": 1049, "ctxt": 0 }, "value": "eventQrl", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypesOfAny.json b/crates/swc_ecma_parser/tests/tsc/subtypesOfAny.json index ec7c37ca6f51..19d526876206 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypesOfAny.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypesOfAny.json @@ -2001,7 +2001,7 @@ "type": "Identifier", "span": { "start": 861, - "end": 864, + "end": 862, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameter.json index 5e4dd8722d30..e1068f0e1dc3 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameter.json @@ -320,7 +320,7 @@ "type": "Identifier", "span": { "start": 168, - "end": 172, + "end": 169, "ctxt": 0 }, "value": "x", @@ -366,7 +366,7 @@ "type": "Identifier", "span": { "start": 174, - "end": 178, + "end": 175, "ctxt": 0 }, "value": "y", @@ -1206,7 +1206,7 @@ "type": "Identifier", "span": { "start": 503, - "end": 507, + "end": 504, "ctxt": 0 }, "value": "x", @@ -1252,7 +1252,7 @@ "type": "Identifier", "span": { "start": 509, - "end": 513, + "end": 510, "ctxt": 0 }, "value": "y", @@ -4367,7 +4367,7 @@ "type": "Identifier", "span": { "start": 1804, - "end": 1808, + "end": 1805, "ctxt": 0 }, "value": "a", @@ -4619,7 +4619,7 @@ "type": "Identifier", "span": { "start": 1916, - "end": 1920, + "end": 1917, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints2.json b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints2.json index 9e6c99f7b391..566c0246e312 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 111, - "end": 115, + "end": 112, "ctxt": 0 }, "value": "x", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 117, - "end": 121, + "end": 118, "ctxt": 0 }, "value": "y", @@ -371,7 +371,7 @@ "type": "Identifier", "span": { "start": 234, - "end": 238, + "end": 235, "ctxt": 0 }, "value": "x", @@ -417,7 +417,7 @@ "type": "Identifier", "span": { "start": 240, - "end": 244, + "end": 241, "ctxt": 0 }, "value": "y", @@ -463,7 +463,7 @@ "type": "Identifier", "span": { "start": 246, - "end": 250, + "end": 247, "ctxt": 0 }, "value": "z", @@ -1073,7 +1073,7 @@ "type": "Identifier", "span": { "start": 498, - "end": 502, + "end": 499, "ctxt": 0 }, "value": "x", @@ -1119,7 +1119,7 @@ "type": "Identifier", "span": { "start": 504, - "end": 508, + "end": 505, "ctxt": 0 }, "value": "y", @@ -2311,7 +2311,7 @@ "type": "Identifier", "span": { "start": 975, - "end": 979, + "end": 976, "ctxt": 0 }, "value": "x", @@ -2774,7 +2774,7 @@ "type": "Identifier", "span": { "start": 1186, - "end": 1190, + "end": 1187, "ctxt": 0 }, "value": "x", @@ -3044,7 +3044,7 @@ "type": "Identifier", "span": { "start": 1293, - "end": 1297, + "end": 1294, "ctxt": 0 }, "value": "x", @@ -3314,7 +3314,7 @@ "type": "Identifier", "span": { "start": 1403, - "end": 1407, + "end": 1404, "ctxt": 0 }, "value": "x", @@ -3582,7 +3582,7 @@ "type": "Identifier", "span": { "start": 1514, - "end": 1518, + "end": 1515, "ctxt": 0 }, "value": "x", @@ -3872,7 +3872,7 @@ "type": "Identifier", "span": { "start": 1639, - "end": 1643, + "end": 1640, "ctxt": 0 }, "value": "x", @@ -4142,7 +4142,7 @@ "type": "Identifier", "span": { "start": 1760, - "end": 1764, + "end": 1761, "ctxt": 0 }, "value": "x", @@ -4490,7 +4490,7 @@ "type": "Identifier", "span": { "start": 1890, - "end": 1894, + "end": 1891, "ctxt": 0 }, "value": "x", @@ -4792,7 +4792,7 @@ "type": "Identifier", "span": { "start": 2022, - "end": 2026, + "end": 2023, "ctxt": 0 }, "value": "x", @@ -5225,7 +5225,7 @@ "type": "Identifier", "span": { "start": 2010, - "end": 2014, + "end": 2011, "ctxt": 0 }, "value": "x", @@ -5352,7 +5352,7 @@ "type": "Identifier", "span": { "start": 2226, - "end": 2230, + "end": 2227, "ctxt": 0 }, "value": "x", @@ -5681,7 +5681,7 @@ "type": "Identifier", "span": { "start": 2348, - "end": 2352, + "end": 2349, "ctxt": 0 }, "value": "x", @@ -6010,7 +6010,7 @@ "type": "Identifier", "span": { "start": 2480, - "end": 2484, + "end": 2481, "ctxt": 0 }, "value": "x", @@ -6375,7 +6375,7 @@ "type": "Identifier", "span": { "start": 2611, - "end": 2615, + "end": 2612, "ctxt": 0 }, "value": "x", @@ -6819,7 +6819,7 @@ "type": "Identifier", "span": { "start": 2796, - "end": 2800, + "end": 2797, "ctxt": 0 }, "value": "x", @@ -7148,7 +7148,7 @@ "type": "Identifier", "span": { "start": 2932, - "end": 2936, + "end": 2933, "ctxt": 0 }, "value": "x", @@ -7477,7 +7477,7 @@ "type": "Identifier", "span": { "start": 3051, - "end": 3055, + "end": 3052, "ctxt": 0 }, "value": "x", @@ -7552,7 +7552,7 @@ "type": "Identifier", "span": { "start": 3089, - "end": 3093, + "end": 3090, "ctxt": 0 }, "value": "a", @@ -7822,7 +7822,7 @@ "type": "Identifier", "span": { "start": 3223, - "end": 3227, + "end": 3224, "ctxt": 0 }, "value": "a", @@ -8172,7 +8172,7 @@ "type": "Identifier", "span": { "start": 3347, - "end": 3351, + "end": 3348, "ctxt": 0 }, "value": "x", @@ -8462,7 +8462,7 @@ "type": "Identifier", "span": { "start": 3479, - "end": 3483, + "end": 3480, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints3.json b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints3.json index 449a556bc76e..addc7d0ca559 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints3.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints3.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 113, - "end": 117, + "end": 114, "ctxt": 0 }, "value": "t", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 119, - "end": 123, + "end": 120, "ctxt": 0 }, "value": "u", @@ -124,7 +124,7 @@ "type": "Identifier", "span": { "start": 125, - "end": 129, + "end": 126, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints4.json b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints4.json index a99c9338324b..864a27700018 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints4.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints4.json @@ -104,7 +104,7 @@ "type": "Identifier", "span": { "start": 154, - "end": 158, + "end": 155, "ctxt": 0 }, "value": "t", @@ -150,7 +150,7 @@ "type": "Identifier", "span": { "start": 160, - "end": 164, + "end": 161, "ctxt": 0 }, "value": "u", @@ -196,7 +196,7 @@ "type": "Identifier", "span": { "start": 166, - "end": 170, + "end": 167, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithRecursiveConstraints.json b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithRecursiveConstraints.json index 5d9bc5910fc8..d49577c9527c 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithRecursiveConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithRecursiveConstraints.json @@ -146,7 +146,7 @@ "type": "Identifier", "span": { "start": 173, - "end": 177, + "end": 174, "ctxt": 0 }, "value": "t", @@ -192,7 +192,7 @@ "type": "Identifier", "span": { "start": 179, - "end": 183, + "end": 180, "ctxt": 0 }, "value": "u", @@ -238,7 +238,7 @@ "type": "Identifier", "span": { "start": 185, - "end": 189, + "end": 186, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypesOfUnion.json b/crates/swc_ecma_parser/tests/tsc/subtypesOfUnion.json index 90e9aa695dc2..3c8e71ad43bc 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypesOfUnion.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypesOfUnion.json @@ -1431,7 +1431,7 @@ "type": "Identifier", "span": { "start": 699, - "end": 703, + "end": 700, "ctxt": 0 }, "value": "x", @@ -2605,7 +2605,7 @@ "type": "Identifier", "span": { "start": 1238, - "end": 1242, + "end": 1239, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures.json index 2ceafbd145b1..e00f1e6f6159 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 50, - "end": 73, + "end": 52, "ctxt": 0 }, "value": "cb", @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 55, - "end": 64, + "end": 56, "ctxt": 0 }, "value": "x", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 113, - "end": 120, + "end": 115, "ctxt": 0 }, "value": "cb", @@ -529,7 +529,7 @@ "type": "Identifier", "span": { "start": 291, - "end": 325, + "end": 293, "ctxt": 0 }, "value": "cb", @@ -553,7 +553,7 @@ "type": "Identifier", "span": { "start": 296, - "end": 305, + "end": 297, "ctxt": 0 }, "value": "x", @@ -580,7 +580,7 @@ "type": "Identifier", "span": { "start": 307, - "end": 316, + "end": 308, "ctxt": 0 }, "value": "y", @@ -691,7 +691,7 @@ "type": "Identifier", "span": { "start": 365, - "end": 372, + "end": 367, "ctxt": 0 }, "value": "cb", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures2.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures2.json index 0f96571357c8..411dbc985fd1 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures2.json @@ -347,7 +347,7 @@ "type": "Identifier", "span": { "start": 296, - "end": 322, + "end": 297, "ctxt": 0 }, "value": "a", @@ -371,7 +371,7 @@ "type": "Identifier", "span": { "start": 300, - "end": 309, + "end": 301, "ctxt": 0 }, "value": "x", @@ -490,7 +490,7 @@ "type": "Identifier", "span": { "start": 357, - "end": 363, + "end": 358, "ctxt": 0 }, "value": "a", @@ -569,7 +569,7 @@ "type": "Identifier", "span": { "start": 394, - "end": 420, + "end": 395, "ctxt": 0 }, "value": "a", @@ -593,7 +593,7 @@ "type": "Identifier", "span": { "start": 398, - "end": 407, + "end": 399, "ctxt": 0 }, "value": "x", @@ -712,7 +712,7 @@ "type": "Identifier", "span": { "start": 455, - "end": 461, + "end": 456, "ctxt": 0 }, "value": "a", @@ -791,7 +791,7 @@ "type": "Identifier", "span": { "start": 492, - "end": 514, + "end": 493, "ctxt": 0 }, "value": "a", @@ -815,7 +815,7 @@ "type": "Identifier", "span": { "start": 496, - "end": 505, + "end": 497, "ctxt": 0 }, "value": "x", @@ -926,7 +926,7 @@ "type": "Identifier", "span": { "start": 549, - "end": 555, + "end": 550, "ctxt": 0 }, "value": "a", @@ -1005,7 +1005,7 @@ "type": "Identifier", "span": { "start": 586, - "end": 621, + "end": 587, "ctxt": 0 }, "value": "a", @@ -1029,7 +1029,7 @@ "type": "Identifier", "span": { "start": 590, - "end": 599, + "end": 591, "ctxt": 0 }, "value": "x", @@ -1056,7 +1056,7 @@ "type": "Identifier", "span": { "start": 601, - "end": 610, + "end": 602, "ctxt": 0 }, "value": "y", @@ -1167,7 +1167,7 @@ "type": "Identifier", "span": { "start": 656, - "end": 662, + "end": 657, "ctxt": 0 }, "value": "a", @@ -1246,7 +1246,7 @@ "type": "Identifier", "span": { "start": 693, - "end": 734, + "end": 694, "ctxt": 0 }, "value": "a", @@ -1270,7 +1270,7 @@ "type": "Identifier", "span": { "start": 697, - "end": 723, + "end": 698, "ctxt": 0 }, "value": "x", @@ -1294,7 +1294,7 @@ "type": "Identifier", "span": { "start": 701, - "end": 712, + "end": 704, "ctxt": 0 }, "value": "arg", @@ -1427,7 +1427,7 @@ "type": "Identifier", "span": { "start": 769, - "end": 775, + "end": 770, "ctxt": 0 }, "value": "a", @@ -1506,7 +1506,7 @@ "type": "Identifier", "span": { "start": 806, - "end": 844, + "end": 807, "ctxt": 0 }, "value": "a", @@ -1530,7 +1530,7 @@ "type": "Identifier", "span": { "start": 810, - "end": 835, + "end": 811, "ctxt": 0 }, "value": "x", @@ -1554,7 +1554,7 @@ "type": "Identifier", "span": { "start": 814, - "end": 823, + "end": 817, "ctxt": 0 }, "value": "arg", @@ -1717,7 +1717,7 @@ "type": "Identifier", "span": { "start": 879, - "end": 885, + "end": 880, "ctxt": 0 }, "value": "a", @@ -1796,7 +1796,7 @@ "type": "Identifier", "span": { "start": 916, - "end": 970, + "end": 917, "ctxt": 0 }, "value": "a", @@ -1820,7 +1820,7 @@ "type": "Identifier", "span": { "start": 920, - "end": 945, + "end": 921, "ctxt": 0 }, "value": "x", @@ -1844,7 +1844,7 @@ "type": "Identifier", "span": { "start": 924, - "end": 933, + "end": 927, "ctxt": 0 }, "value": "arg", @@ -1930,7 +1930,7 @@ "type": "Identifier", "span": { "start": 951, - "end": 958, + "end": 952, "ctxt": 0 }, "value": "r", @@ -2063,7 +2063,7 @@ "type": "Identifier", "span": { "start": 1005, - "end": 1011, + "end": 1006, "ctxt": 0 }, "value": "a", @@ -2142,7 +2142,7 @@ "type": "Identifier", "span": { "start": 1042, - "end": 1124, + "end": 1043, "ctxt": 0 }, "value": "a", @@ -2166,7 +2166,7 @@ "type": "Identifier", "span": { "start": 1046, - "end": 1071, + "end": 1047, "ctxt": 0 }, "value": "x", @@ -2190,7 +2190,7 @@ "type": "Identifier", "span": { "start": 1050, - "end": 1059, + "end": 1053, "ctxt": 0 }, "value": "arg", @@ -2259,7 +2259,7 @@ "type": "Identifier", "span": { "start": 1073, - "end": 1099, + "end": 1074, "ctxt": 0 }, "value": "y", @@ -2283,7 +2283,7 @@ "type": "Identifier", "span": { "start": 1077, - "end": 1087, + "end": 1081, "ctxt": 0 }, "value": "arg2", @@ -2369,7 +2369,7 @@ "type": "Identifier", "span": { "start": 1105, - "end": 1112, + "end": 1106, "ctxt": 0 }, "value": "r", @@ -2502,7 +2502,7 @@ "type": "Identifier", "span": { "start": 1159, - "end": 1165, + "end": 1160, "ctxt": 0 }, "value": "a", @@ -2581,7 +2581,7 @@ "type": "Identifier", "span": { "start": 1196, - "end": 1278, + "end": 1197, "ctxt": 0 }, "value": "a", @@ -2605,7 +2605,7 @@ "type": "Identifier", "span": { "start": 1200, - "end": 1225, + "end": 1201, "ctxt": 0 }, "value": "x", @@ -2629,7 +2629,7 @@ "type": "Identifier", "span": { "start": 1204, - "end": 1213, + "end": 1207, "ctxt": 0 }, "value": "arg", @@ -2698,7 +2698,7 @@ "type": "Identifier", "span": { "start": 1227, - "end": 1253, + "end": 1228, "ctxt": 0 }, "value": "y", @@ -2722,7 +2722,7 @@ "type": "Identifier", "span": { "start": 1231, - "end": 1241, + "end": 1235, "ctxt": 0 }, "value": "arg2", @@ -2808,7 +2808,7 @@ "type": "Identifier", "span": { "start": 1259, - "end": 1266, + "end": 1260, "ctxt": 0 }, "value": "r", @@ -2941,7 +2941,7 @@ "type": "Identifier", "span": { "start": 1313, - "end": 1319, + "end": 1314, "ctxt": 0 }, "value": "a", @@ -3020,7 +3020,7 @@ "type": "Identifier", "span": { "start": 1351, - "end": 1382, + "end": 1352, "ctxt": 0 }, "value": "a", @@ -3197,7 +3197,7 @@ "type": "Identifier", "span": { "start": 1418, - "end": 1424, + "end": 1419, "ctxt": 0 }, "value": "a", @@ -3276,7 +3276,7 @@ "type": "Identifier", "span": { "start": 1456, - "end": 1520, + "end": 1457, "ctxt": 0 }, "value": "a", @@ -3300,7 +3300,7 @@ "type": "Identifier", "span": { "start": 1460, - "end": 1478, + "end": 1461, "ctxt": 0 }, "value": "x", @@ -3369,7 +3369,7 @@ "type": "Identifier", "span": { "start": 1480, - "end": 1511, + "end": 1481, "ctxt": 0 }, "value": "y", @@ -3573,7 +3573,7 @@ "type": "Identifier", "span": { "start": 1556, - "end": 1562, + "end": 1557, "ctxt": 0 }, "value": "a", @@ -3652,7 +3652,7 @@ "type": "Identifier", "span": { "start": 1594, - "end": 1651, + "end": 1595, "ctxt": 0 }, "value": "a", @@ -3676,7 +3676,7 @@ "type": "Identifier", "span": { "start": 1598, - "end": 1612, + "end": 1599, "ctxt": 0 }, "value": "x", @@ -3741,7 +3741,7 @@ "type": "Identifier", "span": { "start": 1614, - "end": 1632, + "end": 1615, "ctxt": 0 }, "value": "y", @@ -3928,7 +3928,7 @@ "type": "Identifier", "span": { "start": 1687, - "end": 1693, + "end": 1688, "ctxt": 0 }, "value": "a", @@ -4007,7 +4007,7 @@ "type": "Identifier", "span": { "start": 1725, - "end": 1781, + "end": 1726, "ctxt": 0 }, "value": "a", @@ -4031,7 +4031,7 @@ "type": "Identifier", "span": { "start": 1729, - "end": 1743, + "end": 1730, "ctxt": 0 }, "value": "x", @@ -4096,7 +4096,7 @@ "type": "Identifier", "span": { "start": 1745, - "end": 1762, + "end": 1746, "ctxt": 0 }, "value": "y", @@ -4283,7 +4283,7 @@ "type": "Identifier", "span": { "start": 1817, - "end": 1823, + "end": 1818, "ctxt": 0 }, "value": "a", @@ -4362,7 +4362,7 @@ "type": "Identifier", "span": { "start": 1855, - "end": 1897, + "end": 1856, "ctxt": 0 }, "value": "a", @@ -4386,7 +4386,7 @@ "type": "Identifier", "span": { "start": 1859, - "end": 1886, + "end": 1860, "ctxt": 0 }, "value": "x", @@ -4590,7 +4590,7 @@ "type": "Identifier", "span": { "start": 1933, - "end": 1939, + "end": 1934, "ctxt": 0 }, "value": "a", @@ -4669,7 +4669,7 @@ "type": "Identifier", "span": { "start": 1971, - "end": 2033, + "end": 1972, "ctxt": 0 }, "value": "a", @@ -4701,7 +4701,7 @@ "type": "Identifier", "span": { "start": 1982, - "end": 1991, + "end": 1983, "ctxt": 0 }, "value": "x", @@ -4764,7 +4764,7 @@ "type": "Identifier", "span": { "start": 2009, - "end": 2018, + "end": 2010, "ctxt": 0 }, "value": "x", @@ -4885,7 +4885,7 @@ "type": "Identifier", "span": { "start": 2069, - "end": 2075, + "end": 2070, "ctxt": 0 }, "value": "a", @@ -4964,7 +4964,7 @@ "type": "Identifier", "span": { "start": 2107, - "end": 2192, + "end": 2108, "ctxt": 0 }, "value": "a", @@ -4996,7 +4996,7 @@ "type": "Identifier", "span": { "start": 2136, - "end": 2140, + "end": 2137, "ctxt": 0 }, "value": "x", @@ -5119,7 +5119,7 @@ "type": "Identifier", "span": { "start": 2174, - "end": 2178, + "end": 2175, "ctxt": 0 }, "value": "x", @@ -5300,7 +5300,7 @@ "type": "Identifier", "span": { "start": 2228, - "end": 2234, + "end": 2229, "ctxt": 0 }, "value": "a", @@ -5379,7 +5379,7 @@ "type": "Identifier", "span": { "start": 2266, - "end": 2356, + "end": 2267, "ctxt": 0 }, "value": "a", @@ -5411,7 +5411,7 @@ "type": "Identifier", "span": { "start": 2276, - "end": 2300, + "end": 2277, "ctxt": 0 }, "value": "x", @@ -5435,7 +5435,7 @@ "type": "Identifier", "span": { "start": 2280, - "end": 2289, + "end": 2281, "ctxt": 0 }, "value": "a", @@ -5520,7 +5520,7 @@ "type": "Identifier", "span": { "start": 2318, - "end": 2342, + "end": 2319, "ctxt": 0 }, "value": "x", @@ -5544,7 +5544,7 @@ "type": "Identifier", "span": { "start": 2322, - "end": 2331, + "end": 2323, "ctxt": 0 }, "value": "a", @@ -5687,7 +5687,7 @@ "type": "Identifier", "span": { "start": 2392, - "end": 2398, + "end": 2393, "ctxt": 0 }, "value": "a", @@ -5766,7 +5766,7 @@ "type": "Identifier", "span": { "start": 2430, - "end": 2600, + "end": 2431, "ctxt": 0 }, "value": "a", @@ -5798,7 +5798,7 @@ "type": "Identifier", "span": { "start": 2440, - "end": 2508, + "end": 2441, "ctxt": 0 }, "value": "x", @@ -5830,7 +5830,7 @@ "type": "Identifier", "span": { "start": 2454, - "end": 2463, + "end": 2455, "ctxt": 0 }, "value": "a", @@ -5885,7 +5885,7 @@ "type": "Identifier", "span": { "start": 2483, - "end": 2492, + "end": 2484, "ctxt": 0 }, "value": "a", @@ -5972,7 +5972,7 @@ "type": "Identifier", "span": { "start": 2523, - "end": 2589, + "end": 2524, "ctxt": 0 }, "value": "x", @@ -6004,7 +6004,7 @@ "type": "Identifier", "span": { "start": 2537, - "end": 2547, + "end": 2538, "ctxt": 0 }, "value": "a", @@ -6059,7 +6059,7 @@ "type": "Identifier", "span": { "start": 2568, - "end": 2575, + "end": 2569, "ctxt": 0 }, "value": "a", @@ -6224,7 +6224,7 @@ "type": "Identifier", "span": { "start": 2636, - "end": 2642, + "end": 2637, "ctxt": 0 }, "value": "a", @@ -8119,7 +8119,7 @@ "type": "Identifier", "span": { "start": 3430, - "end": 3436, + "end": 3433, "ctxt": 0 }, "value": "arg", @@ -8348,7 +8348,7 @@ "type": "Identifier", "span": { "start": 3474, - "end": 3485, + "end": 3477, "ctxt": 0 }, "value": "arg", @@ -8679,7 +8679,7 @@ "type": "Identifier", "span": { "start": 3645, - "end": 3651, + "end": 3648, "ctxt": 0 }, "value": "arg", @@ -8944,7 +8944,7 @@ "type": "Identifier", "span": { "start": 3689, - "end": 3698, + "end": 3692, "ctxt": 0 }, "value": "arg", @@ -9320,7 +9320,7 @@ "type": "Identifier", "span": { "start": 3867, - "end": 3873, + "end": 3870, "ctxt": 0 }, "value": "arg", @@ -9636,7 +9636,7 @@ "type": "Identifier", "span": { "start": 3921, - "end": 3930, + "end": 3924, "ctxt": 0 }, "value": "arg", @@ -10063,7 +10063,7 @@ "type": "Identifier", "span": { "start": 4115, - "end": 4121, + "end": 4118, "ctxt": 0 }, "value": "arg", @@ -10156,7 +10156,7 @@ "type": "Identifier", "span": { "start": 4133, - "end": 4140, + "end": 4137, "ctxt": 0 }, "value": "arg2", @@ -10472,7 +10472,7 @@ "type": "Identifier", "span": { "start": 4188, - "end": 4197, + "end": 4191, "ctxt": 0 }, "value": "arg", @@ -10565,7 +10565,7 @@ "type": "Identifier", "span": { "start": 4215, - "end": 4225, + "end": 4219, "ctxt": 0 }, "value": "arg2", @@ -10992,7 +10992,7 @@ "type": "Identifier", "span": { "start": 4410, - "end": 4416, + "end": 4413, "ctxt": 0 }, "value": "arg", @@ -11085,7 +11085,7 @@ "type": "Identifier", "span": { "start": 4428, - "end": 4463, + "end": 4432, "ctxt": 0 }, "value": "arg2", @@ -11474,7 +11474,7 @@ "type": "Identifier", "span": { "start": 4511, - "end": 4520, + "end": 4514, "ctxt": 0 }, "value": "arg", @@ -11567,7 +11567,7 @@ "type": "Identifier", "span": { "start": 4538, - "end": 4548, + "end": 4542, "ctxt": 0 }, "value": "arg2", @@ -15651,7 +15651,7 @@ "type": "Identifier", "span": { "start": 5971, - "end": 5975, + "end": 5972, "ctxt": 0 }, "value": "a", @@ -15931,7 +15931,7 @@ "type": "Identifier", "span": { "start": 6052, - "end": 6056, + "end": 6053, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures3.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures3.json index 138c7e4fafc0..de7e2a85d3f8 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures3.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures3.json @@ -374,7 +374,7 @@ "type": "Identifier", "span": { "start": 391, - "end": 418, + "end": 393, "ctxt": 0 }, "value": "a2", @@ -398,7 +398,7 @@ "type": "Identifier", "span": { "start": 396, - "end": 405, + "end": 397, "ctxt": 0 }, "value": "x", @@ -517,7 +517,7 @@ "type": "Identifier", "span": { "start": 458, - "end": 465, + "end": 460, "ctxt": 0 }, "value": "a2", @@ -596,7 +596,7 @@ "type": "Identifier", "span": { "start": 500, - "end": 556, + "end": 502, "ctxt": 0 }, "value": "a2", @@ -620,7 +620,7 @@ "type": "Identifier", "span": { "start": 505, - "end": 530, + "end": 506, "ctxt": 0 }, "value": "x", @@ -644,7 +644,7 @@ "type": "Identifier", "span": { "start": 509, - "end": 518, + "end": 512, "ctxt": 0 }, "value": "arg", @@ -730,7 +730,7 @@ "type": "Identifier", "span": { "start": 536, - "end": 543, + "end": 537, "ctxt": 0 }, "value": "r", @@ -863,7 +863,7 @@ "type": "Identifier", "span": { "start": 596, - "end": 603, + "end": 598, "ctxt": 0 }, "value": "a2", @@ -942,7 +942,7 @@ "type": "Identifier", "span": { "start": 638, - "end": 721, + "end": 640, "ctxt": 0 }, "value": "a2", @@ -966,7 +966,7 @@ "type": "Identifier", "span": { "start": 643, - "end": 668, + "end": 644, "ctxt": 0 }, "value": "x", @@ -990,7 +990,7 @@ "type": "Identifier", "span": { "start": 647, - "end": 656, + "end": 650, "ctxt": 0 }, "value": "arg", @@ -1059,7 +1059,7 @@ "type": "Identifier", "span": { "start": 670, - "end": 696, + "end": 671, "ctxt": 0 }, "value": "y", @@ -1083,7 +1083,7 @@ "type": "Identifier", "span": { "start": 674, - "end": 684, + "end": 678, "ctxt": 0 }, "value": "arg2", @@ -1169,7 +1169,7 @@ "type": "Identifier", "span": { "start": 702, - "end": 709, + "end": 703, "ctxt": 0 }, "value": "r", @@ -1302,7 +1302,7 @@ "type": "Identifier", "span": { "start": 761, - "end": 768, + "end": 763, "ctxt": 0 }, "value": "a2", @@ -1381,7 +1381,7 @@ "type": "Identifier", "span": { "start": 804, - "end": 830, + "end": 806, "ctxt": 0 }, "value": "a2", @@ -1558,7 +1558,7 @@ "type": "Identifier", "span": { "start": 871, - "end": 878, + "end": 873, "ctxt": 0 }, "value": "a2", @@ -1637,7 +1637,7 @@ "type": "Identifier", "span": { "start": 914, - "end": 979, + "end": 916, "ctxt": 0 }, "value": "a2", @@ -1661,7 +1661,7 @@ "type": "Identifier", "span": { "start": 919, - "end": 937, + "end": 920, "ctxt": 0 }, "value": "x", @@ -1730,7 +1730,7 @@ "type": "Identifier", "span": { "start": 939, - "end": 970, + "end": 940, "ctxt": 0 }, "value": "y", @@ -1934,7 +1934,7 @@ "type": "Identifier", "span": { "start": 1020, - "end": 1027, + "end": 1022, "ctxt": 0 }, "value": "a2", @@ -2013,7 +2013,7 @@ "type": "Identifier", "span": { "start": 1063, - "end": 1121, + "end": 1065, "ctxt": 0 }, "value": "a2", @@ -2037,7 +2037,7 @@ "type": "Identifier", "span": { "start": 1068, - "end": 1082, + "end": 1069, "ctxt": 0 }, "value": "x", @@ -2102,7 +2102,7 @@ "type": "Identifier", "span": { "start": 1084, - "end": 1102, + "end": 1085, "ctxt": 0 }, "value": "y", @@ -2289,7 +2289,7 @@ "type": "Identifier", "span": { "start": 1162, - "end": 1169, + "end": 1164, "ctxt": 0 }, "value": "a2", @@ -2368,7 +2368,7 @@ "type": "Identifier", "span": { "start": 1205, - "end": 1248, + "end": 1207, "ctxt": 0 }, "value": "a2", @@ -2392,7 +2392,7 @@ "type": "Identifier", "span": { "start": 1210, - "end": 1237, + "end": 1211, "ctxt": 0 }, "value": "x", @@ -2586,7 +2586,7 @@ "type": "Identifier", "span": { "start": 1289, - "end": 1296, + "end": 1291, "ctxt": 0 }, "value": "a2", @@ -2665,7 +2665,7 @@ "type": "Identifier", "span": { "start": 1332, - "end": 1652, + "end": 1334, "ctxt": 0 }, "value": "a2", @@ -2697,7 +2697,7 @@ "type": "Identifier", "span": { "start": 1445, - "end": 1526, + "end": 1446, "ctxt": 0 }, "value": "x", @@ -2729,7 +2729,7 @@ "type": "Identifier", "span": { "start": 1463, - "end": 1472, + "end": 1464, "ctxt": 0 }, "value": "a", @@ -2784,7 +2784,7 @@ "type": "Identifier", "span": { "start": 1496, - "end": 1506, + "end": 1497, "ctxt": 0 }, "value": "a", @@ -2871,7 +2871,7 @@ "type": "Identifier", "span": { "start": 1548, - "end": 1633, + "end": 1549, "ctxt": 0 }, "value": "x", @@ -2903,7 +2903,7 @@ "type": "Identifier", "span": { "start": 1566, - "end": 1576, + "end": 1567, "ctxt": 0 }, "value": "a", @@ -2958,7 +2958,7 @@ "type": "Identifier", "span": { "start": 1601, - "end": 1612, + "end": 1602, "ctxt": 0 }, "value": "a", @@ -3103,7 +3103,7 @@ "type": "Identifier", "span": { "start": 1693, - "end": 1700, + "end": 1695, "ctxt": 0 }, "value": "a2", @@ -3182,7 +3182,7 @@ "type": "Identifier", "span": { "start": 1736, - "end": 1976, + "end": 1738, "ctxt": 0 }, "value": "a2", @@ -3214,7 +3214,7 @@ "type": "Identifier", "span": { "start": 1751, - "end": 1846, + "end": 1752, "ctxt": 0 }, "value": "x", @@ -3246,7 +3246,7 @@ "type": "Identifier", "span": { "start": 1788, - "end": 1792, + "end": 1789, "ctxt": 0 }, "value": "a", @@ -3371,7 +3371,7 @@ "type": "Identifier", "span": { "start": 1827, - "end": 1831, + "end": 1828, "ctxt": 0 }, "value": "a", @@ -3528,7 +3528,7 @@ "type": "Identifier", "span": { "start": 1865, - "end": 1961, + "end": 1866, "ctxt": 0 }, "value": "x", @@ -3560,7 +3560,7 @@ "type": "Identifier", "span": { "start": 1903, - "end": 1907, + "end": 1904, "ctxt": 0 }, "value": "a", @@ -3685,7 +3685,7 @@ "type": "Identifier", "span": { "start": 1942, - "end": 1946, + "end": 1943, "ctxt": 0 }, "value": "a", @@ -3900,7 +3900,7 @@ "type": "Identifier", "span": { "start": 2017, - "end": 2024, + "end": 2019, "ctxt": 0 }, "value": "a2", @@ -4744,7 +4744,7 @@ "type": "Identifier", "span": { "start": 2291, - "end": 2297, + "end": 2294, "ctxt": 0 }, "value": "arg", @@ -5101,7 +5101,7 @@ "type": "Identifier", "span": { "start": 2349, - "end": 2358, + "end": 2352, "ctxt": 0 }, "value": "arg", @@ -5528,7 +5528,7 @@ "type": "Identifier", "span": { "start": 2556, - "end": 2562, + "end": 2559, "ctxt": 0 }, "value": "arg", @@ -5621,7 +5621,7 @@ "type": "Identifier", "span": { "start": 2574, - "end": 2596, + "end": 2578, "ctxt": 0 }, "value": "arg2", @@ -5969,7 +5969,7 @@ "type": "Identifier", "span": { "start": 2648, - "end": 2657, + "end": 2651, "ctxt": 0 }, "value": "arg", @@ -6062,7 +6062,7 @@ "type": "Identifier", "span": { "start": 2675, - "end": 2685, + "end": 2679, "ctxt": 0 }, "value": "arg2", @@ -9467,7 +9467,7 @@ "type": "Identifier", "span": { "start": 4018, - "end": 4022, + "end": 4019, "ctxt": 0 }, "value": "a", @@ -9747,7 +9747,7 @@ "type": "Identifier", "span": { "start": 4103, - "end": 4107, + "end": 4104, "ctxt": 0 }, "value": "a", @@ -10009,7 +10009,7 @@ "type": "Identifier", "span": { "start": 4382, - "end": 4402, + "end": 4384, "ctxt": 0 }, "value": "a2", @@ -10033,7 +10033,7 @@ "type": "Identifier", "span": { "start": 4390, - "end": 4394, + "end": 4391, "ctxt": 0 }, "value": "x", @@ -10204,7 +10204,7 @@ "type": "Identifier", "span": { "start": 4442, - "end": 4449, + "end": 4444, "ctxt": 0 }, "value": "a2", @@ -10487,7 +10487,7 @@ "type": "Identifier", "span": { "start": 4613, - "end": 4638, + "end": 4615, "ctxt": 0 }, "value": "a2", @@ -10511,7 +10511,7 @@ "type": "Identifier", "span": { "start": 4621, - "end": 4625, + "end": 4622, "ctxt": 0 }, "value": "x", @@ -10672,7 +10672,7 @@ "type": "Identifier", "span": { "start": 4678, - "end": 4685, + "end": 4680, "ctxt": 0 }, "value": "a2", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures4.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures4.json index 9cadf14996ee..914c13fe4fc5 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures4.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures4.json @@ -347,7 +347,7 @@ "type": "Identifier", "span": { "start": 296, - "end": 315, + "end": 297, "ctxt": 0 }, "value": "a", @@ -371,7 +371,7 @@ "type": "Identifier", "span": { "start": 303, - "end": 307, + "end": 304, "ctxt": 0 }, "value": "x", @@ -516,7 +516,7 @@ "type": "Identifier", "span": { "start": 340, - "end": 346, + "end": 341, "ctxt": 0 }, "value": "a", @@ -595,7 +595,7 @@ "type": "Identifier", "span": { "start": 377, - "end": 402, + "end": 379, "ctxt": 0 }, "value": "a2", @@ -619,7 +619,7 @@ "type": "Identifier", "span": { "start": 385, - "end": 389, + "end": 386, "ctxt": 0 }, "value": "x", @@ -754,7 +754,7 @@ "type": "Identifier", "span": { "start": 427, - "end": 433, + "end": 428, "ctxt": 0 }, "value": "a", @@ -833,7 +833,7 @@ "type": "Identifier", "span": { "start": 464, - "end": 485, + "end": 466, "ctxt": 0 }, "value": "a3", @@ -857,7 +857,7 @@ "type": "Identifier", "span": { "start": 472, - "end": 476, + "end": 473, "ctxt": 0 }, "value": "x", @@ -984,7 +984,7 @@ "type": "Identifier", "span": { "start": 510, - "end": 516, + "end": 511, "ctxt": 0 }, "value": "a", @@ -1063,7 +1063,7 @@ "type": "Identifier", "span": { "start": 547, - "end": 579, + "end": 549, "ctxt": 0 }, "value": "a4", @@ -1087,7 +1087,7 @@ "type": "Identifier", "span": { "start": 558, - "end": 562, + "end": 559, "ctxt": 0 }, "value": "x", @@ -1124,7 +1124,7 @@ "type": "Identifier", "span": { "start": 564, - "end": 568, + "end": 565, "ctxt": 0 }, "value": "y", @@ -1274,7 +1274,7 @@ "type": "Identifier", "span": { "start": 604, - "end": 610, + "end": 605, "ctxt": 0 }, "value": "a", @@ -1353,7 +1353,7 @@ "type": "Identifier", "span": { "start": 641, - "end": 674, + "end": 643, "ctxt": 0 }, "value": "a5", @@ -1377,7 +1377,7 @@ "type": "Identifier", "span": { "start": 652, - "end": 668, + "end": 653, "ctxt": 0 }, "value": "x", @@ -1401,7 +1401,7 @@ "type": "Identifier", "span": { "start": 656, - "end": 662, + "end": 659, "ctxt": 0 }, "value": "arg", @@ -1593,7 +1593,7 @@ "type": "Identifier", "span": { "start": 699, - "end": 705, + "end": 700, "ctxt": 0 }, "value": "a", @@ -1672,7 +1672,7 @@ "type": "Identifier", "span": { "start": 736, - "end": 785, + "end": 738, "ctxt": 0 }, "value": "a6", @@ -1696,7 +1696,7 @@ "type": "Identifier", "span": { "start": 757, - "end": 779, + "end": 758, "ctxt": 0 }, "value": "x", @@ -1720,7 +1720,7 @@ "type": "Identifier", "span": { "start": 761, - "end": 767, + "end": 764, "ctxt": 0 }, "value": "arg", @@ -1907,7 +1907,7 @@ "type": "Identifier", "span": { "start": 810, - "end": 816, + "end": 811, "ctxt": 0 }, "value": "a", @@ -1986,7 +1986,7 @@ "type": "Identifier", "span": { "start": 848, - "end": 902, + "end": 851, "ctxt": 0 }, "value": "a11", @@ -2010,7 +2010,7 @@ "type": "Identifier", "span": { "start": 857, - "end": 870, + "end": 858, "ctxt": 0 }, "value": "x", @@ -2089,7 +2089,7 @@ "type": "Identifier", "span": { "start": 872, - "end": 893, + "end": 873, "ctxt": 0 }, "value": "y", @@ -2319,7 +2319,7 @@ "type": "Identifier", "span": { "start": 928, - "end": 934, + "end": 929, "ctxt": 0 }, "value": "a", @@ -2398,7 +2398,7 @@ "type": "Identifier", "span": { "start": 966, - "end": 1000, + "end": 969, "ctxt": 0 }, "value": "a15", @@ -2422,7 +2422,7 @@ "type": "Identifier", "span": { "start": 975, - "end": 992, + "end": 976, "ctxt": 0 }, "value": "x", @@ -2660,7 +2660,7 @@ "type": "Identifier", "span": { "start": 1026, - "end": 1032, + "end": 1027, "ctxt": 0 }, "value": "a", @@ -2739,7 +2739,7 @@ "type": "Identifier", "span": { "start": 1064, - "end": 1111, + "end": 1067, "ctxt": 0 }, "value": "a16", @@ -2763,7 +2763,7 @@ "type": "Identifier", "span": { "start": 1086, - "end": 1103, + "end": 1087, "ctxt": 0 }, "value": "x", @@ -3019,7 +3019,7 @@ "type": "Identifier", "span": { "start": 1137, - "end": 1143, + "end": 1138, "ctxt": 0 }, "value": "a", @@ -3098,7 +3098,7 @@ "type": "Identifier", "span": { "start": 1175, - "end": 1280, + "end": 1178, "ctxt": 0 }, "value": "a17", @@ -3130,7 +3130,7 @@ "type": "Identifier", "span": { "start": 1206, - "end": 1220, + "end": 1207, "ctxt": 0 }, "value": "x", @@ -3154,7 +3154,7 @@ "type": "Identifier", "span": { "start": 1210, - "end": 1214, + "end": 1211, "ctxt": 0 }, "value": "a", @@ -3319,7 +3319,7 @@ "type": "Identifier", "span": { "start": 1249, - "end": 1263, + "end": 1250, "ctxt": 0 }, "value": "x", @@ -3343,7 +3343,7 @@ "type": "Identifier", "span": { "start": 1253, - "end": 1257, + "end": 1254, "ctxt": 0 }, "value": "a", @@ -3540,7 +3540,7 @@ "type": "Identifier", "span": { "start": 1306, - "end": 1312, + "end": 1307, "ctxt": 0 }, "value": "a", @@ -3619,7 +3619,7 @@ "type": "Identifier", "span": { "start": 1344, - "end": 1549, + "end": 1347, "ctxt": 0 }, "value": "a18", @@ -3651,7 +3651,7 @@ "type": "Identifier", "span": { "start": 1356, - "end": 1439, + "end": 1357, "ctxt": 0 }, "value": "x", @@ -3683,7 +3683,7 @@ "type": "Identifier", "span": { "start": 1389, - "end": 1393, + "end": 1390, "ctxt": 0 }, "value": "a", @@ -3808,7 +3808,7 @@ "type": "Identifier", "span": { "start": 1424, - "end": 1428, + "end": 1425, "ctxt": 0 }, "value": "a", @@ -3965,7 +3965,7 @@ "type": "Identifier", "span": { "start": 1454, - "end": 1538, + "end": 1455, "ctxt": 0 }, "value": "x", @@ -3997,7 +3997,7 @@ "type": "Identifier", "span": { "start": 1488, - "end": 1492, + "end": 1489, "ctxt": 0 }, "value": "a", @@ -4122,7 +4122,7 @@ "type": "Identifier", "span": { "start": 1523, - "end": 1527, + "end": 1524, "ctxt": 0 }, "value": "a", @@ -4311,7 +4311,7 @@ "type": "Identifier", "span": { "start": 1575, - "end": 1581, + "end": 1576, "ctxt": 0 }, "value": "a", @@ -6472,7 +6472,7 @@ "type": "Identifier", "span": { "start": 2199, - "end": 2205, + "end": 2202, "ctxt": 0 }, "value": "arg", @@ -6701,7 +6701,7 @@ "type": "Identifier", "span": { "start": 2249, - "end": 2255, + "end": 2252, "ctxt": 0 }, "value": "arg", @@ -7132,7 +7132,7 @@ "type": "Identifier", "span": { "start": 2404, - "end": 2410, + "end": 2407, "ctxt": 0 }, "value": "arg", @@ -7397,7 +7397,7 @@ "type": "Identifier", "span": { "start": 2464, - "end": 2470, + "end": 2467, "ctxt": 0 }, "value": "arg", @@ -10159,7 +10159,7 @@ "type": "Identifier", "span": { "start": 3228, - "end": 3232, + "end": 3229, "ctxt": 0 }, "value": "a", @@ -10439,7 +10439,7 @@ "type": "Identifier", "span": { "start": 3301, - "end": 3305, + "end": 3302, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesA.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesA.json index d83e77680fcc..98b80c468a68 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesA.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesA.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 23, - "end": 48, + "end": 25, "ctxt": 0 }, "value": "cb", @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 28, - "end": 37, + "end": 29, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesWithOptionalParameters.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesWithOptionalParameters.json index be7eb3c2187b..27c535abdbd8 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesWithOptionalParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesWithOptionalParameters.json @@ -134,7 +134,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 161, + "end": 152, "ctxt": 0 }, "value": "x", @@ -221,7 +221,7 @@ "type": "Identifier", "span": { "start": 183, - "end": 192, + "end": 184, "ctxt": 0 }, "value": "x", @@ -308,7 +308,7 @@ "type": "Identifier", "span": { "start": 214, - "end": 223, + "end": 215, "ctxt": 0 }, "value": "x", @@ -335,7 +335,7 @@ "type": "Identifier", "span": { "start": 225, - "end": 235, + "end": 226, "ctxt": 0 }, "value": "y", @@ -422,7 +422,7 @@ "type": "Identifier", "span": { "start": 257, - "end": 267, + "end": 258, "ctxt": 0 }, "value": "x", @@ -449,7 +449,7 @@ "type": "Identifier", "span": { "start": 269, - "end": 279, + "end": 270, "ctxt": 0 }, "value": "y", @@ -697,7 +697,7 @@ "type": "Identifier", "span": { "start": 421, - "end": 431, + "end": 422, "ctxt": 0 }, "value": "x", @@ -835,7 +835,7 @@ "type": "Identifier", "span": { "start": 521, - "end": 530, + "end": 522, "ctxt": 0 }, "value": "x", @@ -1083,7 +1083,7 @@ "type": "Identifier", "span": { "start": 710, - "end": 720, + "end": 711, "ctxt": 0 }, "value": "x", @@ -1221,7 +1221,7 @@ "type": "Identifier", "span": { "start": 811, - "end": 820, + "end": 812, "ctxt": 0 }, "value": "x", @@ -1469,7 +1469,7 @@ "type": "Identifier", "span": { "start": 985, - "end": 995, + "end": 986, "ctxt": 0 }, "value": "x", @@ -1607,7 +1607,7 @@ "type": "Identifier", "span": { "start": 1077, - "end": 1086, + "end": 1078, "ctxt": 0 }, "value": "x", @@ -1745,7 +1745,7 @@ "type": "Identifier", "span": { "start": 1178, - "end": 1187, + "end": 1179, "ctxt": 0 }, "value": "x", @@ -1772,7 +1772,7 @@ "type": "Identifier", "span": { "start": 1189, - "end": 1198, + "end": 1190, "ctxt": 0 }, "value": "y", @@ -2020,7 +2020,7 @@ "type": "Identifier", "span": { "start": 1372, - "end": 1382, + "end": 1373, "ctxt": 0 }, "value": "x", @@ -2047,7 +2047,7 @@ "type": "Identifier", "span": { "start": 1384, - "end": 1394, + "end": 1385, "ctxt": 0 }, "value": "y", @@ -2185,7 +2185,7 @@ "type": "Identifier", "span": { "start": 1477, - "end": 1486, + "end": 1478, "ctxt": 0 }, "value": "x", @@ -2323,7 +2323,7 @@ "type": "Identifier", "span": { "start": 1578, - "end": 1587, + "end": 1579, "ctxt": 0 }, "value": "x", @@ -2350,7 +2350,7 @@ "type": "Identifier", "span": { "start": 1589, - "end": 1598, + "end": 1590, "ctxt": 0 }, "value": "y", @@ -2598,7 +2598,7 @@ "type": "Identifier", "span": { "start": 1766, - "end": 1776, + "end": 1767, "ctxt": 0 }, "value": "x", @@ -2625,7 +2625,7 @@ "type": "Identifier", "span": { "start": 1778, - "end": 1788, + "end": 1779, "ctxt": 0 }, "value": "y", @@ -2763,7 +2763,7 @@ "type": "Identifier", "span": { "start": 1871, - "end": 1880, + "end": 1872, "ctxt": 0 }, "value": "x", @@ -2901,7 +2901,7 @@ "type": "Identifier", "span": { "start": 1966, - "end": 1975, + "end": 1967, "ctxt": 0 }, "value": "x", @@ -2928,7 +2928,7 @@ "type": "Identifier", "span": { "start": 1977, - "end": 1986, + "end": 1978, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesWithRestParameters.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesWithRestParameters.json index 5761f134c45b..f58a727a5815 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesWithRestParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesWithRestParameters.json @@ -184,7 +184,7 @@ "type": "Identifier", "span": { "start": 168, - "end": 177, + "end": 169, "ctxt": 0 }, "value": "x", @@ -320,7 +320,7 @@ "type": "Identifier", "span": { "start": 215, - "end": 224, + "end": 216, "ctxt": 0 }, "value": "x", @@ -347,7 +347,7 @@ "type": "Identifier", "span": { "start": 226, - "end": 236, + "end": 227, "ctxt": 0 }, "value": "y", @@ -483,7 +483,7 @@ "type": "Identifier", "span": { "start": 274, - "end": 284, + "end": 275, "ctxt": 0 }, "value": "x", @@ -510,7 +510,7 @@ "type": "Identifier", "span": { "start": 286, - "end": 296, + "end": 287, "ctxt": 0 }, "value": "y", @@ -1127,7 +1127,7 @@ "type": "Identifier", "span": { "start": 656, - "end": 666, + "end": 657, "ctxt": 0 }, "value": "x", @@ -1265,7 +1265,7 @@ "type": "Identifier", "span": { "start": 757, - "end": 767, + "end": 758, "ctxt": 0 }, "value": "x", @@ -1292,7 +1292,7 @@ "type": "Identifier", "span": { "start": 769, - "end": 779, + "end": 770, "ctxt": 0 }, "value": "y", @@ -1319,7 +1319,7 @@ "type": "Identifier", "span": { "start": 781, - "end": 791, + "end": 782, "ctxt": 0 }, "value": "z", @@ -1457,7 +1457,7 @@ "type": "Identifier", "span": { "start": 881, - "end": 890, + "end": 882, "ctxt": 0 }, "value": "x", @@ -1595,7 +1595,7 @@ "type": "Identifier", "span": { "start": 975, - "end": 985, + "end": 976, "ctxt": 0 }, "value": "x", @@ -2003,7 +2003,7 @@ "type": "Identifier", "span": { "start": 1250, - "end": 1260, + "end": 1251, "ctxt": 0 }, "value": "x", @@ -2141,7 +2141,7 @@ "type": "Identifier", "span": { "start": 1342, - "end": 1351, + "end": 1343, "ctxt": 0 }, "value": "x", @@ -2279,7 +2279,7 @@ "type": "Identifier", "span": { "start": 1443, - "end": 1452, + "end": 1444, "ctxt": 0 }, "value": "x", @@ -2466,7 +2466,7 @@ "type": "Identifier", "span": { "start": 1563, - "end": 1572, + "end": 1564, "ctxt": 0 }, "value": "x", @@ -2653,7 +2653,7 @@ "type": "Identifier", "span": { "start": 1654, - "end": 1663, + "end": 1655, "ctxt": 0 }, "value": "x", @@ -2680,7 +2680,7 @@ "type": "Identifier", "span": { "start": 1665, - "end": 1674, + "end": 1666, "ctxt": 0 }, "value": "y", @@ -2818,7 +2818,7 @@ "type": "Identifier", "span": { "start": 1760, - "end": 1769, + "end": 1761, "ctxt": 0 }, "value": "x", @@ -2845,7 +2845,7 @@ "type": "Identifier", "span": { "start": 1771, - "end": 1781, + "end": 1772, "ctxt": 0 }, "value": "y", @@ -3093,7 +3093,7 @@ "type": "Identifier", "span": { "start": 1956, - "end": 1966, + "end": 1957, "ctxt": 0 }, "value": "x", @@ -3231,7 +3231,7 @@ "type": "Identifier", "span": { "start": 2048, - "end": 2057, + "end": 2049, "ctxt": 0 }, "value": "x", @@ -3369,7 +3369,7 @@ "type": "Identifier", "span": { "start": 2149, - "end": 2158, + "end": 2150, "ctxt": 0 }, "value": "x", @@ -3396,7 +3396,7 @@ "type": "Identifier", "span": { "start": 2160, - "end": 2169, + "end": 2161, "ctxt": 0 }, "value": "y", @@ -3534,7 +3534,7 @@ "type": "Identifier", "span": { "start": 2257, - "end": 2266, + "end": 2258, "ctxt": 0 }, "value": "x", @@ -3561,7 +3561,7 @@ "type": "Identifier", "span": { "start": 2268, - "end": 2278, + "end": 2269, "ctxt": 0 }, "value": "y", @@ -3588,7 +3588,7 @@ "type": "Identifier", "span": { "start": 2280, - "end": 2290, + "end": 2281, "ctxt": 0 }, "value": "z", @@ -3726,7 +3726,7 @@ "type": "Identifier", "span": { "start": 2355, - "end": 2364, + "end": 2356, "ctxt": 0 }, "value": "x", @@ -3913,7 +3913,7 @@ "type": "Identifier", "span": { "start": 2445, - "end": 2454, + "end": 2446, "ctxt": 0 }, "value": "x", @@ -3940,7 +3940,7 @@ "type": "Identifier", "span": { "start": 2456, - "end": 2466, + "end": 2457, "ctxt": 0 }, "value": "y", @@ -3967,7 +3967,7 @@ "type": "Identifier", "span": { "start": 2468, - "end": 2478, + "end": 2469, "ctxt": 0 }, "value": "z", @@ -4105,7 +4105,7 @@ "type": "Identifier", "span": { "start": 2563, - "end": 2572, + "end": 2564, "ctxt": 0 }, "value": "x", @@ -4402,7 +4402,7 @@ "type": "Identifier", "span": { "start": 2735, - "end": 2745, + "end": 2736, "ctxt": 0 }, "value": "x", @@ -4429,7 +4429,7 @@ "type": "Identifier", "span": { "start": 2747, - "end": 2757, + "end": 2748, "ctxt": 0 }, "value": "y", @@ -4567,7 +4567,7 @@ "type": "Identifier", "span": { "start": 2835, - "end": 2844, + "end": 2836, "ctxt": 0 }, "value": "x", @@ -4705,7 +4705,7 @@ "type": "Identifier", "span": { "start": 2930, - "end": 2939, + "end": 2931, "ctxt": 0 }, "value": "x", @@ -4732,7 +4732,7 @@ "type": "Identifier", "span": { "start": 2941, - "end": 2951, + "end": 2942, "ctxt": 0 }, "value": "y", @@ -4870,7 +4870,7 @@ "type": "Identifier", "span": { "start": 3047, - "end": 3057, + "end": 3048, "ctxt": 0 }, "value": "x", @@ -4897,7 +4897,7 @@ "type": "Identifier", "span": { "start": 3059, - "end": 3069, + "end": 3060, "ctxt": 0 }, "value": "y", @@ -5035,7 +5035,7 @@ "type": "Identifier", "span": { "start": 3182, - "end": 3191, + "end": 3183, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesWithSpecializedSignatures.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesWithSpecializedSignatures.json index 35ae981a4784..d204c471606c 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesWithSpecializedSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesWithSpecializedSignatures.json @@ -73,7 +73,7 @@ "type": "Identifier", "span": { "start": 192, - "end": 198, + "end": 193, "ctxt": 0 }, "value": "x", @@ -137,7 +137,7 @@ "type": "Identifier", "span": { "start": 216, - "end": 225, + "end": 217, "ctxt": 0 }, "value": "x", @@ -164,7 +164,7 @@ "type": "Identifier", "span": { "start": 227, - "end": 236, + "end": 228, "ctxt": 0 }, "value": "y", @@ -270,7 +270,7 @@ "type": "Identifier", "span": { "start": 318, - "end": 324, + "end": 319, "ctxt": 0 }, "value": "x", @@ -334,7 +334,7 @@ "type": "Identifier", "span": { "start": 376, - "end": 385, + "end": 377, "ctxt": 0 }, "value": "x", @@ -361,7 +361,7 @@ "type": "Identifier", "span": { "start": 387, - "end": 396, + "end": 388, "ctxt": 0 }, "value": "y", @@ -416,7 +416,7 @@ "type": "Identifier", "span": { "start": 451, - "end": 455, + "end": 452, "ctxt": 0 }, "value": "x", @@ -544,7 +544,7 @@ "type": "Identifier", "span": { "start": 556, - "end": 562, + "end": 557, "ctxt": 0 }, "value": "x", @@ -608,7 +608,7 @@ "type": "Identifier", "span": { "start": 582, - "end": 591, + "end": 583, "ctxt": 0 }, "value": "x", @@ -714,7 +714,7 @@ "type": "Identifier", "span": { "start": 677, - "end": 683, + "end": 678, "ctxt": 0 }, "value": "x", @@ -778,7 +778,7 @@ "type": "Identifier", "span": { "start": 703, - "end": 712, + "end": 704, "ctxt": 0 }, "value": "x", @@ -884,7 +884,7 @@ "type": "Identifier", "span": { "start": 841, - "end": 845, + "end": 842, "ctxt": 0 }, "value": "x", @@ -1079,7 +1079,7 @@ "type": "Identifier", "span": { "start": 998, - "end": 1004, + "end": 999, "ctxt": 0 }, "value": "x", @@ -1143,7 +1143,7 @@ "type": "Identifier", "span": { "start": 1026, - "end": 1035, + "end": 1027, "ctxt": 0 }, "value": "x", @@ -1240,7 +1240,7 @@ "type": "Identifier", "span": { "start": 1081, - "end": 1087, + "end": 1082, "ctxt": 0 }, "value": "x", @@ -1276,7 +1276,7 @@ "type": "Identifier", "span": { "start": 1089, - "end": 1098, + "end": 1090, "ctxt": 0 }, "value": "y", @@ -1331,7 +1331,7 @@ "type": "Identifier", "span": { "start": 1120, - "end": 1129, + "end": 1121, "ctxt": 0 }, "value": "x", @@ -1358,7 +1358,7 @@ "type": "Identifier", "span": { "start": 1131, - "end": 1140, + "end": 1132, "ctxt": 0 }, "value": "y", @@ -1447,7 +1447,7 @@ "type": "Identifier", "span": { "start": 1175, - "end": 1179, + "end": 1176, "ctxt": 0 }, "value": "x", @@ -1627,7 +1627,7 @@ "type": "Identifier", "span": { "start": 1266, - "end": 1275, + "end": 1267, "ctxt": 0 }, "value": "x", @@ -1714,7 +1714,7 @@ "type": "Identifier", "span": { "start": 1333, - "end": 1342, + "end": 1334, "ctxt": 0 }, "value": "x", @@ -1741,7 +1741,7 @@ "type": "Identifier", "span": { "start": 1344, - "end": 1353, + "end": 1345, "ctxt": 0 }, "value": "y", @@ -1828,7 +1828,7 @@ "type": "Identifier", "span": { "start": 1415, - "end": 1419, + "end": 1416, "ctxt": 0 }, "value": "x", @@ -1996,7 +1996,7 @@ "type": "Identifier", "span": { "start": 1539, - "end": 1545, + "end": 1540, "ctxt": 0 }, "value": "x", @@ -2060,7 +2060,7 @@ "type": "Identifier", "span": { "start": 1569, - "end": 1578, + "end": 1570, "ctxt": 0 }, "value": "x", @@ -2149,7 +2149,7 @@ "type": "Identifier", "span": { "start": 1615, - "end": 1619, + "end": 1616, "ctxt": 0 }, "value": "x", @@ -2339,7 +2339,7 @@ "type": "Identifier", "span": { "start": 1705, - "end": 1714, + "end": 1706, "ctxt": 0 }, "value": "x", @@ -2477,7 +2477,7 @@ "type": "Identifier", "span": { "start": 1849, - "end": 1853, + "end": 1850, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures.json index 6f2d1cdca6e3..a28307d9094c 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 55, - "end": 82, + "end": 57, "ctxt": 0 }, "value": "cb", @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 64, - "end": 73, + "end": 65, "ctxt": 0 }, "value": "x", @@ -195,7 +195,7 @@ "type": "Identifier", "span": { "start": 122, - "end": 129, + "end": 124, "ctxt": 0 }, "value": "cb", @@ -293,7 +293,7 @@ "type": "Identifier", "span": { "start": 157, - "end": 166, + "end": 158, "ctxt": 0 }, "value": "x", @@ -455,7 +455,7 @@ "type": "Identifier", "span": { "start": 259, - "end": 263, + "end": 260, "ctxt": 0 }, "value": "x", @@ -640,7 +640,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 399, + "end": 363, "ctxt": 0 }, "value": "cb", @@ -664,7 +664,7 @@ "type": "Identifier", "span": { "start": 370, - "end": 379, + "end": 371, "ctxt": 0 }, "value": "x", @@ -691,7 +691,7 @@ "type": "Identifier", "span": { "start": 381, - "end": 390, + "end": 382, "ctxt": 0 }, "value": "y", @@ -803,7 +803,7 @@ "type": "Identifier", "span": { "start": 439, - "end": 446, + "end": 441, "ctxt": 0 }, "value": "cb", @@ -901,7 +901,7 @@ "type": "Identifier", "span": { "start": 475, - "end": 484, + "end": 476, "ctxt": 0 }, "value": "x", @@ -928,7 +928,7 @@ "type": "Identifier", "span": { "start": 486, - "end": 495, + "end": 487, "ctxt": 0 }, "value": "y", @@ -1090,7 +1090,7 @@ "type": "Identifier", "span": { "start": 591, - "end": 595, + "end": 592, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures2.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures2.json index 849fecc0ca88..1f7b83b571c9 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures2.json @@ -347,7 +347,7 @@ "type": "Identifier", "span": { "start": 296, - "end": 326, + "end": 297, "ctxt": 0 }, "value": "a", @@ -371,7 +371,7 @@ "type": "Identifier", "span": { "start": 304, - "end": 313, + "end": 305, "ctxt": 0 }, "value": "x", @@ -491,7 +491,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 367, + "end": 362, "ctxt": 0 }, "value": "a", @@ -570,7 +570,7 @@ "type": "Identifier", "span": { "start": 398, - "end": 428, + "end": 399, "ctxt": 0 }, "value": "a", @@ -594,7 +594,7 @@ "type": "Identifier", "span": { "start": 406, - "end": 415, + "end": 407, "ctxt": 0 }, "value": "x", @@ -714,7 +714,7 @@ "type": "Identifier", "span": { "start": 463, - "end": 469, + "end": 464, "ctxt": 0 }, "value": "a", @@ -793,7 +793,7 @@ "type": "Identifier", "span": { "start": 500, - "end": 526, + "end": 501, "ctxt": 0 }, "value": "a", @@ -817,7 +817,7 @@ "type": "Identifier", "span": { "start": 508, - "end": 517, + "end": 509, "ctxt": 0 }, "value": "x", @@ -929,7 +929,7 @@ "type": "Identifier", "span": { "start": 561, - "end": 567, + "end": 562, "ctxt": 0 }, "value": "a", @@ -1008,7 +1008,7 @@ "type": "Identifier", "span": { "start": 598, - "end": 637, + "end": 599, "ctxt": 0 }, "value": "a", @@ -1032,7 +1032,7 @@ "type": "Identifier", "span": { "start": 606, - "end": 615, + "end": 607, "ctxt": 0 }, "value": "x", @@ -1059,7 +1059,7 @@ "type": "Identifier", "span": { "start": 617, - "end": 626, + "end": 618, "ctxt": 0 }, "value": "y", @@ -1171,7 +1171,7 @@ "type": "Identifier", "span": { "start": 672, - "end": 678, + "end": 673, "ctxt": 0 }, "value": "a", @@ -1250,7 +1250,7 @@ "type": "Identifier", "span": { "start": 709, - "end": 758, + "end": 710, "ctxt": 0 }, "value": "a", @@ -1274,7 +1274,7 @@ "type": "Identifier", "span": { "start": 717, - "end": 747, + "end": 718, "ctxt": 0 }, "value": "x", @@ -1298,7 +1298,7 @@ "type": "Identifier", "span": { "start": 725, - "end": 736, + "end": 728, "ctxt": 0 }, "value": "arg", @@ -1433,7 +1433,7 @@ "type": "Identifier", "span": { "start": 793, - "end": 799, + "end": 794, "ctxt": 0 }, "value": "a", @@ -1512,7 +1512,7 @@ "type": "Identifier", "span": { "start": 830, - "end": 876, + "end": 831, "ctxt": 0 }, "value": "a", @@ -1536,7 +1536,7 @@ "type": "Identifier", "span": { "start": 838, - "end": 867, + "end": 839, "ctxt": 0 }, "value": "x", @@ -1560,7 +1560,7 @@ "type": "Identifier", "span": { "start": 846, - "end": 855, + "end": 849, "ctxt": 0 }, "value": "arg", @@ -1725,7 +1725,7 @@ "type": "Identifier", "span": { "start": 911, - "end": 917, + "end": 912, "ctxt": 0 }, "value": "a", @@ -1804,7 +1804,7 @@ "type": "Identifier", "span": { "start": 948, - "end": 1014, + "end": 949, "ctxt": 0 }, "value": "a", @@ -1828,7 +1828,7 @@ "type": "Identifier", "span": { "start": 956, - "end": 985, + "end": 957, "ctxt": 0 }, "value": "x", @@ -1852,7 +1852,7 @@ "type": "Identifier", "span": { "start": 964, - "end": 973, + "end": 967, "ctxt": 0 }, "value": "arg", @@ -1939,7 +1939,7 @@ "type": "Identifier", "span": { "start": 995, - "end": 1002, + "end": 996, "ctxt": 0 }, "value": "r", @@ -2074,7 +2074,7 @@ "type": "Identifier", "span": { "start": 1049, - "end": 1055, + "end": 1050, "ctxt": 0 }, "value": "a", @@ -2153,7 +2153,7 @@ "type": "Identifier", "span": { "start": 1086, - "end": 1184, + "end": 1087, "ctxt": 0 }, "value": "a", @@ -2177,7 +2177,7 @@ "type": "Identifier", "span": { "start": 1094, - "end": 1123, + "end": 1095, "ctxt": 0 }, "value": "x", @@ -2201,7 +2201,7 @@ "type": "Identifier", "span": { "start": 1102, - "end": 1111, + "end": 1105, "ctxt": 0 }, "value": "arg", @@ -2271,7 +2271,7 @@ "type": "Identifier", "span": { "start": 1125, - "end": 1155, + "end": 1126, "ctxt": 0 }, "value": "y", @@ -2295,7 +2295,7 @@ "type": "Identifier", "span": { "start": 1133, - "end": 1143, + "end": 1137, "ctxt": 0 }, "value": "arg2", @@ -2382,7 +2382,7 @@ "type": "Identifier", "span": { "start": 1165, - "end": 1172, + "end": 1166, "ctxt": 0 }, "value": "r", @@ -2517,7 +2517,7 @@ "type": "Identifier", "span": { "start": 1219, - "end": 1225, + "end": 1220, "ctxt": 0 }, "value": "a", @@ -2596,7 +2596,7 @@ "type": "Identifier", "span": { "start": 1256, - "end": 1354, + "end": 1257, "ctxt": 0 }, "value": "a", @@ -2620,7 +2620,7 @@ "type": "Identifier", "span": { "start": 1264, - "end": 1293, + "end": 1265, "ctxt": 0 }, "value": "x", @@ -2644,7 +2644,7 @@ "type": "Identifier", "span": { "start": 1272, - "end": 1281, + "end": 1275, "ctxt": 0 }, "value": "arg", @@ -2714,7 +2714,7 @@ "type": "Identifier", "span": { "start": 1295, - "end": 1325, + "end": 1296, "ctxt": 0 }, "value": "y", @@ -2738,7 +2738,7 @@ "type": "Identifier", "span": { "start": 1303, - "end": 1313, + "end": 1307, "ctxt": 0 }, "value": "arg2", @@ -2825,7 +2825,7 @@ "type": "Identifier", "span": { "start": 1335, - "end": 1342, + "end": 1336, "ctxt": 0 }, "value": "r", @@ -2960,7 +2960,7 @@ "type": "Identifier", "span": { "start": 1389, - "end": 1395, + "end": 1390, "ctxt": 0 }, "value": "a", @@ -3039,7 +3039,7 @@ "type": "Identifier", "span": { "start": 1427, - "end": 1462, + "end": 1428, "ctxt": 0 }, "value": "a", @@ -3217,7 +3217,7 @@ "type": "Identifier", "span": { "start": 1498, - "end": 1504, + "end": 1499, "ctxt": 0 }, "value": "a", @@ -3296,7 +3296,7 @@ "type": "Identifier", "span": { "start": 1536, - "end": 1604, + "end": 1537, "ctxt": 0 }, "value": "a", @@ -3320,7 +3320,7 @@ "type": "Identifier", "span": { "start": 1544, - "end": 1562, + "end": 1545, "ctxt": 0 }, "value": "x", @@ -3389,7 +3389,7 @@ "type": "Identifier", "span": { "start": 1564, - "end": 1595, + "end": 1565, "ctxt": 0 }, "value": "y", @@ -3594,7 +3594,7 @@ "type": "Identifier", "span": { "start": 1640, - "end": 1646, + "end": 1641, "ctxt": 0 }, "value": "a", @@ -3673,7 +3673,7 @@ "type": "Identifier", "span": { "start": 1678, - "end": 1739, + "end": 1679, "ctxt": 0 }, "value": "a", @@ -3697,7 +3697,7 @@ "type": "Identifier", "span": { "start": 1686, - "end": 1700, + "end": 1687, "ctxt": 0 }, "value": "x", @@ -3762,7 +3762,7 @@ "type": "Identifier", "span": { "start": 1702, - "end": 1720, + "end": 1703, "ctxt": 0 }, "value": "y", @@ -3950,7 +3950,7 @@ "type": "Identifier", "span": { "start": 1775, - "end": 1781, + "end": 1776, "ctxt": 0 }, "value": "a", @@ -4029,7 +4029,7 @@ "type": "Identifier", "span": { "start": 1813, - "end": 1873, + "end": 1814, "ctxt": 0 }, "value": "a", @@ -4053,7 +4053,7 @@ "type": "Identifier", "span": { "start": 1821, - "end": 1835, + "end": 1822, "ctxt": 0 }, "value": "x", @@ -4118,7 +4118,7 @@ "type": "Identifier", "span": { "start": 1837, - "end": 1854, + "end": 1838, "ctxt": 0 }, "value": "y", @@ -4306,7 +4306,7 @@ "type": "Identifier", "span": { "start": 1909, - "end": 1915, + "end": 1910, "ctxt": 0 }, "value": "a", @@ -4385,7 +4385,7 @@ "type": "Identifier", "span": { "start": 1947, - "end": 1993, + "end": 1948, "ctxt": 0 }, "value": "a", @@ -4409,7 +4409,7 @@ "type": "Identifier", "span": { "start": 1955, - "end": 1982, + "end": 1956, "ctxt": 0 }, "value": "x", @@ -4614,7 +4614,7 @@ "type": "Identifier", "span": { "start": 2029, - "end": 2035, + "end": 2030, "ctxt": 0 }, "value": "a", @@ -4693,7 +4693,7 @@ "type": "Identifier", "span": { "start": 2067, - "end": 2137, + "end": 2068, "ctxt": 0 }, "value": "a", @@ -4725,7 +4725,7 @@ "type": "Identifier", "span": { "start": 2082, - "end": 2091, + "end": 2083, "ctxt": 0 }, "value": "x", @@ -4788,7 +4788,7 @@ "type": "Identifier", "span": { "start": 2113, - "end": 2122, + "end": 2114, "ctxt": 0 }, "value": "x", @@ -4909,7 +4909,7 @@ "type": "Identifier", "span": { "start": 2173, - "end": 2179, + "end": 2174, "ctxt": 0 }, "value": "a", @@ -4988,7 +4988,7 @@ "type": "Identifier", "span": { "start": 2211, - "end": 2304, + "end": 2212, "ctxt": 0 }, "value": "a", @@ -5020,7 +5020,7 @@ "type": "Identifier", "span": { "start": 2244, - "end": 2248, + "end": 2245, "ctxt": 0 }, "value": "x", @@ -5143,7 +5143,7 @@ "type": "Identifier", "span": { "start": 2286, - "end": 2290, + "end": 2287, "ctxt": 0 }, "value": "x", @@ -5324,7 +5324,7 @@ "type": "Identifier", "span": { "start": 2340, - "end": 2346, + "end": 2341, "ctxt": 0 }, "value": "a", @@ -5403,7 +5403,7 @@ "type": "Identifier", "span": { "start": 2378, - "end": 2476, + "end": 2379, "ctxt": 0 }, "value": "a", @@ -5435,7 +5435,7 @@ "type": "Identifier", "span": { "start": 2392, - "end": 2416, + "end": 2393, "ctxt": 0 }, "value": "x", @@ -5459,7 +5459,7 @@ "type": "Identifier", "span": { "start": 2396, - "end": 2405, + "end": 2397, "ctxt": 0 }, "value": "a", @@ -5544,7 +5544,7 @@ "type": "Identifier", "span": { "start": 2438, - "end": 2462, + "end": 2439, "ctxt": 0 }, "value": "x", @@ -5568,7 +5568,7 @@ "type": "Identifier", "span": { "start": 2442, - "end": 2451, + "end": 2443, "ctxt": 0 }, "value": "a", @@ -5711,7 +5711,7 @@ "type": "Identifier", "span": { "start": 2512, - "end": 2518, + "end": 2513, "ctxt": 0 }, "value": "a", @@ -5790,7 +5790,7 @@ "type": "Identifier", "span": { "start": 2550, - "end": 2744, + "end": 2551, "ctxt": 0 }, "value": "a", @@ -5822,7 +5822,7 @@ "type": "Identifier", "span": { "start": 2564, - "end": 2640, + "end": 2565, "ctxt": 0 }, "value": "x", @@ -5854,7 +5854,7 @@ "type": "Identifier", "span": { "start": 2582, - "end": 2591, + "end": 2583, "ctxt": 0 }, "value": "a", @@ -5909,7 +5909,7 @@ "type": "Identifier", "span": { "start": 2615, - "end": 2624, + "end": 2616, "ctxt": 0 }, "value": "a", @@ -5996,7 +5996,7 @@ "type": "Identifier", "span": { "start": 2659, - "end": 2733, + "end": 2660, "ctxt": 0 }, "value": "x", @@ -6028,7 +6028,7 @@ "type": "Identifier", "span": { "start": 2677, - "end": 2687, + "end": 2678, "ctxt": 0 }, "value": "a", @@ -6083,7 +6083,7 @@ "type": "Identifier", "span": { "start": 2712, - "end": 2719, + "end": 2713, "ctxt": 0 }, "value": "a", @@ -6248,7 +6248,7 @@ "type": "Identifier", "span": { "start": 2780, - "end": 2786, + "end": 2781, "ctxt": 0 }, "value": "a", @@ -6346,7 +6346,7 @@ "type": "Identifier", "span": { "start": 2815, - "end": 2819, + "end": 2816, "ctxt": 0 }, "value": "x", @@ -6502,7 +6502,7 @@ "type": "Identifier", "span": { "start": 2846, - "end": 2855, + "end": 2847, "ctxt": 0 }, "value": "x", @@ -6808,7 +6808,7 @@ "type": "Identifier", "span": { "start": 3123, - "end": 3127, + "end": 3124, "ctxt": 0 }, "value": "x", @@ -6954,7 +6954,7 @@ "type": "Identifier", "span": { "start": 3159, - "end": 3168, + "end": 3160, "ctxt": 0 }, "value": "x", @@ -7260,7 +7260,7 @@ "type": "Identifier", "span": { "start": 3283, - "end": 3287, + "end": 3284, "ctxt": 0 }, "value": "x", @@ -7408,7 +7408,7 @@ "type": "Identifier", "span": { "start": 3312, - "end": 3321, + "end": 3313, "ctxt": 0 }, "value": "x", @@ -7706,7 +7706,7 @@ "type": "Identifier", "span": { "start": 3435, - "end": 3439, + "end": 3436, "ctxt": 0 }, "value": "x", @@ -7743,7 +7743,7 @@ "type": "Identifier", "span": { "start": 3441, - "end": 3445, + "end": 3442, "ctxt": 0 }, "value": "y", @@ -7914,7 +7914,7 @@ "type": "Identifier", "span": { "start": 3470, - "end": 3479, + "end": 3471, "ctxt": 0 }, "value": "x", @@ -7941,7 +7941,7 @@ "type": "Identifier", "span": { "start": 3481, - "end": 3490, + "end": 3482, "ctxt": 0 }, "value": "y", @@ -8239,7 +8239,7 @@ "type": "Identifier", "span": { "start": 3613, - "end": 3633, + "end": 3614, "ctxt": 0 }, "value": "x", @@ -8263,7 +8263,7 @@ "type": "Identifier", "span": { "start": 3621, - "end": 3627, + "end": 3624, "ctxt": 0 }, "value": "arg", @@ -8467,7 +8467,7 @@ "type": "Identifier", "span": { "start": 3658, - "end": 3688, + "end": 3659, "ctxt": 0 }, "value": "x", @@ -8491,7 +8491,7 @@ "type": "Identifier", "span": { "start": 3666, - "end": 3677, + "end": 3669, "ctxt": 0 }, "value": "arg", @@ -8812,7 +8812,7 @@ "type": "Identifier", "span": { "start": 3840, - "end": 3860, + "end": 3841, "ctxt": 0 }, "value": "x", @@ -8836,7 +8836,7 @@ "type": "Identifier", "span": { "start": 3848, - "end": 3854, + "end": 3851, "ctxt": 0 }, "value": "arg", @@ -9076,7 +9076,7 @@ "type": "Identifier", "span": { "start": 3885, - "end": 3914, + "end": 3886, "ctxt": 0 }, "value": "x", @@ -9100,7 +9100,7 @@ "type": "Identifier", "span": { "start": 3893, - "end": 3902, + "end": 3896, "ctxt": 0 }, "value": "arg", @@ -9451,7 +9451,7 @@ "type": "Identifier", "span": { "start": 4064, - "end": 4084, + "end": 4065, "ctxt": 0 }, "value": "x", @@ -9475,7 +9475,7 @@ "type": "Identifier", "span": { "start": 4072, - "end": 4078, + "end": 4075, "ctxt": 0 }, "value": "arg", @@ -9653,7 +9653,7 @@ "type": "Identifier", "span": { "start": 4094, - "end": 4098, + "end": 4095, "ctxt": 0 }, "value": "r", @@ -9772,7 +9772,7 @@ "type": "Identifier", "span": { "start": 4123, - "end": 4152, + "end": 4124, "ctxt": 0 }, "value": "x", @@ -9796,7 +9796,7 @@ "type": "Identifier", "span": { "start": 4131, - "end": 4140, + "end": 4134, "ctxt": 0 }, "value": "arg", @@ -9883,7 +9883,7 @@ "type": "Identifier", "span": { "start": 4162, - "end": 4169, + "end": 4163, "ctxt": 0 }, "value": "r", @@ -10204,7 +10204,7 @@ "type": "Identifier", "span": { "start": 4322, - "end": 4342, + "end": 4323, "ctxt": 0 }, "value": "x", @@ -10228,7 +10228,7 @@ "type": "Identifier", "span": { "start": 4330, - "end": 4336, + "end": 4333, "ctxt": 0 }, "value": "arg", @@ -10298,7 +10298,7 @@ "type": "Identifier", "span": { "start": 4344, - "end": 4365, + "end": 4345, "ctxt": 0 }, "value": "y", @@ -10322,7 +10322,7 @@ "type": "Identifier", "span": { "start": 4352, - "end": 4359, + "end": 4356, "ctxt": 0 }, "value": "arg2", @@ -10500,7 +10500,7 @@ "type": "Identifier", "span": { "start": 4375, - "end": 4379, + "end": 4376, "ctxt": 0 }, "value": "r", @@ -10619,7 +10619,7 @@ "type": "Identifier", "span": { "start": 4404, - "end": 4433, + "end": 4405, "ctxt": 0 }, "value": "x", @@ -10643,7 +10643,7 @@ "type": "Identifier", "span": { "start": 4412, - "end": 4421, + "end": 4415, "ctxt": 0 }, "value": "arg", @@ -10713,7 +10713,7 @@ "type": "Identifier", "span": { "start": 4435, - "end": 4465, + "end": 4436, "ctxt": 0 }, "value": "y", @@ -10737,7 +10737,7 @@ "type": "Identifier", "span": { "start": 4443, - "end": 4453, + "end": 4447, "ctxt": 0 }, "value": "arg2", @@ -10824,7 +10824,7 @@ "type": "Identifier", "span": { "start": 4475, - "end": 4482, + "end": 4476, "ctxt": 0 }, "value": "r", @@ -11145,7 +11145,7 @@ "type": "Identifier", "span": { "start": 4635, - "end": 4655, + "end": 4636, "ctxt": 0 }, "value": "x", @@ -11169,7 +11169,7 @@ "type": "Identifier", "span": { "start": 4643, - "end": 4649, + "end": 4646, "ctxt": 0 }, "value": "arg", @@ -11239,7 +11239,7 @@ "type": "Identifier", "span": { "start": 4657, - "end": 4702, + "end": 4658, "ctxt": 0 }, "value": "y", @@ -11263,7 +11263,7 @@ "type": "Identifier", "span": { "start": 4661, - "end": 4696, + "end": 4665, "ctxt": 0 }, "value": "arg2", @@ -11513,7 +11513,7 @@ "type": "Identifier", "span": { "start": 4712, - "end": 4716, + "end": 4713, "ctxt": 0 }, "value": "r", @@ -11632,7 +11632,7 @@ "type": "Identifier", "span": { "start": 4741, - "end": 4770, + "end": 4742, "ctxt": 0 }, "value": "x", @@ -11656,7 +11656,7 @@ "type": "Identifier", "span": { "start": 4749, - "end": 4758, + "end": 4752, "ctxt": 0 }, "value": "arg", @@ -11726,7 +11726,7 @@ "type": "Identifier", "span": { "start": 4772, - "end": 4802, + "end": 4773, "ctxt": 0 }, "value": "y", @@ -11750,7 +11750,7 @@ "type": "Identifier", "span": { "start": 4780, - "end": 4790, + "end": 4784, "ctxt": 0 }, "value": "arg2", @@ -11837,7 +11837,7 @@ "type": "Identifier", "span": { "start": 4812, - "end": 4819, + "end": 4813, "ctxt": 0 }, "value": "r", @@ -12686,7 +12686,7 @@ "type": "Identifier", "span": { "start": 5151, - "end": 5155, + "end": 5152, "ctxt": 0 }, "value": "x", @@ -12723,7 +12723,7 @@ "type": "Identifier", "span": { "start": 5157, - "end": 5161, + "end": 5158, "ctxt": 0 }, "value": "y", @@ -12889,7 +12889,7 @@ "type": "Identifier", "span": { "start": 5187, - "end": 5205, + "end": 5188, "ctxt": 0 }, "value": "x", @@ -12958,7 +12958,7 @@ "type": "Identifier", "span": { "start": 5207, - "end": 5238, + "end": 5208, "ctxt": 0 }, "value": "y", @@ -13349,7 +13349,7 @@ "type": "Identifier", "span": { "start": 5386, - "end": 5400, + "end": 5387, "ctxt": 0 }, "value": "x", @@ -13414,7 +13414,7 @@ "type": "Identifier", "span": { "start": 5402, - "end": 5406, + "end": 5403, "ctxt": 0 }, "value": "y", @@ -13636,7 +13636,7 @@ "type": "Identifier", "span": { "start": 5445, - "end": 5459, + "end": 5446, "ctxt": 0 }, "value": "x", @@ -13701,7 +13701,7 @@ "type": "Identifier", "span": { "start": 5461, - "end": 5479, + "end": 5462, "ctxt": 0 }, "value": "y", @@ -14075,7 +14075,7 @@ "type": "Identifier", "span": { "start": 5640, - "end": 5654, + "end": 5641, "ctxt": 0 }, "value": "x", @@ -14140,7 +14140,7 @@ "type": "Identifier", "span": { "start": 5656, - "end": 5660, + "end": 5657, "ctxt": 0 }, "value": "y", @@ -14334,7 +14334,7 @@ "type": "Identifier", "span": { "start": 5686, - "end": 5700, + "end": 5687, "ctxt": 0 }, "value": "x", @@ -14399,7 +14399,7 @@ "type": "Identifier", "span": { "start": 5702, - "end": 5719, + "end": 5703, "ctxt": 0 }, "value": "y", @@ -14773,7 +14773,7 @@ "type": "Identifier", "span": { "start": 5857, - "end": 5874, + "end": 5858, "ctxt": 0 }, "value": "x", @@ -15014,7 +15014,7 @@ "type": "Identifier", "span": { "start": 5900, - "end": 5927, + "end": 5901, "ctxt": 0 }, "value": "x", @@ -15405,7 +15405,7 @@ "type": "Identifier", "span": { "start": 6057, - "end": 6061, + "end": 6058, "ctxt": 0 }, "value": "x", @@ -15627,7 +15627,7 @@ "type": "Identifier", "span": { "start": 6138, - "end": 6142, + "end": 6139, "ctxt": 0 }, "value": "x", @@ -15857,7 +15857,7 @@ "type": "Identifier", "span": { "start": 6204, - "end": 6218, + "end": 6205, "ctxt": 0 }, "value": "x", @@ -15881,7 +15881,7 @@ "type": "Identifier", "span": { "start": 6208, - "end": 6212, + "end": 6209, "ctxt": 0 }, "value": "a", @@ -16135,7 +16135,7 @@ "type": "Identifier", "span": { "start": 6282, - "end": 6296, + "end": 6283, "ctxt": 0 }, "value": "x", @@ -16159,7 +16159,7 @@ "type": "Identifier", "span": { "start": 6286, - "end": 6290, + "end": 6287, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures3.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures3.json index 3ee2b3aae1e8..19791653819a 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures3.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures3.json @@ -374,7 +374,7 @@ "type": "Identifier", "span": { "start": 391, - "end": 422, + "end": 393, "ctxt": 0 }, "value": "a2", @@ -398,7 +398,7 @@ "type": "Identifier", "span": { "start": 400, - "end": 409, + "end": 401, "ctxt": 0 }, "value": "x", @@ -518,7 +518,7 @@ "type": "Identifier", "span": { "start": 462, - "end": 469, + "end": 464, "ctxt": 0 }, "value": "a2", @@ -597,7 +597,7 @@ "type": "Identifier", "span": { "start": 504, - "end": 572, + "end": 506, "ctxt": 0 }, "value": "a2", @@ -621,7 +621,7 @@ "type": "Identifier", "span": { "start": 513, - "end": 542, + "end": 514, "ctxt": 0 }, "value": "x", @@ -645,7 +645,7 @@ "type": "Identifier", "span": { "start": 521, - "end": 530, + "end": 524, "ctxt": 0 }, "value": "arg", @@ -732,7 +732,7 @@ "type": "Identifier", "span": { "start": 552, - "end": 559, + "end": 553, "ctxt": 0 }, "value": "r", @@ -867,7 +867,7 @@ "type": "Identifier", "span": { "start": 612, - "end": 619, + "end": 614, "ctxt": 0 }, "value": "a2", @@ -946,7 +946,7 @@ "type": "Identifier", "span": { "start": 654, - "end": 753, + "end": 656, "ctxt": 0 }, "value": "a2", @@ -970,7 +970,7 @@ "type": "Identifier", "span": { "start": 663, - "end": 692, + "end": 664, "ctxt": 0 }, "value": "x", @@ -994,7 +994,7 @@ "type": "Identifier", "span": { "start": 671, - "end": 680, + "end": 674, "ctxt": 0 }, "value": "arg", @@ -1064,7 +1064,7 @@ "type": "Identifier", "span": { "start": 694, - "end": 724, + "end": 695, "ctxt": 0 }, "value": "y", @@ -1088,7 +1088,7 @@ "type": "Identifier", "span": { "start": 702, - "end": 712, + "end": 706, "ctxt": 0 }, "value": "arg2", @@ -1175,7 +1175,7 @@ "type": "Identifier", "span": { "start": 734, - "end": 741, + "end": 735, "ctxt": 0 }, "value": "r", @@ -1310,7 +1310,7 @@ "type": "Identifier", "span": { "start": 793, - "end": 800, + "end": 795, "ctxt": 0 }, "value": "a2", @@ -1389,7 +1389,7 @@ "type": "Identifier", "span": { "start": 836, - "end": 866, + "end": 838, "ctxt": 0 }, "value": "a2", @@ -1567,7 +1567,7 @@ "type": "Identifier", "span": { "start": 907, - "end": 914, + "end": 909, "ctxt": 0 }, "value": "a2", @@ -1646,7 +1646,7 @@ "type": "Identifier", "span": { "start": 950, - "end": 1019, + "end": 952, "ctxt": 0 }, "value": "a2", @@ -1670,7 +1670,7 @@ "type": "Identifier", "span": { "start": 959, - "end": 977, + "end": 960, "ctxt": 0 }, "value": "x", @@ -1739,7 +1739,7 @@ "type": "Identifier", "span": { "start": 979, - "end": 1010, + "end": 980, "ctxt": 0 }, "value": "y", @@ -1944,7 +1944,7 @@ "type": "Identifier", "span": { "start": 1060, - "end": 1067, + "end": 1062, "ctxt": 0 }, "value": "a2", @@ -2023,7 +2023,7 @@ "type": "Identifier", "span": { "start": 1103, - "end": 1165, + "end": 1105, "ctxt": 0 }, "value": "a2", @@ -2047,7 +2047,7 @@ "type": "Identifier", "span": { "start": 1112, - "end": 1126, + "end": 1113, "ctxt": 0 }, "value": "x", @@ -2112,7 +2112,7 @@ "type": "Identifier", "span": { "start": 1128, - "end": 1146, + "end": 1129, "ctxt": 0 }, "value": "y", @@ -2300,7 +2300,7 @@ "type": "Identifier", "span": { "start": 1206, - "end": 1213, + "end": 1208, "ctxt": 0 }, "value": "a2", @@ -2379,7 +2379,7 @@ "type": "Identifier", "span": { "start": 1249, - "end": 1296, + "end": 1251, "ctxt": 0 }, "value": "a2", @@ -2403,7 +2403,7 @@ "type": "Identifier", "span": { "start": 1258, - "end": 1285, + "end": 1259, "ctxt": 0 }, "value": "x", @@ -2598,7 +2598,7 @@ "type": "Identifier", "span": { "start": 1337, - "end": 1344, + "end": 1339, "ctxt": 0 }, "value": "a2", @@ -2677,7 +2677,7 @@ "type": "Identifier", "span": { "start": 1380, - "end": 1724, + "end": 1382, "ctxt": 0 }, "value": "a2", @@ -2709,7 +2709,7 @@ "type": "Identifier", "span": { "start": 1497, - "end": 1586, + "end": 1498, "ctxt": 0 }, "value": "x", @@ -2741,7 +2741,7 @@ "type": "Identifier", "span": { "start": 1519, - "end": 1528, + "end": 1520, "ctxt": 0 }, "value": "a", @@ -2796,7 +2796,7 @@ "type": "Identifier", "span": { "start": 1556, - "end": 1566, + "end": 1557, "ctxt": 0 }, "value": "a", @@ -2883,7 +2883,7 @@ "type": "Identifier", "span": { "start": 1612, - "end": 1705, + "end": 1613, "ctxt": 0 }, "value": "x", @@ -2915,7 +2915,7 @@ "type": "Identifier", "span": { "start": 1634, - "end": 1644, + "end": 1635, "ctxt": 0 }, "value": "a", @@ -2970,7 +2970,7 @@ "type": "Identifier", "span": { "start": 1673, - "end": 1684, + "end": 1674, "ctxt": 0 }, "value": "a", @@ -3115,7 +3115,7 @@ "type": "Identifier", "span": { "start": 1765, - "end": 1772, + "end": 1767, "ctxt": 0 }, "value": "a2", @@ -3194,7 +3194,7 @@ "type": "Identifier", "span": { "start": 1808, - "end": 2072, + "end": 1810, "ctxt": 0 }, "value": "a2", @@ -3226,7 +3226,7 @@ "type": "Identifier", "span": { "start": 1827, - "end": 1930, + "end": 1828, "ctxt": 0 }, "value": "x", @@ -3258,7 +3258,7 @@ "type": "Identifier", "span": { "start": 1868, - "end": 1872, + "end": 1869, "ctxt": 0 }, "value": "a", @@ -3383,7 +3383,7 @@ "type": "Identifier", "span": { "start": 1911, - "end": 1915, + "end": 1912, "ctxt": 0 }, "value": "a", @@ -3540,7 +3540,7 @@ "type": "Identifier", "span": { "start": 1953, - "end": 2057, + "end": 1954, "ctxt": 0 }, "value": "x", @@ -3572,7 +3572,7 @@ "type": "Identifier", "span": { "start": 1995, - "end": 1999, + "end": 1996, "ctxt": 0 }, "value": "a", @@ -3697,7 +3697,7 @@ "type": "Identifier", "span": { "start": 2038, - "end": 2042, + "end": 2039, "ctxt": 0 }, "value": "a", @@ -3912,7 +3912,7 @@ "type": "Identifier", "span": { "start": 2113, - "end": 2120, + "end": 2115, "ctxt": 0 }, "value": "a2", @@ -4010,7 +4010,7 @@ "type": "Identifier", "span": { "start": 2156, - "end": 2160, + "end": 2157, "ctxt": 0 }, "value": "x", @@ -4189,7 +4189,7 @@ "type": "Identifier", "span": { "start": 2191, - "end": 2200, + "end": 2192, "ctxt": 0 }, "value": "x", @@ -4495,7 +4495,7 @@ "type": "Identifier", "span": { "start": 2391, - "end": 2411, + "end": 2392, "ctxt": 0 }, "value": "x", @@ -4519,7 +4519,7 @@ "type": "Identifier", "span": { "start": 2399, - "end": 2405, + "end": 2402, "ctxt": 0 }, "value": "arg", @@ -4738,7 +4738,7 @@ "type": "Identifier", "span": { "start": 2421, - "end": 2425, + "end": 2422, "ctxt": 0 }, "value": "r", @@ -4857,7 +4857,7 @@ "type": "Identifier", "span": { "start": 2454, - "end": 2483, + "end": 2455, "ctxt": 0 }, "value": "x", @@ -4881,7 +4881,7 @@ "type": "Identifier", "span": { "start": 2462, - "end": 2471, + "end": 2465, "ctxt": 0 }, "value": "arg", @@ -4968,7 +4968,7 @@ "type": "Identifier", "span": { "start": 2493, - "end": 2500, + "end": 2494, "ctxt": 0 }, "value": "r", @@ -5289,7 +5289,7 @@ "type": "Identifier", "span": { "start": 2670, - "end": 2690, + "end": 2671, "ctxt": 0 }, "value": "x", @@ -5313,7 +5313,7 @@ "type": "Identifier", "span": { "start": 2678, - "end": 2684, + "end": 2681, "ctxt": 0 }, "value": "arg", @@ -5383,7 +5383,7 @@ "type": "Identifier", "span": { "start": 2692, - "end": 2724, + "end": 2693, "ctxt": 0 }, "value": "y", @@ -5407,7 +5407,7 @@ "type": "Identifier", "span": { "start": 2696, - "end": 2718, + "end": 2700, "ctxt": 0 }, "value": "arg2", @@ -5616,7 +5616,7 @@ "type": "Identifier", "span": { "start": 2734, - "end": 2738, + "end": 2735, "ctxt": 0 }, "value": "r", @@ -5735,7 +5735,7 @@ "type": "Identifier", "span": { "start": 2767, - "end": 2792, + "end": 2768, "ctxt": 0 }, "value": "x", @@ -5759,7 +5759,7 @@ "type": "Identifier", "span": { "start": 2771, - "end": 2780, + "end": 2774, "ctxt": 0 }, "value": "arg", @@ -5828,7 +5828,7 @@ "type": "Identifier", "span": { "start": 2794, - "end": 2824, + "end": 2795, "ctxt": 0 }, "value": "y", @@ -5852,7 +5852,7 @@ "type": "Identifier", "span": { "start": 2802, - "end": 2812, + "end": 2806, "ctxt": 0 }, "value": "arg2", @@ -5939,7 +5939,7 @@ "type": "Identifier", "span": { "start": 2834, - "end": 2841, + "end": 2835, "ctxt": 0 }, "value": "r", @@ -6788,7 +6788,7 @@ "type": "Identifier", "span": { "start": 3195, - "end": 3199, + "end": 3196, "ctxt": 0 }, "value": "x", @@ -6825,7 +6825,7 @@ "type": "Identifier", "span": { "start": 3201, - "end": 3205, + "end": 3202, "ctxt": 0 }, "value": "y", @@ -6991,7 +6991,7 @@ "type": "Identifier", "span": { "start": 3234, - "end": 3252, + "end": 3235, "ctxt": 0 }, "value": "x", @@ -7060,7 +7060,7 @@ "type": "Identifier", "span": { "start": 3254, - "end": 3285, + "end": 3255, "ctxt": 0 }, "value": "y", @@ -7451,7 +7451,7 @@ "type": "Identifier", "span": { "start": 3417, - "end": 3431, + "end": 3418, "ctxt": 0 }, "value": "x", @@ -7516,7 +7516,7 @@ "type": "Identifier", "span": { "start": 3433, - "end": 3451, + "end": 3434, "ctxt": 0 }, "value": "y", @@ -7688,7 +7688,7 @@ "type": "Identifier", "span": { "start": 3520, - "end": 3534, + "end": 3521, "ctxt": 0 }, "value": "x", @@ -7753,7 +7753,7 @@ "type": "Identifier", "span": { "start": 3536, - "end": 3550, + "end": 3537, "ctxt": 0 }, "value": "y", @@ -8177,7 +8177,7 @@ "type": "Identifier", "span": { "start": 3737, - "end": 3754, + "end": 3738, "ctxt": 0 }, "value": "x", @@ -8418,7 +8418,7 @@ "type": "Identifier", "span": { "start": 3783, - "end": 3810, + "end": 3784, "ctxt": 0 }, "value": "x", @@ -8799,7 +8799,7 @@ "type": "Identifier", "span": { "start": 4006, - "end": 4023, + "end": 4007, "ctxt": 0 }, "value": "x", @@ -9250,7 +9250,7 @@ "type": "Identifier", "span": { "start": 4160, - "end": 4178, + "end": 4161, "ctxt": 0 }, "value": "x", @@ -9274,7 +9274,7 @@ "type": "Identifier", "span": { "start": 4168, - "end": 4172, + "end": 4169, "ctxt": 0 }, "value": "a", @@ -9529,7 +9529,7 @@ "type": "Identifier", "span": { "start": 4246, - "end": 4264, + "end": 4247, "ctxt": 0 }, "value": "x", @@ -9553,7 +9553,7 @@ "type": "Identifier", "span": { "start": 4254, - "end": 4258, + "end": 4255, "ctxt": 0 }, "value": "a", @@ -9809,7 +9809,7 @@ "type": "Identifier", "span": { "start": 4530, - "end": 4554, + "end": 4532, "ctxt": 0 }, "value": "a2", @@ -9833,7 +9833,7 @@ "type": "Identifier", "span": { "start": 4542, - "end": 4546, + "end": 4543, "ctxt": 0 }, "value": "x", @@ -10005,7 +10005,7 @@ "type": "Identifier", "span": { "start": 4594, - "end": 4601, + "end": 4596, "ctxt": 0 }, "value": "a2", @@ -10103,7 +10103,7 @@ "type": "Identifier", "span": { "start": 4633, - "end": 4637, + "end": 4634, "ctxt": 0 }, "value": "x", @@ -10296,7 +10296,7 @@ "type": "Identifier", "span": { "start": 4772, - "end": 4801, + "end": 4774, "ctxt": 0 }, "value": "a2", @@ -10320,7 +10320,7 @@ "type": "Identifier", "span": { "start": 4784, - "end": 4788, + "end": 4785, "ctxt": 0 }, "value": "x", @@ -10482,7 +10482,7 @@ "type": "Identifier", "span": { "start": 4841, - "end": 4848, + "end": 4843, "ctxt": 0 }, "value": "a2", @@ -10580,7 +10580,7 @@ "type": "Identifier", "span": { "start": 4880, - "end": 4884, + "end": 4881, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures4.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures4.json index 763e60a146e8..0b9104f0af31 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures4.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures4.json @@ -347,7 +347,7 @@ "type": "Identifier", "span": { "start": 296, - "end": 319, + "end": 297, "ctxt": 0 }, "value": "a", @@ -371,7 +371,7 @@ "type": "Identifier", "span": { "start": 307, - "end": 311, + "end": 308, "ctxt": 0 }, "value": "x", @@ -517,7 +517,7 @@ "type": "Identifier", "span": { "start": 344, - "end": 350, + "end": 345, "ctxt": 0 }, "value": "a", @@ -596,7 +596,7 @@ "type": "Identifier", "span": { "start": 381, - "end": 410, + "end": 383, "ctxt": 0 }, "value": "a2", @@ -620,7 +620,7 @@ "type": "Identifier", "span": { "start": 393, - "end": 397, + "end": 394, "ctxt": 0 }, "value": "x", @@ -756,7 +756,7 @@ "type": "Identifier", "span": { "start": 435, - "end": 441, + "end": 436, "ctxt": 0 }, "value": "a", @@ -835,7 +835,7 @@ "type": "Identifier", "span": { "start": 472, - "end": 497, + "end": 474, "ctxt": 0 }, "value": "a3", @@ -859,7 +859,7 @@ "type": "Identifier", "span": { "start": 484, - "end": 488, + "end": 485, "ctxt": 0 }, "value": "x", @@ -987,7 +987,7 @@ "type": "Identifier", "span": { "start": 522, - "end": 528, + "end": 523, "ctxt": 0 }, "value": "a", @@ -1066,7 +1066,7 @@ "type": "Identifier", "span": { "start": 559, - "end": 595, + "end": 561, "ctxt": 0 }, "value": "a4", @@ -1090,7 +1090,7 @@ "type": "Identifier", "span": { "start": 574, - "end": 578, + "end": 575, "ctxt": 0 }, "value": "x", @@ -1127,7 +1127,7 @@ "type": "Identifier", "span": { "start": 580, - "end": 584, + "end": 581, "ctxt": 0 }, "value": "y", @@ -1278,7 +1278,7 @@ "type": "Identifier", "span": { "start": 620, - "end": 626, + "end": 621, "ctxt": 0 }, "value": "a", @@ -1357,7 +1357,7 @@ "type": "Identifier", "span": { "start": 657, - "end": 698, + "end": 659, "ctxt": 0 }, "value": "a5", @@ -1381,7 +1381,7 @@ "type": "Identifier", "span": { "start": 672, - "end": 692, + "end": 673, "ctxt": 0 }, "value": "x", @@ -1405,7 +1405,7 @@ "type": "Identifier", "span": { "start": 680, - "end": 686, + "end": 683, "ctxt": 0 }, "value": "arg", @@ -1599,7 +1599,7 @@ "type": "Identifier", "span": { "start": 723, - "end": 729, + "end": 724, "ctxt": 0 }, "value": "a", @@ -1678,7 +1678,7 @@ "type": "Identifier", "span": { "start": 760, - "end": 817, + "end": 762, "ctxt": 0 }, "value": "a6", @@ -1702,7 +1702,7 @@ "type": "Identifier", "span": { "start": 785, - "end": 811, + "end": 786, "ctxt": 0 }, "value": "x", @@ -1726,7 +1726,7 @@ "type": "Identifier", "span": { "start": 793, - "end": 799, + "end": 796, "ctxt": 0 }, "value": "arg", @@ -1915,7 +1915,7 @@ "type": "Identifier", "span": { "start": 842, - "end": 848, + "end": 843, "ctxt": 0 }, "value": "a", @@ -1994,7 +1994,7 @@ "type": "Identifier", "span": { "start": 880, - "end": 938, + "end": 883, "ctxt": 0 }, "value": "a11", @@ -2018,7 +2018,7 @@ "type": "Identifier", "span": { "start": 893, - "end": 906, + "end": 894, "ctxt": 0 }, "value": "x", @@ -2097,7 +2097,7 @@ "type": "Identifier", "span": { "start": 908, - "end": 929, + "end": 909, "ctxt": 0 }, "value": "y", @@ -2328,7 +2328,7 @@ "type": "Identifier", "span": { "start": 964, - "end": 970, + "end": 965, "ctxt": 0 }, "value": "a", @@ -2407,7 +2407,7 @@ "type": "Identifier", "span": { "start": 1002, - "end": 1040, + "end": 1005, "ctxt": 0 }, "value": "a15", @@ -2431,7 +2431,7 @@ "type": "Identifier", "span": { "start": 1015, - "end": 1032, + "end": 1016, "ctxt": 0 }, "value": "x", @@ -2670,7 +2670,7 @@ "type": "Identifier", "span": { "start": 1066, - "end": 1072, + "end": 1067, "ctxt": 0 }, "value": "a", @@ -2749,7 +2749,7 @@ "type": "Identifier", "span": { "start": 1104, - "end": 1155, + "end": 1107, "ctxt": 0 }, "value": "a16", @@ -2773,7 +2773,7 @@ "type": "Identifier", "span": { "start": 1130, - "end": 1147, + "end": 1131, "ctxt": 0 }, "value": "x", @@ -3030,7 +3030,7 @@ "type": "Identifier", "span": { "start": 1181, - "end": 1187, + "end": 1182, "ctxt": 0 }, "value": "a", @@ -3109,7 +3109,7 @@ "type": "Identifier", "span": { "start": 1219, - "end": 1340, + "end": 1222, "ctxt": 0 }, "value": "a17", @@ -3141,7 +3141,7 @@ "type": "Identifier", "span": { "start": 1254, - "end": 1272, + "end": 1255, "ctxt": 0 }, "value": "x", @@ -3165,7 +3165,7 @@ "type": "Identifier", "span": { "start": 1262, - "end": 1266, + "end": 1263, "ctxt": 0 }, "value": "a", @@ -3331,7 +3331,7 @@ "type": "Identifier", "span": { "start": 1305, - "end": 1323, + "end": 1306, "ctxt": 0 }, "value": "x", @@ -3355,7 +3355,7 @@ "type": "Identifier", "span": { "start": 1313, - "end": 1317, + "end": 1314, "ctxt": 0 }, "value": "a", @@ -3553,7 +3553,7 @@ "type": "Identifier", "span": { "start": 1366, - "end": 1372, + "end": 1367, "ctxt": 0 }, "value": "a", @@ -3632,7 +3632,7 @@ "type": "Identifier", "span": { "start": 1404, - "end": 1633, + "end": 1407, "ctxt": 0 }, "value": "a18", @@ -3664,7 +3664,7 @@ "type": "Identifier", "span": { "start": 1420, - "end": 1511, + "end": 1421, "ctxt": 0 }, "value": "x", @@ -3696,7 +3696,7 @@ "type": "Identifier", "span": { "start": 1457, - "end": 1461, + "end": 1458, "ctxt": 0 }, "value": "a", @@ -3821,7 +3821,7 @@ "type": "Identifier", "span": { "start": 1496, - "end": 1500, + "end": 1497, "ctxt": 0 }, "value": "a", @@ -3978,7 +3978,7 @@ "type": "Identifier", "span": { "start": 1530, - "end": 1622, + "end": 1531, "ctxt": 0 }, "value": "x", @@ -4010,7 +4010,7 @@ "type": "Identifier", "span": { "start": 1568, - "end": 1572, + "end": 1569, "ctxt": 0 }, "value": "a", @@ -4135,7 +4135,7 @@ "type": "Identifier", "span": { "start": 1607, - "end": 1611, + "end": 1608, "ctxt": 0 }, "value": "a", @@ -4324,7 +4324,7 @@ "type": "Identifier", "span": { "start": 1659, - "end": 1665, + "end": 1660, "ctxt": 0 }, "value": "a", @@ -4422,7 +4422,7 @@ "type": "Identifier", "span": { "start": 1693, - "end": 1697, + "end": 1694, "ctxt": 0 }, "value": "x", @@ -4578,7 +4578,7 @@ "type": "Identifier", "span": { "start": 1727, - "end": 1731, + "end": 1728, "ctxt": 0 }, "value": "x", @@ -4936,7 +4936,7 @@ "type": "Identifier", "span": { "start": 1837, - "end": 1841, + "end": 1838, "ctxt": 0 }, "value": "x", @@ -5082,7 +5082,7 @@ "type": "Identifier", "span": { "start": 1876, - "end": 1880, + "end": 1877, "ctxt": 0 }, "value": "x", @@ -5430,7 +5430,7 @@ "type": "Identifier", "span": { "start": 1991, - "end": 1995, + "end": 1992, "ctxt": 0 }, "value": "x", @@ -5578,7 +5578,7 @@ "type": "Identifier", "span": { "start": 2023, - "end": 2027, + "end": 2024, "ctxt": 0 }, "value": "x", @@ -5918,7 +5918,7 @@ "type": "Identifier", "span": { "start": 2137, - "end": 2141, + "end": 2138, "ctxt": 0 }, "value": "x", @@ -5955,7 +5955,7 @@ "type": "Identifier", "span": { "start": 2143, - "end": 2147, + "end": 2144, "ctxt": 0 }, "value": "y", @@ -6116,7 +6116,7 @@ "type": "Identifier", "span": { "start": 2183, - "end": 2187, + "end": 2184, "ctxt": 0 }, "value": "x", @@ -6153,7 +6153,7 @@ "type": "Identifier", "span": { "start": 2189, - "end": 2193, + "end": 2190, "ctxt": 0 }, "value": "y", @@ -6516,7 +6516,7 @@ "type": "Identifier", "span": { "start": 2305, - "end": 2325, + "end": 2306, "ctxt": 0 }, "value": "x", @@ -6540,7 +6540,7 @@ "type": "Identifier", "span": { "start": 2313, - "end": 2319, + "end": 2316, "ctxt": 0 }, "value": "arg", @@ -6744,7 +6744,7 @@ "type": "Identifier", "span": { "start": 2356, - "end": 2376, + "end": 2357, "ctxt": 0 }, "value": "x", @@ -6768,7 +6768,7 @@ "type": "Identifier", "span": { "start": 2364, - "end": 2370, + "end": 2367, "ctxt": 0 }, "value": "arg", @@ -7174,7 +7174,7 @@ "type": "Identifier", "span": { "start": 2512, - "end": 2532, + "end": 2513, "ctxt": 0 }, "value": "x", @@ -7198,7 +7198,7 @@ "type": "Identifier", "span": { "start": 2520, - "end": 2526, + "end": 2523, "ctxt": 0 }, "value": "arg", @@ -7438,7 +7438,7 @@ "type": "Identifier", "span": { "start": 2573, - "end": 2599, + "end": 2574, "ctxt": 0 }, "value": "x", @@ -7462,7 +7462,7 @@ "type": "Identifier", "span": { "start": 2581, - "end": 2587, + "end": 2584, "ctxt": 0 }, "value": "arg", @@ -7863,7 +7863,7 @@ "type": "Identifier", "span": { "start": 2707, - "end": 2720, + "end": 2708, "ctxt": 0 }, "value": "x", @@ -7942,7 +7942,7 @@ "type": "Identifier", "span": { "start": 2722, - "end": 2743, + "end": 2723, "ctxt": 0 }, "value": "y", @@ -8206,7 +8206,7 @@ "type": "Identifier", "span": { "start": 2775, - "end": 2788, + "end": 2776, "ctxt": 0 }, "value": "x", @@ -8285,7 +8285,7 @@ "type": "Identifier", "span": { "start": 2790, - "end": 2811, + "end": 2791, "ctxt": 0 }, "value": "y", @@ -8728,7 +8728,7 @@ "type": "Identifier", "span": { "start": 2931, - "end": 2949, + "end": 2932, "ctxt": 0 }, "value": "x", @@ -9000,7 +9000,7 @@ "type": "Identifier", "span": { "start": 2980, - "end": 2997, + "end": 2981, "ctxt": 0 }, "value": "x", @@ -9451,7 +9451,7 @@ "type": "Identifier", "span": { "start": 3126, - "end": 3143, + "end": 3127, "ctxt": 0 }, "value": "x", @@ -9718,7 +9718,7 @@ "type": "Identifier", "span": { "start": 3187, - "end": 3204, + "end": 3188, "ctxt": 0 }, "value": "x", @@ -10187,7 +10187,7 @@ "type": "Identifier", "span": { "start": 3320, - "end": 3338, + "end": 3321, "ctxt": 0 }, "value": "x", @@ -10211,7 +10211,7 @@ "type": "Identifier", "span": { "start": 3328, - "end": 3332, + "end": 3329, "ctxt": 0 }, "value": "a", @@ -10466,7 +10466,7 @@ "type": "Identifier", "span": { "start": 3391, - "end": 3412, + "end": 3392, "ctxt": 0 }, "value": "x", @@ -10490,7 +10490,7 @@ "type": "Identifier", "span": { "start": 3402, - "end": 3406, + "end": 3403, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures5.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures5.json index c81525c264fe..f9885758a414 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures5.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures5.json @@ -390,7 +390,7 @@ "type": "Identifier", "span": { "start": 426, - "end": 435, + "end": 427, "ctxt": 0 }, "value": "x", @@ -486,7 +486,7 @@ "type": "Identifier", "span": { "start": 463, - "end": 472, + "end": 464, "ctxt": 0 }, "value": "x", @@ -582,7 +582,7 @@ "type": "Identifier", "span": { "start": 500, - "end": 509, + "end": 501, "ctxt": 0 }, "value": "x", @@ -670,7 +670,7 @@ "type": "Identifier", "span": { "start": 533, - "end": 542, + "end": 534, "ctxt": 0 }, "value": "x", @@ -697,7 +697,7 @@ "type": "Identifier", "span": { "start": 544, - "end": 553, + "end": 545, "ctxt": 0 }, "value": "y", @@ -785,7 +785,7 @@ "type": "Identifier", "span": { "start": 579, - "end": 605, + "end": 580, "ctxt": 0 }, "value": "x", @@ -809,7 +809,7 @@ "type": "Identifier", "span": { "start": 583, - "end": 594, + "end": 586, "ctxt": 0 }, "value": "arg", @@ -919,7 +919,7 @@ "type": "Identifier", "span": { "start": 631, - "end": 656, + "end": 632, "ctxt": 0 }, "value": "x", @@ -943,7 +943,7 @@ "type": "Identifier", "span": { "start": 635, - "end": 644, + "end": 638, "ctxt": 0 }, "value": "arg", @@ -1083,7 +1083,7 @@ "type": "Identifier", "span": { "start": 680, - "end": 705, + "end": 681, "ctxt": 0 }, "value": "x", @@ -1107,7 +1107,7 @@ "type": "Identifier", "span": { "start": 684, - "end": 693, + "end": 687, "ctxt": 0 }, "value": "arg", @@ -1193,7 +1193,7 @@ "type": "Identifier", "span": { "start": 711, - "end": 718, + "end": 712, "ctxt": 0 }, "value": "r", @@ -1303,7 +1303,7 @@ "type": "Identifier", "span": { "start": 745, - "end": 770, + "end": 746, "ctxt": 0 }, "value": "x", @@ -1327,7 +1327,7 @@ "type": "Identifier", "span": { "start": 749, - "end": 758, + "end": 752, "ctxt": 0 }, "value": "arg", @@ -1396,7 +1396,7 @@ "type": "Identifier", "span": { "start": 772, - "end": 798, + "end": 773, "ctxt": 0 }, "value": "y", @@ -1420,7 +1420,7 @@ "type": "Identifier", "span": { "start": 776, - "end": 786, + "end": 780, "ctxt": 0 }, "value": "arg2", @@ -1506,7 +1506,7 @@ "type": "Identifier", "span": { "start": 804, - "end": 811, + "end": 805, "ctxt": 0 }, "value": "r", @@ -1616,7 +1616,7 @@ "type": "Identifier", "span": { "start": 838, - "end": 863, + "end": 839, "ctxt": 0 }, "value": "x", @@ -1640,7 +1640,7 @@ "type": "Identifier", "span": { "start": 842, - "end": 851, + "end": 845, "ctxt": 0 }, "value": "arg", @@ -1709,7 +1709,7 @@ "type": "Identifier", "span": { "start": 865, - "end": 891, + "end": 866, "ctxt": 0 }, "value": "y", @@ -1733,7 +1733,7 @@ "type": "Identifier", "span": { "start": 869, - "end": 879, + "end": 873, "ctxt": 0 }, "value": "arg2", @@ -1819,7 +1819,7 @@ "type": "Identifier", "span": { "start": 897, - "end": 904, + "end": 898, "ctxt": 0 }, "value": "r", @@ -2059,7 +2059,7 @@ "type": "Identifier", "span": { "start": 975, - "end": 993, + "end": 976, "ctxt": 0 }, "value": "x", @@ -2128,7 +2128,7 @@ "type": "Identifier", "span": { "start": 995, - "end": 1026, + "end": 996, "ctxt": 0 }, "value": "y", @@ -2309,7 +2309,7 @@ "type": "Identifier", "span": { "start": 1051, - "end": 1065, + "end": 1052, "ctxt": 0 }, "value": "x", @@ -2374,7 +2374,7 @@ "type": "Identifier", "span": { "start": 1067, - "end": 1085, + "end": 1068, "ctxt": 0 }, "value": "y", @@ -2538,7 +2538,7 @@ "type": "Identifier", "span": { "start": 1120, - "end": 1134, + "end": 1121, "ctxt": 0 }, "value": "x", @@ -2603,7 +2603,7 @@ "type": "Identifier", "span": { "start": 1136, - "end": 1153, + "end": 1137, "ctxt": 0 }, "value": "y", @@ -2767,7 +2767,7 @@ "type": "Identifier", "span": { "start": 1188, - "end": 1215, + "end": 1189, "ctxt": 0 }, "value": "x", @@ -2999,7 +2999,7 @@ "type": "Identifier", "span": { "start": 1270, - "end": 1274, + "end": 1271, "ctxt": 0 }, "value": "x", @@ -3198,7 +3198,7 @@ "type": "Identifier", "span": { "start": 1344, - "end": 1348, + "end": 1345, "ctxt": 0 }, "value": "x", @@ -3346,7 +3346,7 @@ "type": "Identifier", "span": { "start": 1431, - "end": 1435, + "end": 1432, "ctxt": 0 }, "value": "x", @@ -3484,7 +3484,7 @@ "type": "Identifier", "span": { "start": 1472, - "end": 1476, + "end": 1473, "ctxt": 0 }, "value": "x", @@ -3624,7 +3624,7 @@ "type": "Identifier", "span": { "start": 1533, - "end": 1537, + "end": 1534, "ctxt": 0 }, "value": "x", @@ -3661,7 +3661,7 @@ "type": "Identifier", "span": { "start": 1539, - "end": 1543, + "end": 1540, "ctxt": 0 }, "value": "y", @@ -3824,7 +3824,7 @@ "type": "Identifier", "span": { "start": 1640, - "end": 1656, + "end": 1641, "ctxt": 0 }, "value": "x", @@ -3848,7 +3848,7 @@ "type": "Identifier", "span": { "start": 1644, - "end": 1650, + "end": 1647, "ctxt": 0 }, "value": "arg", @@ -4043,7 +4043,7 @@ "type": "Identifier", "span": { "start": 1774, - "end": 1790, + "end": 1775, "ctxt": 0 }, "value": "x", @@ -4067,7 +4067,7 @@ "type": "Identifier", "span": { "start": 1778, - "end": 1784, + "end": 1781, "ctxt": 0 }, "value": "arg", @@ -4298,7 +4298,7 @@ "type": "Identifier", "span": { "start": 1895, - "end": 1911, + "end": 1896, "ctxt": 0 }, "value": "x", @@ -4322,7 +4322,7 @@ "type": "Identifier", "span": { "start": 1899, - "end": 1905, + "end": 1902, "ctxt": 0 }, "value": "arg", @@ -4499,7 +4499,7 @@ "type": "Identifier", "span": { "start": 1917, - "end": 1921, + "end": 1918, "ctxt": 0 }, "value": "r", @@ -4609,7 +4609,7 @@ "type": "Identifier", "span": { "start": 1983, - "end": 1999, + "end": 1984, "ctxt": 0 }, "value": "x", @@ -4633,7 +4633,7 @@ "type": "Identifier", "span": { "start": 1987, - "end": 1993, + "end": 1990, "ctxt": 0 }, "value": "arg", @@ -4702,7 +4702,7 @@ "type": "Identifier", "span": { "start": 2001, - "end": 2018, + "end": 2002, "ctxt": 0 }, "value": "y", @@ -4726,7 +4726,7 @@ "type": "Identifier", "span": { "start": 2005, - "end": 2012, + "end": 2009, "ctxt": 0 }, "value": "arg2", @@ -4903,7 +4903,7 @@ "type": "Identifier", "span": { "start": 2024, - "end": 2028, + "end": 2025, "ctxt": 0 }, "value": "r", @@ -5013,7 +5013,7 @@ "type": "Identifier", "span": { "start": 2090, - "end": 2106, + "end": 2091, "ctxt": 0 }, "value": "x", @@ -5037,7 +5037,7 @@ "type": "Identifier", "span": { "start": 2094, - "end": 2100, + "end": 2097, "ctxt": 0 }, "value": "arg", @@ -5106,7 +5106,7 @@ "type": "Identifier", "span": { "start": 2108, - "end": 2153, + "end": 2109, "ctxt": 0 }, "value": "y", @@ -5130,7 +5130,7 @@ "type": "Identifier", "span": { "start": 2112, - "end": 2147, + "end": 2116, "ctxt": 0 }, "value": "arg2", @@ -5380,7 +5380,7 @@ "type": "Identifier", "span": { "start": 2159, - "end": 2163, + "end": 2160, "ctxt": 0 }, "value": "r", @@ -5670,7 +5670,7 @@ "type": "Identifier", "span": { "start": 2306, - "end": 2310, + "end": 2307, "ctxt": 0 }, "value": "x", @@ -5707,7 +5707,7 @@ "type": "Identifier", "span": { "start": 2312, - "end": 2316, + "end": 2313, "ctxt": 0 }, "value": "y", @@ -5865,7 +5865,7 @@ "type": "Identifier", "span": { "start": 2367, - "end": 2381, + "end": 2368, "ctxt": 0 }, "value": "x", @@ -5930,7 +5930,7 @@ "type": "Identifier", "span": { "start": 2383, - "end": 2387, + "end": 2384, "ctxt": 0 }, "value": "y", @@ -6144,7 +6144,7 @@ "type": "Identifier", "span": { "start": 2484, - "end": 2498, + "end": 2485, "ctxt": 0 }, "value": "x", @@ -6209,7 +6209,7 @@ "type": "Identifier", "span": { "start": 2500, - "end": 2504, + "end": 2501, "ctxt": 0 }, "value": "y", @@ -6395,7 +6395,7 @@ "type": "Identifier", "span": { "start": 2625, - "end": 2642, + "end": 2626, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures6.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures6.json index fc912c21b26f..c65bf11dff80 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures6.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures6.json @@ -390,7 +390,7 @@ "type": "Identifier", "span": { "start": 444, - "end": 448, + "end": 445, "ctxt": 0 }, "value": "x", @@ -538,7 +538,7 @@ "type": "Identifier", "span": { "start": 474, - "end": 478, + "end": 475, "ctxt": 0 }, "value": "x", @@ -676,7 +676,7 @@ "type": "Identifier", "span": { "start": 509, - "end": 513, + "end": 510, "ctxt": 0 }, "value": "x", @@ -806,7 +806,7 @@ "type": "Identifier", "span": { "start": 543, - "end": 547, + "end": 544, "ctxt": 0 }, "value": "x", @@ -843,7 +843,7 @@ "type": "Identifier", "span": { "start": 549, - "end": 553, + "end": 550, "ctxt": 0 }, "value": "y", @@ -996,7 +996,7 @@ "type": "Identifier", "span": { "start": 585, - "end": 601, + "end": 586, "ctxt": 0 }, "value": "x", @@ -1020,7 +1020,7 @@ "type": "Identifier", "span": { "start": 589, - "end": 595, + "end": 592, "ctxt": 0 }, "value": "arg", @@ -1215,7 +1215,7 @@ "type": "Identifier", "span": { "start": 638, - "end": 660, + "end": 639, "ctxt": 0 }, "value": "x", @@ -1239,7 +1239,7 @@ "type": "Identifier", "span": { "start": 642, - "end": 648, + "end": 645, "ctxt": 0 }, "value": "arg", @@ -1429,7 +1429,7 @@ "type": "Identifier", "span": { "start": 685, - "end": 698, + "end": 686, "ctxt": 0 }, "value": "x", @@ -1508,7 +1508,7 @@ "type": "Identifier", "span": { "start": 700, - "end": 721, + "end": 701, "ctxt": 0 }, "value": "y", @@ -1741,7 +1741,7 @@ "type": "Identifier", "span": { "start": 749, - "end": 766, + "end": 750, "ctxt": 0 }, "value": "x", @@ -1982,7 +1982,7 @@ "type": "Identifier", "span": { "start": 806, - "end": 823, + "end": 807, "ctxt": 0 }, "value": "x", @@ -2324,7 +2324,7 @@ "type": "Identifier", "span": { "start": 882, - "end": 886, + "end": 883, "ctxt": 0 }, "value": "x", @@ -2523,7 +2523,7 @@ "type": "Identifier", "span": { "start": 941, - "end": 945, + "end": 942, "ctxt": 0 }, "value": "x", @@ -2712,7 +2712,7 @@ "type": "Identifier", "span": { "start": 1005, - "end": 1009, + "end": 1006, "ctxt": 0 }, "value": "x", @@ -2903,7 +2903,7 @@ "type": "Identifier", "span": { "start": 1064, - "end": 1068, + "end": 1065, "ctxt": 0 }, "value": "x", @@ -2940,7 +2940,7 @@ "type": "Identifier", "span": { "start": 1070, - "end": 1074, + "end": 1071, "ctxt": 0 }, "value": "y", @@ -3153,7 +3153,7 @@ "type": "Identifier", "span": { "start": 1135, - "end": 1151, + "end": 1136, "ctxt": 0 }, "value": "x", @@ -3177,7 +3177,7 @@ "type": "Identifier", "span": { "start": 1139, - "end": 1145, + "end": 1142, "ctxt": 0 }, "value": "arg", @@ -3432,7 +3432,7 @@ "type": "Identifier", "span": { "start": 1208, - "end": 1221, + "end": 1209, "ctxt": 0 }, "value": "x", @@ -3511,7 +3511,7 @@ "type": "Identifier", "span": { "start": 1223, - "end": 1244, + "end": 1224, "ctxt": 0 }, "value": "y", @@ -3827,7 +3827,7 @@ "type": "Identifier", "span": { "start": 1301, - "end": 1318, + "end": 1302, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignaturesWithOptionalParameters.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignaturesWithOptionalParameters.json index 028e8e64c660..41da38a3e5f9 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignaturesWithOptionalParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignaturesWithOptionalParameters.json @@ -135,7 +135,7 @@ "type": "Identifier", "span": { "start": 159, - "end": 169, + "end": 160, "ctxt": 0 }, "value": "x", @@ -223,7 +223,7 @@ "type": "Identifier", "span": { "start": 195, - "end": 204, + "end": 196, "ctxt": 0 }, "value": "x", @@ -311,7 +311,7 @@ "type": "Identifier", "span": { "start": 230, - "end": 239, + "end": 231, "ctxt": 0 }, "value": "x", @@ -338,7 +338,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 251, + "end": 242, "ctxt": 0 }, "value": "y", @@ -426,7 +426,7 @@ "type": "Identifier", "span": { "start": 277, - "end": 287, + "end": 278, "ctxt": 0 }, "value": "x", @@ -453,7 +453,7 @@ "type": "Identifier", "span": { "start": 289, - "end": 299, + "end": 290, "ctxt": 0 }, "value": "y", @@ -703,7 +703,7 @@ "type": "Identifier", "span": { "start": 449, - "end": 459, + "end": 450, "ctxt": 0 }, "value": "x", @@ -842,7 +842,7 @@ "type": "Identifier", "span": { "start": 553, - "end": 562, + "end": 554, "ctxt": 0 }, "value": "x", @@ -1092,7 +1092,7 @@ "type": "Identifier", "span": { "start": 750, - "end": 760, + "end": 751, "ctxt": 0 }, "value": "x", @@ -1231,7 +1231,7 @@ "type": "Identifier", "span": { "start": 855, - "end": 864, + "end": 856, "ctxt": 0 }, "value": "x", @@ -1481,7 +1481,7 @@ "type": "Identifier", "span": { "start": 1037, - "end": 1047, + "end": 1038, "ctxt": 0 }, "value": "x", @@ -1620,7 +1620,7 @@ "type": "Identifier", "span": { "start": 1133, - "end": 1142, + "end": 1134, "ctxt": 0 }, "value": "x", @@ -1759,7 +1759,7 @@ "type": "Identifier", "span": { "start": 1238, - "end": 1247, + "end": 1239, "ctxt": 0 }, "value": "x", @@ -1786,7 +1786,7 @@ "type": "Identifier", "span": { "start": 1249, - "end": 1258, + "end": 1250, "ctxt": 0 }, "value": "y", @@ -2036,7 +2036,7 @@ "type": "Identifier", "span": { "start": 1440, - "end": 1450, + "end": 1441, "ctxt": 0 }, "value": "x", @@ -2063,7 +2063,7 @@ "type": "Identifier", "span": { "start": 1452, - "end": 1462, + "end": 1453, "ctxt": 0 }, "value": "y", @@ -2202,7 +2202,7 @@ "type": "Identifier", "span": { "start": 1549, - "end": 1558, + "end": 1550, "ctxt": 0 }, "value": "x", @@ -2341,7 +2341,7 @@ "type": "Identifier", "span": { "start": 1654, - "end": 1663, + "end": 1655, "ctxt": 0 }, "value": "x", @@ -2368,7 +2368,7 @@ "type": "Identifier", "span": { "start": 1665, - "end": 1674, + "end": 1666, "ctxt": 0 }, "value": "y", @@ -2618,7 +2618,7 @@ "type": "Identifier", "span": { "start": 1850, - "end": 1860, + "end": 1851, "ctxt": 0 }, "value": "x", @@ -2645,7 +2645,7 @@ "type": "Identifier", "span": { "start": 1862, - "end": 1872, + "end": 1863, "ctxt": 0 }, "value": "y", @@ -2784,7 +2784,7 @@ "type": "Identifier", "span": { "start": 1959, - "end": 1968, + "end": 1960, "ctxt": 0 }, "value": "x", @@ -2923,7 +2923,7 @@ "type": "Identifier", "span": { "start": 2058, - "end": 2067, + "end": 2059, "ctxt": 0 }, "value": "x", @@ -2950,7 +2950,7 @@ "type": "Identifier", "span": { "start": 2069, - "end": 2078, + "end": 2070, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignaturesWithSpecializedSignatures.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignaturesWithSpecializedSignatures.json index 1d15f83e70e4..bb2a0730b80a 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignaturesWithSpecializedSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignaturesWithSpecializedSignatures.json @@ -73,7 +73,7 @@ "type": "Identifier", "span": { "start": 196, - "end": 202, + "end": 197, "ctxt": 0 }, "value": "x", @@ -137,7 +137,7 @@ "type": "Identifier", "span": { "start": 224, - "end": 233, + "end": 225, "ctxt": 0 }, "value": "x", @@ -164,7 +164,7 @@ "type": "Identifier", "span": { "start": 235, - "end": 244, + "end": 236, "ctxt": 0 }, "value": "y", @@ -270,7 +270,7 @@ "type": "Identifier", "span": { "start": 330, - "end": 336, + "end": 331, "ctxt": 0 }, "value": "x", @@ -334,7 +334,7 @@ "type": "Identifier", "span": { "start": 392, - "end": 401, + "end": 393, "ctxt": 0 }, "value": "x", @@ -361,7 +361,7 @@ "type": "Identifier", "span": { "start": 403, - "end": 412, + "end": 404, "ctxt": 0 }, "value": "y", @@ -416,7 +416,7 @@ "type": "Identifier", "span": { "start": 471, - "end": 475, + "end": 472, "ctxt": 0 }, "value": "x", @@ -544,7 +544,7 @@ "type": "Identifier", "span": { "start": 583, - "end": 589, + "end": 584, "ctxt": 0 }, "value": "x", @@ -608,7 +608,7 @@ "type": "Identifier", "span": { "start": 613, - "end": 622, + "end": 614, "ctxt": 0 }, "value": "x", @@ -714,7 +714,7 @@ "type": "Identifier", "span": { "start": 712, - "end": 718, + "end": 713, "ctxt": 0 }, "value": "x", @@ -778,7 +778,7 @@ "type": "Identifier", "span": { "start": 742, - "end": 751, + "end": 743, "ctxt": 0 }, "value": "x", @@ -884,7 +884,7 @@ "type": "Identifier", "span": { "start": 884, - "end": 888, + "end": 885, "ctxt": 0 }, "value": "x", @@ -1079,7 +1079,7 @@ "type": "Identifier", "span": { "start": 1045, - "end": 1051, + "end": 1046, "ctxt": 0 }, "value": "x", @@ -1143,7 +1143,7 @@ "type": "Identifier", "span": { "start": 1077, - "end": 1086, + "end": 1078, "ctxt": 0 }, "value": "x", @@ -1240,7 +1240,7 @@ "type": "Identifier", "span": { "start": 1136, - "end": 1142, + "end": 1137, "ctxt": 0 }, "value": "x", @@ -1276,7 +1276,7 @@ "type": "Identifier", "span": { "start": 1144, - "end": 1153, + "end": 1145, "ctxt": 0 }, "value": "y", @@ -1331,7 +1331,7 @@ "type": "Identifier", "span": { "start": 1179, - "end": 1188, + "end": 1180, "ctxt": 0 }, "value": "x", @@ -1358,7 +1358,7 @@ "type": "Identifier", "span": { "start": 1190, - "end": 1199, + "end": 1191, "ctxt": 0 }, "value": "y", @@ -1447,7 +1447,7 @@ "type": "Identifier", "span": { "start": 1238, - "end": 1242, + "end": 1239, "ctxt": 0 }, "value": "x", @@ -1628,7 +1628,7 @@ "type": "Identifier", "span": { "start": 1333, - "end": 1342, + "end": 1334, "ctxt": 0 }, "value": "x", @@ -1716,7 +1716,7 @@ "type": "Identifier", "span": { "start": 1405, - "end": 1414, + "end": 1406, "ctxt": 0 }, "value": "x", @@ -1743,7 +1743,7 @@ "type": "Identifier", "span": { "start": 1416, - "end": 1425, + "end": 1417, "ctxt": 0 }, "value": "y", @@ -1831,7 +1831,7 @@ "type": "Identifier", "span": { "start": 1491, - "end": 1495, + "end": 1492, "ctxt": 0 }, "value": "x", @@ -2000,7 +2000,7 @@ "type": "Identifier", "span": { "start": 1619, - "end": 1625, + "end": 1620, "ctxt": 0 }, "value": "x", @@ -2064,7 +2064,7 @@ "type": "Identifier", "span": { "start": 1653, - "end": 1662, + "end": 1654, "ctxt": 0 }, "value": "x", @@ -2153,7 +2153,7 @@ "type": "Identifier", "span": { "start": 1703, - "end": 1707, + "end": 1704, "ctxt": 0 }, "value": "x", @@ -2344,7 +2344,7 @@ "type": "Identifier", "span": { "start": 1797, - "end": 1806, + "end": 1798, "ctxt": 0 }, "value": "x", @@ -2483,7 +2483,7 @@ "type": "Identifier", "span": { "start": 1945, - "end": 1949, + "end": 1946, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithGenericCallSignaturesWithOptionalParameters.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithGenericCallSignaturesWithOptionalParameters.json index 4fac07fe7e16..e66265688d25 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithGenericCallSignaturesWithOptionalParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithGenericCallSignaturesWithOptionalParameters.json @@ -203,7 +203,7 @@ "type": "Identifier", "span": { "start": 184, - "end": 189, + "end": 185, "ctxt": 0 }, "value": "x", @@ -310,7 +310,7 @@ "type": "Identifier", "span": { "start": 210, - "end": 214, + "end": 211, "ctxt": 0 }, "value": "x", @@ -417,7 +417,7 @@ "type": "Identifier", "span": { "start": 235, - "end": 239, + "end": 236, "ctxt": 0 }, "value": "x", @@ -454,7 +454,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 246, + "end": 242, "ctxt": 0 }, "value": "y", @@ -561,7 +561,7 @@ "type": "Identifier", "span": { "start": 267, - "end": 272, + "end": 268, "ctxt": 0 }, "value": "x", @@ -598,7 +598,7 @@ "type": "Identifier", "span": { "start": 274, - "end": 279, + "end": 275, "ctxt": 0 }, "value": "y", @@ -996,7 +996,7 @@ "type": "Identifier", "span": { "start": 442, - "end": 447, + "end": 443, "ctxt": 0 }, "value": "x", @@ -1214,7 +1214,7 @@ "type": "Identifier", "span": { "start": 545, - "end": 549, + "end": 546, "ctxt": 0 }, "value": "x", @@ -1612,7 +1612,7 @@ "type": "Identifier", "span": { "start": 750, - "end": 755, + "end": 751, "ctxt": 0 }, "value": "x", @@ -1830,7 +1830,7 @@ "type": "Identifier", "span": { "start": 854, - "end": 858, + "end": 855, "ctxt": 0 }, "value": "x", @@ -2228,7 +2228,7 @@ "type": "Identifier", "span": { "start": 1049, - "end": 1054, + "end": 1050, "ctxt": 0 }, "value": "x", @@ -2446,7 +2446,7 @@ "type": "Identifier", "span": { "start": 1149, - "end": 1153, + "end": 1150, "ctxt": 0 }, "value": "x", @@ -2664,7 +2664,7 @@ "type": "Identifier", "span": { "start": 1253, - "end": 1257, + "end": 1254, "ctxt": 0 }, "value": "x", @@ -2701,7 +2701,7 @@ "type": "Identifier", "span": { "start": 1259, - "end": 1263, + "end": 1260, "ctxt": 0 }, "value": "y", @@ -3099,7 +3099,7 @@ "type": "Identifier", "span": { "start": 1463, - "end": 1468, + "end": 1464, "ctxt": 0 }, "value": "x", @@ -3136,7 +3136,7 @@ "type": "Identifier", "span": { "start": 1470, - "end": 1475, + "end": 1471, "ctxt": 0 }, "value": "y", @@ -3354,7 +3354,7 @@ "type": "Identifier", "span": { "start": 1571, - "end": 1575, + "end": 1572, "ctxt": 0 }, "value": "x", @@ -3572,7 +3572,7 @@ "type": "Identifier", "span": { "start": 1675, - "end": 1679, + "end": 1676, "ctxt": 0 }, "value": "x", @@ -3609,7 +3609,7 @@ "type": "Identifier", "span": { "start": 1681, - "end": 1685, + "end": 1682, "ctxt": 0 }, "value": "y", @@ -4007,7 +4007,7 @@ "type": "Identifier", "span": { "start": 1879, - "end": 1884, + "end": 1880, "ctxt": 0 }, "value": "x", @@ -4044,7 +4044,7 @@ "type": "Identifier", "span": { "start": 1886, - "end": 1891, + "end": 1887, "ctxt": 0 }, "value": "y", @@ -4262,7 +4262,7 @@ "type": "Identifier", "span": { "start": 1987, - "end": 1991, + "end": 1988, "ctxt": 0 }, "value": "x", @@ -4480,7 +4480,7 @@ "type": "Identifier", "span": { "start": 2090, - "end": 2094, + "end": 2091, "ctxt": 0 }, "value": "x", @@ -4517,7 +4517,7 @@ "type": "Identifier", "span": { "start": 2096, - "end": 2100, + "end": 2097, "ctxt": 0 }, "value": "y", @@ -4786,7 +4786,7 @@ "type": "Identifier", "span": { "start": 2274, - "end": 2279, + "end": 2275, "ctxt": 0 }, "value": "x", @@ -4925,7 +4925,7 @@ "type": "Identifier", "span": { "start": 2303, - "end": 2307, + "end": 2304, "ctxt": 0 }, "value": "x", @@ -5064,7 +5064,7 @@ "type": "Identifier", "span": { "start": 2331, - "end": 2335, + "end": 2332, "ctxt": 0 }, "value": "x", @@ -5101,7 +5101,7 @@ "type": "Identifier", "span": { "start": 2337, - "end": 2342, + "end": 2338, "ctxt": 0 }, "value": "y", @@ -5240,7 +5240,7 @@ "type": "Identifier", "span": { "start": 2366, - "end": 2371, + "end": 2367, "ctxt": 0 }, "value": "x", @@ -5277,7 +5277,7 @@ "type": "Identifier", "span": { "start": 2373, - "end": 2378, + "end": 2374, "ctxt": 0 }, "value": "y", @@ -5651,7 +5651,7 @@ "type": "Identifier", "span": { "start": 2505, - "end": 2510, + "end": 2506, "ctxt": 0 }, "value": "x", @@ -5841,7 +5841,7 @@ "type": "Identifier", "span": { "start": 2573, - "end": 2577, + "end": 2574, "ctxt": 0 }, "value": "x", @@ -6183,7 +6183,7 @@ "type": "Identifier", "span": { "start": 2708, - "end": 2713, + "end": 2709, "ctxt": 0 }, "value": "x", @@ -6373,7 +6373,7 @@ "type": "Identifier", "span": { "start": 2776, - "end": 2780, + "end": 2777, "ctxt": 0 }, "value": "x", @@ -6715,7 +6715,7 @@ "type": "Identifier", "span": { "start": 2909, - "end": 2914, + "end": 2910, "ctxt": 0 }, "value": "x", @@ -6905,7 +6905,7 @@ "type": "Identifier", "span": { "start": 2979, - "end": 2983, + "end": 2980, "ctxt": 0 }, "value": "x", @@ -7095,7 +7095,7 @@ "type": "Identifier", "span": { "start": 3049, - "end": 3053, + "end": 3050, "ctxt": 0 }, "value": "x", @@ -7132,7 +7132,7 @@ "type": "Identifier", "span": { "start": 3055, - "end": 3059, + "end": 3056, "ctxt": 0 }, "value": "y", @@ -7474,7 +7474,7 @@ "type": "Identifier", "span": { "start": 3193, - "end": 3198, + "end": 3194, "ctxt": 0 }, "value": "x", @@ -7511,7 +7511,7 @@ "type": "Identifier", "span": { "start": 3200, - "end": 3205, + "end": 3201, "ctxt": 0 }, "value": "y", @@ -7701,7 +7701,7 @@ "type": "Identifier", "span": { "start": 3271, - "end": 3275, + "end": 3272, "ctxt": 0 }, "value": "x", @@ -7891,7 +7891,7 @@ "type": "Identifier", "span": { "start": 3341, - "end": 3345, + "end": 3342, "ctxt": 0 }, "value": "x", @@ -7928,7 +7928,7 @@ "type": "Identifier", "span": { "start": 3347, - "end": 3351, + "end": 3348, "ctxt": 0 }, "value": "y", @@ -8270,7 +8270,7 @@ "type": "Identifier", "span": { "start": 3484, - "end": 3489, + "end": 3485, "ctxt": 0 }, "value": "x", @@ -8307,7 +8307,7 @@ "type": "Identifier", "span": { "start": 3491, - "end": 3496, + "end": 3492, "ctxt": 0 }, "value": "y", @@ -8497,7 +8497,7 @@ "type": "Identifier", "span": { "start": 3562, - "end": 3566, + "end": 3563, "ctxt": 0 }, "value": "x", @@ -8687,7 +8687,7 @@ "type": "Identifier", "span": { "start": 3631, - "end": 3635, + "end": 3632, "ctxt": 0 }, "value": "x", @@ -8724,7 +8724,7 @@ "type": "Identifier", "span": { "start": 3637, - "end": 3641, + "end": 3638, "ctxt": 0 }, "value": "y", @@ -8993,7 +8993,7 @@ "type": "Identifier", "span": { "start": 3753, - "end": 3758, + "end": 3754, "ctxt": 0 }, "value": "x", @@ -9132,7 +9132,7 @@ "type": "Identifier", "span": { "start": 3782, - "end": 3786, + "end": 3783, "ctxt": 0 }, "value": "x", @@ -9271,7 +9271,7 @@ "type": "Identifier", "span": { "start": 3810, - "end": 3814, + "end": 3811, "ctxt": 0 }, "value": "x", @@ -9308,7 +9308,7 @@ "type": "Identifier", "span": { "start": 3816, - "end": 3821, + "end": 3817, "ctxt": 0 }, "value": "y", @@ -9447,7 +9447,7 @@ "type": "Identifier", "span": { "start": 3845, - "end": 3850, + "end": 3846, "ctxt": 0 }, "value": "x", @@ -9484,7 +9484,7 @@ "type": "Identifier", "span": { "start": 3852, - "end": 3857, + "end": 3853, "ctxt": 0 }, "value": "y", @@ -9826,7 +9826,7 @@ "type": "Identifier", "span": { "start": 4039, - "end": 4044, + "end": 4040, "ctxt": 0 }, "value": "x", @@ -10016,7 +10016,7 @@ "type": "Identifier", "span": { "start": 4202, - "end": 4206, + "end": 4203, "ctxt": 0 }, "value": "x", @@ -10358,7 +10358,7 @@ "type": "Identifier", "span": { "start": 4525, - "end": 4530, + "end": 4526, "ctxt": 0 }, "value": "x", @@ -10548,7 +10548,7 @@ "type": "Identifier", "span": { "start": 4611, - "end": 4615, + "end": 4612, "ctxt": 0 }, "value": "x", @@ -10890,7 +10890,7 @@ "type": "Identifier", "span": { "start": 4845, - "end": 4850, + "end": 4846, "ctxt": 0 }, "value": "x", @@ -11080,7 +11080,7 @@ "type": "Identifier", "span": { "start": 4943, - "end": 4947, + "end": 4944, "ctxt": 0 }, "value": "x", @@ -11270,7 +11270,7 @@ "type": "Identifier", "span": { "start": 5061, - "end": 5065, + "end": 5062, "ctxt": 0 }, "value": "x", @@ -11307,7 +11307,7 @@ "type": "Identifier", "span": { "start": 5067, - "end": 5071, + "end": 5068, "ctxt": 0 }, "value": "y", @@ -11649,7 +11649,7 @@ "type": "Identifier", "span": { "start": 5333, - "end": 5338, + "end": 5334, "ctxt": 0 }, "value": "x", @@ -11686,7 +11686,7 @@ "type": "Identifier", "span": { "start": 5340, - "end": 5345, + "end": 5341, "ctxt": 0 }, "value": "y", @@ -11876,7 +11876,7 @@ "type": "Identifier", "span": { "start": 5439, - "end": 5443, + "end": 5440, "ctxt": 0 }, "value": "x", @@ -12066,7 +12066,7 @@ "type": "Identifier", "span": { "start": 5541, - "end": 5545, + "end": 5542, "ctxt": 0 }, "value": "x", @@ -12103,7 +12103,7 @@ "type": "Identifier", "span": { "start": 5547, - "end": 5551, + "end": 5548, "ctxt": 0 }, "value": "y", @@ -12445,7 +12445,7 @@ "type": "Identifier", "span": { "start": 5813, - "end": 5818, + "end": 5814, "ctxt": 0 }, "value": "x", @@ -12482,7 +12482,7 @@ "type": "Identifier", "span": { "start": 5820, - "end": 5825, + "end": 5821, "ctxt": 0 }, "value": "y", @@ -12672,7 +12672,7 @@ "type": "Identifier", "span": { "start": 5919, - "end": 5923, + "end": 5920, "ctxt": 0 }, "value": "x", @@ -12862,7 +12862,7 @@ "type": "Identifier", "span": { "start": 6020, - "end": 6024, + "end": 6021, "ctxt": 0 }, "value": "x", @@ -12899,7 +12899,7 @@ "type": "Identifier", "span": { "start": 6026, - "end": 6030, + "end": 6027, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithGenericConstructSignaturesWithOptionalParameters.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithGenericConstructSignaturesWithOptionalParameters.json index 51dc49cd08a5..db0c325b4e00 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithGenericConstructSignaturesWithOptionalParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithGenericConstructSignaturesWithOptionalParameters.json @@ -204,7 +204,7 @@ "type": "Identifier", "span": { "start": 192, - "end": 197, + "end": 193, "ctxt": 0 }, "value": "x", @@ -312,7 +312,7 @@ "type": "Identifier", "span": { "start": 222, - "end": 226, + "end": 223, "ctxt": 0 }, "value": "x", @@ -420,7 +420,7 @@ "type": "Identifier", "span": { "start": 251, - "end": 255, + "end": 252, "ctxt": 0 }, "value": "x", @@ -457,7 +457,7 @@ "type": "Identifier", "span": { "start": 257, - "end": 262, + "end": 258, "ctxt": 0 }, "value": "y", @@ -565,7 +565,7 @@ "type": "Identifier", "span": { "start": 287, - "end": 292, + "end": 288, "ctxt": 0 }, "value": "x", @@ -602,7 +602,7 @@ "type": "Identifier", "span": { "start": 294, - "end": 299, + "end": 295, "ctxt": 0 }, "value": "y", @@ -1002,7 +1002,7 @@ "type": "Identifier", "span": { "start": 470, - "end": 475, + "end": 471, "ctxt": 0 }, "value": "x", @@ -1221,7 +1221,7 @@ "type": "Identifier", "span": { "start": 577, - "end": 581, + "end": 578, "ctxt": 0 }, "value": "x", @@ -1621,7 +1621,7 @@ "type": "Identifier", "span": { "start": 790, - "end": 795, + "end": 791, "ctxt": 0 }, "value": "x", @@ -1840,7 +1840,7 @@ "type": "Identifier", "span": { "start": 898, - "end": 902, + "end": 899, "ctxt": 0 }, "value": "x", @@ -2240,7 +2240,7 @@ "type": "Identifier", "span": { "start": 1101, - "end": 1106, + "end": 1102, "ctxt": 0 }, "value": "x", @@ -2459,7 +2459,7 @@ "type": "Identifier", "span": { "start": 1205, - "end": 1209, + "end": 1206, "ctxt": 0 }, "value": "x", @@ -2678,7 +2678,7 @@ "type": "Identifier", "span": { "start": 1313, - "end": 1317, + "end": 1314, "ctxt": 0 }, "value": "x", @@ -2715,7 +2715,7 @@ "type": "Identifier", "span": { "start": 1319, - "end": 1323, + "end": 1320, "ctxt": 0 }, "value": "y", @@ -3115,7 +3115,7 @@ "type": "Identifier", "span": { "start": 1531, - "end": 1536, + "end": 1532, "ctxt": 0 }, "value": "x", @@ -3152,7 +3152,7 @@ "type": "Identifier", "span": { "start": 1538, - "end": 1543, + "end": 1539, "ctxt": 0 }, "value": "y", @@ -3371,7 +3371,7 @@ "type": "Identifier", "span": { "start": 1643, - "end": 1647, + "end": 1644, "ctxt": 0 }, "value": "x", @@ -3590,7 +3590,7 @@ "type": "Identifier", "span": { "start": 1751, - "end": 1755, + "end": 1752, "ctxt": 0 }, "value": "x", @@ -3627,7 +3627,7 @@ "type": "Identifier", "span": { "start": 1757, - "end": 1761, + "end": 1758, "ctxt": 0 }, "value": "y", @@ -4027,7 +4027,7 @@ "type": "Identifier", "span": { "start": 1963, - "end": 1968, + "end": 1964, "ctxt": 0 }, "value": "x", @@ -4064,7 +4064,7 @@ "type": "Identifier", "span": { "start": 1970, - "end": 1975, + "end": 1971, "ctxt": 0 }, "value": "y", @@ -4283,7 +4283,7 @@ "type": "Identifier", "span": { "start": 2075, - "end": 2079, + "end": 2076, "ctxt": 0 }, "value": "x", @@ -4502,7 +4502,7 @@ "type": "Identifier", "span": { "start": 2182, - "end": 2186, + "end": 2183, "ctxt": 0 }, "value": "x", @@ -4539,7 +4539,7 @@ "type": "Identifier", "span": { "start": 2188, - "end": 2192, + "end": 2189, "ctxt": 0 }, "value": "y", @@ -4810,7 +4810,7 @@ "type": "Identifier", "span": { "start": 2374, - "end": 2379, + "end": 2375, "ctxt": 0 }, "value": "x", @@ -4950,7 +4950,7 @@ "type": "Identifier", "span": { "start": 2407, - "end": 2411, + "end": 2408, "ctxt": 0 }, "value": "x", @@ -5090,7 +5090,7 @@ "type": "Identifier", "span": { "start": 2439, - "end": 2443, + "end": 2440, "ctxt": 0 }, "value": "x", @@ -5127,7 +5127,7 @@ "type": "Identifier", "span": { "start": 2445, - "end": 2450, + "end": 2446, "ctxt": 0 }, "value": "y", @@ -5267,7 +5267,7 @@ "type": "Identifier", "span": { "start": 2478, - "end": 2483, + "end": 2479, "ctxt": 0 }, "value": "x", @@ -5304,7 +5304,7 @@ "type": "Identifier", "span": { "start": 2485, - "end": 2490, + "end": 2486, "ctxt": 0 }, "value": "y", @@ -5680,7 +5680,7 @@ "type": "Identifier", "span": { "start": 2625, - "end": 2630, + "end": 2626, "ctxt": 0 }, "value": "x", @@ -5871,7 +5871,7 @@ "type": "Identifier", "span": { "start": 2697, - "end": 2701, + "end": 2698, "ctxt": 0 }, "value": "x", @@ -6215,7 +6215,7 @@ "type": "Identifier", "span": { "start": 2840, - "end": 2845, + "end": 2841, "ctxt": 0 }, "value": "x", @@ -6406,7 +6406,7 @@ "type": "Identifier", "span": { "start": 2912, - "end": 2916, + "end": 2913, "ctxt": 0 }, "value": "x", @@ -6750,7 +6750,7 @@ "type": "Identifier", "span": { "start": 3053, - "end": 3058, + "end": 3054, "ctxt": 0 }, "value": "x", @@ -6941,7 +6941,7 @@ "type": "Identifier", "span": { "start": 3127, - "end": 3131, + "end": 3128, "ctxt": 0 }, "value": "x", @@ -7132,7 +7132,7 @@ "type": "Identifier", "span": { "start": 3201, - "end": 3205, + "end": 3202, "ctxt": 0 }, "value": "x", @@ -7169,7 +7169,7 @@ "type": "Identifier", "span": { "start": 3207, - "end": 3211, + "end": 3208, "ctxt": 0 }, "value": "y", @@ -7513,7 +7513,7 @@ "type": "Identifier", "span": { "start": 3353, - "end": 3358, + "end": 3354, "ctxt": 0 }, "value": "x", @@ -7550,7 +7550,7 @@ "type": "Identifier", "span": { "start": 3360, - "end": 3365, + "end": 3361, "ctxt": 0 }, "value": "y", @@ -7741,7 +7741,7 @@ "type": "Identifier", "span": { "start": 3435, - "end": 3439, + "end": 3436, "ctxt": 0 }, "value": "x", @@ -7932,7 +7932,7 @@ "type": "Identifier", "span": { "start": 3509, - "end": 3513, + "end": 3510, "ctxt": 0 }, "value": "x", @@ -7969,7 +7969,7 @@ "type": "Identifier", "span": { "start": 3515, - "end": 3519, + "end": 3516, "ctxt": 0 }, "value": "y", @@ -8313,7 +8313,7 @@ "type": "Identifier", "span": { "start": 3660, - "end": 3665, + "end": 3661, "ctxt": 0 }, "value": "x", @@ -8350,7 +8350,7 @@ "type": "Identifier", "span": { "start": 3667, - "end": 3672, + "end": 3668, "ctxt": 0 }, "value": "y", @@ -8541,7 +8541,7 @@ "type": "Identifier", "span": { "start": 3742, - "end": 3746, + "end": 3743, "ctxt": 0 }, "value": "x", @@ -8732,7 +8732,7 @@ "type": "Identifier", "span": { "start": 3815, - "end": 3819, + "end": 3816, "ctxt": 0 }, "value": "x", @@ -8769,7 +8769,7 @@ "type": "Identifier", "span": { "start": 3821, - "end": 3825, + "end": 3822, "ctxt": 0 }, "value": "y", @@ -9040,7 +9040,7 @@ "type": "Identifier", "span": { "start": 3945, - "end": 3950, + "end": 3946, "ctxt": 0 }, "value": "x", @@ -9180,7 +9180,7 @@ "type": "Identifier", "span": { "start": 3978, - "end": 3982, + "end": 3979, "ctxt": 0 }, "value": "x", @@ -9320,7 +9320,7 @@ "type": "Identifier", "span": { "start": 4010, - "end": 4014, + "end": 4011, "ctxt": 0 }, "value": "x", @@ -9357,7 +9357,7 @@ "type": "Identifier", "span": { "start": 4016, - "end": 4021, + "end": 4017, "ctxt": 0 }, "value": "y", @@ -9497,7 +9497,7 @@ "type": "Identifier", "span": { "start": 4049, - "end": 4054, + "end": 4050, "ctxt": 0 }, "value": "x", @@ -9534,7 +9534,7 @@ "type": "Identifier", "span": { "start": 4056, - "end": 4061, + "end": 4057, "ctxt": 0 }, "value": "y", @@ -9878,7 +9878,7 @@ "type": "Identifier", "span": { "start": 4251, - "end": 4256, + "end": 4252, "ctxt": 0 }, "value": "x", @@ -10069,7 +10069,7 @@ "type": "Identifier", "span": { "start": 4418, - "end": 4422, + "end": 4419, "ctxt": 0 }, "value": "x", @@ -10413,7 +10413,7 @@ "type": "Identifier", "span": { "start": 4749, - "end": 4754, + "end": 4750, "ctxt": 0 }, "value": "x", @@ -10604,7 +10604,7 @@ "type": "Identifier", "span": { "start": 4839, - "end": 4843, + "end": 4840, "ctxt": 0 }, "value": "x", @@ -10948,7 +10948,7 @@ "type": "Identifier", "span": { "start": 5038, - "end": 5043, + "end": 5039, "ctxt": 0 }, "value": "x", @@ -11139,7 +11139,7 @@ "type": "Identifier", "span": { "start": 5183, - "end": 5187, + "end": 5184, "ctxt": 0 }, "value": "x", @@ -11330,7 +11330,7 @@ "type": "Identifier", "span": { "start": 5305, - "end": 5309, + "end": 5306, "ctxt": 0 }, "value": "x", @@ -11367,7 +11367,7 @@ "type": "Identifier", "span": { "start": 5311, - "end": 5315, + "end": 5312, "ctxt": 0 }, "value": "y", @@ -11711,7 +11711,7 @@ "type": "Identifier", "span": { "start": 5585, - "end": 5590, + "end": 5586, "ctxt": 0 }, "value": "x", @@ -11748,7 +11748,7 @@ "type": "Identifier", "span": { "start": 5592, - "end": 5597, + "end": 5593, "ctxt": 0 }, "value": "y", @@ -11939,7 +11939,7 @@ "type": "Identifier", "span": { "start": 5695, - "end": 5699, + "end": 5696, "ctxt": 0 }, "value": "x", @@ -12130,7 +12130,7 @@ "type": "Identifier", "span": { "start": 5801, - "end": 5805, + "end": 5802, "ctxt": 0 }, "value": "x", @@ -12167,7 +12167,7 @@ "type": "Identifier", "span": { "start": 5807, - "end": 5811, + "end": 5808, "ctxt": 0 }, "value": "y", @@ -12511,7 +12511,7 @@ "type": "Identifier", "span": { "start": 6075, - "end": 6080, + "end": 6076, "ctxt": 0 }, "value": "x", @@ -12548,7 +12548,7 @@ "type": "Identifier", "span": { "start": 6082, - "end": 6087, + "end": 6083, "ctxt": 0 }, "value": "y", @@ -12739,7 +12739,7 @@ "type": "Identifier", "span": { "start": 6185, - "end": 6189, + "end": 6186, "ctxt": 0 }, "value": "x", @@ -12930,7 +12930,7 @@ "type": "Identifier", "span": { "start": 6290, - "end": 6294, + "end": 6291, "ctxt": 0 }, "value": "x", @@ -12967,7 +12967,7 @@ "type": "Identifier", "span": { "start": 6296, - "end": 6300, + "end": 6297, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithOptionalProperties.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithOptionalProperties.json index 7fb2187484f5..28e987ee2711 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithOptionalProperties.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithOptionalProperties.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 160, - "end": 164, + "end": 161, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/superCallInConstructorWithNoBaseType.json b/crates/swc_ecma_parser/tests/tsc/superCallInConstructorWithNoBaseType.json index 3b41824429e3..7801e5cb8402 100644 --- a/crates/swc_ecma_parser/tests/tsc/superCallInConstructorWithNoBaseType.json +++ b/crates/swc_ecma_parser/tests/tsc/superCallInConstructorWithNoBaseType.json @@ -143,7 +143,7 @@ "type": "Identifier", "span": { "start": 109, - "end": 113, + "end": 110, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping1.json b/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping1.json index 4328b02912e8..8d3fb30d72ec 100644 --- a/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping1.json +++ b/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping1.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 44, - "end": 66, + "end": 47, "ctxt": 0 }, "value": "map", @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 50, - "end": 59, + "end": 55, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping2.json b/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping2.json index 5b5251aa6487..6ddb6d670178 100644 --- a/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping2.json +++ b/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping2.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 44, - "end": 66, + "end": 47, "ctxt": 0 }, "value": "map", @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 50, - "end": 59, + "end": 55, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping3.json b/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping3.json index d4031d25d280..ea2fa32ecd0f 100644 --- a/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping3.json +++ b/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping3.json @@ -91,7 +91,7 @@ "type": "Identifier", "span": { "start": 42, - "end": 54, + "end": 51, "ctxt": 0 }, "value": "parameter", @@ -197,7 +197,7 @@ "type": "Identifier", "span": { "start": 100, - "end": 124, + "end": 105, "ctxt": 0 }, "value": "param", @@ -303,7 +303,7 @@ "type": "Identifier", "span": { "start": 143, - "end": 167, + "end": 148, "ctxt": 0 }, "value": "param", diff --git a/crates/swc_ecma_parser/tests/tsc/superCalls.json b/crates/swc_ecma_parser/tests/tsc/superCalls.json index ad0113731ce8..f576b6dda489 100644 --- a/crates/swc_ecma_parser/tests/tsc/superCalls.json +++ b/crates/swc_ecma_parser/tests/tsc/superCalls.json @@ -94,7 +94,7 @@ "type": "Identifier", "span": { "start": 42, - "end": 51, + "end": 43, "ctxt": 0 }, "value": "n", @@ -241,7 +241,7 @@ "type": "Identifier", "span": { "start": 195, - "end": 204, + "end": 196, "ctxt": 0 }, "value": "q", diff --git a/crates/swc_ecma_parser/tests/tsc/switchStatements.json b/crates/swc_ecma_parser/tests/tsc/switchStatements.json index 4cf42f726316..334d823a1d94 100644 --- a/crates/swc_ecma_parser/tests/tsc/switchStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/switchStatements.json @@ -66,7 +66,7 @@ "type": "Identifier", "span": { "start": 35, - "end": 44, + "end": 36, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/switchWithConstrainedTypeVariable.json b/crates/swc_ecma_parser/tests/tsc/switchWithConstrainedTypeVariable.json index 124ac21d1f0e..722288eab0d6 100644 --- a/crates/swc_ecma_parser/tests/tsc/switchWithConstrainedTypeVariable.json +++ b/crates/swc_ecma_parser/tests/tsc/switchWithConstrainedTypeVariable.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 81, - "end": 87, + "end": 84, "ctxt": 0 }, "value": "key", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit12.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit12.json index f0d78a2da590..ed645d1c06dc 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit12.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit12.json @@ -228,7 +228,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 152, + "end": 149, "ctxt": 0 }, "value": "x", @@ -555,7 +555,7 @@ "type": "Identifier", "span": { "start": 330, - "end": 334, + "end": 331, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit3.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit3.json index 4159e4aabeb6..662f5c5f08b4 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit3.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit3.json @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 72, - "end": 81, + "end": 73, "ctxt": 0 }, "value": "x", @@ -184,7 +184,7 @@ "type": "Identifier", "span": { "start": 109, - "end": 118, + "end": 110, "ctxt": 0 }, "value": "x", @@ -285,7 +285,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 152, + "end": 147, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty13.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty13.json index 4f099a56c582..9ae3d408588a 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty13.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty13.json @@ -297,7 +297,7 @@ "type": "Identifier", "span": { "start": 129, - "end": 133, + "end": 130, "ctxt": 0 }, "value": "i", @@ -396,7 +396,7 @@ "type": "Identifier", "span": { "start": 160, - "end": 166, + "end": 161, "ctxt": 0 }, "value": "a", @@ -475,7 +475,7 @@ "type": "Identifier", "span": { "start": 196, - "end": 200, + "end": 197, "ctxt": 0 }, "value": "i", @@ -574,7 +574,7 @@ "type": "Identifier", "span": { "start": 227, - "end": 233, + "end": 228, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty14.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty14.json index 085eabf4826c..53528061de6d 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty14.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty14.json @@ -297,7 +297,7 @@ "type": "Identifier", "span": { "start": 130, - "end": 134, + "end": 131, "ctxt": 0 }, "value": "i", @@ -396,7 +396,7 @@ "type": "Identifier", "span": { "start": 161, - "end": 167, + "end": 162, "ctxt": 0 }, "value": "a", @@ -475,7 +475,7 @@ "type": "Identifier", "span": { "start": 197, - "end": 201, + "end": 198, "ctxt": 0 }, "value": "i", @@ -574,7 +574,7 @@ "type": "Identifier", "span": { "start": 228, - "end": 234, + "end": 229, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty15.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty15.json index f566037f63de..802f8990b598 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty15.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty15.json @@ -174,7 +174,7 @@ "type": "Identifier", "span": { "start": 97, - "end": 101, + "end": 98, "ctxt": 0 }, "value": "i", @@ -273,7 +273,7 @@ "type": "Identifier", "span": { "start": 128, - "end": 134, + "end": 129, "ctxt": 0 }, "value": "a", @@ -352,7 +352,7 @@ "type": "Identifier", "span": { "start": 164, - "end": 168, + "end": 165, "ctxt": 0 }, "value": "i", @@ -451,7 +451,7 @@ "type": "Identifier", "span": { "start": 195, - "end": 201, + "end": 196, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty16.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty16.json index ff2b045e560f..b2a20018d2cc 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty16.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty16.json @@ -272,7 +272,7 @@ "type": "Identifier", "span": { "start": 134, - "end": 138, + "end": 135, "ctxt": 0 }, "value": "i", @@ -371,7 +371,7 @@ "type": "Identifier", "span": { "start": 165, - "end": 171, + "end": 166, "ctxt": 0 }, "value": "a", @@ -450,7 +450,7 @@ "type": "Identifier", "span": { "start": 201, - "end": 205, + "end": 202, "ctxt": 0 }, "value": "i", @@ -549,7 +549,7 @@ "type": "Identifier", "span": { "start": 232, - "end": 238, + "end": 233, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty18.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty18.json index 39da0afcf8c5..8c2d8f446748 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty18.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty18.json @@ -217,7 +217,7 @@ "type": "Identifier", "span": { "start": 123, - "end": 133, + "end": 124, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty20.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty20.json index dd2d834bd264..e74fffc7dd94 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty20.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty20.json @@ -93,7 +93,7 @@ "type": "Identifier", "span": { "start": 54, - "end": 63, + "end": 55, "ctxt": 0 }, "value": "s", @@ -182,7 +182,7 @@ "type": "Identifier", "span": { "start": 101, - "end": 110, + "end": 102, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty21.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty21.json index ba9bbac37f5b..2c54a8659f18 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty21.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty21.json @@ -256,7 +256,7 @@ "type": "Identifier", "span": { "start": 131, - "end": 141, + "end": 132, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty22.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty22.json index bddbda222de1..1ac0b0ed4c78 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty22.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty22.json @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 61, - "end": 65, + "end": 62, "ctxt": 0 }, "value": "x", @@ -224,7 +224,7 @@ "type": "Identifier", "span": { "start": 101, - "end": 106, + "end": 103, "ctxt": 0 }, "value": "p1", @@ -270,7 +270,7 @@ "type": "Identifier", "span": { "start": 108, - "end": 119, + "end": 110, "ctxt": 0 }, "value": "p2", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty39.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty39.json index 7099d25d4895..3156b5670208 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty39.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty39.json @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 48, - "end": 57, + "end": 49, "ctxt": 0 }, "value": "x", @@ -200,7 +200,7 @@ "type": "Identifier", "span": { "start": 90, - "end": 99, + "end": 91, "ctxt": 0 }, "value": "x", @@ -317,7 +317,7 @@ "type": "Identifier", "span": { "start": 132, - "end": 138, + "end": 133, "ctxt": 0 }, "value": "x", @@ -445,7 +445,7 @@ "type": "Identifier", "span": { "start": 196, - "end": 202, + "end": 197, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty40.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty40.json index bf5f75245015..23d92828b11d 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty40.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty40.json @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 48, - "end": 57, + "end": 49, "ctxt": 0 }, "value": "x", @@ -200,7 +200,7 @@ "type": "Identifier", "span": { "start": 90, - "end": 99, + "end": 91, "ctxt": 0 }, "value": "x", @@ -317,7 +317,7 @@ "type": "Identifier", "span": { "start": 132, - "end": 138, + "end": 133, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty41.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty41.json index ac8fc285a20c..9fc7063e95c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty41.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty41.json @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 48, - "end": 57, + "end": 49, "ctxt": 0 }, "value": "x", @@ -242,7 +242,7 @@ "type": "Identifier", "span": { "start": 97, - "end": 107, + "end": 98, "ctxt": 0 }, "value": "x", @@ -451,7 +451,7 @@ "type": "Identifier", "span": { "start": 162, - "end": 168, + "end": 163, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty42.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty42.json index b8be0914710a..6ef846d24580 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty42.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty42.json @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 48, - "end": 57, + "end": 49, "ctxt": 0 }, "value": "x", @@ -200,7 +200,7 @@ "type": "Identifier", "span": { "start": 97, - "end": 106, + "end": 98, "ctxt": 0 }, "value": "x", @@ -317,7 +317,7 @@ "type": "Identifier", "span": { "start": 139, - "end": 145, + "end": 140, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty43.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty43.json index 1de0dc511790..96c4c508ad00 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty43.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty43.json @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 48, - "end": 57, + "end": 49, "ctxt": 0 }, "value": "x", @@ -200,7 +200,7 @@ "type": "Identifier", "span": { "start": 90, - "end": 99, + "end": 91, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty47.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty47.json index 32fff69ad2b3..4dc381d3c5fe 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty47.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty47.json @@ -174,7 +174,7 @@ "type": "Identifier", "span": { "start": 141, - "end": 150, + "end": 142, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty61.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty61.json index f39d39a564a0..a68873b7c1ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty61.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty61.json @@ -267,7 +267,7 @@ "type": "Identifier", "span": { "start": 226, - "end": 233, + "end": 230, "ctxt": 0 }, "value": "_val", @@ -345,7 +345,7 @@ "type": "Identifier", "span": { "start": 253, - "end": 275, + "end": 257, "ctxt": 0 }, "value": "next", @@ -369,7 +369,7 @@ "type": "Identifier", "span": { "start": 260, - "end": 266, + "end": 263, "ctxt": 0 }, "value": "val", @@ -778,7 +778,7 @@ "type": "Identifier", "span": { "start": 426, - "end": 448, + "end": 430, "ctxt": 0 }, "value": "next", @@ -802,7 +802,7 @@ "type": "Identifier", "span": { "start": 433, - "end": 439, + "end": 436, "ctxt": 0 }, "value": "val", @@ -913,7 +913,7 @@ "type": "Identifier", "span": { "start": 478, - "end": 503, + "end": 481, "ctxt": 0 }, "value": "obs", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateContextualTyping1.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateContextualTyping1.json index 0a61f6cc3972..810ec7bbfbde 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateContextualTyping1.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateContextualTyping1.json @@ -37,7 +37,7 @@ "type": "Identifier", "span": { "start": 35, - "end": 52, + "end": 36, "ctxt": 0 }, "value": "x", @@ -61,7 +61,7 @@ "type": "Identifier", "span": { "start": 42, - "end": 46, + "end": 43, "ctxt": 0 }, "value": "p", @@ -215,7 +215,7 @@ "type": "Identifier", "span": { "start": 89, - "end": 123, + "end": 101, "ctxt": 0 }, "value": "templateStrs", @@ -261,7 +261,7 @@ "type": "Identifier", "span": { "start": 125, - "end": 136, + "end": 126, "ctxt": 0 }, "value": "f", @@ -307,7 +307,7 @@ "type": "Identifier", "span": { "start": 138, - "end": 142, + "end": 139, "ctxt": 0 }, "value": "x", @@ -438,7 +438,7 @@ "type": "Identifier", "span": { "start": 169, - "end": 203, + "end": 181, "ctxt": 0 }, "value": "templateStrs", @@ -484,7 +484,7 @@ "type": "Identifier", "span": { "start": 205, - "end": 216, + "end": 206, "ctxt": 0 }, "value": "f", @@ -530,7 +530,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 229, + "end": 219, "ctxt": 0 }, "value": "h", @@ -576,7 +576,7 @@ "type": "Identifier", "span": { "start": 231, - "end": 235, + "end": 232, "ctxt": 0 }, "value": "x", @@ -1547,7 +1547,7 @@ "type": "Identifier", "span": { "start": 856, - "end": 860, + "end": 857, "ctxt": 0 }, "value": "p", @@ -1867,7 +1867,7 @@ "type": "Identifier", "span": { "start": 945, - "end": 949, + "end": 946, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateContextualTyping2.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateContextualTyping2.json index 054f14805122..7d5d0468a408 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateContextualTyping2.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateContextualTyping2.json @@ -37,7 +37,7 @@ "type": "Identifier", "span": { "start": 36, - "end": 53, + "end": 37, "ctxt": 0 }, "value": "x", @@ -61,7 +61,7 @@ "type": "Identifier", "span": { "start": 43, - "end": 47, + "end": 44, "ctxt": 0 }, "value": "p", @@ -220,7 +220,7 @@ "type": "Identifier", "span": { "start": 86, - "end": 106, + "end": 87, "ctxt": 0 }, "value": "x", @@ -244,7 +244,7 @@ "type": "Identifier", "span": { "start": 96, - "end": 100, + "end": 97, "ctxt": 0 }, "value": "p", @@ -421,7 +421,7 @@ "type": "Identifier", "span": { "start": 140, - "end": 174, + "end": 152, "ctxt": 0 }, "value": "templateStrs", @@ -467,7 +467,7 @@ "type": "Identifier", "span": { "start": 176, - "end": 188, + "end": 177, "ctxt": 0 }, "value": "f", @@ -513,7 +513,7 @@ "type": "Identifier", "span": { "start": 190, - "end": 199, + "end": 191, "ctxt": 0 }, "value": "x", @@ -592,7 +592,7 @@ "type": "Identifier", "span": { "start": 228, - "end": 262, + "end": 240, "ctxt": 0 }, "value": "templateStrs", @@ -638,7 +638,7 @@ "type": "Identifier", "span": { "start": 264, - "end": 276, + "end": 265, "ctxt": 0 }, "value": "f", @@ -684,7 +684,7 @@ "type": "Identifier", "span": { "start": 278, - "end": 290, + "end": 279, "ctxt": 0 }, "value": "h", @@ -730,7 +730,7 @@ "type": "Identifier", "span": { "start": 292, - "end": 301, + "end": 293, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInference.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInference.json index 8faf45a8b93c..f95a2d64ce05 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInference.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInference.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 62, + "end": 59, "ctxt": 0 }, "value": "n", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 174, - "end": 197, + "end": 175, "ctxt": 0 }, "value": "n", @@ -356,7 +356,7 @@ "type": "Identifier", "span": { "start": 346, - "end": 350, + "end": 347, "ctxt": 0 }, "value": "n", @@ -402,7 +402,7 @@ "type": "Identifier", "span": { "start": 352, - "end": 361, + "end": 353, "ctxt": 0 }, "value": "m", @@ -599,7 +599,7 @@ "type": "Identifier", "span": { "start": 421, - "end": 444, + "end": 422, "ctxt": 0 }, "value": "n", @@ -645,7 +645,7 @@ "type": "Identifier", "span": { "start": 446, - "end": 450, + "end": 447, "ctxt": 0 }, "value": "m", @@ -852,7 +852,7 @@ "type": "Identifier", "span": { "start": 595, - "end": 621, + "end": 599, "ctxt": 0 }, "value": "strs", @@ -898,7 +898,7 @@ "type": "Identifier", "span": { "start": 623, - "end": 640, + "end": 624, "ctxt": 0 }, "value": "n", @@ -922,7 +922,7 @@ "type": "Identifier", "span": { "start": 627, - "end": 631, + "end": 628, "ctxt": 0 }, "value": "x", @@ -1169,7 +1169,7 @@ "type": "Identifier", "span": { "start": 715, - "end": 741, + "end": 719, "ctxt": 0 }, "value": "strs", @@ -1215,7 +1215,7 @@ "type": "Identifier", "span": { "start": 743, - "end": 766, + "end": 744, "ctxt": 0 }, "value": "n", @@ -1239,7 +1239,7 @@ "type": "Identifier", "span": { "start": 747, - "end": 751, + "end": 748, "ctxt": 0 }, "value": "x", @@ -1276,7 +1276,7 @@ "type": "Identifier", "span": { "start": 753, - "end": 757, + "end": 754, "ctxt": 0 }, "value": "y", @@ -1573,7 +1573,7 @@ "type": "Identifier", "span": { "start": 983, - "end": 1009, + "end": 987, "ctxt": 0 }, "value": "strs", @@ -1619,7 +1619,7 @@ "type": "Identifier", "span": { "start": 1011, - "end": 1028, + "end": 1019, "ctxt": 0 }, "value": "producer", @@ -2002,7 +2002,7 @@ "type": "Identifier", "span": { "start": 1297, - "end": 1323, + "end": 1301, "ctxt": 0 }, "value": "strs", @@ -2048,7 +2048,7 @@ "type": "Identifier", "span": { "start": 1325, - "end": 1329, + "end": 1326, "ctxt": 0 }, "value": "n", @@ -2094,7 +2094,7 @@ "type": "Identifier", "span": { "start": 1331, - "end": 1348, + "end": 1332, "ctxt": 0 }, "value": "f", @@ -2118,7 +2118,7 @@ "type": "Identifier", "span": { "start": 1335, - "end": 1339, + "end": 1336, "ctxt": 0 }, "value": "x", @@ -2572,7 +2572,7 @@ "type": "Identifier", "span": { "start": 1632, - "end": 1658, + "end": 1636, "ctxt": 0 }, "value": "strs", @@ -2618,7 +2618,7 @@ "type": "Identifier", "span": { "start": 1660, - "end": 1664, + "end": 1661, "ctxt": 0 }, "value": "n", @@ -2664,7 +2664,7 @@ "type": "Identifier", "span": { "start": 1666, - "end": 1683, + "end": 1667, "ctxt": 0 }, "value": "f", @@ -2688,7 +2688,7 @@ "type": "Identifier", "span": { "start": 1670, - "end": 1674, + "end": 1671, "ctxt": 0 }, "value": "x", @@ -3142,7 +3142,7 @@ "type": "Identifier", "span": { "start": 1933, - "end": 1959, + "end": 1937, "ctxt": 0 }, "value": "strs", @@ -3188,7 +3188,7 @@ "type": "Identifier", "span": { "start": 1961, - "end": 1975, + "end": 1962, "ctxt": 0 }, "value": "a", @@ -3212,7 +3212,7 @@ "type": "Identifier", "span": { "start": 1965, - "end": 1969, + "end": 1966, "ctxt": 0 }, "value": "a", @@ -3290,7 +3290,7 @@ "type": "Identifier", "span": { "start": 1977, - "end": 1991, + "end": 1978, "ctxt": 0 }, "value": "b", @@ -3314,7 +3314,7 @@ "type": "Identifier", "span": { "start": 1981, - "end": 1985, + "end": 1982, "ctxt": 0 }, "value": "b", @@ -3392,7 +3392,7 @@ "type": "Identifier", "span": { "start": 1993, - "end": 2007, + "end": 1994, "ctxt": 0 }, "value": "c", @@ -3416,7 +3416,7 @@ "type": "Identifier", "span": { "start": 1997, - "end": 2001, + "end": 1998, "ctxt": 0 }, "value": "c", @@ -4173,7 +4173,7 @@ "type": "Identifier", "span": { "start": 2334, - "end": 2360, + "end": 2338, "ctxt": 0 }, "value": "strs", @@ -4219,7 +4219,7 @@ "type": "Identifier", "span": { "start": 2362, - "end": 2376, + "end": 2363, "ctxt": 0 }, "value": "a", @@ -4243,7 +4243,7 @@ "type": "Identifier", "span": { "start": 2366, - "end": 2370, + "end": 2367, "ctxt": 0 }, "value": "a", @@ -4321,7 +4321,7 @@ "type": "Identifier", "span": { "start": 2378, - "end": 2392, + "end": 2379, "ctxt": 0 }, "value": "b", @@ -4345,7 +4345,7 @@ "type": "Identifier", "span": { "start": 2382, - "end": 2386, + "end": 2383, "ctxt": 0 }, "value": "b", @@ -4423,7 +4423,7 @@ "type": "Identifier", "span": { "start": 2394, - "end": 2408, + "end": 2395, "ctxt": 0 }, "value": "c", @@ -4447,7 +4447,7 @@ "type": "Identifier", "span": { "start": 2398, - "end": 2402, + "end": 2399, "ctxt": 0 }, "value": "c", @@ -5250,7 +5250,7 @@ "type": "Identifier", "span": { "start": 2674, - "end": 2700, + "end": 2678, "ctxt": 0 }, "value": "strs", @@ -5296,7 +5296,7 @@ "type": "Identifier", "span": { "start": 2702, - "end": 2706, + "end": 2703, "ctxt": 0 }, "value": "n", @@ -5656,7 +5656,7 @@ "type": "Identifier", "span": { "start": 2921, - "end": 2947, + "end": 2925, "ctxt": 0 }, "value": "strs", @@ -5702,7 +5702,7 @@ "type": "Identifier", "span": { "start": 2949, - "end": 2953, + "end": 2950, "ctxt": 0 }, "value": "a", @@ -5748,7 +5748,7 @@ "type": "Identifier", "span": { "start": 2955, - "end": 2959, + "end": 2956, "ctxt": 0 }, "value": "b", @@ -5794,7 +5794,7 @@ "type": "Identifier", "span": { "start": 2961, - "end": 2965, + "end": 2962, "ctxt": 0 }, "value": "c", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInferenceES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInferenceES6.json index 63489f26f6fb..6fbf7a887f51 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInferenceES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInferenceES6.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 72, - "end": 76, + "end": 73, "ctxt": 0 }, "value": "n", @@ -194,7 +194,7 @@ "type": "Identifier", "span": { "start": 188, - "end": 211, + "end": 189, "ctxt": 0 }, "value": "n", @@ -356,7 +356,7 @@ "type": "Identifier", "span": { "start": 360, - "end": 364, + "end": 361, "ctxt": 0 }, "value": "n", @@ -402,7 +402,7 @@ "type": "Identifier", "span": { "start": 366, - "end": 375, + "end": 367, "ctxt": 0 }, "value": "m", @@ -599,7 +599,7 @@ "type": "Identifier", "span": { "start": 435, - "end": 458, + "end": 436, "ctxt": 0 }, "value": "n", @@ -645,7 +645,7 @@ "type": "Identifier", "span": { "start": 460, - "end": 464, + "end": 461, "ctxt": 0 }, "value": "m", @@ -852,7 +852,7 @@ "type": "Identifier", "span": { "start": 609, - "end": 635, + "end": 613, "ctxt": 0 }, "value": "strs", @@ -898,7 +898,7 @@ "type": "Identifier", "span": { "start": 637, - "end": 654, + "end": 638, "ctxt": 0 }, "value": "n", @@ -922,7 +922,7 @@ "type": "Identifier", "span": { "start": 641, - "end": 645, + "end": 642, "ctxt": 0 }, "value": "x", @@ -1169,7 +1169,7 @@ "type": "Identifier", "span": { "start": 729, - "end": 755, + "end": 733, "ctxt": 0 }, "value": "strs", @@ -1215,7 +1215,7 @@ "type": "Identifier", "span": { "start": 757, - "end": 780, + "end": 758, "ctxt": 0 }, "value": "n", @@ -1239,7 +1239,7 @@ "type": "Identifier", "span": { "start": 761, - "end": 765, + "end": 762, "ctxt": 0 }, "value": "x", @@ -1276,7 +1276,7 @@ "type": "Identifier", "span": { "start": 767, - "end": 771, + "end": 768, "ctxt": 0 }, "value": "y", @@ -1573,7 +1573,7 @@ "type": "Identifier", "span": { "start": 997, - "end": 1023, + "end": 1001, "ctxt": 0 }, "value": "strs", @@ -1619,7 +1619,7 @@ "type": "Identifier", "span": { "start": 1025, - "end": 1042, + "end": 1033, "ctxt": 0 }, "value": "producer", @@ -2002,7 +2002,7 @@ "type": "Identifier", "span": { "start": 1311, - "end": 1337, + "end": 1315, "ctxt": 0 }, "value": "strs", @@ -2048,7 +2048,7 @@ "type": "Identifier", "span": { "start": 1339, - "end": 1343, + "end": 1340, "ctxt": 0 }, "value": "n", @@ -2094,7 +2094,7 @@ "type": "Identifier", "span": { "start": 1345, - "end": 1362, + "end": 1346, "ctxt": 0 }, "value": "f", @@ -2118,7 +2118,7 @@ "type": "Identifier", "span": { "start": 1349, - "end": 1353, + "end": 1350, "ctxt": 0 }, "value": "x", @@ -2572,7 +2572,7 @@ "type": "Identifier", "span": { "start": 1646, - "end": 1672, + "end": 1650, "ctxt": 0 }, "value": "strs", @@ -2618,7 +2618,7 @@ "type": "Identifier", "span": { "start": 1674, - "end": 1678, + "end": 1675, "ctxt": 0 }, "value": "n", @@ -2664,7 +2664,7 @@ "type": "Identifier", "span": { "start": 1680, - "end": 1697, + "end": 1681, "ctxt": 0 }, "value": "f", @@ -2688,7 +2688,7 @@ "type": "Identifier", "span": { "start": 1684, - "end": 1688, + "end": 1685, "ctxt": 0 }, "value": "x", @@ -3142,7 +3142,7 @@ "type": "Identifier", "span": { "start": 1947, - "end": 1973, + "end": 1951, "ctxt": 0 }, "value": "strs", @@ -3188,7 +3188,7 @@ "type": "Identifier", "span": { "start": 1975, - "end": 1989, + "end": 1976, "ctxt": 0 }, "value": "a", @@ -3212,7 +3212,7 @@ "type": "Identifier", "span": { "start": 1979, - "end": 1983, + "end": 1980, "ctxt": 0 }, "value": "a", @@ -3290,7 +3290,7 @@ "type": "Identifier", "span": { "start": 1991, - "end": 2005, + "end": 1992, "ctxt": 0 }, "value": "b", @@ -3314,7 +3314,7 @@ "type": "Identifier", "span": { "start": 1995, - "end": 1999, + "end": 1996, "ctxt": 0 }, "value": "b", @@ -3392,7 +3392,7 @@ "type": "Identifier", "span": { "start": 2007, - "end": 2021, + "end": 2008, "ctxt": 0 }, "value": "c", @@ -3416,7 +3416,7 @@ "type": "Identifier", "span": { "start": 2011, - "end": 2015, + "end": 2012, "ctxt": 0 }, "value": "c", @@ -4173,7 +4173,7 @@ "type": "Identifier", "span": { "start": 2348, - "end": 2374, + "end": 2352, "ctxt": 0 }, "value": "strs", @@ -4219,7 +4219,7 @@ "type": "Identifier", "span": { "start": 2376, - "end": 2390, + "end": 2377, "ctxt": 0 }, "value": "a", @@ -4243,7 +4243,7 @@ "type": "Identifier", "span": { "start": 2380, - "end": 2384, + "end": 2381, "ctxt": 0 }, "value": "a", @@ -4321,7 +4321,7 @@ "type": "Identifier", "span": { "start": 2392, - "end": 2406, + "end": 2393, "ctxt": 0 }, "value": "b", @@ -4345,7 +4345,7 @@ "type": "Identifier", "span": { "start": 2396, - "end": 2400, + "end": 2397, "ctxt": 0 }, "value": "b", @@ -4423,7 +4423,7 @@ "type": "Identifier", "span": { "start": 2408, - "end": 2422, + "end": 2409, "ctxt": 0 }, "value": "c", @@ -4447,7 +4447,7 @@ "type": "Identifier", "span": { "start": 2412, - "end": 2416, + "end": 2413, "ctxt": 0 }, "value": "c", @@ -5250,7 +5250,7 @@ "type": "Identifier", "span": { "start": 2688, - "end": 2714, + "end": 2692, "ctxt": 0 }, "value": "strs", @@ -5296,7 +5296,7 @@ "type": "Identifier", "span": { "start": 2716, - "end": 2720, + "end": 2717, "ctxt": 0 }, "value": "n", @@ -5656,7 +5656,7 @@ "type": "Identifier", "span": { "start": 2935, - "end": 2961, + "end": 2939, "ctxt": 0 }, "value": "strs", @@ -5702,7 +5702,7 @@ "type": "Identifier", "span": { "start": 2963, - "end": 2967, + "end": 2964, "ctxt": 0 }, "value": "a", @@ -5748,7 +5748,7 @@ "type": "Identifier", "span": { "start": 2969, - "end": 2973, + "end": 2970, "ctxt": 0 }, "value": "b", @@ -5794,7 +5794,7 @@ "type": "Identifier", "span": { "start": 2975, - "end": 2979, + "end": 2976, "ctxt": 0 }, "value": "c", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTags.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTags.json index 3e0f0ed5c7de..696d54c75bbc 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTags.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTags.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 20, - "end": 53, + "end": 31, "ctxt": 0 }, "value": "stringParts", @@ -336,7 +336,7 @@ "type": "Identifier", "span": { "start": 132, - "end": 141, + "end": 133, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTagsES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTagsES6.json index 2a1f7a4c7940..0df98ed78d12 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTagsES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTagsES6.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 36, - "end": 69, + "end": 47, "ctxt": 0 }, "value": "stringParts", @@ -336,7 +336,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 157, + "end": 149, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressions.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressions.json index e8bf708f6c7f..167d6b03c041 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressions.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressions.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 20, - "end": 46, + "end": 24, "ctxt": 0 }, "value": "strs", @@ -207,7 +207,7 @@ "type": "Identifier", "span": { "start": 98, - "end": 107, + "end": 99, "ctxt": 0 }, "value": "s", @@ -258,7 +258,7 @@ "type": "Identifier", "span": { "start": 129, - "end": 138, + "end": 130, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.json index c6041cf820ab..8cf2e465e041 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 36, - "end": 62, + "end": 40, "ctxt": 0 }, "value": "strs", @@ -207,7 +207,7 @@ "type": "Identifier", "span": { "start": 114, - "end": 123, + "end": 115, "ctxt": 0 }, "value": "s", @@ -258,7 +258,7 @@ "type": "Identifier", "span": { "start": 145, - "end": 154, + "end": 146, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution1.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution1.json index 5cae22bb321f..b0d367771827 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution1.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution1.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 14, - "end": 40, + "end": 18, "ctxt": 0 }, "value": "strs", @@ -121,7 +121,7 @@ "type": "Identifier", "span": { "start": 64, - "end": 90, + "end": 68, "ctxt": 0 }, "value": "strs", @@ -167,7 +167,7 @@ "type": "Identifier", "span": { "start": 92, - "end": 101, + "end": 93, "ctxt": 0 }, "value": "x", @@ -246,7 +246,7 @@ "type": "Identifier", "span": { "start": 125, - "end": 151, + "end": 129, "ctxt": 0 }, "value": "strs", @@ -292,7 +292,7 @@ "type": "Identifier", "span": { "start": 153, - "end": 162, + "end": 154, "ctxt": 0 }, "value": "x", @@ -328,7 +328,7 @@ "type": "Identifier", "span": { "start": 164, - "end": 173, + "end": 165, "ctxt": 0 }, "value": "y", @@ -407,7 +407,7 @@ "type": "Identifier", "span": { "start": 198, - "end": 224, + "end": 202, "ctxt": 0 }, "value": "strs", @@ -453,7 +453,7 @@ "type": "Identifier", "span": { "start": 226, - "end": 235, + "end": 227, "ctxt": 0 }, "value": "x", @@ -489,7 +489,7 @@ "type": "Identifier", "span": { "start": 237, - "end": 246, + "end": 238, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution1_ES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution1_ES6.json index d298f3122b8f..21f32da59576 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution1_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution1_ES6.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 29, - "end": 55, + "end": 33, "ctxt": 0 }, "value": "strs", @@ -121,7 +121,7 @@ "type": "Identifier", "span": { "start": 79, - "end": 105, + "end": 83, "ctxt": 0 }, "value": "strs", @@ -167,7 +167,7 @@ "type": "Identifier", "span": { "start": 107, - "end": 116, + "end": 108, "ctxt": 0 }, "value": "x", @@ -246,7 +246,7 @@ "type": "Identifier", "span": { "start": 140, - "end": 166, + "end": 144, "ctxt": 0 }, "value": "strs", @@ -292,7 +292,7 @@ "type": "Identifier", "span": { "start": 168, - "end": 177, + "end": 169, "ctxt": 0 }, "value": "x", @@ -328,7 +328,7 @@ "type": "Identifier", "span": { "start": 179, - "end": 188, + "end": 180, "ctxt": 0 }, "value": "y", @@ -407,7 +407,7 @@ "type": "Identifier", "span": { "start": 213, - "end": 239, + "end": 217, "ctxt": 0 }, "value": "strs", @@ -453,7 +453,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 250, + "end": 242, "ctxt": 0 }, "value": "x", @@ -489,7 +489,7 @@ "type": "Identifier", "span": { "start": 252, - "end": 261, + "end": 253, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution2.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution2.json index f918cc031eb1..346a845d4e98 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution2.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 16, - "end": 42, + "end": 20, "ctxt": 0 }, "value": "strs", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 44, - "end": 53, + "end": 45, "ctxt": 0 }, "value": "x", @@ -157,7 +157,7 @@ "type": "Identifier", "span": { "start": 78, - "end": 92, + "end": 82, "ctxt": 0 }, "value": "strs", @@ -201,7 +201,7 @@ "type": "Identifier", "span": { "start": 94, - "end": 103, + "end": 95, "ctxt": 0 }, "value": "x", @@ -581,7 +581,7 @@ "type": "Identifier", "span": { "start": 234, - "end": 248, + "end": 238, "ctxt": 0 }, "value": "strs", @@ -625,7 +625,7 @@ "type": "Identifier", "span": { "start": 250, - "end": 259, + "end": 251, "ctxt": 0 }, "value": "x", @@ -704,7 +704,7 @@ "type": "Identifier", "span": { "start": 284, - "end": 310, + "end": 288, "ctxt": 0 }, "value": "strs", @@ -750,7 +750,7 @@ "type": "Identifier", "span": { "start": 312, - "end": 321, + "end": 313, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution2_ES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution2_ES6.json index 70ac9f642299..298894ca2180 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution2_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution2_ES6.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 30, - "end": 56, + "end": 34, "ctxt": 0 }, "value": "strs", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 67, + "end": 59, "ctxt": 0 }, "value": "x", @@ -157,7 +157,7 @@ "type": "Identifier", "span": { "start": 92, - "end": 106, + "end": 96, "ctxt": 0 }, "value": "strs", @@ -201,7 +201,7 @@ "type": "Identifier", "span": { "start": 108, - "end": 117, + "end": 109, "ctxt": 0 }, "value": "x", @@ -581,7 +581,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 262, + "end": 252, "ctxt": 0 }, "value": "strs", @@ -625,7 +625,7 @@ "type": "Identifier", "span": { "start": 264, - "end": 273, + "end": 265, "ctxt": 0 }, "value": "x", @@ -704,7 +704,7 @@ "type": "Identifier", "span": { "start": 298, - "end": 324, + "end": 302, "ctxt": 0 }, "value": "strs", @@ -750,7 +750,7 @@ "type": "Identifier", "span": { "start": 326, - "end": 335, + "end": 327, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3.json index 4dc49303cf06..9a7858edc87f 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 79, - "end": 105, + "end": 83, "ctxt": 0 }, "value": "strs", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 107, - "end": 116, + "end": 108, "ctxt": 0 }, "value": "s", @@ -157,7 +157,7 @@ "type": "Identifier", "span": { "start": 140, - "end": 166, + "end": 144, "ctxt": 0 }, "value": "strs", @@ -203,7 +203,7 @@ "type": "Identifier", "span": { "start": 168, - "end": 177, + "end": 169, "ctxt": 0 }, "value": "n", @@ -514,7 +514,7 @@ "type": "Identifier", "span": { "start": 330, - "end": 356, + "end": 334, "ctxt": 0 }, "value": "strs", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 358, - "end": 367, + "end": 359, "ctxt": 0 }, "value": "s", @@ -596,7 +596,7 @@ "type": "Identifier", "span": { "start": 369, - "end": 378, + "end": 370, "ctxt": 0 }, "value": "n", @@ -675,7 +675,7 @@ "type": "Identifier", "span": { "start": 405, - "end": 431, + "end": 409, "ctxt": 0 }, "value": "strs", @@ -721,7 +721,7 @@ "type": "Identifier", "span": { "start": 433, - "end": 442, + "end": 434, "ctxt": 0 }, "value": "n", @@ -757,7 +757,7 @@ "type": "Identifier", "span": { "start": 444, - "end": 448, + "end": 445, "ctxt": 0 }, "value": "t", @@ -1457,7 +1457,7 @@ "type": "Identifier", "span": { "start": 945, - "end": 971, + "end": 949, "ctxt": 0 }, "value": "strs", @@ -1503,7 +1503,7 @@ "type": "Identifier", "span": { "start": 973, - "end": 977, + "end": 974, "ctxt": 0 }, "value": "n", @@ -1624,7 +1624,7 @@ "type": "Identifier", "span": { "start": 1007, - "end": 1033, + "end": 1011, "ctxt": 0 }, "value": "strs", @@ -1670,7 +1670,7 @@ "type": "Identifier", "span": { "start": 1035, - "end": 1044, + "end": 1036, "ctxt": 0 }, "value": "s", @@ -1706,7 +1706,7 @@ "type": "Identifier", "span": { "start": 1046, - "end": 1050, + "end": 1047, "ctxt": 0 }, "value": "t", @@ -1752,7 +1752,7 @@ "type": "Identifier", "span": { "start": 1052, - "end": 1056, + "end": 1053, "ctxt": 0 }, "value": "u", @@ -1906,7 +1906,7 @@ "type": "Identifier", "span": { "start": 1084, - "end": 1110, + "end": 1088, "ctxt": 0 }, "value": "strs", @@ -1952,7 +1952,7 @@ "type": "Identifier", "span": { "start": 1112, - "end": 1116, + "end": 1113, "ctxt": 0 }, "value": "v", @@ -1998,7 +1998,7 @@ "type": "Identifier", "span": { "start": 1118, - "end": 1122, + "end": 1119, "ctxt": 0 }, "value": "u", @@ -2044,7 +2044,7 @@ "type": "Identifier", "span": { "start": 1124, - "end": 1128, + "end": 1125, "ctxt": 0 }, "value": "t", @@ -3098,7 +3098,7 @@ "type": "Identifier", "span": { "start": 1690, - "end": 1716, + "end": 1694, "ctxt": 0 }, "value": "strs", @@ -3144,7 +3144,7 @@ "type": "Identifier", "span": { "start": 1718, - "end": 1722, + "end": 1719, "ctxt": 0 }, "value": "n", @@ -3190,7 +3190,7 @@ "type": "Identifier", "span": { "start": 1724, - "end": 1728, + "end": 1725, "ctxt": 0 }, "value": "m", @@ -3334,7 +3334,7 @@ "type": "Identifier", "span": { "start": 1780, - "end": 1806, + "end": 1784, "ctxt": 0 }, "value": "strs", @@ -3380,7 +3380,7 @@ "type": "Identifier", "span": { "start": 1808, - "end": 1812, + "end": 1809, "ctxt": 0 }, "value": "n", @@ -3426,7 +3426,7 @@ "type": "Identifier", "span": { "start": 1814, - "end": 1818, + "end": 1815, "ctxt": 0 }, "value": "m", @@ -3570,7 +3570,7 @@ "type": "Identifier", "span": { "start": 1834, - "end": 1860, + "end": 1838, "ctxt": 0 }, "value": "strs", @@ -4309,7 +4309,7 @@ "type": "Identifier", "span": { "start": 2471, - "end": 2497, + "end": 2475, "ctxt": 0 }, "value": "strs", @@ -4355,7 +4355,7 @@ "type": "Identifier", "span": { "start": 2499, - "end": 2521, + "end": 2500, "ctxt": 0 }, "value": "f", @@ -4379,7 +4379,7 @@ "type": "Identifier", "span": { "start": 2503, - "end": 2512, + "end": 2504, "ctxt": 0 }, "value": "n", @@ -4480,7 +4480,7 @@ "type": "Identifier", "span": { "start": 2545, - "end": 2571, + "end": 2549, "ctxt": 0 }, "value": "strs", @@ -4526,7 +4526,7 @@ "type": "Identifier", "span": { "start": 2573, - "end": 2595, + "end": 2574, "ctxt": 0 }, "value": "f", @@ -4550,7 +4550,7 @@ "type": "Identifier", "span": { "start": 2577, - "end": 2586, + "end": 2578, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3_ES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3_ES6.json index 69ee8989d2f4..6889e6136f63 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3_ES6.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 93, - "end": 119, + "end": 97, "ctxt": 0 }, "value": "strs", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 121, - "end": 130, + "end": 122, "ctxt": 0 }, "value": "s", @@ -157,7 +157,7 @@ "type": "Identifier", "span": { "start": 154, - "end": 180, + "end": 158, "ctxt": 0 }, "value": "strs", @@ -203,7 +203,7 @@ "type": "Identifier", "span": { "start": 182, - "end": 191, + "end": 183, "ctxt": 0 }, "value": "n", @@ -514,7 +514,7 @@ "type": "Identifier", "span": { "start": 344, - "end": 370, + "end": 348, "ctxt": 0 }, "value": "strs", @@ -560,7 +560,7 @@ "type": "Identifier", "span": { "start": 372, - "end": 381, + "end": 373, "ctxt": 0 }, "value": "s", @@ -596,7 +596,7 @@ "type": "Identifier", "span": { "start": 383, - "end": 392, + "end": 384, "ctxt": 0 }, "value": "n", @@ -675,7 +675,7 @@ "type": "Identifier", "span": { "start": 419, - "end": 445, + "end": 423, "ctxt": 0 }, "value": "strs", @@ -721,7 +721,7 @@ "type": "Identifier", "span": { "start": 447, - "end": 456, + "end": 448, "ctxt": 0 }, "value": "n", @@ -757,7 +757,7 @@ "type": "Identifier", "span": { "start": 458, - "end": 462, + "end": 459, "ctxt": 0 }, "value": "t", @@ -1457,7 +1457,7 @@ "type": "Identifier", "span": { "start": 953, - "end": 979, + "end": 957, "ctxt": 0 }, "value": "strs", @@ -1503,7 +1503,7 @@ "type": "Identifier", "span": { "start": 981, - "end": 985, + "end": 982, "ctxt": 0 }, "value": "n", @@ -1624,7 +1624,7 @@ "type": "Identifier", "span": { "start": 1015, - "end": 1041, + "end": 1019, "ctxt": 0 }, "value": "strs", @@ -1670,7 +1670,7 @@ "type": "Identifier", "span": { "start": 1043, - "end": 1052, + "end": 1044, "ctxt": 0 }, "value": "s", @@ -1706,7 +1706,7 @@ "type": "Identifier", "span": { "start": 1054, - "end": 1058, + "end": 1055, "ctxt": 0 }, "value": "t", @@ -1752,7 +1752,7 @@ "type": "Identifier", "span": { "start": 1060, - "end": 1064, + "end": 1061, "ctxt": 0 }, "value": "u", @@ -1906,7 +1906,7 @@ "type": "Identifier", "span": { "start": 1092, - "end": 1118, + "end": 1096, "ctxt": 0 }, "value": "strs", @@ -1952,7 +1952,7 @@ "type": "Identifier", "span": { "start": 1120, - "end": 1124, + "end": 1121, "ctxt": 0 }, "value": "v", @@ -1998,7 +1998,7 @@ "type": "Identifier", "span": { "start": 1126, - "end": 1130, + "end": 1127, "ctxt": 0 }, "value": "u", @@ -2044,7 +2044,7 @@ "type": "Identifier", "span": { "start": 1132, - "end": 1136, + "end": 1133, "ctxt": 0 }, "value": "t", @@ -3098,7 +3098,7 @@ "type": "Identifier", "span": { "start": 1698, - "end": 1724, + "end": 1702, "ctxt": 0 }, "value": "strs", @@ -3144,7 +3144,7 @@ "type": "Identifier", "span": { "start": 1726, - "end": 1730, + "end": 1727, "ctxt": 0 }, "value": "n", @@ -3190,7 +3190,7 @@ "type": "Identifier", "span": { "start": 1732, - "end": 1736, + "end": 1733, "ctxt": 0 }, "value": "m", @@ -3334,7 +3334,7 @@ "type": "Identifier", "span": { "start": 1788, - "end": 1814, + "end": 1792, "ctxt": 0 }, "value": "strs", @@ -3380,7 +3380,7 @@ "type": "Identifier", "span": { "start": 1816, - "end": 1820, + "end": 1817, "ctxt": 0 }, "value": "n", @@ -3426,7 +3426,7 @@ "type": "Identifier", "span": { "start": 1822, - "end": 1826, + "end": 1823, "ctxt": 0 }, "value": "m", @@ -3570,7 +3570,7 @@ "type": "Identifier", "span": { "start": 1842, - "end": 1868, + "end": 1846, "ctxt": 0 }, "value": "strs", @@ -4309,7 +4309,7 @@ "type": "Identifier", "span": { "start": 2479, - "end": 2505, + "end": 2483, "ctxt": 0 }, "value": "strs", @@ -4355,7 +4355,7 @@ "type": "Identifier", "span": { "start": 2507, - "end": 2529, + "end": 2508, "ctxt": 0 }, "value": "f", @@ -4379,7 +4379,7 @@ "type": "Identifier", "span": { "start": 2511, - "end": 2520, + "end": 2512, "ctxt": 0 }, "value": "n", @@ -4480,7 +4480,7 @@ "type": "Identifier", "span": { "start": 2553, - "end": 2579, + "end": 2557, "ctxt": 0 }, "value": "strs", @@ -4526,7 +4526,7 @@ "type": "Identifier", "span": { "start": 2581, - "end": 2603, + "end": 2582, "ctxt": 0 }, "value": "f", @@ -4550,7 +4550,7 @@ "type": "Identifier", "span": { "start": 2585, - "end": 2594, + "end": 2586, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagNamedDeclare.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagNamedDeclare.json index 225706b6450f..3a232c271f05 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagNamedDeclare.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagNamedDeclare.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 20, - "end": 26, + "end": 21, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagNamedDeclareES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagNamedDeclareES6.json index da99fc04ac7d..7c85373c5625 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagNamedDeclareES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagNamedDeclareES6.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 34, - "end": 40, + "end": 35, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.json index a19e63ed955c..b4c88ae4012a 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.json @@ -148,7 +148,7 @@ "type": "Identifier", "span": { "start": 54, - "end": 63, + "end": 55, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.json index deaf9323b2d5..0fea2165f88b 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.json @@ -148,7 +148,7 @@ "type": "Identifier", "span": { "start": 68, - "end": 77, + "end": 69, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTags.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTags.json index df6fb22e242a..a22526b1bc8f 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTags.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTags.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 20, - "end": 53, + "end": 31, "ctxt": 0 }, "value": "stringParts", @@ -336,7 +336,7 @@ "type": "Identifier", "span": { "start": 131, - "end": 140, + "end": 132, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTagsES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTagsES6.json index 9519f5ee6c78..04f1465e537a 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTagsES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTagsES6.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 36, - "end": 69, + "end": 47, "ctxt": 0 }, "value": "stringParts", @@ -336,7 +336,7 @@ "type": "Identifier", "span": { "start": 147, - "end": 156, + "end": 148, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplatesWithTypeArguments1.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplatesWithTypeArguments1.json index d4a7ea79c95e..1a3a10fb2865 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplatesWithTypeArguments1.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplatesWithTypeArguments1.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 43, - "end": 69, + "end": 47, "ctxt": 0 }, "value": "strs", @@ -141,7 +141,7 @@ "type": "Identifier", "span": { "start": 92, - "end": 96, + "end": 93, "ctxt": 0 }, "value": "x", @@ -743,7 +743,7 @@ "type": "Identifier", "span": { "start": 356, - "end": 382, + "end": 360, "ctxt": 0 }, "value": "strs", @@ -789,7 +789,7 @@ "type": "Identifier", "span": { "start": 388, - "end": 406, + "end": 389, "ctxt": 0 }, "value": "t", @@ -813,7 +813,7 @@ "type": "Identifier", "span": { "start": 392, - "end": 400, + "end": 393, "ctxt": 0 }, "value": "i", @@ -891,7 +891,7 @@ "type": "Identifier", "span": { "start": 408, - "end": 426, + "end": 409, "ctxt": 0 }, "value": "u", @@ -915,7 +915,7 @@ "type": "Identifier", "span": { "start": 412, - "end": 420, + "end": 413, "ctxt": 0 }, "value": "i", @@ -993,7 +993,7 @@ "type": "Identifier", "span": { "start": 428, - "end": 446, + "end": 429, "ctxt": 0 }, "value": "v", @@ -1017,7 +1017,7 @@ "type": "Identifier", "span": { "start": 432, - "end": 440, + "end": 433, "ctxt": 0 }, "value": "i", @@ -1682,7 +1682,7 @@ "type": "Identifier", "span": { "start": 653, - "end": 679, + "end": 657, "ctxt": 0 }, "value": "strs", @@ -1719,7 +1719,7 @@ "type": "Identifier", "span": { "start": 681, - "end": 699, + "end": 682, "ctxt": 0 }, "value": "x", @@ -1743,7 +1743,7 @@ "type": "Identifier", "span": { "start": 685, - "end": 693, + "end": 690, "ctxt": 0 }, "value": "input", diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes2.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes2.json index 1a3245840c5f..c5780e151e78 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 72, - "end": 81, + "end": 73, "ctxt": 0 }, "value": "s", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 83, - "end": 92, + "end": 84, "ctxt": 0 }, "value": "n", @@ -104,7 +104,7 @@ "type": "Identifier", "span": { "start": 94, - "end": 118, + "end": 95, "ctxt": 0 }, "value": "u", @@ -195,7 +195,7 @@ "type": "Identifier", "span": { "start": 120, - "end": 124, + "end": 121, "ctxt": 0 }, "value": "t", @@ -1222,7 +1222,7 @@ "type": "Identifier", "span": { "start": 426, - "end": 435, + "end": 427, "ctxt": 0 }, "value": "s", @@ -1346,7 +1346,7 @@ "type": "Identifier", "span": { "start": 478, - "end": 487, + "end": 479, "ctxt": 0 }, "value": "s", @@ -1938,7 +1938,7 @@ "type": "Identifier", "span": { "start": 834, - "end": 843, + "end": 835, "ctxt": 0 }, "value": "s", @@ -1974,7 +1974,7 @@ "type": "Identifier", "span": { "start": 845, - "end": 858, + "end": 849, "ctxt": 0 }, "value": "cond", @@ -2941,7 +2941,7 @@ "type": "Identifier", "span": { "start": 1442, - "end": 1451, + "end": 1443, "ctxt": 0 }, "value": "s", @@ -3787,7 +3787,7 @@ "type": "Identifier", "span": { "start": 1761, - "end": 1765, + "end": 1762, "ctxt": 0 }, "value": "x", @@ -3918,7 +3918,7 @@ "type": "Identifier", "span": { "start": 1836, - "end": 1840, + "end": 1837, "ctxt": 0 }, "value": "x", @@ -4085,7 +4085,7 @@ "type": "Identifier", "span": { "start": 1861, - "end": 1870, + "end": 1862, "ctxt": 0 }, "value": "s", @@ -4121,7 +4121,7 @@ "type": "Identifier", "span": { "start": 1872, - "end": 1885, + "end": 1876, "ctxt": 0 }, "value": "cond", @@ -4739,7 +4739,7 @@ "type": "Identifier", "span": { "start": 2109, - "end": 2126, + "end": 2110, "ctxt": 0 }, "value": "t", @@ -5205,7 +5205,7 @@ "type": "Identifier", "span": { "start": 2284, - "end": 2288, + "end": 2285, "ctxt": 0 }, "value": "x", @@ -5336,7 +5336,7 @@ "type": "Identifier", "span": { "start": 2332, - "end": 2336, + "end": 2333, "ctxt": 0 }, "value": "x", @@ -5475,7 +5475,7 @@ "type": "Identifier", "span": { "start": 2357, - "end": 2366, + "end": 2358, "ctxt": 0 }, "value": "s", @@ -5747,7 +5747,7 @@ "type": "Identifier", "span": { "start": 2532, - "end": 2542, + "end": 2539, "ctxt": 0 }, "value": "literal", @@ -6975,7 +6975,7 @@ "type": "Identifier", "span": { "start": 3257, - "end": 3270, + "end": 3262, "ctxt": 0 }, "value": "title", @@ -7222,7 +7222,7 @@ "type": "Identifier", "span": { "start": 3399, - "end": 3440, + "end": 3408, "ctxt": 0 }, "value": "transform", diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes3.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes3.json index 9594e49f0805..92c76bb806c8 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes3.json @@ -1297,7 +1297,7 @@ "type": "Identifier", "span": { "start": 580, - "end": 593, + "end": 583, "ctxt": 0 }, "value": "arg", @@ -1478,7 +1478,7 @@ "type": "Identifier", "span": { "start": 630, - "end": 639, + "end": 631, "ctxt": 0 }, "value": "s", @@ -1514,7 +1514,7 @@ "type": "Identifier", "span": { "start": 641, - "end": 650, + "end": 642, "ctxt": 0 }, "value": "n", @@ -1550,7 +1550,7 @@ "type": "Identifier", "span": { "start": 652, - "end": 662, + "end": 653, "ctxt": 0 }, "value": "b", @@ -1586,7 +1586,7 @@ "type": "Identifier", "span": { "start": 664, - "end": 668, + "end": 665, "ctxt": 0 }, "value": "t", @@ -4203,7 +4203,7 @@ "type": "Identifier", "span": { "start": 1772, - "end": 1781, + "end": 1773, "ctxt": 0 }, "value": "s", @@ -4239,7 +4239,7 @@ "type": "Identifier", "span": { "start": 1783, - "end": 1792, + "end": 1784, "ctxt": 0 }, "value": "n", @@ -4275,7 +4275,7 @@ "type": "Identifier", "span": { "start": 1794, - "end": 1804, + "end": 1795, "ctxt": 0 }, "value": "b", @@ -4311,7 +4311,7 @@ "type": "Identifier", "span": { "start": 1806, - "end": 1810, + "end": 1807, "ctxt": 0 }, "value": "t", @@ -5038,7 +5038,7 @@ "type": "Identifier", "span": { "start": 2077, - "end": 2086, + "end": 2078, "ctxt": 0 }, "value": "s", @@ -5074,7 +5074,7 @@ "type": "Identifier", "span": { "start": 2088, - "end": 2097, + "end": 2089, "ctxt": 0 }, "value": "n", @@ -5110,7 +5110,7 @@ "type": "Identifier", "span": { "start": 2099, - "end": 2109, + "end": 2100, "ctxt": 0 }, "value": "b", @@ -5146,7 +5146,7 @@ "type": "Identifier", "span": { "start": 2111, - "end": 2115, + "end": 2112, "ctxt": 0 }, "value": "t", @@ -8441,7 +8441,7 @@ "type": "Identifier", "span": { "start": 3657, - "end": 3679, + "end": 3662, "ctxt": 0 }, "value": "field", @@ -8732,7 +8732,7 @@ "type": "Identifier", "span": { "start": 3737, - "end": 3755, + "end": 3738, "ctxt": 0 }, "value": "x", @@ -8810,7 +8810,7 @@ "type": "Identifier", "span": { "start": 3757, - "end": 3775, + "end": 3758, "ctxt": 0 }, "value": "y", @@ -8888,7 +8888,7 @@ "type": "Identifier", "span": { "start": 3777, - "end": 3795, + "end": 3778, "ctxt": 0 }, "value": "z", @@ -9115,7 +9115,7 @@ "type": "Identifier", "span": { "start": 3924, - "end": 3937, + "end": 3925, "ctxt": 0 }, "value": "x", @@ -9203,7 +9203,7 @@ "type": "Identifier", "span": { "start": 3939, - "end": 3952, + "end": 3940, "ctxt": 0 }, "value": "y", @@ -9291,7 +9291,7 @@ "type": "Identifier", "span": { "start": 3954, - "end": 3967, + "end": 3955, "ctxt": 0 }, "value": "z", @@ -9568,7 +9568,7 @@ "type": "Identifier", "span": { "start": 4073, - "end": 4082, + "end": 4074, "ctxt": 0 }, "value": "x", @@ -9604,7 +9604,7 @@ "type": "Identifier", "span": { "start": 4084, - "end": 4110, + "end": 4085, "ctxt": 0 }, "value": "y", @@ -9812,7 +9812,7 @@ "type": "Identifier", "span": { "start": 4194, - "end": 4203, + "end": 4195, "ctxt": 0 }, "value": "x", @@ -9848,7 +9848,7 @@ "type": "Identifier", "span": { "start": 4205, - "end": 4223, + "end": 4206, "ctxt": 0 }, "value": "y", @@ -10351,7 +10351,7 @@ "type": "Identifier", "span": { "start": 4495, - "end": 4509, + "end": 4501, "ctxt": 0 }, "value": "action", @@ -10682,7 +10682,7 @@ "type": "Identifier", "span": { "start": 4729, - "end": 4738, + "end": 4733, "ctxt": 0 }, "value": "args", @@ -11596,7 +11596,7 @@ "type": "Identifier", "span": { "start": 5033, - "end": 5037, + "end": 5034, "ctxt": 0 }, "value": "t", @@ -11642,7 +11642,7 @@ "type": "Identifier", "span": { "start": 5039, - "end": 5054, + "end": 5040, "ctxt": 0 }, "value": "u", @@ -11716,7 +11716,7 @@ "type": "Identifier", "span": { "start": 5056, - "end": 5081, + "end": 5058, "ctxt": 0 }, "value": "u1", @@ -11832,7 +11832,7 @@ "type": "Identifier", "span": { "start": 5083, - "end": 5108, + "end": 5085, "ctxt": 0 }, "value": "u2", diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes4.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes4.json index ccbbe36c518c..9d5f9ec2a0fb 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes4.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes4.json @@ -20399,7 +20399,7 @@ "type": "Identifier", "span": { "start": 14055, - "end": 14061, + "end": 14058, "ctxt": 0 }, "value": "key", @@ -20744,7 +20744,7 @@ "type": "Identifier", "span": { "start": 14168, - "end": 14174, + "end": 14171, "ctxt": 0 }, "value": "key", @@ -20781,7 +20781,7 @@ "type": "Identifier", "span": { "start": 14176, - "end": 14245, + "end": 14181, "ctxt": 0 }, "value": "value", @@ -21116,7 +21116,7 @@ "type": "Identifier", "span": { "start": 14327, - "end": 14335, + "end": 14332, "ctxt": 0 }, "value": "index", @@ -21412,7 +21412,7 @@ "type": "Identifier", "span": { "start": 14432, - "end": 14440, + "end": 14437, "ctxt": 0 }, "value": "index", @@ -21449,7 +21449,7 @@ "type": "Identifier", "span": { "start": 14442, - "end": 14501, + "end": 14447, "ctxt": 0 }, "value": "value", @@ -22731,7 +22731,7 @@ "type": "Identifier", "span": { "start": 15270, - "end": 15283, + "end": 15271, "ctxt": 0 }, "value": "s", @@ -22973,7 +22973,7 @@ "type": "Identifier", "span": { "start": 15352, - "end": 15365, + "end": 15353, "ctxt": 0 }, "value": "s", @@ -23196,7 +23196,7 @@ "type": "Identifier", "span": { "start": 15432, - "end": 15445, + "end": 15433, "ctxt": 0 }, "value": "s", @@ -23419,7 +23419,7 @@ "type": "Identifier", "span": { "start": 15514, - "end": 15527, + "end": 15515, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes5.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes5.json index a6606fe6a20d..fe789744ad4d 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes5.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes5.json @@ -182,7 +182,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 203, + "end": 194, "ctxt": 0 }, "value": "x", @@ -430,7 +430,7 @@ "type": "Identifier", "span": { "start": 254, - "end": 264, + "end": 255, "ctxt": 0 }, "value": "x", @@ -740,7 +740,7 @@ "type": "Identifier", "span": { "start": 334, - "end": 344, + "end": 335, "ctxt": 0 }, "value": "x", @@ -1087,7 +1087,7 @@ "type": "Identifier", "span": { "start": 418, - "end": 423, + "end": 419, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes6.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes6.json index a8f9300cfca9..e8c4644b4838 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes6.json @@ -327,7 +327,7 @@ "type": "Identifier", "span": { "start": 299, - "end": 329, + "end": 308, "ctxt": 0 }, "value": "eventPath", @@ -663,7 +663,7 @@ "type": "Identifier", "span": { "start": 427, - "end": 439, + "end": 432, "ctxt": 0 }, "value": "scope", @@ -709,7 +709,7 @@ "type": "Identifier", "span": { "start": 441, - "end": 453, + "end": 446, "ctxt": 0 }, "value": "event", diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes7.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes7.json index b13ed167a458..3d11cae02c57 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes7.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes7.json @@ -282,7 +282,7 @@ "type": "Identifier", "span": { "start": 207, - "end": 216, + "end": 208, "ctxt": 0 }, "value": "x", @@ -548,7 +548,7 @@ "type": "Identifier", "span": { "start": 262, - "end": 271, + "end": 263, "ctxt": 0 }, "value": "x", @@ -876,7 +876,7 @@ "type": "Identifier", "span": { "start": 345, - "end": 354, + "end": 346, "ctxt": 0 }, "value": "x", @@ -1222,7 +1222,7 @@ "type": "Identifier", "span": { "start": 423, - "end": 432, + "end": 424, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypesPatterns.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypesPatterns.json index 924eb64c6db3..afbf2d0e4b81 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypesPatterns.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypesPatterns.json @@ -421,7 +421,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 300, + "end": 256, "ctxt": 0 }, "value": "hostSpec", @@ -828,7 +828,7 @@ "type": "Identifier", "span": { "start": 605, - "end": 620, + "end": 606, "ctxt": 0 }, "value": "x", @@ -1224,7 +1224,7 @@ "type": "Identifier", "span": { "start": 776, - "end": 800, + "end": 777, "ctxt": 0 }, "value": "x", @@ -1644,7 +1644,7 @@ "type": "Identifier", "span": { "start": 984, - "end": 998, + "end": 985, "ctxt": 0 }, "value": "x", @@ -2815,7 +2815,7 @@ "type": "Identifier", "span": { "start": 1680, - "end": 1694, + "end": 1681, "ctxt": 0 }, "value": "x", @@ -7588,7 +7588,7 @@ "type": "Identifier", "span": { "start": 4357, - "end": 4381, + "end": 4358, "ctxt": 0 }, "value": "x", @@ -8100,7 +8100,7 @@ "type": "Identifier", "span": { "start": 4623, - "end": 4633, + "end": 4625, "ctxt": 0 }, "value": "id", @@ -8229,7 +8229,7 @@ "type": "Identifier", "span": { "start": 4653, - "end": 4663, + "end": 4655, "ctxt": 0 }, "value": "id", @@ -8436,7 +8436,7 @@ "type": "Identifier", "span": { "start": 4820, - "end": 4907, + "end": 4829, "ctxt": 0 }, "value": "groupName", @@ -8674,7 +8674,7 @@ "type": "Identifier", "span": { "start": 4969, - "end": 5056, + "end": 4978, "ctxt": 0 }, "value": "groupName", @@ -8912,7 +8912,7 @@ "type": "Identifier", "span": { "start": 5119, - "end": 5206, + "end": 5128, "ctxt": 0 }, "value": "groupName", @@ -9150,7 +9150,7 @@ "type": "Identifier", "span": { "start": 5269, - "end": 5356, + "end": 5278, "ctxt": 0 }, "value": "groupName", @@ -9388,7 +9388,7 @@ "type": "Identifier", "span": { "start": 5408, - "end": 5449, + "end": 5411, "ctxt": 0 }, "value": "str", diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.json b/crates/swc_ecma_parser/tests/tsc/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.json index 15ef4f86e0ff..cf96c9920af9 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.json @@ -37,7 +37,7 @@ "type": "Identifier", "span": { "start": 16, - "end": 25, + "end": 17, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.json index d3523db184d6..897c8f533609 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.json @@ -37,7 +37,7 @@ "type": "Identifier", "span": { "start": 30, - "end": 39, + "end": 31, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeAccessibility.json b/crates/swc_ecma_parser/tests/tsc/thisTypeAccessibility.json index b7b5ea16ba51..79b391272306 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeAccessibility.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeAccessibility.json @@ -410,7 +410,7 @@ "type": "Identifier", "span": { "start": 261, - "end": 270, + "end": 262, "ctxt": 0 }, "value": "p", @@ -478,7 +478,7 @@ "type": "Identifier", "span": { "start": 294, - "end": 303, + "end": 295, "ctxt": 0 }, "value": "p", @@ -546,7 +546,7 @@ "type": "Identifier", "span": { "start": 327, - "end": 336, + "end": 328, "ctxt": 0 }, "value": "p", @@ -1028,7 +1028,7 @@ "type": "Identifier", "span": { "start": 573, - "end": 586, + "end": 577, "ctxt": 0 }, "value": "this", @@ -1074,7 +1074,7 @@ "type": "Identifier", "span": { "start": 588, - "end": 597, + "end": 589, "ctxt": 0 }, "value": "p", @@ -1523,7 +1523,7 @@ "type": "Identifier", "span": { "start": 779, - "end": 786, + "end": 783, "ctxt": 0 }, "value": "this", @@ -1569,7 +1569,7 @@ "type": "Identifier", "span": { "start": 788, - "end": 797, + "end": 789, "ctxt": 0 }, "value": "p", @@ -2017,7 +2017,7 @@ "type": "Identifier", "span": { "start": 959, - "end": 966, + "end": 963, "ctxt": 0 }, "value": "this", @@ -2063,7 +2063,7 @@ "type": "Identifier", "span": { "start": 968, - "end": 977, + "end": 969, "ctxt": 0 }, "value": "p", @@ -2582,7 +2582,7 @@ "type": "Identifier", "span": { "start": 1181, - "end": 1204, + "end": 1185, "ctxt": 0 }, "value": "this", @@ -2656,7 +2656,7 @@ "type": "Identifier", "span": { "start": 1206, - "end": 1210, + "end": 1207, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeAndConstraints.json b/crates/swc_ecma_parser/tests/tsc/thisTypeAndConstraints.json index 1c90a1858d79..5656bb93744c 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeAndConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeAndConstraints.json @@ -122,7 +122,7 @@ "type": "Identifier", "span": { "start": 78, - "end": 82, + "end": 79, "ctxt": 0 }, "value": "x", @@ -197,7 +197,7 @@ "type": "Identifier", "span": { "start": 114, - "end": 118, + "end": 115, "ctxt": 0 }, "value": "x", @@ -543,7 +543,7 @@ "type": "Identifier", "span": { "start": 202, - "end": 206, + "end": 203, "ctxt": 0 }, "value": "x", @@ -703,7 +703,7 @@ "type": "Identifier", "span": { "start": 259, - "end": 263, + "end": 260, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeErrors.json b/crates/swc_ecma_parser/tests/tsc/thisTypeErrors.json index 5977d9eb92dc..7d68d4aa6aba 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeErrors.json @@ -226,7 +226,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 72, + "end": 66, "ctxt": 0 }, "value": "x", @@ -755,7 +755,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 248, + "end": 242, "ctxt": 0 }, "value": "x", @@ -1213,7 +1213,7 @@ "type": "Identifier", "span": { "start": 380, - "end": 387, + "end": 381, "ctxt": 0 }, "value": "x", @@ -1423,7 +1423,7 @@ "type": "Identifier", "span": { "start": 479, - "end": 486, + "end": 480, "ctxt": 0 }, "value": "x", @@ -1719,7 +1719,7 @@ "type": "Identifier", "span": { "start": 630, - "end": 637, + "end": 631, "ctxt": 0 }, "value": "x", @@ -1869,7 +1869,7 @@ "type": "Identifier", "span": { "start": 722, - "end": 729, + "end": 723, "ctxt": 0 }, "value": "x", @@ -2008,7 +2008,7 @@ "type": "Identifier", "span": { "start": 812, - "end": 819, + "end": 813, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeErrors2.json b/crates/swc_ecma_parser/tests/tsc/thisTypeErrors2.json index 22f918ca4b68..4071d5975203 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeErrors2.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeErrors2.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 30, - "end": 37, + "end": 31, "ctxt": 0 }, "value": "a", @@ -255,7 +255,7 @@ "type": "Identifier", "span": { "start": 124, - "end": 143, + "end": 128, "ctxt": 0 }, "value": "host", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessors.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessors.json index 8d3fb74b8d96..2ea14cf45122 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessors.json @@ -278,7 +278,7 @@ "type": "Identifier", "span": { "start": 204, - "end": 213, + "end": 208, "ctxt": 0 }, "value": "this", @@ -315,7 +315,7 @@ "type": "Identifier", "span": { "start": 215, - "end": 224, + "end": 216, "ctxt": 0 }, "value": "n", @@ -788,7 +788,7 @@ "type": "Identifier", "span": { "start": 441, - "end": 450, + "end": 445, "ctxt": 0 }, "value": "this", @@ -825,7 +825,7 @@ "type": "Identifier", "span": { "start": 452, - "end": 461, + "end": 453, "ctxt": 0 }, "value": "n", @@ -1238,7 +1238,7 @@ "type": "Identifier", "span": { "start": 647, - "end": 656, + "end": 651, "ctxt": 0 }, "value": "this", @@ -1382,7 +1382,7 @@ "type": "Identifier", "span": { "start": 695, - "end": 704, + "end": 699, "ctxt": 0 }, "value": "this", @@ -1428,7 +1428,7 @@ "type": "Identifier", "span": { "start": 706, - "end": 715, + "end": 707, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessorsNegative.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessorsNegative.json index 6925571e7d5b..b9b2881759b7 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessorsNegative.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessorsNegative.json @@ -407,7 +407,7 @@ "type": "Identifier", "span": { "start": 267, - "end": 276, + "end": 271, "ctxt": 0 }, "value": "this", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInClasses.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInClasses.json index 49598db9150a..1531795ec170 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInClasses.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInClasses.json @@ -101,7 +101,7 @@ "type": "Identifier", "span": { "start": 31, - "end": 38, + "end": 32, "ctxt": 0 }, "value": "x", @@ -832,7 +832,7 @@ "type": "Identifier", "span": { "start": 267, - "end": 274, + "end": 268, "ctxt": 0 }, "value": "x", @@ -921,7 +921,7 @@ "type": "Identifier", "span": { "start": 297, - "end": 304, + "end": 298, "ctxt": 0 }, "value": "x", @@ -1199,7 +1199,7 @@ "type": "Identifier", "span": { "start": 374, - "end": 380, + "end": 375, "ctxt": 0 }, "value": "x", @@ -1381,7 +1381,7 @@ "type": "Identifier", "span": { "start": 437, - "end": 444, + "end": 438, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions.json index 9dcc22b4d5c2..93aa1af3e785 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions.json @@ -174,7 +174,7 @@ "type": "Identifier", "span": { "start": 87, - "end": 97, + "end": 91, "ctxt": 0 }, "value": "this", @@ -209,7 +209,7 @@ "type": "Identifier", "span": { "start": 99, - "end": 108, + "end": 100, "ctxt": 0 }, "value": "m", @@ -362,7 +362,7 @@ "type": "Identifier", "span": { "start": 167, - "end": 174, + "end": 171, "ctxt": 0 }, "value": "this", @@ -408,7 +408,7 @@ "type": "Identifier", "span": { "start": 176, - "end": 185, + "end": 177, "ctxt": 0 }, "value": "m", @@ -561,7 +561,7 @@ "type": "Identifier", "span": { "start": 251, - "end": 268, + "end": 255, "ctxt": 0 }, "value": "this", @@ -639,7 +639,7 @@ "type": "Identifier", "span": { "start": 270, - "end": 279, + "end": 271, "ctxt": 0 }, "value": "m", @@ -792,7 +792,7 @@ "type": "Identifier", "span": { "start": 341, - "end": 351, + "end": 345, "ctxt": 0 }, "value": "this", @@ -828,7 +828,7 @@ "type": "Identifier", "span": { "start": 353, - "end": 362, + "end": 354, "ctxt": 0 }, "value": "m", @@ -1070,7 +1070,7 @@ "type": "Identifier", "span": { "start": 473, - "end": 483, + "end": 477, "ctxt": 0 }, "value": "this", @@ -1138,7 +1138,7 @@ "type": "Identifier", "span": { "start": 512, - "end": 522, + "end": 516, "ctxt": 0 }, "value": "this", @@ -1206,7 +1206,7 @@ "type": "Identifier", "span": { "start": 556, - "end": 573, + "end": 560, "ctxt": 0 }, "value": "this", @@ -1316,7 +1316,7 @@ "type": "Identifier", "span": { "start": 606, - "end": 613, + "end": 610, "ctxt": 0 }, "value": "this", @@ -1394,7 +1394,7 @@ "type": "Identifier", "span": { "start": 641, - "end": 651, + "end": 645, "ctxt": 0 }, "value": "this", @@ -1465,7 +1465,7 @@ "type": "Identifier", "span": { "start": 692, - "end": 711, + "end": 696, "ctxt": 0 }, "value": "this", @@ -1543,7 +1543,7 @@ "type": "Identifier", "span": { "start": 713, - "end": 722, + "end": 714, "ctxt": 0 }, "value": "x", @@ -1684,7 +1684,7 @@ "type": "Identifier", "span": { "start": 777, - "end": 796, + "end": 781, "ctxt": 0 }, "value": "this", @@ -1848,7 +1848,7 @@ "type": "Identifier", "span": { "start": 851, - "end": 860, + "end": 852, "ctxt": 0 }, "value": "n", @@ -3108,7 +3108,7 @@ "type": "Identifier", "span": { "start": 1592, - "end": 1611, + "end": 1596, "ctxt": 0 }, "value": "this", @@ -3177,7 +3177,7 @@ "type": "Identifier", "span": { "start": 1613, - "end": 1622, + "end": 1614, "ctxt": 0 }, "value": "x", @@ -3410,7 +3410,7 @@ "type": "Identifier", "span": { "start": 1717, - "end": 1726, + "end": 1718, "ctxt": 0 }, "value": "x", @@ -4313,7 +4313,7 @@ "type": "Identifier", "span": { "start": 2066, - "end": 2073, + "end": 2070, "ctxt": 0 }, "value": "this", @@ -4350,7 +4350,7 @@ "type": "Identifier", "span": { "start": 2075, - "end": 2084, + "end": 2076, "ctxt": 0 }, "value": "m", @@ -4418,7 +4418,7 @@ "type": "Identifier", "span": { "start": 2171, - "end": 2178, + "end": 2175, "ctxt": 0 }, "value": "this", @@ -4455,7 +4455,7 @@ "type": "Identifier", "span": { "start": 2180, - "end": 2189, + "end": 2181, "ctxt": 0 }, "value": "m", @@ -4539,7 +4539,7 @@ "type": "Identifier", "span": { "start": 2223, - "end": 2241, + "end": 2227, "ctxt": 0 }, "value": "this", @@ -4608,7 +4608,7 @@ "type": "Identifier", "span": { "start": 2243, - "end": 2252, + "end": 2244, "ctxt": 0 }, "value": "m", @@ -4679,7 +4679,7 @@ "type": "Identifier", "span": { "start": 2282, - "end": 2292, + "end": 2286, "ctxt": 0 }, "value": "this", @@ -4706,7 +4706,7 @@ "type": "Identifier", "span": { "start": 2294, - "end": 2303, + "end": 2295, "ctxt": 0 }, "value": "m", @@ -5221,7 +5221,7 @@ "type": "Identifier", "span": { "start": 2653, - "end": 2672, + "end": 2657, "ctxt": 0 }, "value": "this", @@ -5290,7 +5290,7 @@ "type": "Identifier", "span": { "start": 2674, - "end": 2683, + "end": 2675, "ctxt": 0 }, "value": "x", @@ -5454,7 +5454,7 @@ "type": "Identifier", "span": { "start": 2757, - "end": 2774, + "end": 2761, "ctxt": 0 }, "value": "this", @@ -5523,7 +5523,7 @@ "type": "Identifier", "span": { "start": 2776, - "end": 2785, + "end": 2777, "ctxt": 0 }, "value": "x", @@ -5627,7 +5627,7 @@ "type": "Identifier", "span": { "start": 2840, - "end": 2859, + "end": 2844, "ctxt": 0 }, "value": "this", @@ -5696,7 +5696,7 @@ "type": "Identifier", "span": { "start": 2861, - "end": 2870, + "end": 2862, "ctxt": 0 }, "value": "x", @@ -5757,7 +5757,7 @@ "type": "Identifier", "span": { "start": 2893, - "end": 2902, + "end": 2894, "ctxt": 0 }, "value": "x", @@ -5905,7 +5905,7 @@ "type": "Identifier", "span": { "start": 2957, - "end": 2966, + "end": 2958, "ctxt": 0 }, "value": "x", @@ -6053,7 +6053,7 @@ "type": "Identifier", "span": { "start": 3015, - "end": 3025, + "end": 3019, "ctxt": 0 }, "value": "this", @@ -6080,7 +6080,7 @@ "type": "Identifier", "span": { "start": 3027, - "end": 3036, + "end": 3028, "ctxt": 0 }, "value": "x", @@ -6228,7 +6228,7 @@ "type": "Identifier", "span": { "start": 3098, - "end": 3115, + "end": 3102, "ctxt": 0 }, "value": "this", @@ -6297,7 +6297,7 @@ "type": "Identifier", "span": { "start": 3117, - "end": 3126, + "end": 3118, "ctxt": 0 }, "value": "x", @@ -6401,7 +6401,7 @@ "type": "Identifier", "span": { "start": 3192, - "end": 3209, + "end": 3196, "ctxt": 0 }, "value": "this", @@ -6470,7 +6470,7 @@ "type": "Identifier", "span": { "start": 3211, - "end": 3220, + "end": 3212, "ctxt": 0 }, "value": "x", @@ -6574,7 +6574,7 @@ "type": "Identifier", "span": { "start": 3277, - "end": 3284, + "end": 3281, "ctxt": 0 }, "value": "this", @@ -6611,7 +6611,7 @@ "type": "Identifier", "span": { "start": 3286, - "end": 3295, + "end": 3287, "ctxt": 0 }, "value": "m", @@ -6706,7 +6706,7 @@ "type": "Identifier", "span": { "start": 3339, - "end": 3356, + "end": 3343, "ctxt": 0 }, "value": "this", @@ -6775,7 +6775,7 @@ "type": "Identifier", "span": { "start": 3358, - "end": 3367, + "end": 3359, "ctxt": 0 }, "value": "m", @@ -6939,7 +6939,7 @@ "type": "Identifier", "span": { "start": 3436, - "end": 3443, + "end": 3440, "ctxt": 0 }, "value": "this", @@ -6985,7 +6985,7 @@ "type": "Identifier", "span": { "start": 3445, - "end": 3454, + "end": 3446, "ctxt": 0 }, "value": "m", @@ -7200,7 +7200,7 @@ "type": "Identifier", "span": { "start": 3556, - "end": 3573, + "end": 3560, "ctxt": 0 }, "value": "this", @@ -7278,7 +7278,7 @@ "type": "Identifier", "span": { "start": 3575, - "end": 3584, + "end": 3576, "ctxt": 0 }, "value": "m", @@ -8151,7 +8151,7 @@ "type": "Identifier", "span": { "start": 4078, - "end": 4085, + "end": 4082, "ctxt": 0 }, "value": "this", @@ -8197,7 +8197,7 @@ "type": "Identifier", "span": { "start": 4087, - "end": 4096, + "end": 4088, "ctxt": 0 }, "value": "m", @@ -8953,7 +8953,7 @@ "type": "Identifier", "span": { "start": 4449, - "end": 4456, + "end": 4453, "ctxt": 0 }, "value": "this", @@ -8999,7 +8999,7 @@ "type": "Identifier", "span": { "start": 4458, - "end": 4467, + "end": 4459, "ctxt": 0 }, "value": "m", @@ -9276,7 +9276,7 @@ "type": "Identifier", "span": { "start": 4627, - "end": 4637, + "end": 4631, "ctxt": 0 }, "value": "this", @@ -9409,7 +9409,7 @@ "type": "Identifier", "span": { "start": 4679, - "end": 4690, + "end": 4683, "ctxt": 0 }, "value": "this", @@ -9553,7 +9553,7 @@ "type": "Identifier", "span": { "start": 4745, - "end": 4763, + "end": 4749, "ctxt": 0 }, "value": "this", @@ -9895,7 +9895,7 @@ "type": "Identifier", "span": { "start": 4907, - "end": 4917, + "end": 4911, "ctxt": 0 }, "value": "this", @@ -10028,7 +10028,7 @@ "type": "Identifier", "span": { "start": 4959, - "end": 4970, + "end": 4963, "ctxt": 0 }, "value": "this", @@ -10901,7 +10901,7 @@ "type": "Identifier", "span": { "start": 5622, - "end": 5629, + "end": 5626, "ctxt": 0 }, "value": "this", @@ -11036,7 +11036,7 @@ "type": "Identifier", "span": { "start": 5677, - "end": 5694, + "end": 5681, "ctxt": 0 }, "value": "this", @@ -11203,7 +11203,7 @@ "type": "Identifier", "span": { "start": 5736, - "end": 5745, + "end": 5740, "ctxt": 0 }, "value": "this", @@ -11511,7 +11511,7 @@ "type": "Identifier", "span": { "start": 5944, - "end": 5954, + "end": 5948, "ctxt": 0 }, "value": "this", @@ -11538,7 +11538,7 @@ "type": "Identifier", "span": { "start": 5956, - "end": 5965, + "end": 5957, "ctxt": 0 }, "value": "x", @@ -11606,7 +11606,7 @@ "type": "Identifier", "span": { "start": 5989, - "end": 6020, + "end": 5993, "ctxt": 0 }, "value": "this", @@ -11973,7 +11973,7 @@ "type": "Identifier", "span": { "start": 6118, - "end": 6127, + "end": 6119, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions2.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions2.json index 02065afa53d5..6ca48beb68f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions2.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions2.json @@ -75,7 +75,7 @@ "type": "Identifier", "span": { "start": 129, - "end": 139, + "end": 133, "ctxt": 0 }, "value": "this", @@ -161,7 +161,7 @@ "type": "Identifier", "span": { "start": 169, - "end": 178, + "end": 173, "ctxt": 0 }, "value": "this", @@ -335,7 +335,7 @@ "type": "Identifier", "span": { "start": 276, - "end": 285, + "end": 280, "ctxt": 0 }, "value": "this", @@ -700,7 +700,7 @@ "type": "Identifier", "span": { "start": 538, - "end": 547, + "end": 539, "ctxt": 0 }, "value": "n", @@ -796,7 +796,7 @@ "type": "Identifier", "span": { "start": 596, - "end": 617, + "end": 600, "ctxt": 0 }, "value": "args", @@ -885,7 +885,7 @@ "type": "Identifier", "span": { "start": 651, - "end": 675, + "end": 655, "ctxt": 0 }, "value": "args", @@ -974,7 +974,7 @@ "type": "Identifier", "span": { "start": 708, - "end": 728, + "end": 711, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions3.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions3.json index ee853a83891e..afa00ae755b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions3.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions3.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 52, - "end": 63, + "end": 56, "ctxt": 0 }, "value": "prop", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions4.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions4.json index d4a059baee12..d6e26acc96a4 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions4.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions4.json @@ -174,7 +174,7 @@ "type": "Identifier", "span": { "start": 102, - "end": 110, + "end": 105, "ctxt": 0 }, "value": "obj", @@ -290,7 +290,7 @@ "type": "Identifier", "span": { "start": 166, - "end": 190, + "end": 168, "ctxt": 0 }, "value": "cb", @@ -314,7 +314,7 @@ "type": "Identifier", "span": { "start": 171, - "end": 183, + "end": 175, "ctxt": 0 }, "value": "name", @@ -399,7 +399,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 251, + "end": 222, "ctxt": 0 }, "value": "this", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInInterfaces.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInInterfaces.json index 796ab48886fa..6feb6de13ef9 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInInterfaces.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInInterfaces.json @@ -99,7 +99,7 @@ "type": "Identifier", "span": { "start": 35, - "end": 42, + "end": 36, "ctxt": 0 }, "value": "x", @@ -183,7 +183,7 @@ "type": "Identifier", "span": { "start": 74, - "end": 81, + "end": 75, "ctxt": 0 }, "value": "x", @@ -236,7 +236,7 @@ "type": "Identifier", "span": { "start": 99, - "end": 106, + "end": 100, "ctxt": 0 }, "value": "x", @@ -884,7 +884,7 @@ "type": "Identifier", "span": { "start": 304, - "end": 311, + "end": 305, "ctxt": 0 }, "value": "x", @@ -969,7 +969,7 @@ "type": "Identifier", "span": { "start": 334, - "end": 341, + "end": 335, "ctxt": 0 }, "value": "x", @@ -1235,7 +1235,7 @@ "type": "Identifier", "span": { "start": 411, - "end": 417, + "end": 412, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals.json index d43f7de11dae..097da36aa520 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals.json @@ -439,7 +439,7 @@ "type": "Identifier", "span": { "start": 297, - "end": 306, + "end": 298, "ctxt": 0 }, "value": "n", @@ -568,7 +568,7 @@ "type": "Identifier", "span": { "start": 355, - "end": 364, + "end": 356, "ctxt": 0 }, "value": "n", @@ -999,7 +999,7 @@ "type": "Identifier", "span": { "start": 586, - "end": 595, + "end": 587, "ctxt": 0 }, "value": "n", @@ -1067,7 +1067,7 @@ "type": "Identifier", "span": { "start": 615, - "end": 624, + "end": 616, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals2.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals2.json index e272c85e220e..d883922e68a0 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals2.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals2.json @@ -657,7 +657,7 @@ "type": "Identifier", "span": { "start": 613, - "end": 623, + "end": 615, "ctxt": 0 }, "value": "dx", @@ -684,7 +684,7 @@ "type": "Identifier", "span": { "start": 625, - "end": 635, + "end": 627, "ctxt": 0 }, "value": "dy", @@ -711,7 +711,7 @@ "type": "Identifier", "span": { "start": 637, - "end": 648, + "end": 639, "ctxt": 0 }, "value": "dz", @@ -2577,7 +2577,7 @@ "type": "Identifier", "span": { "start": 1450, - "end": 1458, + "end": 1451, "ctxt": 0 }, "value": "p", @@ -3072,7 +3072,7 @@ "type": "Identifier", "span": { "start": 1659, - "end": 1686, + "end": 1660, "ctxt": 0 }, "value": "p", @@ -3868,7 +3868,7 @@ "type": "Identifier", "span": { "start": 2139, - "end": 2167, + "end": 2143, "ctxt": 0 }, "value": "desc", @@ -4242,7 +4242,7 @@ "type": "Identifier", "span": { "start": 2256, - "end": 2266, + "end": 2258, "ctxt": 0 }, "value": "dx", @@ -4278,7 +4278,7 @@ "type": "Identifier", "span": { "start": 2268, - "end": 2278, + "end": 2270, "ctxt": 0 }, "value": "dy", @@ -4742,7 +4742,7 @@ "type": "Identifier", "span": { "start": 2648, - "end": 2676, + "end": 2652, "ctxt": 0 }, "value": "desc", @@ -5116,7 +5116,7 @@ "type": "Identifier", "span": { "start": 2766, - "end": 2776, + "end": 2768, "ctxt": 0 }, "value": "dx", @@ -5152,7 +5152,7 @@ "type": "Identifier", "span": { "start": 2778, - "end": 2788, + "end": 2780, "ctxt": 0 }, "value": "dy", @@ -5502,7 +5502,7 @@ "type": "Identifier", "span": { "start": 3052, - "end": 3060, + "end": 3057, "ctxt": 0 }, "value": "value", @@ -5772,7 +5772,7 @@ "type": "Identifier", "span": { "start": 3187, - "end": 3193, + "end": 3190, "ctxt": 0 }, "value": "obj", @@ -5818,7 +5818,7 @@ "type": "Identifier", "span": { "start": 3195, - "end": 3202, + "end": 3199, "ctxt": 0 }, "value": "name", @@ -5864,7 +5864,7 @@ "type": "Identifier", "span": { "start": 3204, - "end": 3235, + "end": 3208, "ctxt": 0 }, "value": "desc", @@ -6210,7 +6210,7 @@ "type": "Identifier", "span": { "start": 3292, - "end": 3298, + "end": 3295, "ctxt": 0 }, "value": "obj", @@ -6256,7 +6256,7 @@ "type": "Identifier", "span": { "start": 3300, - "end": 3335, + "end": 3305, "ctxt": 0 }, "value": "descs", @@ -6880,7 +6880,7 @@ "type": "Identifier", "span": { "start": 3502, - "end": 3515, + "end": 3507, "ctxt": 0 }, "value": "value", @@ -7325,7 +7325,7 @@ "type": "Identifier", "span": { "start": 3726, - "end": 3739, + "end": 3731, "ctxt": 0 }, "value": "value", @@ -8154,7 +8154,7 @@ "type": "Identifier", "span": { "start": 4038, - "end": 4046, + "end": 4043, "ctxt": 0 }, "value": "value", @@ -8704,7 +8704,7 @@ "type": "Identifier", "span": { "start": 4217, - "end": 4245, + "end": 4224, "ctxt": 0 }, "value": "options", @@ -9158,7 +9158,7 @@ "type": "Identifier", "span": { "start": 4341, - "end": 4350, + "end": 4342, "ctxt": 0 }, "value": "x", @@ -9442,7 +9442,7 @@ "type": "Identifier", "span": { "start": 4574, - "end": 4587, + "end": 4579, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInTaggedTemplateCall.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInTaggedTemplateCall.json index b23381798581..7ec7977572a9 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInTaggedTemplateCall.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInTaggedTemplateCall.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 49, - "end": 66, + "end": 53, "ctxt": 0 }, "value": "this", @@ -122,7 +122,7 @@ "type": "Identifier", "span": { "start": 68, - "end": 106, + "end": 75, "ctxt": 0 }, "value": "strings", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInTypePredicate.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInTypePredicate.json index 0abca052a110..9b62f1df54c2 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInTypePredicate.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInTypePredicate.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 28, - "end": 61, + "end": 29, "ctxt": 0 }, "value": "f", @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 32, - "end": 42, + "end": 36, "ctxt": 0 }, "value": "this", @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 44, - "end": 50, + "end": 45, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeOptionalCall.json b/crates/swc_ecma_parser/tests/tsc/thisTypeOptionalCall.json index a134c07ed53f..4c7c7f2e1f54 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeOptionalCall.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeOptionalCall.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 157, + "end": 154, "ctxt": 0 }, "value": "obj", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 159, - "end": 203, + "end": 161, "ctxt": 0 }, "value": "fn", @@ -117,7 +117,7 @@ "type": "Identifier", "span": { "start": 165, - "end": 172, + "end": 169, "ctxt": 0 }, "value": "this", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeSyntacticContext.json b/crates/swc_ecma_parser/tests/tsc/thisTypeSyntacticContext.json index 9cdbabf23648..58cefffbd6cf 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeSyntacticContext.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeSyntacticContext.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 12, - "end": 31, + "end": 16, "ctxt": 0 }, "value": "this", @@ -242,7 +242,7 @@ "type": "Identifier", "span": { "start": 68, - "end": 87, + "end": 72, "ctxt": 0 }, "value": "this", diff --git a/crates/swc_ecma_parser/tests/tsc/throwStatements.json b/crates/swc_ecma_parser/tests/tsc/throwStatements.json index 17dac1f4b338..a362a603bda3 100644 --- a/crates/swc_ecma_parser/tests/tsc/throwStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/throwStatements.json @@ -504,7 +504,7 @@ "type": "Identifier", "span": { "start": 203, - "end": 212, + "end": 204, "ctxt": 0 }, "value": "x", @@ -724,7 +724,7 @@ "type": "Identifier", "span": { "start": 322, - "end": 331, + "end": 323, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/twoMergedInterfacesWithDifferingOverloads.json b/crates/swc_ecma_parser/tests/tsc/twoMergedInterfacesWithDifferingOverloads.json index 202b063cde03..6ef67e030014 100644 --- a/crates/swc_ecma_parser/tests/tsc/twoMergedInterfacesWithDifferingOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/twoMergedInterfacesWithDifferingOverloads.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 85, - "end": 94, + "end": 86, "ctxt": 0 }, "value": "x", @@ -127,7 +127,7 @@ "type": "Identifier", "span": { "start": 113, - "end": 122, + "end": 114, "ctxt": 0 }, "value": "x", @@ -226,7 +226,7 @@ "type": "Identifier", "span": { "start": 158, - "end": 165, + "end": 159, "ctxt": 0 }, "value": "x", @@ -377,7 +377,7 @@ "type": "Identifier", "span": { "start": 202, - "end": 206, + "end": 203, "ctxt": 0 }, "value": "x", @@ -455,7 +455,7 @@ "type": "Identifier", "span": { "start": 225, - "end": 234, + "end": 226, "ctxt": 0 }, "value": "x", @@ -586,7 +586,7 @@ "type": "Identifier", "span": { "start": 273, - "end": 277, + "end": 274, "ctxt": 0 }, "value": "x", @@ -674,7 +674,7 @@ "type": "Identifier", "span": { "start": 294, - "end": 301, + "end": 295, "ctxt": 0 }, "value": "x", @@ -998,7 +998,7 @@ "type": "Identifier", "span": { "start": 424, - "end": 428, + "end": 425, "ctxt": 0 }, "value": "x", @@ -1035,7 +1035,7 @@ "type": "Identifier", "span": { "start": 430, - "end": 434, + "end": 431, "ctxt": 0 }, "value": "y", @@ -1113,7 +1113,7 @@ "type": "Identifier", "span": { "start": 453, - "end": 462, + "end": 454, "ctxt": 0 }, "value": "x", @@ -1140,7 +1140,7 @@ "type": "Identifier", "span": { "start": 464, - "end": 473, + "end": 465, "ctxt": 0 }, "value": "y", @@ -1294,7 +1294,7 @@ "type": "Identifier", "span": { "start": 518, - "end": 522, + "end": 519, "ctxt": 0 }, "value": "x", @@ -1331,7 +1331,7 @@ "type": "Identifier", "span": { "start": 524, - "end": 528, + "end": 525, "ctxt": 0 }, "value": "y", @@ -1832,7 +1832,7 @@ "type": "Identifier", "span": { "start": 694, - "end": 698, + "end": 695, "ctxt": 0 }, "value": "x", @@ -1869,7 +1869,7 @@ "type": "Identifier", "span": { "start": 700, - "end": 704, + "end": 701, "ctxt": 0 }, "value": "y", @@ -2075,7 +2075,7 @@ "type": "Identifier", "span": { "start": 744, - "end": 748, + "end": 745, "ctxt": 0 }, "value": "x", @@ -2112,7 +2112,7 @@ "type": "Identifier", "span": { "start": 750, - "end": 754, + "end": 751, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/twoMergedInterfacesWithDifferingOverloads2.json b/crates/swc_ecma_parser/tests/tsc/twoMergedInterfacesWithDifferingOverloads2.json index 355473cbbe6d..b48277383204 100644 --- a/crates/swc_ecma_parser/tests/tsc/twoMergedInterfacesWithDifferingOverloads2.json +++ b/crates/swc_ecma_parser/tests/tsc/twoMergedInterfacesWithDifferingOverloads2.json @@ -73,7 +73,7 @@ "type": "Identifier", "span": { "start": 36, - "end": 45, + "end": 37, "ctxt": 0 }, "value": "x", @@ -159,7 +159,7 @@ "type": "Identifier", "span": { "start": 78, - "end": 87, + "end": 79, "ctxt": 0 }, "value": "x", @@ -186,7 +186,7 @@ "type": "Identifier", "span": { "start": 89, - "end": 98, + "end": 90, "ctxt": 0 }, "value": "y", @@ -614,7 +614,7 @@ "type": "Identifier", "span": { "start": 231, - "end": 235, + "end": 232, "ctxt": 0 }, "value": "x", @@ -752,7 +752,7 @@ "type": "Identifier", "span": { "start": 278, - "end": 282, + "end": 279, "ctxt": 0 }, "value": "x", @@ -789,7 +789,7 @@ "type": "Identifier", "span": { "start": 284, - "end": 293, + "end": 285, "ctxt": 0 }, "value": "y", @@ -854,7 +854,7 @@ "type": "Identifier", "span": { "start": 311, - "end": 315, + "end": 312, "ctxt": 0 }, "value": "x", @@ -891,7 +891,7 @@ "type": "Identifier", "span": { "start": 317, - "end": 321, + "end": 318, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/typeAliases.json b/crates/swc_ecma_parser/tests/tsc/typeAliases.json index 9fe0e13c980a..a07f029a6092 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeAliases.json +++ b/crates/swc_ecma_parser/tests/tsc/typeAliases.json @@ -2174,7 +2174,7 @@ "type": "Identifier", "span": { "start": 860, - "end": 866, + "end": 862, "ctxt": 0 }, "value": "t1", @@ -2220,7 +2220,7 @@ "type": "Identifier", "span": { "start": 868, - "end": 875, + "end": 870, "ctxt": 0 }, "value": "t2", @@ -2598,7 +2598,7 @@ "type": "Identifier", "span": { "start": 986, - "end": 992, + "end": 987, "ctxt": 0 }, "value": "x", @@ -2687,7 +2687,7 @@ "type": "Identifier", "span": { "start": 1027, - "end": 1037, + "end": 1028, "ctxt": 0 }, "value": "x", @@ -2775,7 +2775,7 @@ "type": "Identifier", "span": { "start": 1071, - "end": 1077, + "end": 1072, "ctxt": 0 }, "value": "x", @@ -2943,7 +2943,7 @@ "type": "Identifier", "span": { "start": 1149, - "end": 1158, + "end": 1150, "ctxt": 0 }, "value": "a", @@ -3022,7 +3022,7 @@ "type": "Identifier", "span": { "start": 1191, - "end": 1200, + "end": 1192, "ctxt": 0 }, "value": "a", @@ -3265,7 +3265,7 @@ "type": "Identifier", "span": { "start": 1299, - "end": 1318, + "end": 1300, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInference.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInference.json index e4b1182b0c90..0e0d0512558b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInference.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInference.json @@ -218,7 +218,7 @@ "type": "Identifier", "span": { "start": 205, - "end": 214, + "end": 206, "ctxt": 0 }, "value": "n", @@ -483,7 +483,7 @@ "type": "Identifier", "span": { "start": 418, - "end": 422, + "end": 419, "ctxt": 0 }, "value": "n", @@ -529,7 +529,7 @@ "type": "Identifier", "span": { "start": 424, - "end": 433, + "end": 425, "ctxt": 0 }, "value": "m", @@ -792,7 +792,7 @@ "type": "Identifier", "span": { "start": 610, - "end": 627, + "end": 611, "ctxt": 0 }, "value": "n", @@ -816,7 +816,7 @@ "type": "Identifier", "span": { "start": 614, - "end": 618, + "end": 615, "ctxt": 0 }, "value": "x", @@ -1262,7 +1262,7 @@ "type": "Identifier", "span": { "start": 784, - "end": 807, + "end": 785, "ctxt": 0 }, "value": "n", @@ -1286,7 +1286,7 @@ "type": "Identifier", "span": { "start": 788, - "end": 792, + "end": 789, "ctxt": 0 }, "value": "x", @@ -1323,7 +1323,7 @@ "type": "Identifier", "span": { "start": 794, - "end": 798, + "end": 795, "ctxt": 0 }, "value": "y", @@ -1894,7 +1894,7 @@ "type": "Identifier", "span": { "start": 1139, - "end": 1156, + "end": 1147, "ctxt": 0 }, "value": "producer", @@ -2236,7 +2236,7 @@ "type": "Identifier", "span": { "start": 1428, - "end": 1432, + "end": 1429, "ctxt": 0 }, "value": "n", @@ -2282,7 +2282,7 @@ "type": "Identifier", "span": { "start": 1434, - "end": 1451, + "end": 1435, "ctxt": 0 }, "value": "f", @@ -2306,7 +2306,7 @@ "type": "Identifier", "span": { "start": 1438, - "end": 1442, + "end": 1439, "ctxt": 0 }, "value": "x", @@ -2703,7 +2703,7 @@ "type": "Identifier", "span": { "start": 1745, - "end": 1749, + "end": 1746, "ctxt": 0 }, "value": "n", @@ -2749,7 +2749,7 @@ "type": "Identifier", "span": { "start": 1751, - "end": 1768, + "end": 1752, "ctxt": 0 }, "value": "f", @@ -2773,7 +2773,7 @@ "type": "Identifier", "span": { "start": 1755, - "end": 1759, + "end": 1756, "ctxt": 0 }, "value": "x", @@ -3170,7 +3170,7 @@ "type": "Identifier", "span": { "start": 2027, - "end": 2041, + "end": 2028, "ctxt": 0 }, "value": "a", @@ -3194,7 +3194,7 @@ "type": "Identifier", "span": { "start": 2031, - "end": 2035, + "end": 2032, "ctxt": 0 }, "value": "a", @@ -3272,7 +3272,7 @@ "type": "Identifier", "span": { "start": 2043, - "end": 2057, + "end": 2044, "ctxt": 0 }, "value": "b", @@ -3296,7 +3296,7 @@ "type": "Identifier", "span": { "start": 2047, - "end": 2051, + "end": 2048, "ctxt": 0 }, "value": "b", @@ -3374,7 +3374,7 @@ "type": "Identifier", "span": { "start": 2059, - "end": 2073, + "end": 2060, "ctxt": 0 }, "value": "c", @@ -3398,7 +3398,7 @@ "type": "Identifier", "span": { "start": 2063, - "end": 2067, + "end": 2064, "ctxt": 0 }, "value": "c", @@ -4056,7 +4056,7 @@ "type": "Identifier", "span": { "start": 2385, - "end": 2399, + "end": 2386, "ctxt": 0 }, "value": "a", @@ -4080,7 +4080,7 @@ "type": "Identifier", "span": { "start": 2389, - "end": 2393, + "end": 2390, "ctxt": 0 }, "value": "a", @@ -4158,7 +4158,7 @@ "type": "Identifier", "span": { "start": 2401, - "end": 2415, + "end": 2402, "ctxt": 0 }, "value": "b", @@ -4182,7 +4182,7 @@ "type": "Identifier", "span": { "start": 2405, - "end": 2409, + "end": 2406, "ctxt": 0 }, "value": "b", @@ -4260,7 +4260,7 @@ "type": "Identifier", "span": { "start": 2417, - "end": 2431, + "end": 2418, "ctxt": 0 }, "value": "c", @@ -4284,7 +4284,7 @@ "type": "Identifier", "span": { "start": 2421, - "end": 2425, + "end": 2422, "ctxt": 0 }, "value": "c", @@ -5024,7 +5024,7 @@ "type": "Identifier", "span": { "start": 2714, - "end": 2718, + "end": 2715, "ctxt": 0 }, "value": "n", @@ -5346,7 +5346,7 @@ "type": "Identifier", "span": { "start": 2946, - "end": 2950, + "end": 2947, "ctxt": 0 }, "value": "a", @@ -5392,7 +5392,7 @@ "type": "Identifier", "span": { "start": 2952, - "end": 2956, + "end": 2953, "ctxt": 0 }, "value": "b", @@ -5438,7 +5438,7 @@ "type": "Identifier", "span": { "start": 2958, - "end": 2962, + "end": 2959, "ctxt": 0 }, "value": "c", diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceConstructSignatures.json index ba1f89d2fa49..899cc1566bc9 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceConstructSignatures.json @@ -299,7 +299,7 @@ "type": "Identifier", "span": { "start": 264, - "end": 273, + "end": 265, "ctxt": 0 }, "value": "n", @@ -622,7 +622,7 @@ "type": "Identifier", "span": { "start": 538, - "end": 542, + "end": 539, "ctxt": 0 }, "value": "n", @@ -659,7 +659,7 @@ "type": "Identifier", "span": { "start": 544, - "end": 553, + "end": 545, "ctxt": 0 }, "value": "m", @@ -1062,7 +1062,7 @@ "type": "Identifier", "span": { "start": 833, - "end": 850, + "end": 834, "ctxt": 0 }, "value": "n", @@ -1086,7 +1086,7 @@ "type": "Identifier", "span": { "start": 837, - "end": 841, + "end": 838, "ctxt": 0 }, "value": "x", @@ -1590,7 +1590,7 @@ "type": "Identifier", "span": { "start": 1066, - "end": 1089, + "end": 1067, "ctxt": 0 }, "value": "n", @@ -1614,7 +1614,7 @@ "type": "Identifier", "span": { "start": 1070, - "end": 1074, + "end": 1071, "ctxt": 0 }, "value": "x", @@ -1651,7 +1651,7 @@ "type": "Identifier", "span": { "start": 1076, - "end": 1080, + "end": 1077, "ctxt": 0 }, "value": "y", @@ -2280,7 +2280,7 @@ "type": "Identifier", "span": { "start": 1480, - "end": 1497, + "end": 1488, "ctxt": 0 }, "value": "producer", @@ -2680,7 +2680,7 @@ "type": "Identifier", "span": { "start": 1828, - "end": 1832, + "end": 1829, "ctxt": 0 }, "value": "n", @@ -2717,7 +2717,7 @@ "type": "Identifier", "span": { "start": 1834, - "end": 1851, + "end": 1835, "ctxt": 0 }, "value": "f", @@ -2741,7 +2741,7 @@ "type": "Identifier", "span": { "start": 1838, - "end": 1842, + "end": 1839, "ctxt": 0 }, "value": "x", @@ -3319,7 +3319,7 @@ "type": "Identifier", "span": { "start": 2269, - "end": 2273, + "end": 2270, "ctxt": 0 }, "value": "n", @@ -3356,7 +3356,7 @@ "type": "Identifier", "span": { "start": 2275, - "end": 2292, + "end": 2276, "ctxt": 0 }, "value": "f", @@ -3380,7 +3380,7 @@ "type": "Identifier", "span": { "start": 2279, - "end": 2283, + "end": 2280, "ctxt": 0 }, "value": "x", @@ -3958,7 +3958,7 @@ "type": "Identifier", "span": { "start": 2675, - "end": 2689, + "end": 2676, "ctxt": 0 }, "value": "a", @@ -3982,7 +3982,7 @@ "type": "Identifier", "span": { "start": 2679, - "end": 2683, + "end": 2680, "ctxt": 0 }, "value": "a", @@ -4051,7 +4051,7 @@ "type": "Identifier", "span": { "start": 2691, - "end": 2705, + "end": 2692, "ctxt": 0 }, "value": "b", @@ -4075,7 +4075,7 @@ "type": "Identifier", "span": { "start": 2695, - "end": 2699, + "end": 2696, "ctxt": 0 }, "value": "b", @@ -4144,7 +4144,7 @@ "type": "Identifier", "span": { "start": 2707, - "end": 2721, + "end": 2708, "ctxt": 0 }, "value": "c", @@ -4168,7 +4168,7 @@ "type": "Identifier", "span": { "start": 2711, - "end": 2715, + "end": 2712, "ctxt": 0 }, "value": "c", @@ -5093,7 +5093,7 @@ "type": "Identifier", "span": { "start": 3180, - "end": 3194, + "end": 3181, "ctxt": 0 }, "value": "a", @@ -5117,7 +5117,7 @@ "type": "Identifier", "span": { "start": 3184, - "end": 3188, + "end": 3185, "ctxt": 0 }, "value": "a", @@ -5186,7 +5186,7 @@ "type": "Identifier", "span": { "start": 3196, - "end": 3210, + "end": 3197, "ctxt": 0 }, "value": "b", @@ -5210,7 +5210,7 @@ "type": "Identifier", "span": { "start": 3200, - "end": 3204, + "end": 3201, "ctxt": 0 }, "value": "b", @@ -5279,7 +5279,7 @@ "type": "Identifier", "span": { "start": 3212, - "end": 3226, + "end": 3213, "ctxt": 0 }, "value": "c", @@ -5303,7 +5303,7 @@ "type": "Identifier", "span": { "start": 3216, - "end": 3220, + "end": 3217, "ctxt": 0 }, "value": "c", @@ -6101,7 +6101,7 @@ "type": "Identifier", "span": { "start": 3566, - "end": 3570, + "end": 3567, "ctxt": 0 }, "value": "n", @@ -6462,7 +6462,7 @@ "type": "Identifier", "span": { "start": 3841, - "end": 3845, + "end": 3842, "ctxt": 0 }, "value": "a", @@ -6499,7 +6499,7 @@ "type": "Identifier", "span": { "start": 3847, - "end": 3851, + "end": 3848, "ctxt": 0 }, "value": "b", @@ -6536,7 +6536,7 @@ "type": "Identifier", "span": { "start": 3853, - "end": 3857, + "end": 3854, "ctxt": 0 }, "value": "c", diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceErrors.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceErrors.json index f35739ac6316..55f39ab895d7 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceErrors.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 123, - "end": 127, + "end": 124, "ctxt": 0 }, "value": "n", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 129, - "end": 138, + "end": 130, "ctxt": 0 }, "value": "m", @@ -286,7 +286,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 365, + "end": 362, "ctxt": 0 }, "value": "n", @@ -332,7 +332,7 @@ "type": "Identifier", "span": { "start": 367, - "end": 384, + "end": 368, "ctxt": 0 }, "value": "f", @@ -356,7 +356,7 @@ "type": "Identifier", "span": { "start": 371, - "end": 375, + "end": 372, "ctxt": 0 }, "value": "x", @@ -637,7 +637,7 @@ "type": "Identifier", "span": { "start": 624, - "end": 628, + "end": 625, "ctxt": 0 }, "value": "n", @@ -683,7 +683,7 @@ "type": "Identifier", "span": { "start": 630, - "end": 647, + "end": 631, "ctxt": 0 }, "value": "f", @@ -707,7 +707,7 @@ "type": "Identifier", "span": { "start": 634, - "end": 638, + "end": 635, "ctxt": 0 }, "value": "x", @@ -988,7 +988,7 @@ "type": "Identifier", "span": { "start": 852, - "end": 866, + "end": 853, "ctxt": 0 }, "value": "a", @@ -1012,7 +1012,7 @@ "type": "Identifier", "span": { "start": 856, - "end": 860, + "end": 857, "ctxt": 0 }, "value": "a", @@ -1090,7 +1090,7 @@ "type": "Identifier", "span": { "start": 868, - "end": 882, + "end": 869, "ctxt": 0 }, "value": "b", @@ -1114,7 +1114,7 @@ "type": "Identifier", "span": { "start": 872, - "end": 876, + "end": 873, "ctxt": 0 }, "value": "b", @@ -1192,7 +1192,7 @@ "type": "Identifier", "span": { "start": 884, - "end": 898, + "end": 885, "ctxt": 0 }, "value": "c", @@ -1216,7 +1216,7 @@ "type": "Identifier", "span": { "start": 888, - "end": 892, + "end": 889, "ctxt": 0 }, "value": "c", diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceTransitiveConstraints.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceTransitiveConstraints.json index 38c16736cc25..d32172d5423a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceTransitiveConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceTransitiveConstraints.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 56, - "end": 60, + "end": 57, "ctxt": 0 }, "value": "a", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 62, - "end": 66, + "end": 63, "ctxt": 0 }, "value": "b", @@ -124,7 +124,7 @@ "type": "Identifier", "span": { "start": 68, - "end": 72, + "end": 69, "ctxt": 0 }, "value": "c", diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithConstraints.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithConstraints.json index ffa129553a52..d2b11e059a49 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithConstraints.json @@ -226,7 +226,7 @@ "type": "Identifier", "span": { "start": 231, - "end": 240, + "end": 232, "ctxt": 0 }, "value": "n", @@ -499,7 +499,7 @@ "type": "Identifier", "span": { "start": 472, - "end": 476, + "end": 473, "ctxt": 0 }, "value": "n", @@ -545,7 +545,7 @@ "type": "Identifier", "span": { "start": 478, - "end": 487, + "end": 479, "ctxt": 0 }, "value": "m", @@ -990,7 +990,7 @@ "type": "Identifier", "span": { "start": 780, - "end": 797, + "end": 781, "ctxt": 0 }, "value": "n", @@ -1014,7 +1014,7 @@ "type": "Identifier", "span": { "start": 784, - "end": 788, + "end": 785, "ctxt": 0 }, "value": "x", @@ -1468,7 +1468,7 @@ "type": "Identifier", "span": { "start": 984, - "end": 1007, + "end": 985, "ctxt": 0 }, "value": "n", @@ -1492,7 +1492,7 @@ "type": "Identifier", "span": { "start": 988, - "end": 992, + "end": 989, "ctxt": 0 }, "value": "x", @@ -1529,7 +1529,7 @@ "type": "Identifier", "span": { "start": 994, - "end": 998, + "end": 995, "ctxt": 0 }, "value": "y", @@ -2116,7 +2116,7 @@ "type": "Identifier", "span": { "start": 1354, - "end": 1371, + "end": 1362, "ctxt": 0 }, "value": "producer", @@ -2476,7 +2476,7 @@ "type": "Identifier", "span": { "start": 1678, - "end": 1682, + "end": 1679, "ctxt": 0 }, "value": "n", @@ -2522,7 +2522,7 @@ "type": "Identifier", "span": { "start": 1684, - "end": 1701, + "end": 1685, "ctxt": 0 }, "value": "f", @@ -2546,7 +2546,7 @@ "type": "Identifier", "span": { "start": 1688, - "end": 1692, + "end": 1689, "ctxt": 0 }, "value": "x", @@ -3074,7 +3074,7 @@ "type": "Identifier", "span": { "start": 2082, - "end": 2086, + "end": 2083, "ctxt": 0 }, "value": "n", @@ -3120,7 +3120,7 @@ "type": "Identifier", "span": { "start": 2088, - "end": 2105, + "end": 2089, "ctxt": 0 }, "value": "f", @@ -3144,7 +3144,7 @@ "type": "Identifier", "span": { "start": 2092, - "end": 2096, + "end": 2093, "ctxt": 0 }, "value": "x", @@ -3672,7 +3672,7 @@ "type": "Identifier", "span": { "start": 2460, - "end": 2474, + "end": 2461, "ctxt": 0 }, "value": "a", @@ -3696,7 +3696,7 @@ "type": "Identifier", "span": { "start": 2464, - "end": 2468, + "end": 2465, "ctxt": 0 }, "value": "a", @@ -3774,7 +3774,7 @@ "type": "Identifier", "span": { "start": 2476, - "end": 2490, + "end": 2477, "ctxt": 0 }, "value": "b", @@ -3798,7 +3798,7 @@ "type": "Identifier", "span": { "start": 2480, - "end": 2484, + "end": 2481, "ctxt": 0 }, "value": "b", @@ -3876,7 +3876,7 @@ "type": "Identifier", "span": { "start": 2492, - "end": 2506, + "end": 2493, "ctxt": 0 }, "value": "c", @@ -3900,7 +3900,7 @@ "type": "Identifier", "span": { "start": 2496, - "end": 2500, + "end": 2497, "ctxt": 0 }, "value": "c", @@ -4775,7 +4775,7 @@ "type": "Identifier", "span": { "start": 2928, - "end": 2942, + "end": 2929, "ctxt": 0 }, "value": "a", @@ -4799,7 +4799,7 @@ "type": "Identifier", "span": { "start": 2932, - "end": 2936, + "end": 2933, "ctxt": 0 }, "value": "a", @@ -4877,7 +4877,7 @@ "type": "Identifier", "span": { "start": 2944, - "end": 2958, + "end": 2945, "ctxt": 0 }, "value": "b", @@ -4901,7 +4901,7 @@ "type": "Identifier", "span": { "start": 2948, - "end": 2952, + "end": 2949, "ctxt": 0 }, "value": "b", @@ -4979,7 +4979,7 @@ "type": "Identifier", "span": { "start": 2960, - "end": 2974, + "end": 2961, "ctxt": 0 }, "value": "c", @@ -5003,7 +5003,7 @@ "type": "Identifier", "span": { "start": 2964, - "end": 2968, + "end": 2965, "ctxt": 0 }, "value": "c", @@ -5751,7 +5751,7 @@ "type": "Identifier", "span": { "start": 3329, - "end": 3333, + "end": 3330, "ctxt": 0 }, "value": "n", @@ -6099,7 +6099,7 @@ "type": "Identifier", "span": { "start": 3599, - "end": 3603, + "end": 3600, "ctxt": 0 }, "value": "a", @@ -6145,7 +6145,7 @@ "type": "Identifier", "span": { "start": 3605, - "end": 3609, + "end": 3606, "ctxt": 0 }, "value": "b", @@ -6191,7 +6191,7 @@ "type": "Identifier", "span": { "start": 3611, - "end": 3615, + "end": 3612, "ctxt": 0 }, "value": "c", diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithObjectLiteral.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithObjectLiteral.json index 44d74cb830cf..f2cd6dd20551 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithObjectLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithObjectLiteral.json @@ -141,7 +141,7 @@ "type": "Identifier", "span": { "start": 50, - "end": 58, + "end": 55, "ctxt": 0 }, "value": "value", @@ -207,7 +207,7 @@ "type": "Identifier", "span": { "start": 80, - "end": 94, + "end": 81, "ctxt": 0 }, "value": "x", @@ -771,7 +771,7 @@ "type": "Identifier", "span": { "start": 448, - "end": 482, + "end": 449, "ctxt": 0 }, "value": "a", @@ -832,7 +832,7 @@ "type": "Identifier", "span": { "start": 457, - "end": 461, + "end": 458, "ctxt": 0 }, "value": "x", @@ -984,7 +984,7 @@ "type": "Identifier", "span": { "start": 484, - "end": 488, + "end": 485, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentsWithStringLiteralTypes01.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentsWithStringLiteralTypes01.json index 65cd41f2054c..78f133e54382 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentsWithStringLiteralTypes01.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentsWithStringLiteralTypes01.json @@ -74,7 +74,7 @@ "type": "Identifier", "span": { "start": 96, - "end": 107, + "end": 99, "ctxt": 0 }, "value": "str", @@ -153,7 +153,7 @@ "type": "Identifier", "span": { "start": 151, - "end": 163, + "end": 154, "ctxt": 0 }, "value": "str", @@ -250,7 +250,7 @@ "type": "Identifier", "span": { "start": 213, - "end": 235, + "end": 216, "ctxt": 0 }, "value": "str", @@ -403,7 +403,7 @@ "type": "Identifier", "span": { "start": 275, - "end": 279, + "end": 276, "ctxt": 0 }, "value": "x", @@ -449,7 +449,7 @@ "type": "Identifier", "span": { "start": 281, - "end": 285, + "end": 282, "ctxt": 0 }, "value": "y", @@ -619,7 +619,7 @@ "type": "Identifier", "span": { "start": 343, - "end": 347, + "end": 344, "ctxt": 0 }, "value": "x", @@ -665,7 +665,7 @@ "type": "Identifier", "span": { "start": 349, - "end": 353, + "end": 350, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromParamTagForFunction.json b/crates/swc_ecma_parser/tests/tsc/typeFromParamTagForFunction.json index 22d8965581a0..e9a904e61949 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromParamTagForFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromParamTagForFunction.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 124, - "end": 134, + "end": 126, "ctxt": 0 }, "value": "id", diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment29.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment29.json index b189ab157626..8f5458e3ff85 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment29.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment29.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 44, - "end": 53, + "end": 45, "ctxt": 0 }, "value": "n", @@ -238,7 +238,7 @@ "type": "Identifier", "span": { "start": 130, - "end": 139, + "end": 131, "ctxt": 0 }, "value": "n", @@ -549,7 +549,7 @@ "type": "Identifier", "span": { "start": 265, - "end": 274, + "end": 266, "ctxt": 0 }, "value": "n", @@ -860,7 +860,7 @@ "type": "Identifier", "span": { "start": 387, - "end": 396, + "end": 388, "ctxt": 0 }, "value": "n", @@ -1397,7 +1397,7 @@ "type": "Identifier", "span": { "start": 599, - "end": 608, + "end": 600, "ctxt": 0 }, "value": "n", @@ -1508,7 +1508,7 @@ "type": "Identifier", "span": { "start": 657, - "end": 666, + "end": 658, "ctxt": 0 }, "value": "n", @@ -1591,7 +1591,7 @@ "type": "Identifier", "span": { "start": 699, - "end": 708, + "end": 700, "ctxt": 0 }, "value": "m", @@ -1867,7 +1867,7 @@ "type": "Identifier", "span": { "start": 844, - "end": 853, + "end": 845, "ctxt": 0 }, "value": "n", @@ -2582,7 +2582,7 @@ "type": "Identifier", "span": { "start": 1320, - "end": 1329, + "end": 1321, "ctxt": 0 }, "value": "n", @@ -2792,7 +2792,7 @@ "type": "Identifier", "span": { "start": 1408, - "end": 1417, + "end": 1409, "ctxt": 0 }, "value": "n", @@ -3238,7 +3238,7 @@ "type": "Identifier", "span": { "start": 1666, - "end": 1675, + "end": 1667, "ctxt": 0 }, "value": "n", @@ -3692,7 +3692,7 @@ "type": "Identifier", "span": { "start": 1919, - "end": 1928, + "end": 1920, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment31.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment31.json index 696634d3e668..bf8b812e9581 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment31.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment31.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 23, - "end": 32, + "end": 24, "ctxt": 0 }, "value": "n", @@ -210,7 +210,7 @@ "type": "Identifier", "span": { "start": 100, - "end": 109, + "end": 101, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment32.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment32.json index 93c0c990f80f..056b3f0d1855 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment32.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment32.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 48, - "end": 57, + "end": 49, "ctxt": 0 }, "value": "n", @@ -210,7 +210,7 @@ "type": "Identifier", "span": { "start": 125, - "end": 134, + "end": 126, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment33.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment33.json index c7130a3294de..62a45e185ecb 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment33.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment33.json @@ -492,7 +492,7 @@ "type": "Identifier", "span": { "start": 312, - "end": 321, + "end": 313, "ctxt": 0 }, "value": "n", @@ -670,7 +670,7 @@ "type": "Identifier", "span": { "start": 389, - "end": 398, + "end": 390, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment36.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment36.json index 9bc6b9df9c76..0c897873ca59 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment36.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment36.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 29, - "end": 39, + "end": 30, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardFunction.json b/crates/swc_ecma_parser/tests/tsc/typeGuardFunction.json index 224e9f05a5ac..c05a031cb9c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardFunction.json @@ -257,7 +257,7 @@ "type": "Identifier", "span": { "start": 129, - "end": 136, + "end": 131, "ctxt": 0 }, "value": "p1", @@ -373,7 +373,7 @@ "type": "Identifier", "span": { "start": 169, - "end": 176, + "end": 171, "ctxt": 0 }, "value": "p1", @@ -489,7 +489,7 @@ "type": "Identifier", "span": { "start": 209, - "end": 216, + "end": 211, "ctxt": 0 }, "value": "p1", @@ -1203,7 +1203,7 @@ "type": "Identifier", "span": { "start": 494, - "end": 499, + "end": 496, "ctxt": 0 }, "value": "p1", @@ -1584,7 +1584,7 @@ "type": "Identifier", "span": { "start": 793, - "end": 798, + "end": 795, "ctxt": 0 }, "value": "p1", @@ -1734,7 +1734,7 @@ "type": "Identifier", "span": { "start": 834, - "end": 839, + "end": 836, "ctxt": 0 }, "value": "p1", @@ -2045,7 +2045,7 @@ "type": "Identifier", "span": { "start": 974, - "end": 996, + "end": 976, "ctxt": 0 }, "value": "p1", @@ -2069,7 +2069,7 @@ "type": "Identifier", "span": { "start": 979, - "end": 984, + "end": 981, "ctxt": 0 }, "value": "p1", @@ -2218,7 +2218,7 @@ "type": "Identifier", "span": { "start": 1036, - "end": 1041, + "end": 1038, "ctxt": 0 }, "value": "p1", @@ -2375,7 +2375,7 @@ "type": "Identifier", "span": { "start": 1153, - "end": 1163, + "end": 1154, "ctxt": 0 }, "value": "a", @@ -2504,7 +2504,7 @@ "type": "Identifier", "span": { "start": 1287, - "end": 1310, + "end": 1289, "ctxt": 0 }, "value": "p1", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionGenerics.json b/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionGenerics.json index 7b6f47b80193..6b86127c521c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionGenerics.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionGenerics.json @@ -530,7 +530,7 @@ "type": "Identifier", "span": { "start": 234, - "end": 247, + "end": 236, "ctxt": 0 }, "value": "p1", @@ -691,7 +691,7 @@ "type": "Identifier", "span": { "start": 278, - "end": 291, + "end": 280, "ctxt": 0 }, "value": "p1", @@ -767,7 +767,7 @@ "type": "Identifier", "span": { "start": 293, - "end": 300, + "end": 295, "ctxt": 0 }, "value": "p2", @@ -915,7 +915,7 @@ "type": "Identifier", "span": { "start": 337, - "end": 356, + "end": 339, "ctxt": 0 }, "value": "p1", @@ -1103,7 +1103,7 @@ "type": "Identifier", "span": { "start": 387, - "end": 406, + "end": 389, "ctxt": 0 }, "value": "p1", @@ -1206,7 +1206,7 @@ "type": "Identifier", "span": { "start": 408, - "end": 415, + "end": 410, "ctxt": 0 }, "value": "p2", @@ -1354,7 +1354,7 @@ "type": "Identifier", "span": { "start": 455, - "end": 474, + "end": 457, "ctxt": 0 }, "value": "p1", @@ -1457,7 +1457,7 @@ "type": "Identifier", "span": { "start": 476, - "end": 481, + "end": 478, "ctxt": 0 }, "value": "p2", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionOfFormThisErrors.json b/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionOfFormThisErrors.json index b0bf1f5b32f4..a22481a46ea6 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionOfFormThisErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionOfFormThisErrors.json @@ -1035,7 +1035,7 @@ "type": "Identifier", "span": { "start": 658, - "end": 664, + "end": 659, "ctxt": 0 }, "value": "c", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardIntersectionTypes.json b/crates/swc_ecma_parser/tests/tsc/typeGuardIntersectionTypes.json index d3d78344ebbd..882867478295 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardIntersectionTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardIntersectionTypes.json @@ -248,7 +248,7 @@ "type": "Identifier", "span": { "start": 146, - "end": 154, + "end": 149, "ctxt": 0 }, "value": "obj", @@ -364,7 +364,7 @@ "type": "Identifier", "span": { "start": 188, - "end": 196, + "end": 191, "ctxt": 0 }, "value": "obj", @@ -480,7 +480,7 @@ "type": "Identifier", "span": { "start": 230, - "end": 238, + "end": 233, "ctxt": 0 }, "value": "obj", @@ -596,7 +596,7 @@ "type": "Identifier", "span": { "start": 264, - "end": 275, + "end": 267, "ctxt": 0 }, "value": "obj", @@ -1136,7 +1136,7 @@ "type": "Identifier", "span": { "start": 542, - "end": 553, + "end": 548, "ctxt": 0 }, "value": "toTest", @@ -1316,7 +1316,7 @@ "type": "Identifier", "span": { "start": 661, - "end": 665, + "end": 662, "ctxt": 0 }, "value": "a", @@ -1568,7 +1568,7 @@ "type": "Identifier", "span": { "start": 790, - "end": 799, + "end": 791, "ctxt": 0 }, "value": "s", @@ -1904,7 +1904,7 @@ "type": "Identifier", "span": { "start": 1044, - "end": 1052, + "end": 1045, "ctxt": 0 }, "value": "x", @@ -2122,7 +2122,7 @@ "type": "Identifier", "span": { "start": 1129, - "end": 1137, + "end": 1130, "ctxt": 0 }, "value": "x", @@ -2330,7 +2330,7 @@ "type": "Identifier", "span": { "start": 1267, - "end": 1279, + "end": 1272, "ctxt": 0 }, "value": "beast", @@ -3142,7 +3142,7 @@ "type": "Identifier", "span": { "start": 2081, - "end": 2094, + "end": 2086, "ctxt": 0 }, "value": "beast", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsPrimitiveIntersection.json b/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsPrimitiveIntersection.json index 32fe3bd0c6b6..b5e515dd28e6 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsPrimitiveIntersection.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsPrimitiveIntersection.json @@ -103,7 +103,7 @@ "type": "Identifier", "span": { "start": 54, - "end": 67, + "end": 59, "ctxt": 0 }, "value": "value", @@ -246,7 +246,7 @@ "type": "Identifier", "span": { "start": 120, - "end": 139, + "end": 125, "ctxt": 0 }, "value": "value", @@ -354,7 +354,7 @@ "type": "Identifier", "span": { "start": 172, - "end": 185, + "end": 177, "ctxt": 0 }, "value": "value", @@ -649,7 +649,7 @@ "type": "Identifier", "span": { "start": 338, - "end": 351, + "end": 343, "ctxt": 0 }, "value": "value", @@ -792,7 +792,7 @@ "type": "Identifier", "span": { "start": 406, - "end": 426, + "end": 411, "ctxt": 0 }, "value": "value", @@ -900,7 +900,7 @@ "type": "Identifier", "span": { "start": 460, - "end": 473, + "end": 465, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsToLiteralType.json b/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsToLiteralType.json index 15c0802a565b..617f69c2dc0a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsToLiteralType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsToLiteralType.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 24, - "end": 37, + "end": 29, "ctxt": 0 }, "value": "value", @@ -147,7 +147,7 @@ "type": "Identifier", "span": { "start": 81, - "end": 93, + "end": 86, "ctxt": 0 }, "value": "value", @@ -235,7 +235,7 @@ "type": "Identifier", "span": { "start": 126, - "end": 139, + "end": 131, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsToLiteralTypeUnion.json b/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsToLiteralTypeUnion.json index 3b05bd307c3d..2e053ba8122d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsToLiteralTypeUnion.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsToLiteralTypeUnion.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 24, - "end": 37, + "end": 29, "ctxt": 0 }, "value": "value", @@ -183,7 +183,7 @@ "type": "Identifier", "span": { "start": 91, - "end": 111, + "end": 96, "ctxt": 0 }, "value": "value", @@ -299,7 +299,7 @@ "type": "Identifier", "span": { "start": 144, - "end": 157, + "end": 149, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormFunctionEquality.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormFunctionEquality.json index cfa6393274b5..c7f2ac0d5b3a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormFunctionEquality.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormFunctionEquality.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 28, - "end": 37, + "end": 29, "ctxt": 0 }, "value": "a", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 39, - "end": 48, + "end": 40, "ctxt": 0 }, "value": "b", @@ -184,7 +184,7 @@ "type": "Identifier", "span": { "start": 92, - "end": 101, + "end": 93, "ctxt": 0 }, "value": "a", @@ -532,7 +532,7 @@ "type": "Identifier", "span": { "start": 250, - "end": 259, + "end": 251, "ctxt": 0 }, "value": "a", @@ -568,7 +568,7 @@ "type": "Identifier", "span": { "start": 261, - "end": 270, + "end": 262, "ctxt": 0 }, "value": "b", @@ -604,7 +604,7 @@ "type": "Identifier", "span": { "start": 272, - "end": 281, + "end": 273, "ctxt": 0 }, "value": "c", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormIsType.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormIsType.json index 24ce0b107987..117ac118c048 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormIsType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormIsType.json @@ -423,7 +423,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 186, + "end": 181, "ctxt": 0 }, "value": "x", @@ -565,7 +565,7 @@ "type": "Identifier", "span": { "start": 233, - "end": 239, + "end": 234, "ctxt": 0 }, "value": "x", @@ -707,7 +707,7 @@ "type": "Identifier", "span": { "start": 286, - "end": 292, + "end": 287, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormIsTypeOnInterfaces.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormIsTypeOnInterfaces.json index 944f43118ab8..e7c54939f580 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormIsTypeOnInterfaces.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormIsTypeOnInterfaces.json @@ -661,7 +661,7 @@ "type": "Identifier", "span": { "start": 274, - "end": 280, + "end": 275, "ctxt": 0 }, "value": "x", @@ -803,7 +803,7 @@ "type": "Identifier", "span": { "start": 327, - "end": 333, + "end": 328, "ctxt": 0 }, "value": "x", @@ -945,7 +945,7 @@ "type": "Identifier", "span": { "start": 380, - "end": 386, + "end": 381, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfFunction.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfFunction.json index 1283dbf9d964..cb9492d7a8ca 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfFunction.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 14, - "end": 20, + "end": 15, "ctxt": 0 }, "value": "x", @@ -179,7 +179,7 @@ "type": "Identifier", "span": { "start": 99, - "end": 109, + "end": 100, "ctxt": 0 }, "value": "x", @@ -326,7 +326,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 198, + "end": 194, "ctxt": 0 }, "value": "x", @@ -473,7 +473,7 @@ "type": "Identifier", "span": { "start": 285, - "end": 289, + "end": 286, "ctxt": 0 }, "value": "x", @@ -662,7 +662,7 @@ "type": "Identifier", "span": { "start": 377, - "end": 393, + "end": 378, "ctxt": 0 }, "value": "x", @@ -851,7 +851,7 @@ "type": "Identifier", "span": { "start": 474, - "end": 489, + "end": 475, "ctxt": 0 }, "value": "x", @@ -1016,7 +1016,7 @@ "type": "Identifier", "span": { "start": 578, - "end": 604, + "end": 579, "ctxt": 0 }, "value": "x", @@ -1235,7 +1235,7 @@ "type": "Identifier", "span": { "start": 732, - "end": 765, + "end": 733, "ctxt": 0 }, "value": "x", @@ -1496,7 +1496,7 @@ "type": "Identifier", "span": { "start": 900, - "end": 932, + "end": 901, "ctxt": 0 }, "value": "x", @@ -1773,7 +1773,7 @@ "type": "Identifier", "span": { "start": 1121, - "end": 1127, + "end": 1124, "ctxt": 0 }, "value": "obj", @@ -1819,7 +1819,7 @@ "type": "Identifier", "span": { "start": 1129, - "end": 1138, + "end": 1133, "ctxt": 0 }, "value": "keys", @@ -2244,7 +2244,7 @@ "type": "Identifier", "span": { "start": 1346, - "end": 1397, + "end": 1353, "ctxt": 0 }, "value": "reducer", @@ -2637,7 +2637,7 @@ "type": "Identifier", "span": { "start": 1529, - "end": 1560, + "end": 1530, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFromPropNameInUnionType.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFromPropNameInUnionType.json index 2cc3a6dad293..feb06f111358 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFromPropNameInUnionType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFromPropNameInUnionType.json @@ -340,7 +340,7 @@ "type": "Identifier", "span": { "start": 114, - "end": 122, + "end": 115, "ctxt": 0 }, "value": "x", @@ -618,7 +618,7 @@ "type": "Identifier", "span": { "start": 229, - "end": 245, + "end": 230, "ctxt": 0 }, "value": "x", @@ -1034,7 +1034,7 @@ "type": "Identifier", "span": { "start": 391, - "end": 425, + "end": 392, "ctxt": 0 }, "value": "x", @@ -1562,7 +1562,7 @@ "type": "Identifier", "span": { "start": 661, - "end": 701, + "end": 662, "ctxt": 0 }, "value": "x", @@ -1926,7 +1926,7 @@ "type": "Identifier", "span": { "start": 894, - "end": 902, + "end": 895, "ctxt": 0 }, "value": "x", @@ -2365,7 +2365,7 @@ "type": "Identifier", "span": { "start": 1071, - "end": 1092, + "end": 1072, "ctxt": 0 }, "value": "x", @@ -2792,7 +2792,7 @@ "type": "Identifier", "span": { "start": 1295, - "end": 1317, + "end": 1296, "ctxt": 0 }, "value": "x", @@ -3940,7 +3940,7 @@ "type": "Identifier", "span": { "start": 1900, - "end": 1910, + "end": 1901, "ctxt": 0 }, "value": "i", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardTypeOfUndefined.json b/crates/swc_ecma_parser/tests/tsc/typeGuardTypeOfUndefined.json index ac6d95f75fc2..d20bfc05b52a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardTypeOfUndefined.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardTypeOfUndefined.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 69, - "end": 75, + "end": 70, "ctxt": 0 }, "value": "a", @@ -290,7 +290,7 @@ "type": "Identifier", "span": { "start": 270, - "end": 276, + "end": 271, "ctxt": 0 }, "value": "a", @@ -548,7 +548,7 @@ "type": "Identifier", "span": { "start": 471, - "end": 477, + "end": 472, "ctxt": 0 }, "value": "a", @@ -769,7 +769,7 @@ "type": "Identifier", "span": { "start": 600, - "end": 606, + "end": 601, "ctxt": 0 }, "value": "a", @@ -990,7 +990,7 @@ "type": "Identifier", "span": { "start": 729, - "end": 746, + "end": 730, "ctxt": 0 }, "value": "a", @@ -1267,7 +1267,7 @@ "type": "Identifier", "span": { "start": 941, - "end": 958, + "end": 942, "ctxt": 0 }, "value": "a", @@ -1544,7 +1544,7 @@ "type": "Identifier", "span": { "start": 1153, - "end": 1170, + "end": 1154, "ctxt": 0 }, "value": "a", @@ -1784,7 +1784,7 @@ "type": "Identifier", "span": { "start": 1293, - "end": 1310, + "end": 1294, "ctxt": 0 }, "value": "a", @@ -2024,7 +2024,7 @@ "type": "Identifier", "span": { "start": 1433, - "end": 1452, + "end": 1434, "ctxt": 0 }, "value": "a", @@ -2301,7 +2301,7 @@ "type": "Identifier", "span": { "start": 1648, - "end": 1667, + "end": 1649, "ctxt": 0 }, "value": "a", @@ -2578,7 +2578,7 @@ "type": "Identifier", "span": { "start": 1863, - "end": 1882, + "end": 1864, "ctxt": 0 }, "value": "a", @@ -2818,7 +2818,7 @@ "type": "Identifier", "span": { "start": 2006, - "end": 2025, + "end": 2007, "ctxt": 0 }, "value": "a", @@ -3058,7 +3058,7 @@ "type": "Identifier", "span": { "start": 2149, - "end": 2175, + "end": 2150, "ctxt": 0 }, "value": "a", @@ -3344,7 +3344,7 @@ "type": "Identifier", "span": { "start": 2371, - "end": 2397, + "end": 2372, "ctxt": 0 }, "value": "a", @@ -3630,7 +3630,7 @@ "type": "Identifier", "span": { "start": 2593, - "end": 2619, + "end": 2594, "ctxt": 0 }, "value": "a", @@ -3879,7 +3879,7 @@ "type": "Identifier", "span": { "start": 2743, - "end": 2769, + "end": 2744, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsAsAssertions.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsAsAssertions.json index 085f006af111..828e6498c67f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsAsAssertions.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsAsAssertions.json @@ -525,7 +525,7 @@ "type": "Identifier", "span": { "start": 278, - "end": 296, + "end": 283, "ctxt": 0 }, "value": "value", @@ -786,7 +786,7 @@ "type": "Identifier", "span": { "start": 370, - "end": 377, + "end": 374, "ctxt": 0 }, "value": "some", @@ -935,7 +935,7 @@ "type": "Identifier", "span": { "start": 427, - "end": 444, + "end": 435, "ctxt": 0 }, "value": "makeSome", @@ -3010,7 +3010,7 @@ "type": "Identifier", "span": { "start": 2038, - "end": 2056, + "end": 2039, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsDefeat.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsDefeat.json index f29b50e01e6d..d315cf7c2eff 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsDefeat.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsDefeat.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 143, - "end": 161, + "end": 144, "ctxt": 0 }, "value": "x", @@ -354,7 +354,7 @@ "type": "Identifier", "span": { "start": 356, - "end": 374, + "end": 357, "ctxt": 0 }, "value": "x", @@ -707,7 +707,7 @@ "type": "Identifier", "span": { "start": 578, - "end": 596, + "end": 579, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassAccessors.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassAccessors.json index 250f4b172043..83f0e4673700 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassAccessors.json @@ -581,7 +581,7 @@ "type": "Identifier", "span": { "start": 670, - "end": 692, + "end": 675, "ctxt": 0 }, "value": "param", @@ -1400,7 +1400,7 @@ "type": "Identifier", "span": { "start": 1483, - "end": 1505, + "end": 1488, "ctxt": 0 }, "value": "param", @@ -2219,7 +2219,7 @@ "type": "Identifier", "span": { "start": 2290, - "end": 2312, + "end": 2295, "ctxt": 0 }, "value": "param", @@ -3038,7 +3038,7 @@ "type": "Identifier", "span": { "start": 3131, - "end": 3153, + "end": 3136, "ctxt": 0 }, "value": "param", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassMethods.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassMethods.json index 98393d1dcb10..66f5a640904b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassMethods.json @@ -173,7 +173,7 @@ "type": "Identifier", "span": { "start": 233, - "end": 255, + "end": 238, "ctxt": 0 }, "value": "param", @@ -638,7 +638,7 @@ "type": "Identifier", "span": { "start": 687, - "end": 709, + "end": 692, "ctxt": 0 }, "value": "param", @@ -1118,7 +1118,7 @@ "type": "Identifier", "span": { "start": 1133, - "end": 1155, + "end": 1138, "ctxt": 0 }, "value": "param", @@ -1598,7 +1598,7 @@ "type": "Identifier", "span": { "start": 1594, - "end": 1616, + "end": 1599, "ctxt": 0 }, "value": "param", @@ -2078,7 +2078,7 @@ "type": "Identifier", "span": { "start": 2047, - "end": 2069, + "end": 2052, "ctxt": 0 }, "value": "param", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInConditionalExpression.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInConditionalExpression.json index d5303424ad1f..cce20fbdf48a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInConditionalExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInConditionalExpression.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 498, - "end": 516, + "end": 499, "ctxt": 0 }, "value": "x", @@ -225,7 +225,7 @@ "type": "Identifier", "span": { "start": 623, - "end": 641, + "end": 624, "ctxt": 0 }, "value": "x", @@ -445,7 +445,7 @@ "type": "Identifier", "span": { "start": 758, - "end": 776, + "end": 759, "ctxt": 0 }, "value": "x", @@ -665,7 +665,7 @@ "type": "Identifier", "span": { "start": 888, - "end": 906, + "end": 889, "ctxt": 0 }, "value": "x", @@ -885,7 +885,7 @@ "type": "Identifier", "span": { "start": 1018, - "end": 1036, + "end": 1019, "ctxt": 0 }, "value": "x", @@ -1105,7 +1105,7 @@ "type": "Identifier", "span": { "start": 1153, - "end": 1171, + "end": 1154, "ctxt": 0 }, "value": "x", @@ -1380,7 +1380,7 @@ "type": "Identifier", "span": { "start": 1333, - "end": 1361, + "end": 1334, "ctxt": 0 }, "value": "x", @@ -1648,7 +1648,7 @@ "type": "Identifier", "span": { "start": 1535, - "end": 1563, + "end": 1536, "ctxt": 0 }, "value": "x", @@ -2047,7 +2047,7 @@ "type": "Identifier", "span": { "start": 1799, - "end": 1817, + "end": 1800, "ctxt": 0 }, "value": "x", @@ -2365,7 +2365,7 @@ "type": "Identifier", "span": { "start": 2068, - "end": 2096, + "end": 2069, "ctxt": 0 }, "value": "x", @@ -2737,7 +2737,7 @@ "type": "Identifier", "span": { "start": 2344, - "end": 2372, + "end": 2345, "ctxt": 0 }, "value": "x", @@ -3137,7 +3137,7 @@ "type": "Identifier", "span": { "start": 2657, - "end": 2685, + "end": 2658, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInDoStatement.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInDoStatement.json index fd393572e0e1..e3ae961b2c48 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInDoStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInDoStatement.json @@ -81,7 +81,7 @@ "type": "Identifier", "span": { "start": 31, - "end": 59, + "end": 32, "ctxt": 0 }, "value": "x", @@ -348,7 +348,7 @@ "type": "Identifier", "span": { "start": 216, - "end": 244, + "end": 217, "ctxt": 0 }, "value": "x", @@ -643,7 +643,7 @@ "type": "Identifier", "span": { "start": 429, - "end": 447, + "end": 430, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInForStatement.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInForStatement.json index fb47aca572d3..034688ceac1f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInForStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInForStatement.json @@ -81,7 +81,7 @@ "type": "Identifier", "span": { "start": 31, - "end": 49, + "end": 32, "ctxt": 0 }, "value": "x", @@ -324,7 +324,7 @@ "type": "Identifier", "span": { "start": 174, - "end": 192, + "end": 175, "ctxt": 0 }, "value": "x", @@ -595,7 +595,7 @@ "type": "Identifier", "span": { "start": 345, - "end": 363, + "end": 346, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunction.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunction.json index 433f9cf71d54..6cb65bf89736 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunction.json @@ -149,7 +149,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 270, + "end": 253, "ctxt": 0 }, "value": "param", @@ -617,7 +617,7 @@ "type": "Identifier", "span": { "start": 663, - "end": 685, + "end": 668, "ctxt": 0 }, "value": "param", @@ -769,7 +769,7 @@ "type": "Identifier", "span": { "start": 736, - "end": 759, + "end": 742, "ctxt": 0 }, "value": "param1", @@ -1450,7 +1450,7 @@ "type": "Identifier", "span": { "start": 1335, - "end": 1357, + "end": 1340, "ctxt": 0 }, "value": "param", @@ -1627,7 +1627,7 @@ "type": "Identifier", "span": { "start": 1496, - "end": 1519, + "end": 1502, "ctxt": 0 }, "value": "param1", @@ -2329,7 +2329,7 @@ "type": "Identifier", "span": { "start": 2101, - "end": 2123, + "end": 2106, "ctxt": 0 }, "value": "param", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunctionAndModuleBlock.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunctionAndModuleBlock.json index 06c9fa2116be..14d0d8a10dfa 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunctionAndModuleBlock.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunctionAndModuleBlock.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 65, - "end": 93, + "end": 66, "ctxt": 0 }, "value": "x", @@ -412,7 +412,7 @@ "type": "Identifier", "span": { "start": 366, - "end": 394, + "end": 367, "ctxt": 0 }, "value": "x", @@ -573,7 +573,7 @@ "type": "Identifier", "span": { "start": 464, - "end": 483, + "end": 465, "ctxt": 0 }, "value": "a", @@ -862,7 +862,7 @@ "type": "Identifier", "span": { "start": 741, - "end": 769, + "end": 742, "ctxt": 0 }, "value": "x", @@ -1239,7 +1239,7 @@ "type": "Identifier", "span": { "start": 1048, - "end": 1076, + "end": 1049, "ctxt": 0 }, "value": "x", @@ -1677,7 +1677,7 @@ "type": "Identifier", "span": { "start": 1475, - "end": 1503, + "end": 1476, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInIfStatement.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInIfStatement.json index 0868cd0c17ba..4a9ac291fa4c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInIfStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInIfStatement.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 330, - "end": 348, + "end": 331, "ctxt": 0 }, "value": "x", @@ -253,7 +253,7 @@ "type": "Identifier", "span": { "start": 489, - "end": 507, + "end": 490, "ctxt": 0 }, "value": "x", @@ -484,7 +484,7 @@ "type": "Identifier", "span": { "start": 655, - "end": 673, + "end": 656, "ctxt": 0 }, "value": "x", @@ -715,7 +715,7 @@ "type": "Identifier", "span": { "start": 826, - "end": 844, + "end": 827, "ctxt": 0 }, "value": "x", @@ -946,7 +946,7 @@ "type": "Identifier", "span": { "start": 992, - "end": 1010, + "end": 993, "ctxt": 0 }, "value": "x", @@ -1177,7 +1177,7 @@ "type": "Identifier", "span": { "start": 1163, - "end": 1181, + "end": 1164, "ctxt": 0 }, "value": "x", @@ -1446,7 +1446,7 @@ "type": "Identifier", "span": { "start": 1350, - "end": 1378, + "end": 1351, "ctxt": 0 }, "value": "x", @@ -1760,7 +1760,7 @@ "type": "Identifier", "span": { "start": 1602, - "end": 1630, + "end": 1603, "ctxt": 0 }, "value": "x", @@ -2161,7 +2161,7 @@ "type": "Identifier", "span": { "start": 1948, - "end": 1966, + "end": 1949, "ctxt": 0 }, "value": "x", @@ -2490,7 +2490,7 @@ "type": "Identifier", "span": { "start": 2255, - "end": 2283, + "end": 2256, "ctxt": 0 }, "value": "x", @@ -2896,7 +2896,7 @@ "type": "Identifier", "span": { "start": 2670, - "end": 2698, + "end": 2671, "ctxt": 0 }, "value": "x", @@ -3423,7 +3423,7 @@ "type": "Identifier", "span": { "start": 3460, - "end": 3488, + "end": 3461, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfAndAndOperator.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfAndAndOperator.json index 0e3581066d53..d7fade7ecdbd 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfAndAndOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfAndAndOperator.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 158, - "end": 176, + "end": 159, "ctxt": 0 }, "value": "x", @@ -225,7 +225,7 @@ "type": "Identifier", "span": { "start": 259, - "end": 277, + "end": 260, "ctxt": 0 }, "value": "x", @@ -436,7 +436,7 @@ "type": "Identifier", "span": { "start": 407, - "end": 425, + "end": 408, "ctxt": 0 }, "value": "x", @@ -647,7 +647,7 @@ "type": "Identifier", "span": { "start": 584, - "end": 612, + "end": 585, "ctxt": 0 }, "value": "x", @@ -859,7 +859,7 @@ "type": "Identifier", "span": { "start": 775, - "end": 803, + "end": 776, "ctxt": 0 }, "value": "x", @@ -1202,7 +1202,7 @@ "type": "Identifier", "span": { "start": 1105, - "end": 1133, + "end": 1106, "ctxt": 0 }, "value": "x", @@ -1450,7 +1450,7 @@ "type": "Identifier", "span": { "start": 1411, - "end": 1439, + "end": 1412, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfOrOrOperator.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfOrOrOperator.json index df551516e74e..7e70a27aadc1 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfOrOrOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfOrOrOperator.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 244, - "end": 262, + "end": 245, "ctxt": 0 }, "value": "x", @@ -225,7 +225,7 @@ "type": "Identifier", "span": { "start": 345, - "end": 363, + "end": 346, "ctxt": 0 }, "value": "x", @@ -436,7 +436,7 @@ "type": "Identifier", "span": { "start": 493, - "end": 511, + "end": 494, "ctxt": 0 }, "value": "x", @@ -647,7 +647,7 @@ "type": "Identifier", "span": { "start": 670, - "end": 698, + "end": 671, "ctxt": 0 }, "value": "x", @@ -859,7 +859,7 @@ "type": "Identifier", "span": { "start": 861, - "end": 889, + "end": 862, "ctxt": 0 }, "value": "x", @@ -1202,7 +1202,7 @@ "type": "Identifier", "span": { "start": 1191, - "end": 1219, + "end": 1192, "ctxt": 0 }, "value": "x", @@ -1450,7 +1450,7 @@ "type": "Identifier", "span": { "start": 1433, - "end": 1461, + "end": 1434, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInWhileStatement.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInWhileStatement.json index 4844e1d41803..a5d7950c7cf8 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInWhileStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInWhileStatement.json @@ -81,7 +81,7 @@ "type": "Identifier", "span": { "start": 31, - "end": 49, + "end": 32, "ctxt": 0 }, "value": "x", @@ -302,7 +302,7 @@ "type": "Identifier", "span": { "start": 169, - "end": 187, + "end": 170, "ctxt": 0 }, "value": "x", @@ -551,7 +551,7 @@ "type": "Identifier", "span": { "start": 335, - "end": 353, + "end": 336, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsObjectMethods.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsObjectMethods.json index 45b8885110fd..cacba2032f37 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsObjectMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsObjectMethods.json @@ -252,7 +252,7 @@ "type": "Identifier", "span": { "start": 298, - "end": 320, + "end": 303, "ctxt": 0 }, "value": "param", @@ -1055,7 +1055,7 @@ "type": "Identifier", "span": { "start": 1050, - "end": 1072, + "end": 1055, "ctxt": 0 }, "value": "param", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsTypeParameters.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsTypeParameters.json index fd21d377c84e..eb48d70f6b69 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsTypeParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsTypeParameters.json @@ -104,7 +104,7 @@ "type": "Identifier", "span": { "start": 144, - "end": 148, + "end": 145, "ctxt": 0 }, "value": "x", @@ -438,7 +438,7 @@ "type": "Identifier", "span": { "start": 264, - "end": 268, + "end": 265, "ctxt": 0 }, "value": "x", @@ -771,7 +771,7 @@ "type": "Identifier", "span": { "start": 421, - "end": 451, + "end": 425, "ctxt": 0 }, "value": "item", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOf.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOf.json index 916935fd013d..588c61ae51ec 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOf.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOf.json @@ -406,7 +406,7 @@ "type": "Identifier", "span": { "start": 242, - "end": 274, + "end": 249, "ctxt": 0 }, "value": "changes", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfByConstructorSignature.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfByConstructorSignature.json index 44fa238540fa..cb1ec64a8d2b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfByConstructorSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfByConstructorSignature.json @@ -1484,7 +1484,7 @@ "type": "Identifier", "span": { "start": 742, - "end": 755, + "end": 747, "ctxt": 0 }, "value": "value", @@ -1549,7 +1549,7 @@ "type": "Identifier", "span": { "start": 771, - "end": 784, + "end": 776, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfBySymbolHasInstance.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfBySymbolHasInstance.json index cfec43105d90..dcef04854c04 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfBySymbolHasInstance.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfBySymbolHasInstance.json @@ -114,7 +114,7 @@ "type": "Identifier", "span": { "start": 83, - "end": 97, + "end": 88, "ctxt": 0 }, "value": "value", @@ -863,7 +863,7 @@ "type": "Identifier", "span": { "start": 454, - "end": 468, + "end": 459, "ctxt": 0 }, "value": "value", @@ -1748,7 +1748,7 @@ "type": "Identifier", "span": { "start": 872, - "end": 885, + "end": 877, "ctxt": 0 }, "value": "value", @@ -1813,7 +1813,7 @@ "type": "Identifier", "span": { "start": 901, - "end": 914, + "end": 906, "ctxt": 0 }, "value": "value", @@ -1909,7 +1909,7 @@ "type": "Identifier", "span": { "start": 946, - "end": 960, + "end": 951, "ctxt": 0 }, "value": "value", @@ -3066,7 +3066,7 @@ "type": "Identifier", "span": { "start": 1473, - "end": 1487, + "end": 1478, "ctxt": 0 }, "value": "value", @@ -3659,7 +3659,7 @@ "type": "Identifier", "span": { "start": 1795, - "end": 1809, + "end": 1800, "ctxt": 0 }, "value": "value", @@ -4603,7 +4603,7 @@ "type": "Identifier", "span": { "start": 2275, - "end": 2289, + "end": 2280, "ctxt": 0 }, "value": "value", @@ -5374,7 +5374,7 @@ "type": "Identifier", "span": { "start": 2789, - "end": 2803, + "end": 2794, "ctxt": 0 }, "value": "value", @@ -6186,7 +6186,7 @@ "type": "Identifier", "span": { "start": 3397, - "end": 3411, + "end": 3402, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/typeInferenceWithTupleType.json b/crates/swc_ecma_parser/tests/tsc/typeInferenceWithTupleType.json index 2501ad042e2a..f4852c5afe99 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeInferenceWithTupleType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeInferenceWithTupleType.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 24, - "end": 28, + "end": 25, "ctxt": 0 }, "value": "x", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 30, - "end": 34, + "end": 31, "ctxt": 0 }, "value": "y", @@ -547,7 +547,7 @@ "type": "Identifier", "span": { "start": 223, - "end": 234, + "end": 229, "ctxt": 0 }, "value": "array1", @@ -601,7 +601,7 @@ "type": "Identifier", "span": { "start": 236, - "end": 247, + "end": 242, "ctxt": 0 }, "value": "array2", @@ -1722,7 +1722,7 @@ "type": "Identifier", "span": { "start": 727, - "end": 747, + "end": 733, "ctxt": 0 }, "value": "values", @@ -1939,7 +1939,7 @@ "type": "Identifier", "span": { "start": 782, - "end": 811, + "end": 788, "ctxt": 0 }, "value": "values", diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisGeneral.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisGeneral.json index f8f2c004e396..238763a752a4 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisGeneral.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisGeneral.json @@ -1773,7 +1773,7 @@ "type": "Identifier", "span": { "start": 1695, - "end": 1716, + "end": 1696, "ctxt": 0 }, "value": "v", @@ -4022,7 +4022,7 @@ "type": "Identifier", "span": { "start": 3677, - "end": 3705, + "end": 3678, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInInstanceMember.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInInstanceMember.json index f7d2a52e08ef..bc9e744d7757 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInInstanceMember.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInInstanceMember.json @@ -155,7 +155,7 @@ "type": "Identifier", "span": { "start": 80, - "end": 89, + "end": 81, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInInstanceMember2.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInInstanceMember2.json index e465e94d0770..a253d109d6ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInInstanceMember2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInInstanceMember2.json @@ -155,7 +155,7 @@ "type": "Identifier", "span": { "start": 83, - "end": 87, + "end": 84, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers.json index ba6c6844eaca..efcc0ca60f61 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 27, - "end": 36, + "end": 28, "ctxt": 0 }, "value": "x", @@ -628,7 +628,7 @@ "type": "Identifier", "span": { "start": 334, - "end": 343, + "end": 335, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers10.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers10.json index 26b8fc8de179..a9eac931be0f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers10.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers10.json @@ -893,7 +893,7 @@ "type": "Identifier", "span": { "start": 506, - "end": 515, + "end": 507, "ctxt": 0 }, "value": "v", @@ -1834,7 +1834,7 @@ "type": "Identifier", "span": { "start": 919, - "end": 928, + "end": 920, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers11.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers11.json index 60cb5086db5c..c64e4e234136 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers11.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers11.json @@ -893,7 +893,7 @@ "type": "Identifier", "span": { "start": 505, - "end": 514, + "end": 506, "ctxt": 0 }, "value": "v", @@ -1834,7 +1834,7 @@ "type": "Identifier", "span": { "start": 918, - "end": 927, + "end": 919, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers5.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers5.json index f0601edadf7b..c8337f66a210 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers5.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers5.json @@ -132,7 +132,7 @@ "type": "Identifier", "span": { "start": 117, - "end": 128, + "end": 120, "ctxt": 0 }, "value": "foo", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeArgument.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeArgument.json index a55e223a8db2..303efca4b23a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeArgument.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeArgument.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 127, - "end": 131, + "end": 128, "ctxt": 0 }, "value": "x", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 137, + "end": 134, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint.json index 336e980abe34..3e759208a6a1 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 152, - "end": 156, + "end": 153, "ctxt": 0 }, "value": "x", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 158, - "end": 162, + "end": 159, "ctxt": 0 }, "value": "y", @@ -943,7 +943,7 @@ "type": "Identifier", "span": { "start": 422, - "end": 426, + "end": 423, "ctxt": 0 }, "value": "x", @@ -989,7 +989,7 @@ "type": "Identifier", "span": { "start": 428, - "end": 432, + "end": 429, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint2.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint2.json index 4badaea77f78..560f792600c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 154, - "end": 158, + "end": 155, "ctxt": 0 }, "value": "x", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 160, - "end": 164, + "end": 161, "ctxt": 0 }, "value": "y", @@ -616,7 +616,7 @@ "type": "Identifier", "span": { "start": 376, - "end": 380, + "end": 377, "ctxt": 0 }, "value": "x", @@ -662,7 +662,7 @@ "type": "Identifier", "span": { "start": 382, - "end": 386, + "end": 383, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively.json index ecd6109536ab..81b9fe403400 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively.json @@ -465,7 +465,7 @@ "type": "Identifier", "span": { "start": 256, - "end": 260, + "end": 257, "ctxt": 0 }, "value": "x", @@ -511,7 +511,7 @@ "type": "Identifier", "span": { "start": 262, - "end": 266, + "end": 263, "ctxt": 0 }, "value": "y", @@ -557,7 +557,7 @@ "type": "Identifier", "span": { "start": 268, - "end": 272, + "end": 269, "ctxt": 0 }, "value": "z", @@ -1393,7 +1393,7 @@ "type": "Identifier", "span": { "start": 584, - "end": 588, + "end": 585, "ctxt": 0 }, "value": "x", @@ -1439,7 +1439,7 @@ "type": "Identifier", "span": { "start": 590, - "end": 594, + "end": 591, "ctxt": 0 }, "value": "y", @@ -1485,7 +1485,7 @@ "type": "Identifier", "span": { "start": 596, - "end": 600, + "end": 597, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively2.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively2.json index ef1a72b45291..0a92179db9a0 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively2.json @@ -465,7 +465,7 @@ "type": "Identifier", "span": { "start": 339, - "end": 343, + "end": 340, "ctxt": 0 }, "value": "x", @@ -511,7 +511,7 @@ "type": "Identifier", "span": { "start": 345, - "end": 349, + "end": 346, "ctxt": 0 }, "value": "y", @@ -557,7 +557,7 @@ "type": "Identifier", "span": { "start": 351, - "end": 355, + "end": 352, "ctxt": 0 }, "value": "z", @@ -1436,7 +1436,7 @@ "type": "Identifier", "span": { "start": 707, - "end": 711, + "end": 708, "ctxt": 0 }, "value": "x", @@ -1482,7 +1482,7 @@ "type": "Identifier", "span": { "start": 713, - "end": 717, + "end": 714, "ctxt": 0 }, "value": "y", @@ -1528,7 +1528,7 @@ "type": "Identifier", "span": { "start": 719, - "end": 723, + "end": 720, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAssignability.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAssignability.json index 44688f20a0e4..d9a3b8ccbb76 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAssignability.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAssignability.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 131, - "end": 135, + "end": 132, "ctxt": 0 }, "value": "t", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 137, - "end": 141, + "end": 138, "ctxt": 0 }, "value": "u", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAssignability2.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAssignability2.json index d30055428695..dd54abb5f3d0 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAssignability2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAssignability2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 141, - "end": 145, + "end": 142, "ctxt": 0 }, "value": "t", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 147, - "end": 151, + "end": 148, "ctxt": 0 }, "value": "u", @@ -309,7 +309,7 @@ "type": "Identifier", "span": { "start": 225, - "end": 229, + "end": 226, "ctxt": 0 }, "value": "t", @@ -355,7 +355,7 @@ "type": "Identifier", "span": { "start": 231, - "end": 235, + "end": 232, "ctxt": 0 }, "value": "u", @@ -586,7 +586,7 @@ "type": "Identifier", "span": { "start": 322, - "end": 326, + "end": 323, "ctxt": 0 }, "value": "t", @@ -632,7 +632,7 @@ "type": "Identifier", "span": { "start": 328, - "end": 332, + "end": 329, "ctxt": 0 }, "value": "u", @@ -678,7 +678,7 @@ "type": "Identifier", "span": { "start": 334, - "end": 338, + "end": 335, "ctxt": 0 }, "value": "v", @@ -1102,7 +1102,7 @@ "type": "Identifier", "span": { "start": 508, - "end": 512, + "end": 509, "ctxt": 0 }, "value": "t", @@ -1148,7 +1148,7 @@ "type": "Identifier", "span": { "start": 514, - "end": 518, + "end": 515, "ctxt": 0 }, "value": "u", @@ -1194,7 +1194,7 @@ "type": "Identifier", "span": { "start": 520, - "end": 524, + "end": 521, "ctxt": 0 }, "value": "v", @@ -1953,7 +1953,7 @@ "type": "Identifier", "span": { "start": 890, - "end": 894, + "end": 891, "ctxt": 0 }, "value": "t", @@ -1999,7 +1999,7 @@ "type": "Identifier", "span": { "start": 896, - "end": 900, + "end": 897, "ctxt": 0 }, "value": "u", @@ -2045,7 +2045,7 @@ "type": "Identifier", "span": { "start": 902, - "end": 906, + "end": 903, "ctxt": 0 }, "value": "v", @@ -2804,7 +2804,7 @@ "type": "Identifier", "span": { "start": 1194, - "end": 1198, + "end": 1195, "ctxt": 0 }, "value": "t", @@ -2850,7 +2850,7 @@ "type": "Identifier", "span": { "start": 1200, - "end": 1204, + "end": 1201, "ctxt": 0 }, "value": "u", @@ -2896,7 +2896,7 @@ "type": "Identifier", "span": { "start": 1206, - "end": 1210, + "end": 1207, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAssignability3.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAssignability3.json index 4680a4948f92..1123654bc7ac 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAssignability3.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAssignability3.json @@ -104,7 +104,7 @@ "type": "Identifier", "span": { "start": 183, - "end": 187, + "end": 184, "ctxt": 0 }, "value": "t", @@ -150,7 +150,7 @@ "type": "Identifier", "span": { "start": 189, - "end": 193, + "end": 190, "ctxt": 0 }, "value": "u", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersReverseMappedTypes.json b/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersReverseMappedTypes.json index c69ba49fe22c..9ac15e240f8a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersReverseMappedTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersReverseMappedTypes.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 68, - "end": 100, + "end": 71, "ctxt": 0 }, "value": "obj", @@ -434,7 +434,7 @@ "type": "Identifier", "span": { "start": 237, - "end": 278, + "end": 240, "ctxt": 0 }, "value": "obj", @@ -836,7 +836,7 @@ "type": "Identifier", "span": { "start": 415, - "end": 457, + "end": 418, "ctxt": 0 }, "value": "obj", @@ -1238,7 +1238,7 @@ "type": "Identifier", "span": { "start": 621, - "end": 653, + "end": 624, "ctxt": 0 }, "value": "arr", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersWithIntersection.json b/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersWithIntersection.json index 52227183b8fa..23540aa2013b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersWithIntersection.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersWithIntersection.json @@ -196,7 +196,7 @@ "type": "Identifier", "span": { "start": 249, - "end": 287, + "end": 255, "ctxt": 0 }, "value": "config", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterExtendsUnionConstraintDistributed.json b/crates/swc_ecma_parser/tests/tsc/typeParameterExtendsUnionConstraintDistributed.json index b15ac8b6e51d..71a608c34a57 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterExtendsUnionConstraintDistributed.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterExtendsUnionConstraintDistributed.json @@ -98,7 +98,7 @@ "type": "Identifier", "span": { "start": 41, - "end": 45, + "end": 42, "ctxt": 0 }, "value": "a", @@ -369,7 +369,7 @@ "type": "Identifier", "span": { "start": 142, - "end": 151, + "end": 144, "ctxt": 0 }, "value": "ab", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint.json b/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint.json index f288f8fa2118..7986c38585e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 107, - "end": 111, + "end": 108, "ctxt": 0 }, "value": "x", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 113, - "end": 117, + "end": 114, "ctxt": 0 }, "value": "y", @@ -315,7 +315,7 @@ "type": "Identifier", "span": { "start": 182, - "end": 186, + "end": 183, "ctxt": 0 }, "value": "x", @@ -361,7 +361,7 @@ "type": "Identifier", "span": { "start": 188, - "end": 192, + "end": 189, "ctxt": 0 }, "value": "y", @@ -616,7 +616,7 @@ "type": "Identifier", "span": { "start": 261, - "end": 265, + "end": 262, "ctxt": 0 }, "value": "x", @@ -662,7 +662,7 @@ "type": "Identifier", "span": { "start": 267, - "end": 271, + "end": 268, "ctxt": 0 }, "value": "y", @@ -921,7 +921,7 @@ "type": "Identifier", "span": { "start": 341, - "end": 345, + "end": 342, "ctxt": 0 }, "value": "x", @@ -967,7 +967,7 @@ "type": "Identifier", "span": { "start": 347, - "end": 351, + "end": 348, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint2.json b/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint2.json index 798d3924a956..6ac1f8c5b740 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 137, + "end": 134, "ctxt": 0 }, "value": "x", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 139, - "end": 143, + "end": 140, "ctxt": 0 }, "value": "y", @@ -181,7 +181,7 @@ "type": "Identifier", "span": { "start": 241, - "end": 245, + "end": 242, "ctxt": 0 }, "value": "a", @@ -227,7 +227,7 @@ "type": "Identifier", "span": { "start": 247, - "end": 251, + "end": 248, "ctxt": 0 }, "value": "b", @@ -660,7 +660,7 @@ "type": "Identifier", "span": { "start": 348, - "end": 352, + "end": 349, "ctxt": 0 }, "value": "x", @@ -706,7 +706,7 @@ "type": "Identifier", "span": { "start": 354, - "end": 358, + "end": 355, "ctxt": 0 }, "value": "y", @@ -809,7 +809,7 @@ "type": "Identifier", "span": { "start": 456, - "end": 460, + "end": 457, "ctxt": 0 }, "value": "a", @@ -855,7 +855,7 @@ "type": "Identifier", "span": { "start": 462, - "end": 466, + "end": 463, "ctxt": 0 }, "value": "b", @@ -1306,7 +1306,7 @@ "type": "Identifier", "span": { "start": 567, - "end": 571, + "end": 568, "ctxt": 0 }, "value": "x", @@ -1352,7 +1352,7 @@ "type": "Identifier", "span": { "start": 573, - "end": 577, + "end": 574, "ctxt": 0 }, "value": "y", @@ -1473,7 +1473,7 @@ "type": "Identifier", "span": { "start": 680, - "end": 684, + "end": 681, "ctxt": 0 }, "value": "a", @@ -1519,7 +1519,7 @@ "type": "Identifier", "span": { "start": 686, - "end": 690, + "end": 687, "ctxt": 0 }, "value": "b", @@ -1978,7 +1978,7 @@ "type": "Identifier", "span": { "start": 792, - "end": 796, + "end": 793, "ctxt": 0 }, "value": "x", @@ -2024,7 +2024,7 @@ "type": "Identifier", "span": { "start": 798, - "end": 802, + "end": 799, "ctxt": 0 }, "value": "y", @@ -2154,7 +2154,7 @@ "type": "Identifier", "span": { "start": 908, - "end": 912, + "end": 909, "ctxt": 0 }, "value": "a", @@ -2200,7 +2200,7 @@ "type": "Identifier", "span": { "start": 914, - "end": 918, + "end": 915, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint3.json b/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint3.json index 0eb8cedea580..a25f93a97a10 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint3.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint3.json @@ -290,7 +290,7 @@ "type": "Identifier", "span": { "start": 497, - "end": 501, + "end": 498, "ctxt": 0 }, "value": "x", @@ -690,7 +690,7 @@ "type": "Identifier", "span": { "start": 585, - "end": 589, + "end": 586, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint4.json b/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint4.json index d84cf9b0b136..ca74fe97caf7 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint4.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint4.json @@ -112,7 +112,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 184, + "end": 181, "ctxt": 0 }, "value": "x", @@ -769,7 +769,7 @@ "type": "Identifier", "span": { "start": 339, - "end": 343, + "end": 340, "ctxt": 0 }, "value": "x", @@ -911,7 +911,7 @@ "type": "Identifier", "span": { "start": 381, - "end": 385, + "end": 382, "ctxt": 0 }, "value": "x", @@ -957,7 +957,7 @@ "type": "Identifier", "span": { "start": 387, - "end": 391, + "end": 388, "ctxt": 0 }, "value": "y", @@ -1060,7 +1060,7 @@ "type": "Identifier", "span": { "start": 513, - "end": 517, + "end": 514, "ctxt": 0 }, "value": "a", @@ -1106,7 +1106,7 @@ "type": "Identifier", "span": { "start": 519, - "end": 523, + "end": 520, "ctxt": 0 }, "value": "b", @@ -1591,7 +1591,7 @@ "type": "Identifier", "span": { "start": 620, - "end": 624, + "end": 621, "ctxt": 0 }, "value": "x", @@ -1637,7 +1637,7 @@ "type": "Identifier", "span": { "start": 626, - "end": 630, + "end": 627, "ctxt": 0 }, "value": "y", @@ -1740,7 +1740,7 @@ "type": "Identifier", "span": { "start": 752, - "end": 756, + "end": 753, "ctxt": 0 }, "value": "a", @@ -1786,7 +1786,7 @@ "type": "Identifier", "span": { "start": 758, - "end": 762, + "end": 759, "ctxt": 0 }, "value": "b", @@ -2390,7 +2390,7 @@ "type": "Identifier", "span": { "start": 915, - "end": 919, + "end": 916, "ctxt": 0 }, "value": "r", @@ -2436,7 +2436,7 @@ "type": "Identifier", "span": { "start": 921, - "end": 925, + "end": 922, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParametersAreIdenticalToThemselves.json b/crates/swc_ecma_parser/tests/tsc/typeParametersAreIdenticalToThemselves.json index 33371eabcb8a..63ee5e7d6bee 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParametersAreIdenticalToThemselves.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParametersAreIdenticalToThemselves.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 90, - "end": 94, + "end": 91, "ctxt": 0 }, "value": "x", @@ -137,7 +137,7 @@ "type": "Identifier", "span": { "start": 114, - "end": 118, + "end": 115, "ctxt": 0 }, "value": "x", @@ -242,7 +242,7 @@ "type": "Identifier", "span": { "start": 184, - "end": 188, + "end": 185, "ctxt": 0 }, "value": "x", @@ -355,7 +355,7 @@ "type": "Identifier", "span": { "start": 215, - "end": 219, + "end": 216, "ctxt": 0 }, "value": "x", @@ -483,7 +483,7 @@ "type": "Identifier", "span": { "start": 242, - "end": 246, + "end": 243, "ctxt": 0 }, "value": "x", @@ -611,7 +611,7 @@ "type": "Identifier", "span": { "start": 315, - "end": 319, + "end": 316, "ctxt": 0 }, "value": "x", @@ -747,7 +747,7 @@ "type": "Identifier", "span": { "start": 346, - "end": 350, + "end": 347, "ctxt": 0 }, "value": "x", @@ -793,7 +793,7 @@ "type": "Identifier", "span": { "start": 352, - "end": 356, + "end": 353, "ctxt": 0 }, "value": "y", @@ -868,7 +868,7 @@ "type": "Identifier", "span": { "start": 379, - "end": 383, + "end": 380, "ctxt": 0 }, "value": "x", @@ -941,7 +941,7 @@ "type": "Identifier", "span": { "start": 405, - "end": 409, + "end": 406, "ctxt": 0 }, "value": "x", @@ -1014,7 +1014,7 @@ "type": "Identifier", "span": { "start": 448, - "end": 452, + "end": 449, "ctxt": 0 }, "value": "x", @@ -1095,7 +1095,7 @@ "type": "Identifier", "span": { "start": 479, - "end": 483, + "end": 480, "ctxt": 0 }, "value": "x", @@ -1168,7 +1168,7 @@ "type": "Identifier", "span": { "start": 509, - "end": 513, + "end": 510, "ctxt": 0 }, "value": "x", @@ -1273,7 +1273,7 @@ "type": "Identifier", "span": { "start": 561, - "end": 567, + "end": 562, "ctxt": 0 }, "value": "x", @@ -1431,7 +1431,7 @@ "type": "Identifier", "span": { "start": 598, - "end": 602, + "end": 599, "ctxt": 0 }, "value": "x", @@ -1516,7 +1516,7 @@ "type": "Identifier", "span": { "start": 614, - "end": 618, + "end": 615, "ctxt": 0 }, "value": "x", @@ -1601,7 +1601,7 @@ "type": "Identifier", "span": { "start": 647, - "end": 651, + "end": 648, "ctxt": 0 }, "value": "x", @@ -1694,7 +1694,7 @@ "type": "Identifier", "span": { "start": 670, - "end": 674, + "end": 671, "ctxt": 0 }, "value": "a", @@ -1740,7 +1740,7 @@ "type": "Identifier", "span": { "start": 676, - "end": 680, + "end": 677, "ctxt": 0 }, "value": "x", @@ -1857,7 +1857,7 @@ "type": "Identifier", "span": { "start": 695, - "end": 699, + "end": 696, "ctxt": 0 }, "value": "a", @@ -1903,7 +1903,7 @@ "type": "Identifier", "span": { "start": 701, - "end": 705, + "end": 702, "ctxt": 0 }, "value": "x", @@ -2020,7 +2020,7 @@ "type": "Identifier", "span": { "start": 766, - "end": 770, + "end": 767, "ctxt": 0 }, "value": "a", @@ -2066,7 +2066,7 @@ "type": "Identifier", "span": { "start": 772, - "end": 776, + "end": 773, "ctxt": 0 }, "value": "x", @@ -2191,7 +2191,7 @@ "type": "Identifier", "span": { "start": 795, - "end": 799, + "end": 796, "ctxt": 0 }, "value": "x", @@ -2308,7 +2308,7 @@ "type": "Identifier", "span": { "start": 814, - "end": 818, + "end": 815, "ctxt": 0 }, "value": "x", @@ -2425,7 +2425,7 @@ "type": "Identifier", "span": { "start": 879, - "end": 883, + "end": 880, "ctxt": 0 }, "value": "x", @@ -2550,7 +2550,7 @@ "type": "Identifier", "span": { "start": 915, - "end": 919, + "end": 916, "ctxt": 0 }, "value": "x", @@ -2685,7 +2685,7 @@ "type": "Identifier", "span": { "start": 947, - "end": 951, + "end": 948, "ctxt": 0 }, "value": "x", @@ -2820,7 +2820,7 @@ "type": "Identifier", "span": { "start": 1025, - "end": 1029, + "end": 1026, "ctxt": 0 }, "value": "x", @@ -3022,7 +3022,7 @@ "type": "Identifier", "span": { "start": 1074, - "end": 1078, + "end": 1075, "ctxt": 0 }, "value": "x", @@ -3107,7 +3107,7 @@ "type": "Identifier", "span": { "start": 1090, - "end": 1094, + "end": 1091, "ctxt": 0 }, "value": "x", @@ -3192,7 +3192,7 @@ "type": "Identifier", "span": { "start": 1123, - "end": 1127, + "end": 1124, "ctxt": 0 }, "value": "x", @@ -3285,7 +3285,7 @@ "type": "Identifier", "span": { "start": 1146, - "end": 1150, + "end": 1147, "ctxt": 0 }, "value": "a", @@ -3331,7 +3331,7 @@ "type": "Identifier", "span": { "start": 1152, - "end": 1156, + "end": 1153, "ctxt": 0 }, "value": "x", @@ -3448,7 +3448,7 @@ "type": "Identifier", "span": { "start": 1171, - "end": 1175, + "end": 1172, "ctxt": 0 }, "value": "a", @@ -3494,7 +3494,7 @@ "type": "Identifier", "span": { "start": 1177, - "end": 1181, + "end": 1178, "ctxt": 0 }, "value": "x", @@ -3611,7 +3611,7 @@ "type": "Identifier", "span": { "start": 1242, - "end": 1246, + "end": 1243, "ctxt": 0 }, "value": "a", @@ -3657,7 +3657,7 @@ "type": "Identifier", "span": { "start": 1248, - "end": 1252, + "end": 1249, "ctxt": 0 }, "value": "x", @@ -3782,7 +3782,7 @@ "type": "Identifier", "span": { "start": 1271, - "end": 1275, + "end": 1272, "ctxt": 0 }, "value": "x", @@ -3899,7 +3899,7 @@ "type": "Identifier", "span": { "start": 1290, - "end": 1294, + "end": 1291, "ctxt": 0 }, "value": "x", @@ -4016,7 +4016,7 @@ "type": "Identifier", "span": { "start": 1355, - "end": 1359, + "end": 1356, "ctxt": 0 }, "value": "x", @@ -4252,7 +4252,7 @@ "type": "Identifier", "span": { "start": 1394, - "end": 1398, + "end": 1395, "ctxt": 0 }, "value": "x", @@ -4314,7 +4314,7 @@ "type": "Identifier", "span": { "start": 1410, - "end": 1414, + "end": 1411, "ctxt": 0 }, "value": "x", @@ -4376,7 +4376,7 @@ "type": "Identifier", "span": { "start": 1447, - "end": 1451, + "end": 1448, "ctxt": 0 }, "value": "a", @@ -4413,7 +4413,7 @@ "type": "Identifier", "span": { "start": 1453, - "end": 1457, + "end": 1454, "ctxt": 0 }, "value": "x", @@ -4507,7 +4507,7 @@ "type": "Identifier", "span": { "start": 1472, - "end": 1476, + "end": 1473, "ctxt": 0 }, "value": "a", @@ -4544,7 +4544,7 @@ "type": "Identifier", "span": { "start": 1478, - "end": 1482, + "end": 1479, "ctxt": 0 }, "value": "x", @@ -4638,7 +4638,7 @@ "type": "Identifier", "span": { "start": 1544, - "end": 1548, + "end": 1545, "ctxt": 0 }, "value": "x", @@ -4732,7 +4732,7 @@ "type": "Identifier", "span": { "start": 1563, - "end": 1567, + "end": 1564, "ctxt": 0 }, "value": "x", @@ -4826,7 +4826,7 @@ "type": "Identifier", "span": { "start": 1642, - "end": 1646, + "end": 1643, "ctxt": 0 }, "value": "x", @@ -4938,7 +4938,7 @@ "type": "Identifier", "span": { "start": 1674, - "end": 1678, + "end": 1675, "ctxt": 0 }, "value": "x", @@ -5131,7 +5131,7 @@ "type": "Identifier", "span": { "start": 1770, - "end": 1774, + "end": 1771, "ctxt": 0 }, "value": "x", @@ -5193,7 +5193,7 @@ "type": "Identifier", "span": { "start": 1786, - "end": 1790, + "end": 1787, "ctxt": 0 }, "value": "x", @@ -5255,7 +5255,7 @@ "type": "Identifier", "span": { "start": 1823, - "end": 1827, + "end": 1824, "ctxt": 0 }, "value": "a", @@ -5292,7 +5292,7 @@ "type": "Identifier", "span": { "start": 1829, - "end": 1833, + "end": 1830, "ctxt": 0 }, "value": "x", @@ -5386,7 +5386,7 @@ "type": "Identifier", "span": { "start": 1848, - "end": 1852, + "end": 1849, "ctxt": 0 }, "value": "a", @@ -5423,7 +5423,7 @@ "type": "Identifier", "span": { "start": 1854, - "end": 1858, + "end": 1855, "ctxt": 0 }, "value": "x", @@ -5517,7 +5517,7 @@ "type": "Identifier", "span": { "start": 1920, - "end": 1924, + "end": 1921, "ctxt": 0 }, "value": "x", @@ -5611,7 +5611,7 @@ "type": "Identifier", "span": { "start": 1939, - "end": 1943, + "end": 1940, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParametersAvailableInNestedScope.json b/crates/swc_ecma_parser/tests/tsc/typeParametersAvailableInNestedScope.json index b144cfac7495..c6bd9fe00f7d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParametersAvailableInNestedScope.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParametersAvailableInNestedScope.json @@ -338,7 +338,7 @@ "type": "Identifier", "span": { "start": 131, - "end": 135, + "end": 132, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParametersAvailableInNestedScope2.json b/crates/swc_ecma_parser/tests/tsc/typeParametersAvailableInNestedScope2.json index e1a0cd870d8a..635e6d22bfdd 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParametersAvailableInNestedScope2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParametersAvailableInNestedScope2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 20, - "end": 24, + "end": 21, "ctxt": 0 }, "value": "x", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 26, - "end": 30, + "end": 27, "ctxt": 0 }, "value": "y", @@ -153,7 +153,7 @@ "type": "Identifier", "span": { "start": 54, - "end": 58, + "end": 55, "ctxt": 0 }, "value": "z", @@ -228,7 +228,7 @@ "type": "Identifier", "span": { "start": 86, - "end": 90, + "end": 87, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParametersAvailableInNestedScope3.json b/crates/swc_ecma_parser/tests/tsc/typeParametersAvailableInNestedScope3.json index 984d3741205f..f51127f20eb8 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParametersAvailableInNestedScope3.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParametersAvailableInNestedScope3.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 40, - "end": 44, + "end": 41, "ctxt": 0 }, "value": "v", @@ -107,7 +107,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 70, + "end": 67, "ctxt": 0 }, "value": "a", @@ -318,7 +318,7 @@ "type": "Identifier", "span": { "start": 139, - "end": 143, + "end": 140, "ctxt": 0 }, "value": "v", @@ -393,7 +393,7 @@ "type": "Identifier", "span": { "start": 169, - "end": 173, + "end": 170, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/typePredicateASI.json b/crates/swc_ecma_parser/tests/tsc/typePredicateASI.json index f95609cf78cf..debfcdaa4724 100644 --- a/crates/swc_ecma_parser/tests/tsc/typePredicateASI.json +++ b/crates/swc_ecma_parser/tests/tsc/typePredicateASI.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 23, - "end": 57, + "end": 31, "ctxt": 0 }, "value": "callback", @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 34, - "end": 40, + "end": 35, "ctxt": 0 }, "value": "a", @@ -110,7 +110,7 @@ "type": "Identifier", "span": { "start": 42, - "end": 48, + "end": 43, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/typeQueryOnClass.json b/crates/swc_ecma_parser/tests/tsc/typeQueryOnClass.json index f177d1ad8104..0b174637372b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeQueryOnClass.json +++ b/crates/swc_ecma_parser/tests/tsc/typeQueryOnClass.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 30, - "end": 39, + "end": 31, "ctxt": 0 }, "value": "x", @@ -115,7 +115,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 67, + "end": 59, "ctxt": 0 }, "value": "x", @@ -229,7 +229,7 @@ "type": "Identifier", "span": { "start": 116, - "end": 125, + "end": 117, "ctxt": 0 }, "value": "x", @@ -304,7 +304,7 @@ "type": "Identifier", "span": { "start": 143, - "end": 148, + "end": 144, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeRelationships.json b/crates/swc_ecma_parser/tests/tsc/typeRelationships.json index fbe676c04c8d..6a2b7b56094a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeRelationships.json +++ b/crates/swc_ecma_parser/tests/tsc/typeRelationships.json @@ -747,7 +747,7 @@ "type": "Identifier", "span": { "start": 353, - "end": 363, + "end": 354, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping1.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping1.json index 2abc0b0efd1e..7a299492a111 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping1.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping1.json @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 35, - "end": 44, + "end": 36, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping2.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping2.json index 932dbaf1beed..dbe4e4fba00b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping2.json @@ -80,7 +80,7 @@ "type": "Identifier", "span": { "start": 32, - "end": 41, + "end": 33, "ctxt": 0 }, "value": "s", @@ -341,7 +341,7 @@ "type": "Identifier", "span": { "start": 159, - "end": 168, + "end": 160, "ctxt": 0 }, "value": "s", @@ -558,7 +558,7 @@ "type": "Identifier", "span": { "start": 293, - "end": 302, + "end": 294, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping3.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping3.json index 7d1f2dd2a2ab..417cc728154b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping3.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping3.json @@ -471,7 +471,7 @@ "type": "Identifier", "span": { "start": 360, - "end": 378, + "end": 361, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_ensureInterfaceImpl.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_ensureInterfaceImpl.json index c302d07b2f6a..bdb4c438f302 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_ensureInterfaceImpl.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_ensureInterfaceImpl.json @@ -58,7 +58,7 @@ "type": "Identifier", "span": { "start": 27, - "end": 43, + "end": 35, "ctxt": 0 }, "value": "distance", diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance1.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance1.json index c8e11d600dc7..24d6123f22e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance1.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance1.json @@ -118,7 +118,7 @@ "type": "Identifier", "span": { "start": 124, - "end": 132, + "end": 125, "ctxt": 0 }, "value": "x", @@ -207,7 +207,7 @@ "type": "Identifier", "span": { "start": 165, - "end": 182, + "end": 166, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance2.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance2.json index 3989c1beaa45..8231daf91140 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance2.json @@ -118,7 +118,7 @@ "type": "Identifier", "span": { "start": 114, - "end": 122, + "end": 115, "ctxt": 0 }, "value": "x", @@ -207,7 +207,7 @@ "type": "Identifier", "span": { "start": 155, - "end": 172, + "end": 156, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeofClass2.json b/crates/swc_ecma_parser/tests/tsc/typeofClass2.json index 59e0c5887189..09a9f36e995b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofClass2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofClass2.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 27, - "end": 36, + "end": 28, "ctxt": 0 }, "value": "x", @@ -115,7 +115,7 @@ "type": "Identifier", "span": { "start": 55, - "end": 64, + "end": 56, "ctxt": 0 }, "value": "x", @@ -226,7 +226,7 @@ "type": "Identifier", "span": { "start": 106, - "end": 115, + "end": 107, "ctxt": 0 }, "value": "x", @@ -301,7 +301,7 @@ "type": "Identifier", "span": { "start": 133, - "end": 137, + "end": 134, "ctxt": 0 }, "value": "x", @@ -547,7 +547,7 @@ "type": "Identifier", "span": { "start": 223, - "end": 232, + "end": 224, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typeofThis.json b/crates/swc_ecma_parser/tests/tsc/typeofThis.json index 18829e3e7a9f..091e605f6ce3 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofThis.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofThis.json @@ -869,7 +869,7 @@ "type": "Identifier", "span": { "start": 490, - "end": 510, + "end": 494, "ctxt": 0 }, "value": "this", @@ -1064,7 +1064,7 @@ "type": "Identifier", "span": { "start": 563, - "end": 595, + "end": 567, "ctxt": 0 }, "value": "this", diff --git a/crates/swc_ecma_parser/tests/tsc/typeofTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/typeofTypeParameter.json index 3f66deff3af4..9f2ed586c91f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofTypeParameter.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 15, - "end": 19, + "end": 16, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typesWithPrivateConstructor.json b/crates/swc_ecma_parser/tests/tsc/typesWithPrivateConstructor.json index 75e2cfa4a47f..70b4509c06a1 100644 --- a/crates/swc_ecma_parser/tests/tsc/typesWithPrivateConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/typesWithPrivateConstructor.json @@ -259,7 +259,7 @@ "type": "Identifier", "span": { "start": 177, - "end": 186, + "end": 178, "ctxt": 0 }, "value": "x", @@ -318,7 +318,7 @@ "type": "Identifier", "span": { "start": 213, - "end": 219, + "end": 214, "ctxt": 0 }, "value": "x", @@ -459,7 +459,7 @@ "type": "Identifier", "span": { "start": 279, - "end": 288, + "end": 280, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typesWithProtectedConstructor.json b/crates/swc_ecma_parser/tests/tsc/typesWithProtectedConstructor.json index 8b85f830c35f..b15fd400a09e 100644 --- a/crates/swc_ecma_parser/tests/tsc/typesWithProtectedConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/typesWithProtectedConstructor.json @@ -259,7 +259,7 @@ "type": "Identifier", "span": { "start": 183, - "end": 192, + "end": 184, "ctxt": 0 }, "value": "x", @@ -318,7 +318,7 @@ "type": "Identifier", "span": { "start": 221, - "end": 227, + "end": 222, "ctxt": 0 }, "value": "x", @@ -459,7 +459,7 @@ "type": "Identifier", "span": { "start": 289, - "end": 298, + "end": 290, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typesWithPublicConstructor.json b/crates/swc_ecma_parser/tests/tsc/typesWithPublicConstructor.json index a9b4e8d2dd28..0cb5705b0f9f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typesWithPublicConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/typesWithPublicConstructor.json @@ -259,7 +259,7 @@ "type": "Identifier", "span": { "start": 191, - "end": 200, + "end": 192, "ctxt": 0 }, "value": "x", @@ -318,7 +318,7 @@ "type": "Identifier", "span": { "start": 226, - "end": 232, + "end": 227, "ctxt": 0 }, "value": "x", @@ -459,7 +459,7 @@ "type": "Identifier", "span": { "start": 269, - "end": 278, + "end": 270, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedCallSignatures.json index 5f853565d627..d356a3f06771 100644 --- a/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedCallSignatures.json @@ -291,7 +291,7 @@ "type": "Identifier", "span": { "start": 191, - "end": 198, + "end": 192, "ctxt": 0 }, "value": "x", @@ -401,7 +401,7 @@ "type": "Identifier", "span": { "start": 219, - "end": 227, + "end": 220, "ctxt": 0 }, "value": "x", @@ -511,7 +511,7 @@ "type": "Identifier", "span": { "start": 248, - "end": 257, + "end": 249, "ctxt": 0 }, "value": "x", @@ -779,7 +779,7 @@ "type": "Identifier", "span": { "start": 345, - "end": 352, + "end": 346, "ctxt": 0 }, "value": "x", @@ -866,7 +866,7 @@ "type": "Identifier", "span": { "start": 373, - "end": 381, + "end": 374, "ctxt": 0 }, "value": "x", @@ -953,7 +953,7 @@ "type": "Identifier", "span": { "start": 402, - "end": 411, + "end": 403, "ctxt": 0 }, "value": "x", @@ -1134,7 +1134,7 @@ "type": "Identifier", "span": { "start": 450, - "end": 457, + "end": 451, "ctxt": 0 }, "value": "x", @@ -1221,7 +1221,7 @@ "type": "Identifier", "span": { "start": 478, - "end": 486, + "end": 479, "ctxt": 0 }, "value": "x", @@ -1308,7 +1308,7 @@ "type": "Identifier", "span": { "start": 507, - "end": 516, + "end": 508, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedConstructSignatures.json index dcf3bf048924..f2dd20603345 100644 --- a/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedConstructSignatures.json @@ -290,7 +290,7 @@ "type": "Identifier", "span": { "start": 199, - "end": 206, + "end": 200, "ctxt": 0 }, "value": "x", @@ -358,7 +358,7 @@ "type": "Identifier", "span": { "start": 225, - "end": 233, + "end": 226, "ctxt": 0 }, "value": "x", @@ -426,7 +426,7 @@ "type": "Identifier", "span": { "start": 252, - "end": 261, + "end": 253, "ctxt": 0 }, "value": "x", @@ -638,7 +638,7 @@ "type": "Identifier", "span": { "start": 354, - "end": 361, + "end": 355, "ctxt": 0 }, "value": "x", @@ -712,7 +712,7 @@ "type": "Identifier", "span": { "start": 382, - "end": 390, + "end": 383, "ctxt": 0 }, "value": "x", @@ -786,7 +786,7 @@ "type": "Identifier", "span": { "start": 411, - "end": 420, + "end": 412, "ctxt": 0 }, "value": "x", @@ -954,7 +954,7 @@ "type": "Identifier", "span": { "start": 459, - "end": 466, + "end": 460, "ctxt": 0 }, "value": "x", @@ -1028,7 +1028,7 @@ "type": "Identifier", "span": { "start": 487, - "end": 495, + "end": 488, "ctxt": 0 }, "value": "x", @@ -1102,7 +1102,7 @@ "type": "Identifier", "span": { "start": 516, - "end": 525, + "end": 517, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/undefinedAssignableToEveryType.json b/crates/swc_ecma_parser/tests/tsc/undefinedAssignableToEveryType.json index 0dbf7364af63..286165b04e51 100644 --- a/crates/swc_ecma_parser/tests/tsc/undefinedAssignableToEveryType.json +++ b/crates/swc_ecma_parser/tests/tsc/undefinedAssignableToEveryType.json @@ -1041,7 +1041,7 @@ "type": "Identifier", "span": { "start": 383, - "end": 392, + "end": 384, "ctxt": 0 }, "value": "x", @@ -1425,7 +1425,7 @@ "type": "Identifier", "span": { "start": 541, - "end": 545, + "end": 542, "ctxt": 0 }, "value": "x", @@ -1698,7 +1698,7 @@ "type": "Identifier", "span": { "start": 655, - "end": 659, + "end": 656, "ctxt": 0 }, "value": "x", @@ -1744,7 +1744,7 @@ "type": "Identifier", "span": { "start": 661, - "end": 665, + "end": 662, "ctxt": 0 }, "value": "y", @@ -1790,7 +1790,7 @@ "type": "Identifier", "span": { "start": 667, - "end": 671, + "end": 668, "ctxt": 0 }, "value": "z", diff --git a/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference1.json b/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference1.json index 7b39f68b50b1..25da0d71564b 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference1.json +++ b/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference1.json @@ -209,7 +209,7 @@ "type": "Identifier", "span": { "start": 145, - "end": 161, + "end": 154, "ctxt": 0 }, "value": "something", @@ -284,7 +284,7 @@ "type": "Identifier", "span": { "start": 167, - "end": 193, + "end": 176, "ctxt": 0 }, "value": "haveValue", @@ -308,7 +308,7 @@ "type": "Identifier", "span": { "start": 179, - "end": 187, + "end": 184, "ctxt": 0 }, "value": "value", @@ -386,7 +386,7 @@ "type": "Identifier", "span": { "start": 199, - "end": 221, + "end": 204, "ctxt": 0 }, "value": "haveY", @@ -410,7 +410,7 @@ "type": "Identifier", "span": { "start": 207, - "end": 215, + "end": 212, "ctxt": 0 }, "value": "value", @@ -1031,7 +1031,7 @@ "type": "Identifier", "span": { "start": 487, - "end": 502, + "end": 492, "ctxt": 0 }, "value": "value", @@ -1225,7 +1225,7 @@ "type": "Identifier", "span": { "start": 568, - "end": 583, + "end": 573, "ctxt": 0 }, "value": "value", @@ -1429,7 +1429,7 @@ "type": "Identifier", "span": { "start": 642, - "end": 655, + "end": 647, "ctxt": 0 }, "value": "value", @@ -1676,7 +1676,7 @@ "type": "Identifier", "span": { "start": 790, - "end": 803, + "end": 795, "ctxt": 0 }, "value": "value", @@ -2013,7 +2013,7 @@ "type": "Identifier", "span": { "start": 998, - "end": 1009, + "end": 999, "ctxt": 0 }, "value": "x", @@ -2551,7 +2551,7 @@ "type": "Identifier", "span": { "start": 1275, - "end": 1286, + "end": 1276, "ctxt": 0 }, "value": "y", @@ -3374,7 +3374,7 @@ "type": "Identifier", "span": { "start": 1669, - "end": 1677, + "end": 1670, "ctxt": 0 }, "value": "x", @@ -3586,7 +3586,7 @@ "type": "Identifier", "span": { "start": 1713, - "end": 1717, + "end": 1714, "ctxt": 0 }, "value": "x", @@ -3632,7 +3632,7 @@ "type": "Identifier", "span": { "start": 1719, - "end": 1723, + "end": 1720, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference2.json b/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference2.json index 9af964b922f4..a2be218ac1d8 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference2.json +++ b/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 24, - "end": 37, + "end": 25, "ctxt": 0 }, "value": "x", @@ -780,7 +780,7 @@ "type": "Identifier", "span": { "start": 322, - "end": 345, + "end": 323, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference3.json b/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference3.json index 37c36206a9cd..b31fd09f1689 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference3.json +++ b/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference3.json @@ -497,7 +497,7 @@ "type": "Identifier", "span": { "start": 235, - "end": 288, + "end": 238, "ctxt": 0 }, "value": "com", @@ -859,7 +859,7 @@ "type": "Identifier", "span": { "start": 322, - "end": 375, + "end": 325, "ctxt": 0 }, "value": "com", @@ -1326,7 +1326,7 @@ "type": "Identifier", "span": { "start": 440, - "end": 448, + "end": 445, "ctxt": 0 }, "value": "value", @@ -1467,7 +1467,7 @@ "type": "Identifier", "span": { "start": 489, - "end": 514, + "end": 494, "ctxt": 0 }, "value": "value", @@ -1625,7 +1625,7 @@ "type": "Identifier", "span": { "start": 546, - "end": 566, + "end": 547, "ctxt": 0 }, "value": "x", @@ -1885,7 +1885,7 @@ "type": "Identifier", "span": { "start": 603, - "end": 623, + "end": 604, "ctxt": 0 }, "value": "x", @@ -2260,7 +2260,7 @@ "type": "Identifier", "span": { "start": 686, - "end": 694, + "end": 691, "ctxt": 0 }, "value": "value", @@ -2400,7 +2400,7 @@ "type": "Identifier", "span": { "start": 732, - "end": 757, + "end": 737, "ctxt": 0 }, "value": "value", @@ -2558,7 +2558,7 @@ "type": "Identifier", "span": { "start": 789, - "end": 809, + "end": 790, "ctxt": 0 }, "value": "x", @@ -2818,7 +2818,7 @@ "type": "Identifier", "span": { "start": 846, - "end": 866, + "end": 847, "ctxt": 0 }, "value": "x", @@ -3135,7 +3135,7 @@ "type": "Identifier", "span": { "start": 950, - "end": 977, + "end": 953, "ctxt": 0 }, "value": "obj", @@ -3321,7 +3321,7 @@ "type": "Identifier", "span": { "start": 1008, - "end": 1025, + "end": 1011, "ctxt": 0 }, "value": "obj", @@ -4076,7 +4076,7 @@ "type": "Identifier", "span": { "start": 1339, - "end": 1347, + "end": 1344, "ctxt": 0 }, "value": "props", @@ -4240,7 +4240,7 @@ "type": "Identifier", "span": { "start": 1402, - "end": 1410, + "end": 1407, "ctxt": 0 }, "value": "props", @@ -4565,7 +4565,7 @@ "type": "Identifier", "span": { "start": 1648, - "end": 1679, + "end": 1657, "ctxt": 0 }, "value": "component", @@ -5329,7 +5329,7 @@ "type": "Identifier", "span": { "start": 2023, - "end": 2037, + "end": 2026, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/tsc/unionSubtypeIfEveryConstituentTypeIsSubtype.json b/crates/swc_ecma_parser/tests/tsc/unionSubtypeIfEveryConstituentTypeIsSubtype.json index 902939cdd2d7..3e8e972b98a8 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionSubtypeIfEveryConstituentTypeIsSubtype.json +++ b/crates/swc_ecma_parser/tests/tsc/unionSubtypeIfEveryConstituentTypeIsSubtype.json @@ -3082,7 +3082,7 @@ "type": "Identifier", "span": { "start": 1573, - "end": 1577, + "end": 1574, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/unionThisTypeInFunctions.json b/crates/swc_ecma_parser/tests/tsc/unionThisTypeInFunctions.json index 5132b5e0e8dc..a551f3085460 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionThisTypeInFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/unionThisTypeInFunctions.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 29, - "end": 39, + "end": 33, "ctxt": 0 }, "value": "this", @@ -85,7 +85,7 @@ "type": "Identifier", "span": { "start": 41, - "end": 50, + "end": 42, "ctxt": 0 }, "value": "n", @@ -225,7 +225,7 @@ "type": "Identifier", "span": { "start": 107, - "end": 117, + "end": 111, "ctxt": 0 }, "value": "this", @@ -251,7 +251,7 @@ "type": "Identifier", "span": { "start": 119, - "end": 128, + "end": 120, "ctxt": 0 }, "value": "n", @@ -364,7 +364,7 @@ "type": "Identifier", "span": { "start": 171, - "end": 185, + "end": 172, "ctxt": 0 }, "value": "r", diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures.json index fda526267839..0a6d85f4f92e 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures.json @@ -281,7 +281,7 @@ "type": "Identifier", "span": { "start": 400, - "end": 409, + "end": 401, "ctxt": 0 }, "value": "a", @@ -346,7 +346,7 @@ "type": "Identifier", "span": { "start": 427, - "end": 436, + "end": 428, "ctxt": 0 }, "value": "a", @@ -636,7 +636,7 @@ "type": "Identifier", "span": { "start": 656, - "end": 665, + "end": 657, "ctxt": 0 }, "value": "a", @@ -691,7 +691,7 @@ "type": "Identifier", "span": { "start": 677, - "end": 686, + "end": 678, "ctxt": 0 }, "value": "a", @@ -756,7 +756,7 @@ "type": "Identifier", "span": { "start": 704, - "end": 713, + "end": 705, "ctxt": 0 }, "value": "a", @@ -821,7 +821,7 @@ "type": "Identifier", "span": { "start": 723, - "end": 732, + "end": 724, "ctxt": 0 }, "value": "a", @@ -1129,7 +1129,7 @@ "type": "Identifier", "span": { "start": 1008, - "end": 1017, + "end": 1009, "ctxt": 0 }, "value": "a", @@ -1194,7 +1194,7 @@ "type": "Identifier", "span": { "start": 1035, - "end": 1044, + "end": 1036, "ctxt": 0 }, "value": "a", @@ -1431,7 +1431,7 @@ "type": "Identifier", "span": { "start": 1298, - "end": 1307, + "end": 1299, "ctxt": 0 }, "value": "a", @@ -1496,7 +1496,7 @@ "type": "Identifier", "span": { "start": 1325, - "end": 1334, + "end": 1326, "ctxt": 0 }, "value": "a", @@ -1561,7 +1561,7 @@ "type": "Identifier", "span": { "start": 1344, - "end": 1353, + "end": 1345, "ctxt": 0 }, "value": "a", @@ -1788,7 +1788,7 @@ "type": "Identifier", "span": { "start": 1623, - "end": 1632, + "end": 1624, "ctxt": 0 }, "value": "a", @@ -1853,7 +1853,7 @@ "type": "Identifier", "span": { "start": 1650, - "end": 1659, + "end": 1651, "ctxt": 0 }, "value": "a", @@ -1880,7 +1880,7 @@ "type": "Identifier", "span": { "start": 1661, - "end": 1670, + "end": 1662, "ctxt": 0 }, "value": "b", @@ -2120,7 +2120,7 @@ "type": "Identifier", "span": { "start": 1889, - "end": 1898, + "end": 1890, "ctxt": 0 }, "value": "a", @@ -2147,7 +2147,7 @@ "type": "Identifier", "span": { "start": 1900, - "end": 1910, + "end": 1901, "ctxt": 0 }, "value": "b", @@ -2212,7 +2212,7 @@ "type": "Identifier", "span": { "start": 1928, - "end": 1937, + "end": 1929, "ctxt": 0 }, "value": "a", @@ -2239,7 +2239,7 @@ "type": "Identifier", "span": { "start": 1939, - "end": 1949, + "end": 1940, "ctxt": 0 }, "value": "b", @@ -2614,7 +2614,7 @@ "type": "Identifier", "span": { "start": 2238, - "end": 2247, + "end": 2239, "ctxt": 0 }, "value": "a", @@ -2641,7 +2641,7 @@ "type": "Identifier", "span": { "start": 2249, - "end": 2259, + "end": 2250, "ctxt": 0 }, "value": "b", @@ -2706,7 +2706,7 @@ "type": "Identifier", "span": { "start": 2277, - "end": 2286, + "end": 2278, "ctxt": 0 }, "value": "a", @@ -2733,7 +2733,7 @@ "type": "Identifier", "span": { "start": 2288, - "end": 2297, + "end": 2289, "ctxt": 0 }, "value": "b", @@ -3108,7 +3108,7 @@ "type": "Identifier", "span": { "start": 2657, - "end": 2666, + "end": 2658, "ctxt": 0 }, "value": "a", @@ -3135,7 +3135,7 @@ "type": "Identifier", "span": { "start": 2668, - "end": 2678, + "end": 2669, "ctxt": 0 }, "value": "b", @@ -3200,7 +3200,7 @@ "type": "Identifier", "span": { "start": 2696, - "end": 2705, + "end": 2697, "ctxt": 0 }, "value": "a", @@ -3575,7 +3575,7 @@ "type": "Identifier", "span": { "start": 3002, - "end": 3011, + "end": 3003, "ctxt": 0 }, "value": "a", @@ -3689,7 +3689,7 @@ "type": "Identifier", "span": { "start": 3045, - "end": 3054, + "end": 3046, "ctxt": 0 }, "value": "a", @@ -4201,7 +4201,7 @@ "type": "Identifier", "span": { "start": 3391, - "end": 3400, + "end": 3392, "ctxt": 0 }, "value": "a", @@ -4315,7 +4315,7 @@ "type": "Identifier", "span": { "start": 3434, - "end": 3443, + "end": 3435, "ctxt": 0 }, "value": "a", @@ -4342,7 +4342,7 @@ "type": "Identifier", "span": { "start": 3445, - "end": 3454, + "end": 3446, "ctxt": 0 }, "value": "b", @@ -4805,7 +4805,7 @@ "type": "Identifier", "span": { "start": 3874, - "end": 3883, + "end": 3875, "ctxt": 0 }, "value": "a", @@ -4919,7 +4919,7 @@ "type": "Identifier", "span": { "start": 3917, - "end": 3926, + "end": 3918, "ctxt": 0 }, "value": "a", @@ -5469,7 +5469,7 @@ "type": "Identifier", "span": { "start": 4347, - "end": 4356, + "end": 4348, "ctxt": 0 }, "value": "a", @@ -5496,7 +5496,7 @@ "type": "Identifier", "span": { "start": 4358, - "end": 4367, + "end": 4359, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures2.json b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures2.json index 7d2f3edee55d..e3092ca12a3b 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures2.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 20, - "end": 29, + "end": 21, "ctxt": 0 }, "value": "x", @@ -101,7 +101,7 @@ "type": "Identifier", "span": { "start": 45, - "end": 54, + "end": 46, "ctxt": 0 }, "value": "x", @@ -128,7 +128,7 @@ "type": "Identifier", "span": { "start": 56, - "end": 66, + "end": 57, "ctxt": 0 }, "value": "y", @@ -183,7 +183,7 @@ "type": "Identifier", "span": { "start": 83, - "end": 90, + "end": 84, "ctxt": 0 }, "value": "x", @@ -248,7 +248,7 @@ "type": "Identifier", "span": { "start": 107, - "end": 113, + "end": 108, "ctxt": 0 }, "value": "x", @@ -402,7 +402,7 @@ "type": "Identifier", "span": { "start": 143, - "end": 152, + "end": 144, "ctxt": 0 }, "value": "x", @@ -457,7 +457,7 @@ "type": "Identifier", "span": { "start": 168, - "end": 177, + "end": 169, "ctxt": 0 }, "value": "x", @@ -512,7 +512,7 @@ "type": "Identifier", "span": { "start": 193, - "end": 200, + "end": 194, "ctxt": 0 }, "value": "x", @@ -577,7 +577,7 @@ "type": "Identifier", "span": { "start": 217, - "end": 223, + "end": 218, "ctxt": 0 }, "value": "x", @@ -731,7 +731,7 @@ "type": "Identifier", "span": { "start": 253, - "end": 262, + "end": 254, "ctxt": 0 }, "value": "x", @@ -835,7 +835,7 @@ "type": "Identifier", "span": { "start": 294, - "end": 303, + "end": 295, "ctxt": 0 }, "value": "x", @@ -862,7 +862,7 @@ "type": "Identifier", "span": { "start": 305, - "end": 315, + "end": 306, "ctxt": 0 }, "value": "s", @@ -917,7 +917,7 @@ "type": "Identifier", "span": { "start": 334, - "end": 340, + "end": 335, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures3.json b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures3.json index a3ce3dc59bc7..f3fda50ced8a 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures3.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures3.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 13, - "end": 22, + "end": 14, "ctxt": 0 }, "value": "s", @@ -103,7 +103,7 @@ "type": "Identifier", "span": { "start": 40, - "end": 50, + "end": 41, "ctxt": 0 }, "value": "s", @@ -267,7 +267,7 @@ "type": "Identifier", "span": { "start": 100, - "end": 109, + "end": 101, "ctxt": 0 }, "value": "s", @@ -303,7 +303,7 @@ "type": "Identifier", "span": { "start": 111, - "end": 122, + "end": 113, "ctxt": 0 }, "value": "s2", @@ -374,7 +374,7 @@ "type": "Identifier", "span": { "start": 140, - "end": 150, + "end": 141, "ctxt": 0 }, "value": "s", @@ -410,7 +410,7 @@ "type": "Identifier", "span": { "start": 152, - "end": 162, + "end": 153, "ctxt": 0 }, "value": "n", @@ -481,7 +481,7 @@ "type": "Identifier", "span": { "start": 180, - "end": 190, + "end": 181, "ctxt": 0 }, "value": "s", @@ -610,7 +610,7 @@ "type": "Identifier", "span": { "start": 224, - "end": 233, + "end": 225, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures4.json b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures4.json index 47d20140cef4..18c7a8479b9c 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures4.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures4.json @@ -37,7 +37,7 @@ "type": "Identifier", "span": { "start": 12, - "end": 21, + "end": 13, "ctxt": 0 }, "value": "a", @@ -64,7 +64,7 @@ "type": "Identifier", "span": { "start": 23, - "end": 33, + "end": 24, "ctxt": 0 }, "value": "b", @@ -139,7 +139,7 @@ "type": "Identifier", "span": { "start": 55, - "end": 64, + "end": 56, "ctxt": 0 }, "value": "a", @@ -166,7 +166,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 76, + "end": 67, "ctxt": 0 }, "value": "b", @@ -193,7 +193,7 @@ "type": "Identifier", "span": { "start": 78, - "end": 88, + "end": 79, "ctxt": 0 }, "value": "c", @@ -268,7 +268,7 @@ "type": "Identifier", "span": { "start": 110, - "end": 119, + "end": 111, "ctxt": 0 }, "value": "a", @@ -392,7 +392,7 @@ "type": "Identifier", "span": { "start": 160, - "end": 169, + "end": 161, "ctxt": 0 }, "value": "a", @@ -419,7 +419,7 @@ "type": "Identifier", "span": { "start": 171, - "end": 181, + "end": 172, "ctxt": 0 }, "value": "b", @@ -543,7 +543,7 @@ "type": "Identifier", "span": { "start": 222, - "end": 231, + "end": 223, "ctxt": 0 }, "value": "a", @@ -570,7 +570,7 @@ "type": "Identifier", "span": { "start": 233, - "end": 242, + "end": 234, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures5.json b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures5.json index 76cdb723c8db..db5e9255a08f 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures5.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures5.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 28, - "end": 38, + "end": 32, "ctxt": 0 }, "value": "this", @@ -73,7 +73,7 @@ "type": "Identifier", "span": { "start": 40, - "end": 50, + "end": 41, "ctxt": 0 }, "value": "b", @@ -159,7 +159,7 @@ "type": "Identifier", "span": { "start": 78, - "end": 90, + "end": 82, "ctxt": 0 }, "value": "this", @@ -186,7 +186,7 @@ "type": "Identifier", "span": { "start": 92, - "end": 102, + "end": 93, "ctxt": 0 }, "value": "b", @@ -272,7 +272,7 @@ "type": "Identifier", "span": { "start": 130, - "end": 139, + "end": 131, "ctxt": 0 }, "value": "i", diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures6.json b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures6.json index 60b0eb9e2222..c3a29893f786 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures6.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures6.json @@ -368,7 +368,7 @@ "type": "Identifier", "span": { "start": 141, - "end": 148, + "end": 145, "ctxt": 0 }, "value": "this", @@ -453,7 +453,7 @@ "type": "Identifier", "span": { "start": 170, - "end": 177, + "end": 174, "ctxt": 0 }, "value": "this", @@ -779,7 +779,7 @@ "type": "Identifier", "span": { "start": 287, - "end": 294, + "end": 291, "ctxt": 0 }, "value": "this", @@ -844,7 +844,7 @@ "type": "Identifier", "span": { "start": 306, - "end": 313, + "end": 310, "ctxt": 0 }, "value": "this", @@ -940,7 +940,7 @@ "type": "Identifier", "span": { "start": 342, - "end": 349, + "end": 346, "ctxt": 0 }, "value": "this", @@ -1005,7 +1005,7 @@ "type": "Identifier", "span": { "start": 361, - "end": 368, + "end": 365, "ctxt": 0 }, "value": "this", @@ -1101,7 +1101,7 @@ "type": "Identifier", "span": { "start": 397, - "end": 404, + "end": 401, "ctxt": 0 }, "value": "this", @@ -1166,7 +1166,7 @@ "type": "Identifier", "span": { "start": 416, - "end": 423, + "end": 420, "ctxt": 0 }, "value": "this", @@ -2205,7 +2205,7 @@ "type": "Identifier", "span": { "start": 666, - "end": 677, + "end": 670, "ctxt": 0 }, "value": "this", @@ -2444,7 +2444,7 @@ "type": "Identifier", "span": { "start": 747, - "end": 762, + "end": 751, "ctxt": 0 }, "value": "this", @@ -2557,7 +2557,7 @@ "type": "Identifier", "span": { "start": 774, - "end": 785, + "end": 778, "ctxt": 0 }, "value": "this", diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures7.json b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures7.json index 64129a963878..1c678da3dd5c 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures7.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures7.json @@ -165,7 +165,7 @@ "type": "Identifier", "span": { "start": 166, - "end": 176, + "end": 168, "ctxt": 0 }, "value": "id", diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/unionTypeConstructSignatures.json index fde74c6a4b7f..b441c8e7c0b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeConstructSignatures.json @@ -281,7 +281,7 @@ "type": "Identifier", "span": { "start": 423, - "end": 432, + "end": 424, "ctxt": 0 }, "value": "a", @@ -346,7 +346,7 @@ "type": "Identifier", "span": { "start": 454, - "end": 463, + "end": 455, "ctxt": 0 }, "value": "a", @@ -636,7 +636,7 @@ "type": "Identifier", "span": { "start": 698, - "end": 707, + "end": 699, "ctxt": 0 }, "value": "a", @@ -691,7 +691,7 @@ "type": "Identifier", "span": { "start": 723, - "end": 732, + "end": 724, "ctxt": 0 }, "value": "a", @@ -756,7 +756,7 @@ "type": "Identifier", "span": { "start": 754, - "end": 763, + "end": 755, "ctxt": 0 }, "value": "a", @@ -821,7 +821,7 @@ "type": "Identifier", "span": { "start": 777, - "end": 786, + "end": 778, "ctxt": 0 }, "value": "a", @@ -1129,7 +1129,7 @@ "type": "Identifier", "span": { "start": 1082, - "end": 1091, + "end": 1083, "ctxt": 0 }, "value": "a", @@ -1194,7 +1194,7 @@ "type": "Identifier", "span": { "start": 1113, - "end": 1122, + "end": 1114, "ctxt": 0 }, "value": "a", @@ -1431,7 +1431,7 @@ "type": "Identifier", "span": { "start": 1392, - "end": 1401, + "end": 1393, "ctxt": 0 }, "value": "a", @@ -1496,7 +1496,7 @@ "type": "Identifier", "span": { "start": 1423, - "end": 1432, + "end": 1424, "ctxt": 0 }, "value": "a", @@ -1561,7 +1561,7 @@ "type": "Identifier", "span": { "start": 1446, - "end": 1455, + "end": 1447, "ctxt": 0 }, "value": "a", @@ -1788,7 +1788,7 @@ "type": "Identifier", "span": { "start": 1741, - "end": 1750, + "end": 1742, "ctxt": 0 }, "value": "a", @@ -1853,7 +1853,7 @@ "type": "Identifier", "span": { "start": 1772, - "end": 1781, + "end": 1773, "ctxt": 0 }, "value": "a", @@ -1880,7 +1880,7 @@ "type": "Identifier", "span": { "start": 1783, - "end": 1792, + "end": 1784, "ctxt": 0 }, "value": "b", @@ -2120,7 +2120,7 @@ "type": "Identifier", "span": { "start": 2026, - "end": 2035, + "end": 2027, "ctxt": 0 }, "value": "a", @@ -2147,7 +2147,7 @@ "type": "Identifier", "span": { "start": 2037, - "end": 2047, + "end": 2038, "ctxt": 0 }, "value": "b", @@ -2212,7 +2212,7 @@ "type": "Identifier", "span": { "start": 2069, - "end": 2078, + "end": 2070, "ctxt": 0 }, "value": "a", @@ -2239,7 +2239,7 @@ "type": "Identifier", "span": { "start": 2080, - "end": 2090, + "end": 2081, "ctxt": 0 }, "value": "b", @@ -2614,7 +2614,7 @@ "type": "Identifier", "span": { "start": 2399, - "end": 2408, + "end": 2400, "ctxt": 0 }, "value": "a", @@ -2641,7 +2641,7 @@ "type": "Identifier", "span": { "start": 2410, - "end": 2420, + "end": 2411, "ctxt": 0 }, "value": "b", @@ -2706,7 +2706,7 @@ "type": "Identifier", "span": { "start": 2442, - "end": 2451, + "end": 2443, "ctxt": 0 }, "value": "a", @@ -2733,7 +2733,7 @@ "type": "Identifier", "span": { "start": 2453, - "end": 2462, + "end": 2454, "ctxt": 0 }, "value": "b", @@ -3108,7 +3108,7 @@ "type": "Identifier", "span": { "start": 2842, - "end": 2851, + "end": 2843, "ctxt": 0 }, "value": "a", @@ -3135,7 +3135,7 @@ "type": "Identifier", "span": { "start": 2853, - "end": 2863, + "end": 2854, "ctxt": 0 }, "value": "b", @@ -3200,7 +3200,7 @@ "type": "Identifier", "span": { "start": 2885, - "end": 2894, + "end": 2886, "ctxt": 0 }, "value": "a", @@ -3575,7 +3575,7 @@ "type": "Identifier", "span": { "start": 3237, - "end": 3246, + "end": 3238, "ctxt": 0 }, "value": "a", @@ -3689,7 +3689,7 @@ "type": "Identifier", "span": { "start": 3284, - "end": 3293, + "end": 3285, "ctxt": 0 }, "value": "a", @@ -4201,7 +4201,7 @@ "type": "Identifier", "span": { "start": 3654, - "end": 3663, + "end": 3655, "ctxt": 0 }, "value": "a", @@ -4315,7 +4315,7 @@ "type": "Identifier", "span": { "start": 3701, - "end": 3710, + "end": 3702, "ctxt": 0 }, "value": "a", @@ -4342,7 +4342,7 @@ "type": "Identifier", "span": { "start": 3712, - "end": 3721, + "end": 3713, "ctxt": 0 }, "value": "b", @@ -4805,7 +4805,7 @@ "type": "Identifier", "span": { "start": 4165, - "end": 4174, + "end": 4166, "ctxt": 0 }, "value": "a", @@ -4919,7 +4919,7 @@ "type": "Identifier", "span": { "start": 4212, - "end": 4221, + "end": 4213, "ctxt": 0 }, "value": "a", @@ -5381,7 +5381,7 @@ "type": "Identifier", "span": { "start": 4621, - "end": 4630, + "end": 4622, "ctxt": 0 }, "value": "a", @@ -5445,7 +5445,7 @@ "type": "Identifier", "span": { "start": 4651, - "end": 4660, + "end": 4652, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeInference.json b/crates/swc_ecma_parser/tests/tsc/unionTypeInference.json index 730911a7bd81..c7d2a0c298b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeInference.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeInference.json @@ -198,7 +198,7 @@ "type": "Identifier", "span": { "start": 148, - "end": 152, + "end": 149, "ctxt": 0 }, "value": "x", @@ -244,7 +244,7 @@ "type": "Identifier", "span": { "start": 154, - "end": 167, + "end": 155, "ctxt": 0 }, "value": "y", @@ -945,7 +945,7 @@ "type": "Identifier", "span": { "start": 458, - "end": 476, + "end": 463, "ctxt": 0 }, "value": "value", @@ -1204,7 +1204,7 @@ "type": "Identifier", "span": { "start": 550, - "end": 571, + "end": 551, "ctxt": 0 }, "value": "x", @@ -1700,7 +1700,7 @@ "type": "Identifier", "span": { "start": 745, - "end": 758, + "end": 746, "ctxt": 0 }, "value": "x", @@ -2114,7 +2114,7 @@ "type": "Identifier", "span": { "start": 873, - "end": 896, + "end": 874, "ctxt": 0 }, "value": "f", @@ -2138,7 +2138,7 @@ "type": "Identifier", "span": { "start": 877, - "end": 881, + "end": 878, "ctxt": 0 }, "value": "x", @@ -2264,7 +2264,7 @@ "type": "Identifier", "span": { "start": 898, - "end": 902, + "end": 899, "ctxt": 0 }, "value": "g", @@ -2483,7 +2483,7 @@ "type": "Identifier", "span": { "start": 953, - "end": 976, + "end": 954, "ctxt": 0 }, "value": "f", @@ -2507,7 +2507,7 @@ "type": "Identifier", "span": { "start": 957, - "end": 961, + "end": 958, "ctxt": 0 }, "value": "x", @@ -2633,7 +2633,7 @@ "type": "Identifier", "span": { "start": 978, - "end": 982, + "end": 979, "ctxt": 0 }, "value": "g", @@ -2786,7 +2786,7 @@ "type": "Identifier", "span": { "start": 1009, - "end": 1022, + "end": 1011, "ctxt": 0 }, "value": "p1", @@ -2850,7 +2850,7 @@ "type": "Identifier", "span": { "start": 1024, - "end": 1037, + "end": 1026, "ctxt": 0 }, "value": "p2", @@ -2988,7 +2988,7 @@ "type": "Identifier", "span": { "start": 1104, - "end": 1121, + "end": 1105, "ctxt": 0 }, "value": "x", @@ -3320,7 +3320,7 @@ "type": "Identifier", "span": { "start": 1201, - "end": 1205, + "end": 1202, "ctxt": 0 }, "value": "x", @@ -3366,7 +3366,7 @@ "type": "Identifier", "span": { "start": 1207, - "end": 1220, + "end": 1208, "ctxt": 0 }, "value": "y", @@ -4089,7 +4089,7 @@ "type": "Identifier", "span": { "start": 1496, - "end": 1525, + "end": 1508, "ctxt": 0 }, "value": "deepPromised", @@ -4870,7 +4870,7 @@ "type": "Identifier", "span": { "start": 1917, - "end": 1928, + "end": 1919, "ctxt": 0 }, "value": "dp", diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeMembers.json b/crates/swc_ecma_parser/tests/tsc/unionTypeMembers.json index 3ecdb05b62b5..de713ab3ca7f 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeMembers.json @@ -91,7 +91,7 @@ "type": "Identifier", "span": { "start": 40, - "end": 49, + "end": 41, "ctxt": 0 }, "value": "a", @@ -200,7 +200,7 @@ "type": "Identifier", "span": { "start": 132, - "end": 141, + "end": 133, "ctxt": 0 }, "value": "a", @@ -268,7 +268,7 @@ "type": "Identifier", "span": { "start": 188, - "end": 197, + "end": 189, "ctxt": 0 }, "value": "a", @@ -377,7 +377,7 @@ "type": "Identifier", "span": { "start": 283, - "end": 287, + "end": 284, "ctxt": 0 }, "value": "a", @@ -465,7 +465,7 @@ "type": "Identifier", "span": { "start": 333, - "end": 337, + "end": 334, "ctxt": 0 }, "value": "a", @@ -585,7 +585,7 @@ "type": "Identifier", "span": { "start": 363, - "end": 372, + "end": 364, "ctxt": 0 }, "value": "a", @@ -757,7 +757,7 @@ "type": "Identifier", "span": { "start": 455, - "end": 464, + "end": 456, "ctxt": 0 }, "value": "a", @@ -866,7 +866,7 @@ "type": "Identifier", "span": { "start": 547, - "end": 556, + "end": 548, "ctxt": 0 }, "value": "a", @@ -934,7 +934,7 @@ "type": "Identifier", "span": { "start": 603, - "end": 612, + "end": 604, "ctxt": 0 }, "value": "a", @@ -1043,7 +1043,7 @@ "type": "Identifier", "span": { "start": 698, - "end": 702, + "end": 699, "ctxt": 0 }, "value": "a", @@ -1131,7 +1131,7 @@ "type": "Identifier", "span": { "start": 748, - "end": 752, + "end": 749, "ctxt": 0 }, "value": "a", @@ -1251,7 +1251,7 @@ "type": "Identifier", "span": { "start": 778, - "end": 787, + "end": 779, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeReduction2.json b/crates/swc_ecma_parser/tests/tsc/unionTypeReduction2.json index 2b958bc6122c..1582d5007ffc 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeReduction2.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeReduction2.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 31, - "end": 47, + "end": 32, "ctxt": 0 }, "value": "x", @@ -109,7 +109,7 @@ "type": "Identifier", "span": { "start": 49, - "end": 75, + "end": 50, "ctxt": 0 }, "value": "y", @@ -154,7 +154,7 @@ "type": "Identifier", "span": { "start": 56, - "end": 66, + "end": 57, "ctxt": 0 }, "value": "x", @@ -443,7 +443,7 @@ "type": "Identifier", "span": { "start": 179, - "end": 216, + "end": 180, "ctxt": 0 }, "value": "x", @@ -488,7 +488,7 @@ "type": "Identifier", "span": { "start": 186, - "end": 207, + "end": 187, "ctxt": 0 }, "value": "x", @@ -567,7 +567,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 244, + "end": 219, "ctxt": 0 }, "value": "y", @@ -612,7 +612,7 @@ "type": "Identifier", "span": { "start": 225, - "end": 235, + "end": 226, "ctxt": 0 }, "value": "x", @@ -901,7 +901,7 @@ "type": "Identifier", "span": { "start": 348, - "end": 361, + "end": 349, "ctxt": 0 }, "value": "x", @@ -955,7 +955,7 @@ "type": "Identifier", "span": { "start": 363, - "end": 386, + "end": 364, "ctxt": 0 }, "value": "y", @@ -979,7 +979,7 @@ "type": "Identifier", "span": { "start": 367, - "end": 377, + "end": 368, "ctxt": 0 }, "value": "x", @@ -1230,7 +1230,7 @@ "type": "Identifier", "span": { "start": 483, - "end": 517, + "end": 484, "ctxt": 0 }, "value": "x", @@ -1254,7 +1254,7 @@ "type": "Identifier", "span": { "start": 487, - "end": 508, + "end": 488, "ctxt": 0 }, "value": "x", @@ -1331,7 +1331,7 @@ "type": "Identifier", "span": { "start": 519, - "end": 542, + "end": 520, "ctxt": 0 }, "value": "y", @@ -1355,7 +1355,7 @@ "type": "Identifier", "span": { "start": 523, - "end": 533, + "end": 524, "ctxt": 0 }, "value": "x", @@ -1606,7 +1606,7 @@ "type": "Identifier", "span": { "start": 639, - "end": 673, + "end": 640, "ctxt": 0 }, "value": "x", @@ -1630,7 +1630,7 @@ "type": "Identifier", "span": { "start": 643, - "end": 664, + "end": 644, "ctxt": 0 }, "value": "x", @@ -1707,7 +1707,7 @@ "type": "Identifier", "span": { "start": 675, - "end": 699, + "end": 676, "ctxt": 0 }, "value": "y", @@ -1731,7 +1731,7 @@ "type": "Identifier", "span": { "start": 679, - "end": 690, + "end": 680, "ctxt": 0 }, "value": "x", @@ -1991,7 +1991,7 @@ "type": "Identifier", "span": { "start": 797, - "end": 832, + "end": 798, "ctxt": 0 }, "value": "x", @@ -2015,7 +2015,7 @@ "type": "Identifier", "span": { "start": 801, - "end": 823, + "end": 802, "ctxt": 0 }, "value": "x", @@ -2101,7 +2101,7 @@ "type": "Identifier", "span": { "start": 834, - "end": 857, + "end": 835, "ctxt": 0 }, "value": "y", @@ -2125,7 +2125,7 @@ "type": "Identifier", "span": { "start": 838, - "end": 848, + "end": 839, "ctxt": 0 }, "value": "x", @@ -2472,7 +2472,7 @@ "type": "Identifier", "span": { "start": 1010, - "end": 1020, + "end": 1011, "ctxt": 0 }, "value": "x", @@ -2584,7 +2584,7 @@ "type": "Identifier", "span": { "start": 1060, - "end": 1064, + "end": 1061, "ctxt": 0 }, "value": "a", @@ -2630,7 +2630,7 @@ "type": "Identifier", "span": { "start": 1066, - "end": 1070, + "end": 1067, "ctxt": 0 }, "value": "b", @@ -3136,7 +3136,7 @@ "type": "Identifier", "span": { "start": 1299, - "end": 1340, + "end": 1306, "ctxt": 0 }, "value": "options", @@ -3181,7 +3181,7 @@ "type": "Identifier", "span": { "start": 1321, - "end": 1331, + "end": 1322, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypesAssignability.json b/crates/swc_ecma_parser/tests/tsc/unionTypesAssignability.json index 47b8badcebad..9f78cb4e3d98 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypesAssignability.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypesAssignability.json @@ -2142,7 +2142,7 @@ "type": "Identifier", "span": { "start": 1234, - "end": 1238, + "end": 1235, "ctxt": 0 }, "value": "t", @@ -2188,7 +2188,7 @@ "type": "Identifier", "span": { "start": 1240, - "end": 1244, + "end": 1241, "ctxt": 0 }, "value": "u", diff --git a/crates/swc_ecma_parser/tests/tsc/unionsOfTupleTypes1.json b/crates/swc_ecma_parser/tests/tsc/unionsOfTupleTypes1.json index 1340e0167758..188c40efd150 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionsOfTupleTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/unionsOfTupleTypes1.json @@ -1424,7 +1424,7 @@ "type": "Identifier", "span": { "start": 784, - "end": 790, + "end": 786, "ctxt": 0 }, "value": "t1", @@ -1470,7 +1470,7 @@ "type": "Identifier", "span": { "start": 792, - "end": 798, + "end": 794, "ctxt": 0 }, "value": "t2", @@ -1516,7 +1516,7 @@ "type": "Identifier", "span": { "start": 800, - "end": 806, + "end": 802, "ctxt": 0 }, "value": "t3", @@ -1562,7 +1562,7 @@ "type": "Identifier", "span": { "start": 808, - "end": 814, + "end": 810, "ctxt": 0 }, "value": "t4", @@ -1608,7 +1608,7 @@ "type": "Identifier", "span": { "start": 816, - "end": 825, + "end": 817, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/uniqueSymbols.json b/crates/swc_ecma_parser/tests/tsc/uniqueSymbols.json index 3e7a6e6b29f7..b08ab97e00c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/uniqueSymbols.json +++ b/crates/swc_ecma_parser/tests/tsc/uniqueSymbols.json @@ -5250,7 +5250,7 @@ "type": "Identifier", "span": { "start": 5085, - "end": 5089, + "end": 5086, "ctxt": 0 }, "value": "x", @@ -5381,7 +5381,7 @@ "type": "Identifier", "span": { "start": 5114, - "end": 5125, + "end": 5115, "ctxt": 0 }, "value": "x", @@ -5470,7 +5470,7 @@ "type": "Identifier", "span": { "start": 5153, - "end": 5166, + "end": 5154, "ctxt": 0 }, "value": "x", @@ -9224,7 +9224,7 @@ "type": "Identifier", "span": { "start": 6713, - "end": 6725, + "end": 6714, "ctxt": 0 }, "value": "p", @@ -9736,7 +9736,7 @@ "type": "Identifier", "span": { "start": 7330, - "end": 7341, + "end": 7331, "ctxt": 0 }, "value": "p", @@ -9861,7 +9861,7 @@ "type": "Identifier", "span": { "start": 7392, - "end": 7412, + "end": 7393, "ctxt": 0 }, "value": "p", @@ -10090,7 +10090,7 @@ "type": "Identifier", "span": { "start": 7495, - "end": 7506, + "end": 7496, "ctxt": 0 }, "value": "p", @@ -10228,7 +10228,7 @@ "type": "Identifier", "span": { "start": 7556, - "end": 7576, + "end": 7557, "ctxt": 0 }, "value": "p", @@ -10426,7 +10426,7 @@ "type": "Identifier", "span": { "start": 7659, - "end": 7693, + "end": 7662, "ctxt": 0 }, "value": "obj", @@ -10471,7 +10471,7 @@ "type": "Identifier", "span": { "start": 7673, - "end": 7684, + "end": 7674, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarations.json b/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarations.json index 25641574ccf3..162f51039588 100644 --- a/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarations.json @@ -5167,7 +5167,7 @@ "type": "Identifier", "span": { "start": 4962, - "end": 4966, + "end": 4963, "ctxt": 0 }, "value": "x", @@ -5298,7 +5298,7 @@ "type": "Identifier", "span": { "start": 4991, - "end": 5002, + "end": 4992, "ctxt": 0 }, "value": "x", @@ -5387,7 +5387,7 @@ "type": "Identifier", "span": { "start": 5030, - "end": 5043, + "end": 5031, "ctxt": 0 }, "value": "x", @@ -9141,7 +9141,7 @@ "type": "Identifier", "span": { "start": 6589, - "end": 6601, + "end": 6590, "ctxt": 0 }, "value": "p", diff --git a/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsErrors.json b/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsErrors.json index 6f72f0c62166..8a9cc088386d 100644 --- a/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsErrors.json @@ -213,7 +213,7 @@ "type": "Identifier", "span": { "start": 278, - "end": 289, + "end": 279, "ctxt": 0 }, "value": "p", @@ -338,7 +338,7 @@ "type": "Identifier", "span": { "start": 340, - "end": 360, + "end": 341, "ctxt": 0 }, "value": "p", @@ -575,7 +575,7 @@ "type": "Identifier", "span": { "start": 462, - "end": 473, + "end": 463, "ctxt": 0 }, "value": "p", @@ -713,7 +713,7 @@ "type": "Identifier", "span": { "start": 523, - "end": 543, + "end": 524, "ctxt": 0 }, "value": "p", @@ -919,7 +919,7 @@ "type": "Identifier", "span": { "start": 633, - "end": 667, + "end": 636, "ctxt": 0 }, "value": "obj", @@ -964,7 +964,7 @@ "type": "Identifier", "span": { "start": 647, - "end": 658, + "end": 648, "ctxt": 0 }, "value": "p", @@ -1818,7 +1818,7 @@ "type": "Identifier", "span": { "start": 1238, - "end": 1244, + "end": 1239, "ctxt": 0 }, "value": "v", @@ -1998,7 +1998,7 @@ "type": "Identifier", "span": { "start": 1317, - "end": 1323, + "end": 1318, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/tsc/unknownControlFlow.json b/crates/swc_ecma_parser/tests/tsc/unknownControlFlow.json index 8845926db985..87617b3e8498 100644 --- a/crates/swc_ecma_parser/tests/tsc/unknownControlFlow.json +++ b/crates/swc_ecma_parser/tests/tsc/unknownControlFlow.json @@ -689,7 +689,7 @@ "type": "Identifier", "span": { "start": 549, - "end": 559, + "end": 550, "ctxt": 0 }, "value": "u", @@ -1138,7 +1138,7 @@ "type": "Identifier", "span": { "start": 754, - "end": 764, + "end": 755, "ctxt": 0 }, "value": "x", @@ -1367,7 +1367,7 @@ "type": "Identifier", "span": { "start": 942, - "end": 946, + "end": 943, "ctxt": 0 }, "value": "x", @@ -1638,7 +1638,7 @@ "type": "Identifier", "span": { "start": 1131, - "end": 1135, + "end": 1132, "ctxt": 0 }, "value": "x", @@ -1834,7 +1834,7 @@ "type": "Identifier", "span": { "start": 1225, - "end": 1235, + "end": 1226, "ctxt": 0 }, "value": "x", @@ -2403,7 +2403,7 @@ "type": "Identifier", "span": { "start": 1760, - "end": 1764, + "end": 1761, "ctxt": 0 }, "value": "x", @@ -3014,7 +3014,7 @@ "type": "Identifier", "span": { "start": 2280, - "end": 2284, + "end": 2281, "ctxt": 0 }, "value": "x", @@ -3652,7 +3652,7 @@ "type": "Identifier", "span": { "start": 2749, - "end": 2772, + "end": 2750, "ctxt": 0 }, "value": "x", @@ -4054,7 +4054,7 @@ "type": "Identifier", "span": { "start": 3019, - "end": 3024, + "end": 3020, "ctxt": 0 }, "value": "x", @@ -4201,7 +4201,7 @@ "type": "Identifier", "span": { "start": 3108, - "end": 3112, + "end": 3109, "ctxt": 0 }, "value": "x", @@ -4578,7 +4578,7 @@ "type": "Identifier", "span": { "start": 3374, - "end": 3378, + "end": 3375, "ctxt": 0 }, "value": "x", @@ -4794,7 +4794,7 @@ "type": "Identifier", "span": { "start": 3475, - "end": 3479, + "end": 3476, "ctxt": 0 }, "value": "x", @@ -4969,7 +4969,7 @@ "type": "Identifier", "span": { "start": 3559, - "end": 3563, + "end": 3560, "ctxt": 0 }, "value": "x", @@ -5146,7 +5146,7 @@ "type": "Identifier", "span": { "start": 3659, - "end": 3663, + "end": 3660, "ctxt": 0 }, "value": "x", @@ -5326,7 +5326,7 @@ "type": "Identifier", "span": { "start": 3768, - "end": 3772, + "end": 3769, "ctxt": 0 }, "value": "x", @@ -5522,7 +5522,7 @@ "type": "Identifier", "span": { "start": 3884, - "end": 3888, + "end": 3885, "ctxt": 0 }, "value": "x", @@ -5720,7 +5720,7 @@ "type": "Identifier", "span": { "start": 4006, - "end": 4010, + "end": 4007, "ctxt": 0 }, "value": "x", @@ -5900,7 +5900,7 @@ "type": "Identifier", "span": { "start": 4090, - "end": 4111, + "end": 4091, "ctxt": 0 }, "value": "a", @@ -5955,7 +5955,7 @@ "type": "Identifier", "span": { "start": 4113, - "end": 4141, + "end": 4114, "ctxt": 0 }, "value": "b", @@ -6342,7 +6342,7 @@ "type": "Identifier", "span": { "start": 4326, - "end": 4330, + "end": 4327, "ctxt": 0 }, "value": "a", @@ -7266,7 +7266,7 @@ "type": "Identifier", "span": { "start": 5035, - "end": 5039, + "end": 5036, "ctxt": 0 }, "value": "a", @@ -7312,7 +7312,7 @@ "type": "Identifier", "span": { "start": 5041, - "end": 5045, + "end": 5042, "ctxt": 0 }, "value": "b", @@ -7970,7 +7970,7 @@ "type": "Identifier", "span": { "start": 5391, - "end": 5402, + "end": 5392, "ctxt": 0 }, "value": "x", @@ -8209,7 +8209,7 @@ "type": "Identifier", "span": { "start": 5766, - "end": 5770, + "end": 5767, "ctxt": 0 }, "value": "t", @@ -8255,7 +8255,7 @@ "type": "Identifier", "span": { "start": 5772, - "end": 5782, + "end": 5773, "ctxt": 0 }, "value": "k", @@ -8422,7 +8422,7 @@ "type": "Identifier", "span": { "start": 5815, - "end": 5824, + "end": 5816, "ctxt": 0 }, "value": "t", @@ -8487,7 +8487,7 @@ "type": "Identifier", "span": { "start": 5826, - "end": 5836, + "end": 5827, "ctxt": 0 }, "value": "k", @@ -8654,7 +8654,7 @@ "type": "Identifier", "span": { "start": 5869, - "end": 5873, + "end": 5870, "ctxt": 0 }, "value": "t", @@ -8700,7 +8700,7 @@ "type": "Identifier", "span": { "start": 5875, - "end": 5892, + "end": 5876, "ctxt": 0 }, "value": "k", @@ -8894,7 +8894,7 @@ "type": "Identifier", "span": { "start": 5935, - "end": 5944, + "end": 5936, "ctxt": 0 }, "value": "t", @@ -8959,7 +8959,7 @@ "type": "Identifier", "span": { "start": 5946, - "end": 5963, + "end": 5947, "ctxt": 0 }, "value": "k", @@ -9644,7 +9644,7 @@ "type": "Identifier", "span": { "start": 6295, - "end": 6317, + "end": 6300, "ctxt": 0 }, "value": "value", @@ -9897,7 +9897,7 @@ "type": "Identifier", "span": { "start": 6464, - "end": 6486, + "end": 6469, "ctxt": 0 }, "value": "value", @@ -10158,7 +10158,7 @@ "type": "Identifier", "span": { "start": 6628, - "end": 6650, + "end": 6633, "ctxt": 0 }, "value": "value", @@ -10419,7 +10419,7 @@ "type": "Identifier", "span": { "start": 6804, - "end": 6826, + "end": 6809, "ctxt": 0 }, "value": "value", @@ -10699,7 +10699,7 @@ "type": "Identifier", "span": { "start": 6975, - "end": 6997, + "end": 6980, "ctxt": 0 }, "value": "value", @@ -10979,7 +10979,7 @@ "type": "Identifier", "span": { "start": 7158, - "end": 7180, + "end": 7163, "ctxt": 0 }, "value": "value", @@ -11268,7 +11268,7 @@ "type": "Identifier", "span": { "start": 7337, - "end": 7355, + "end": 7338, "ctxt": 0 }, "value": "x", @@ -11323,7 +11323,7 @@ "type": "Identifier", "span": { "start": 7357, - "end": 7366, + "end": 7358, "ctxt": 0 }, "value": "y", @@ -11581,7 +11581,7 @@ "type": "Identifier", "span": { "start": 7620, - "end": 7637, + "end": 7628, "ctxt": 0 }, "value": "encoding", @@ -11807,7 +11807,7 @@ "type": "Identifier", "span": { "start": 7800, - "end": 7808, + "end": 7805, "ctxt": 0 }, "value": "value", @@ -12129,7 +12129,7 @@ "type": "Identifier", "span": { "start": 7993, - "end": 8007, + "end": 7998, "ctxt": 0 }, "value": "value", @@ -13301,7 +13301,7 @@ "type": "Identifier", "span": { "start": 8523, - "end": 8542, + "end": 8524, "ctxt": 0 }, "value": "x", @@ -13366,7 +13366,7 @@ "type": "Identifier", "span": { "start": 8544, - "end": 8550, + "end": 8545, "ctxt": 0 }, "value": "y", @@ -13806,7 +13806,7 @@ "type": "Identifier", "span": { "start": 8736, - "end": 8744, + "end": 8737, "ctxt": 0 }, "value": "v", @@ -13936,7 +13936,7 @@ "type": "Identifier", "span": { "start": 8802, - "end": 8815, + "end": 8807, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/unknownType1.json b/crates/swc_ecma_parser/tests/tsc/unknownType1.json index 8b8a023d84e5..5932e70703be 100644 --- a/crates/swc_ecma_parser/tests/tsc/unknownType1.json +++ b/crates/swc_ecma_parser/tests/tsc/unknownType1.json @@ -2018,7 +2018,7 @@ "type": "Identifier", "span": { "start": 1558, - "end": 1568, + "end": 1559, "ctxt": 0 }, "value": "x", @@ -2437,7 +2437,7 @@ "type": "Identifier", "span": { "start": 1837, - "end": 1847, + "end": 1838, "ctxt": 0 }, "value": "x", @@ -2645,7 +2645,7 @@ "type": "Identifier", "span": { "start": 2022, - "end": 2032, + "end": 2023, "ctxt": 0 }, "value": "x", @@ -2761,7 +2761,7 @@ "type": "Identifier", "span": { "start": 2064, - "end": 2074, + "end": 2065, "ctxt": 0 }, "value": "x", @@ -3328,7 +3328,7 @@ "type": "Identifier", "span": { "start": 2507, - "end": 2516, + "end": 2511, "ctxt": 0 }, "value": "pAny", @@ -3364,7 +3364,7 @@ "type": "Identifier", "span": { "start": 2518, - "end": 2531, + "end": 2524, "ctxt": 0 }, "value": "pNever", @@ -3400,7 +3400,7 @@ "type": "Identifier", "span": { "start": 2533, - "end": 2538, + "end": 2535, "ctxt": 0 }, "value": "pT", @@ -3916,7 +3916,7 @@ "type": "Identifier", "span": { "start": 2747, - "end": 2757, + "end": 2748, "ctxt": 0 }, "value": "x", @@ -4430,7 +4430,7 @@ "type": "Identifier", "span": { "start": 3086, - "end": 3090, + "end": 3087, "ctxt": 0 }, "value": "x", @@ -4610,7 +4610,7 @@ "type": "Identifier", "span": { "start": 3215, - "end": 3242, + "end": 3216, "ctxt": 0 }, "value": "x", @@ -5078,7 +5078,7 @@ "type": "Identifier", "span": { "start": 3505, - "end": 3510, + "end": 3506, "ctxt": 0 }, "value": "x", @@ -5114,7 +5114,7 @@ "type": "Identifier", "span": { "start": 3512, - "end": 3522, + "end": 3513, "ctxt": 0 }, "value": "y", @@ -5150,7 +5150,7 @@ "type": "Identifier", "span": { "start": 3524, - "end": 3530, + "end": 3525, "ctxt": 0 }, "value": "z", @@ -5658,7 +5658,7 @@ "type": "Identifier", "span": { "start": 3876, - "end": 3886, + "end": 3877, "ctxt": 0 }, "value": "x", @@ -5960,7 +5960,7 @@ "type": "Identifier", "span": { "start": 4172, - "end": 4176, + "end": 4173, "ctxt": 0 }, "value": "t", @@ -6006,7 +6006,7 @@ "type": "Identifier", "span": { "start": 4178, - "end": 4182, + "end": 4179, "ctxt": 0 }, "value": "u", @@ -6610,7 +6610,7 @@ "type": "Identifier", "span": { "start": 4477, - "end": 4483, + "end": 4480, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/tsc/unknownType2.json b/crates/swc_ecma_parser/tests/tsc/unknownType2.json index 43dae9279f65..601c2956f66d 100644 --- a/crates/swc_ecma_parser/tests/tsc/unknownType2.json +++ b/crates/swc_ecma_parser/tests/tsc/unknownType2.json @@ -344,7 +344,7 @@ "type": "Identifier", "span": { "start": 164, - "end": 174, + "end": 165, "ctxt": 0 }, "value": "x", @@ -4256,7 +4256,7 @@ "type": "Identifier", "span": { "start": 2108, - "end": 2118, + "end": 2109, "ctxt": 0 }, "value": "x", @@ -4827,7 +4827,7 @@ "type": "Identifier", "span": { "start": 2477, - "end": 2487, + "end": 2478, "ctxt": 0 }, "value": "x", @@ -5564,7 +5564,7 @@ "type": "Identifier", "span": { "start": 2890, - "end": 2900, + "end": 2891, "ctxt": 0 }, "value": "x", @@ -6679,7 +6679,7 @@ "type": "Identifier", "span": { "start": 3741, - "end": 3751, + "end": 3742, "ctxt": 0 }, "value": "x", @@ -6715,7 +6715,7 @@ "type": "Identifier", "span": { "start": 3753, - "end": 3766, + "end": 3754, "ctxt": 0 }, "value": "y", @@ -6769,7 +6769,7 @@ "type": "Identifier", "span": { "start": 3768, - "end": 3787, + "end": 3769, "ctxt": 0 }, "value": "z", @@ -7276,7 +7276,7 @@ "type": "Identifier", "span": { "start": 4121, - "end": 4131, + "end": 4122, "ctxt": 0 }, "value": "x", @@ -7618,7 +7618,7 @@ "type": "Identifier", "span": { "start": 4432, - "end": 4442, + "end": 4433, "ctxt": 0 }, "value": "x", @@ -7960,7 +7960,7 @@ "type": "Identifier", "span": { "start": 4771, - "end": 4781, + "end": 4772, "ctxt": 0 }, "value": "x", @@ -8208,7 +8208,7 @@ "type": "Identifier", "span": { "start": 4919, - "end": 4929, + "end": 4920, "ctxt": 0 }, "value": "u", diff --git a/crates/swc_ecma_parser/tests/tsc/usingDeclarations.11.json b/crates/swc_ecma_parser/tests/tsc/usingDeclarations.11.json index ca22c590452c..00ad5bd7ac08 100644 --- a/crates/swc_ecma_parser/tests/tsc/usingDeclarations.11.json +++ b/crates/swc_ecma_parser/tests/tsc/usingDeclarations.11.json @@ -543,7 +543,7 @@ "type": "Identifier", "span": { "start": 417, - "end": 426, + "end": 418, "ctxt": 0 }, "value": "y", @@ -761,7 +761,7 @@ "type": "Identifier", "span": { "start": 534, - "end": 543, + "end": 535, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/tsc/validMultipleVariableDeclarations.json b/crates/swc_ecma_parser/tests/tsc/validMultipleVariableDeclarations.json index c1bc50e52a65..f8de61e63eaf 100644 --- a/crates/swc_ecma_parser/tests/tsc/validMultipleVariableDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/validMultipleVariableDeclarations.json @@ -1321,7 +1321,7 @@ "type": "Identifier", "span": { "start": 570, - "end": 579, + "end": 571, "ctxt": 0 }, "value": "s", @@ -1517,7 +1517,7 @@ "type": "Identifier", "span": { "start": 632, - "end": 641, + "end": 633, "ctxt": 0 }, "value": "s", @@ -1620,7 +1620,7 @@ "type": "Identifier", "span": { "start": 665, - "end": 674, + "end": 666, "ctxt": 0 }, "value": "s", @@ -1727,7 +1727,7 @@ "type": "Identifier", "span": { "start": 698, - "end": 707, + "end": 699, "ctxt": 0 }, "value": "s", diff --git a/crates/swc_ecma_parser/tests/tsc/validNullAssignments.json b/crates/swc_ecma_parser/tests/tsc/validNullAssignments.json index 5b66cd731a74..1e056421574c 100644 --- a/crates/swc_ecma_parser/tests/tsc/validNullAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/validNullAssignments.json @@ -1071,7 +1071,7 @@ "type": "Identifier", "span": { "start": 412, - "end": 416, + "end": 413, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/validUndefinedAssignments.json b/crates/swc_ecma_parser/tests/tsc/validUndefinedAssignments.json index 0b98975dd8d7..1798b1f9caa5 100644 --- a/crates/swc_ecma_parser/tests/tsc/validUndefinedAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/validUndefinedAssignments.json @@ -866,7 +866,7 @@ "type": "Identifier", "span": { "start": 284, - "end": 288, + "end": 285, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/tsc/varRequireFromTypescript.json b/crates/swc_ecma_parser/tests/tsc/varRequireFromTypescript.json index be7f43e24195..3361204d263a 100644 --- a/crates/swc_ecma_parser/tests/tsc/varRequireFromTypescript.json +++ b/crates/swc_ecma_parser/tests/tsc/varRequireFromTypescript.json @@ -250,7 +250,7 @@ "type": "Identifier", "span": { "start": 195, - "end": 204, + "end": 196, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/variadicTuples1.json b/crates/swc_ecma_parser/tests/tsc/variadicTuples1.json index bb71a47bcd17..e90321789c55 100644 --- a/crates/swc_ecma_parser/tests/tsc/variadicTuples1.json +++ b/crates/swc_ecma_parser/tests/tsc/variadicTuples1.json @@ -1248,7 +1248,7 @@ "type": "Identifier", "span": { "start": 610, - "end": 619, + "end": 611, "ctxt": 0 }, "value": "t", @@ -1321,7 +1321,7 @@ "type": "Identifier", "span": { "start": 621, - "end": 630, + "end": 622, "ctxt": 0 }, "value": "u", @@ -1733,7 +1733,7 @@ "type": "Identifier", "span": { "start": 779, - "end": 788, + "end": 780, "ctxt": 0 }, "value": "t", @@ -1806,7 +1806,7 @@ "type": "Identifier", "span": { "start": 790, - "end": 799, + "end": 791, "ctxt": 0 }, "value": "u", @@ -2618,7 +2618,7 @@ "type": "Identifier", "span": { "start": 1146, - "end": 1150, + "end": 1147, "ctxt": 0 }, "value": "t", @@ -2664,7 +2664,7 @@ "type": "Identifier", "span": { "start": 1152, - "end": 1156, + "end": 1153, "ctxt": 0 }, "value": "u", @@ -3076,7 +3076,7 @@ "type": "Identifier", "span": { "start": 1353, - "end": 1362, + "end": 1354, "ctxt": 0 }, "value": "a", @@ -3112,7 +3112,7 @@ "type": "Identifier", "span": { "start": 1364, - "end": 1373, + "end": 1365, "ctxt": 0 }, "value": "b", @@ -3148,7 +3148,7 @@ "type": "Identifier", "span": { "start": 1375, - "end": 1385, + "end": 1376, "ctxt": 0 }, "value": "c", @@ -3285,7 +3285,7 @@ "type": "Identifier", "span": { "start": 1425, - "end": 1445, + "end": 1427, "ctxt": 0 }, "value": "t1", @@ -3358,7 +3358,7 @@ "type": "Identifier", "span": { "start": 1447, - "end": 1460, + "end": 1449, "ctxt": 0 }, "value": "t2", @@ -3413,7 +3413,7 @@ "type": "Identifier", "span": { "start": 1462, - "end": 1474, + "end": 1464, "ctxt": 0 }, "value": "a1", @@ -3983,7 +3983,7 @@ "type": "Identifier", "span": { "start": 1722, - "end": 1731, + "end": 1723, "ctxt": 0 }, "value": "x", @@ -4225,7 +4225,7 @@ "type": "Identifier", "span": { "start": 1798, - "end": 1802, + "end": 1799, "ctxt": 0 }, "value": "u", @@ -4617,7 +4617,7 @@ "type": "Identifier", "span": { "start": 1979, - "end": 1983, + "end": 1980, "ctxt": 0 }, "value": "t", @@ -4764,7 +4764,7 @@ "type": "Identifier", "span": { "start": 2031, - "end": 2035, + "end": 2032, "ctxt": 0 }, "value": "t", @@ -4947,7 +4947,7 @@ "type": "Identifier", "span": { "start": 2097, - "end": 2106, + "end": 2098, "ctxt": 0 }, "value": "t", @@ -5121,7 +5121,7 @@ "type": "Identifier", "span": { "start": 2154, - "end": 2163, + "end": 2155, "ctxt": 0 }, "value": "t", @@ -5603,7 +5603,7 @@ "type": "Identifier", "span": { "start": 2440, - "end": 2457, + "end": 2441, "ctxt": 0 }, "value": "t", @@ -5694,7 +5694,7 @@ "type": "Identifier", "span": { "start": 2459, - "end": 2468, + "end": 2460, "ctxt": 0 }, "value": "n", @@ -6086,7 +6086,7 @@ "type": "Identifier", "span": { "start": 2670, - "end": 2695, + "end": 2671, "ctxt": 0 }, "value": "t", @@ -6195,7 +6195,7 @@ "type": "Identifier", "span": { "start": 2697, - "end": 2706, + "end": 2698, "ctxt": 0 }, "value": "n", @@ -6587,7 +6587,7 @@ "type": "Identifier", "span": { "start": 2964, - "end": 2981, + "end": 2965, "ctxt": 0 }, "value": "t", @@ -6999,7 +6999,7 @@ "type": "Identifier", "span": { "start": 3177, - "end": 3202, + "end": 3178, "ctxt": 0 }, "value": "t", @@ -8198,7 +8198,7 @@ "type": "Identifier", "span": { "start": 3987, - "end": 4022, + "end": 3988, "ctxt": 0 }, "value": "t", @@ -8605,7 +8605,7 @@ "type": "Identifier", "span": { "start": 4203, - "end": 4212, + "end": 4204, "ctxt": 0 }, "value": "a", @@ -8802,7 +8802,7 @@ "type": "Identifier", "span": { "start": 4295, - "end": 4299, + "end": 4296, "ctxt": 0 }, "value": "u", @@ -8848,7 +8848,7 @@ "type": "Identifier", "span": { "start": 4301, - "end": 4305, + "end": 4302, "ctxt": 0 }, "value": "v", @@ -9360,7 +9360,7 @@ "type": "Identifier", "span": { "start": 4513, - "end": 4522, + "end": 4514, "ctxt": 0 }, "value": "a", @@ -9566,7 +9566,7 @@ "type": "Identifier", "span": { "start": 4605, - "end": 4609, + "end": 4606, "ctxt": 0 }, "value": "u", @@ -9612,7 +9612,7 @@ "type": "Identifier", "span": { "start": 4611, - "end": 4615, + "end": 4612, "ctxt": 0 }, "value": "v", @@ -10124,7 +10124,7 @@ "type": "Identifier", "span": { "start": 4859, - "end": 4884, + "end": 4860, "ctxt": 0 }, "value": "x", @@ -10213,7 +10213,7 @@ "type": "Identifier", "span": { "start": 4886, - "end": 4903, + "end": 4887, "ctxt": 0 }, "value": "y", @@ -10304,7 +10304,7 @@ "type": "Identifier", "span": { "start": 4905, - "end": 4922, + "end": 4906, "ctxt": 0 }, "value": "z", @@ -10748,7 +10748,7 @@ "type": "Identifier", "span": { "start": 5237, - "end": 5241, + "end": 5238, "ctxt": 0 }, "value": "t", @@ -10794,7 +10794,7 @@ "type": "Identifier", "span": { "start": 5243, - "end": 5252, + "end": 5244, "ctxt": 0 }, "value": "m", @@ -10867,7 +10867,7 @@ "type": "Identifier", "span": { "start": 5254, - "end": 5272, + "end": 5255, "ctxt": 0 }, "value": "r", @@ -11261,7 +11261,7 @@ "type": "Identifier", "span": { "start": 5408, - "end": 5412, + "end": 5409, "ctxt": 0 }, "value": "t", @@ -11307,7 +11307,7 @@ "type": "Identifier", "span": { "start": 5414, - "end": 5423, + "end": 5415, "ctxt": 0 }, "value": "m", @@ -11380,7 +11380,7 @@ "type": "Identifier", "span": { "start": 5425, - "end": 5443, + "end": 5426, "ctxt": 0 }, "value": "r", @@ -11783,7 +11783,7 @@ "type": "Identifier", "span": { "start": 5592, - "end": 5597, + "end": 5594, "ctxt": 0 }, "value": "t0", @@ -11829,7 +11829,7 @@ "type": "Identifier", "span": { "start": 5599, - "end": 5609, + "end": 5601, "ctxt": 0 }, "value": "t1", @@ -11902,7 +11902,7 @@ "type": "Identifier", "span": { "start": 5611, - "end": 5621, + "end": 5613, "ctxt": 0 }, "value": "t2", @@ -12328,7 +12328,7 @@ "type": "Identifier", "span": { "start": 5781, - "end": 5786, + "end": 5783, "ctxt": 0 }, "value": "t0", @@ -12374,7 +12374,7 @@ "type": "Identifier", "span": { "start": 5788, - "end": 5798, + "end": 5790, "ctxt": 0 }, "value": "t1", @@ -12447,7 +12447,7 @@ "type": "Identifier", "span": { "start": 5800, - "end": 5810, + "end": 5802, "ctxt": 0 }, "value": "t2", @@ -12882,7 +12882,7 @@ "type": "Identifier", "span": { "start": 5971, - "end": 5982, + "end": 5973, "ctxt": 0 }, "value": "k0", @@ -12937,7 +12937,7 @@ "type": "Identifier", "span": { "start": 5984, - "end": 6000, + "end": 5986, "ctxt": 0 }, "value": "k1", @@ -13019,7 +13019,7 @@ "type": "Identifier", "span": { "start": 6002, - "end": 6018, + "end": 6004, "ctxt": 0 }, "value": "k2", @@ -13101,7 +13101,7 @@ "type": "Identifier", "span": { "start": 6020, - "end": 6042, + "end": 6022, "ctxt": 0 }, "value": "k3", @@ -13704,7 +13704,7 @@ "type": "Identifier", "span": { "start": 6287, - "end": 6308, + "end": 6288, "ctxt": 0 }, "value": "x", @@ -13777,7 +13777,7 @@ "type": "Identifier", "span": { "start": 6310, - "end": 6325, + "end": 6311, "ctxt": 0 }, "value": "y", @@ -14019,7 +14019,7 @@ "type": "Identifier", "span": { "start": 6383, - "end": 6404, + "end": 6384, "ctxt": 0 }, "value": "x", @@ -14092,7 +14092,7 @@ "type": "Identifier", "span": { "start": 6406, - "end": 6421, + "end": 6407, "ctxt": 0 }, "value": "y", @@ -14353,7 +14353,7 @@ "type": "Identifier", "span": { "start": 6474, - "end": 6495, + "end": 6475, "ctxt": 0 }, "value": "x", @@ -14426,7 +14426,7 @@ "type": "Identifier", "span": { "start": 6497, - "end": 6512, + "end": 6498, "ctxt": 0 }, "value": "y", @@ -22046,7 +22046,7 @@ "type": "Identifier", "span": { "start": 9888, - "end": 9919, + "end": 9889, "ctxt": 0 }, "value": "f", @@ -24073,7 +24073,7 @@ "type": "Identifier", "span": { "start": 11137, - "end": 11168, + "end": 11138, "ctxt": 0 }, "value": "f", @@ -24252,7 +24252,7 @@ "type": "Identifier", "span": { "start": 11170, - "end": 11179, + "end": 11171, "ctxt": 0 }, "value": "t", @@ -24325,7 +24325,7 @@ "type": "Identifier", "span": { "start": 11181, - "end": 11190, + "end": 11182, "ctxt": 0 }, "value": "u", @@ -24607,7 +24607,7 @@ "type": "Identifier", "span": { "start": 11245, - "end": 11254, + "end": 11246, "ctxt": 0 }, "value": "a", @@ -24643,7 +24643,7 @@ "type": "Identifier", "span": { "start": 11256, - "end": 11265, + "end": 11257, "ctxt": 0 }, "value": "b", @@ -24679,7 +24679,7 @@ "type": "Identifier", "span": { "start": 11267, - "end": 11277, + "end": 11268, "ctxt": 0 }, "value": "c", @@ -24978,7 +24978,7 @@ "type": "Identifier", "span": { "start": 11485, - "end": 11495, + "end": 11487, "ctxt": 0 }, "value": "t1", @@ -25051,7 +25051,7 @@ "type": "Identifier", "span": { "start": 11497, - "end": 11516, + "end": 11499, "ctxt": 0 }, "value": "t2", @@ -26289,7 +26289,7 @@ "type": "Identifier", "span": { "start": 11950, - "end": 11971, + "end": 11954, "ctxt": 0 }, "value": "args", @@ -26497,7 +26497,7 @@ "type": "Identifier", "span": { "start": 12011, - "end": 12032, + "end": 12015, "ctxt": 0 }, "value": "args", @@ -26930,7 +26930,7 @@ "type": "Identifier", "span": { "start": 12207, - "end": 12227, + "end": 12211, "ctxt": 0 }, "value": "args", @@ -27130,7 +27130,7 @@ "type": "Identifier", "span": { "start": 12280, - "end": 12292, + "end": 12284, "ctxt": 0 }, "value": "args", @@ -27312,7 +27312,7 @@ "type": "Identifier", "span": { "start": 12332, - "end": 12352, + "end": 12336, "ctxt": 0 }, "value": "args", @@ -27956,7 +27956,7 @@ "type": "Identifier", "span": { "start": 12640, - "end": 12667, + "end": 12644, "ctxt": 0 }, "value": "this", @@ -28631,7 +28631,7 @@ "type": "Identifier", "span": { "start": 12861, - "end": 12871, + "end": 12863, "ctxt": 0 }, "value": "id", @@ -28667,7 +28667,7 @@ "type": "Identifier", "span": { "start": 12873, - "end": 12897, + "end": 12880, "ctxt": 0 }, "value": "options", @@ -28788,7 +28788,7 @@ "type": "Identifier", "span": { "start": 12937, - "end": 12947, + "end": 12939, "ctxt": 0 }, "value": "id", @@ -28824,7 +28824,7 @@ "type": "Identifier", "span": { "start": 12949, - "end": 12962, + "end": 12954, "ctxt": 0 }, "value": "orgId", @@ -28860,7 +28860,7 @@ "type": "Identifier", "span": { "start": 12964, - "end": 13001, + "end": 12971, "ctxt": 0 }, "value": "options", @@ -29022,7 +29022,7 @@ "type": "Identifier", "span": { "start": 13064, - "end": 13102, + "end": 13070, "ctxt": 0 }, "value": "method", diff --git a/crates/swc_ecma_parser/tests/tsc/variance.json b/crates/swc_ecma_parser/tests/tsc/variance.json index 1859dc8490ed..89d9669a33f4 100644 --- a/crates/swc_ecma_parser/tests/tsc/variance.json +++ b/crates/swc_ecma_parser/tests/tsc/variance.json @@ -650,7 +650,7 @@ "type": "Identifier", "span": { "start": 398, - "end": 445, + "end": 403, "ctxt": 0 }, "value": "_name", diff --git a/crates/swc_ecma_parser/tests/tsc/voidParamAssignmentCompatibility.json b/crates/swc_ecma_parser/tests/tsc/voidParamAssignmentCompatibility.json index 0936fad5ca43..259a296a0113 100644 --- a/crates/swc_ecma_parser/tests/tsc/voidParamAssignmentCompatibility.json +++ b/crates/swc_ecma_parser/tests/tsc/voidParamAssignmentCompatibility.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 37, - "end": 44, + "end": 38, "ctxt": 0 }, "value": "a", @@ -246,7 +246,7 @@ "type": "Identifier", "span": { "start": 108, - "end": 116, + "end": 113, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/tsc/wideningTuples1.json b/crates/swc_ecma_parser/tests/tsc/wideningTuples1.json index ab6ed63a9edc..15700e1a9a69 100644 --- a/crates/swc_ecma_parser/tests/tsc/wideningTuples1.json +++ b/crates/swc_ecma_parser/tests/tsc/wideningTuples1.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 62, - "end": 66, + "end": 63, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/witness.json b/crates/swc_ecma_parser/tests/tsc/witness.json index 01ae1e88d5b6..1fda3b0310db 100644 --- a/crates/swc_ecma_parser/tests/tsc/witness.json +++ b/crates/swc_ecma_parser/tests/tsc/witness.json @@ -2519,7 +2519,7 @@ "type": "Identifier", "span": { "start": 1140, - "end": 1156, + "end": 1141, "ctxt": 0 }, "value": "x", @@ -2565,7 +2565,7 @@ "type": "Identifier", "span": { "start": 1158, - "end": 1167, + "end": 1159, "ctxt": 0 }, "value": "y", @@ -2649,7 +2649,7 @@ "type": "Identifier", "span": { "start": 1183, - "end": 1199, + "end": 1184, "ctxt": 0 }, "value": "n", @@ -2686,7 +2686,7 @@ "type": "Identifier", "span": { "start": 1201, - "end": 1210, + "end": 1202, "ctxt": 0 }, "value": "m", @@ -2824,7 +2824,7 @@ "type": "Identifier", "span": { "start": 1266, - "end": 1290, + "end": 1267, "ctxt": 0 }, "value": "x", @@ -2848,7 +2848,7 @@ "type": "Identifier", "span": { "start": 1270, - "end": 1279, + "end": 1271, "ctxt": 0 }, "value": "n", @@ -2949,7 +2949,7 @@ "type": "Identifier", "span": { "start": 1320, - "end": 1344, + "end": 1321, "ctxt": 0 }, "value": "x", @@ -2973,7 +2973,7 @@ "type": "Identifier", "span": { "start": 1324, - "end": 1333, + "end": 1325, "ctxt": 0 }, "value": "n", @@ -3074,7 +3074,7 @@ "type": "Identifier", "span": { "start": 1374, - "end": 1392, + "end": 1375, "ctxt": 0 }, "value": "x", @@ -3098,7 +3098,7 @@ "type": "Identifier", "span": { "start": 1378, - "end": 1384, + "end": 1379, "ctxt": 0 }, "value": "n", diff --git a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints.json b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints.json index f42d1ecead4b..d49f337c1b56 100644 --- a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 73, - "end": 80, + "end": 77, "ctxt": 0 }, "value": "data", @@ -137,7 +137,7 @@ "type": "Identifier", "span": { "start": 107, - "end": 111, + "end": 108, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints2.json b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints2.json index 1aa67f9bcf22..54d883596627 100644 --- a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints2.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 52, - "end": 56, + "end": 53, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints3.json b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints3.json index 74bbd47b0dfa..b8e02bfb2185 100644 --- a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints3.json +++ b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints3.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 80, - "end": 84, + "end": 81, "ctxt": 0 }, "value": "x", @@ -134,7 +134,7 @@ "type": "Identifier", "span": { "start": 111, - "end": 115, + "end": 112, "ctxt": 0 }, "value": "x", @@ -209,7 +209,7 @@ "type": "Identifier", "span": { "start": 153, - "end": 157, + "end": 154, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints4.json b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints4.json index f5a0ce4c6427..cfa393a8da79 100644 --- a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints4.json +++ b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints4.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 57, - "end": 61, + "end": 58, "ctxt": 0 }, "value": "x", @@ -134,7 +134,7 @@ "type": "Identifier", "span": { "start": 88, - "end": 92, + "end": 89, "ctxt": 0 }, "value": "x", @@ -209,7 +209,7 @@ "type": "Identifier", "span": { "start": 130, - "end": 134, + "end": 131, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/typescript-errors/class/parameter-properties/input.ts.swc-stderr b/crates/swc_ecma_parser/tests/typescript-errors/class/parameter-properties/input.ts.swc-stderr index 9964a55b8896..88f50c82f302 100644 --- a/crates/swc_ecma_parser/tests/typescript-errors/class/parameter-properties/input.ts.swc-stderr +++ b/crates/swc_ecma_parser/tests/typescript-errors/class/parameter-properties/input.ts.swc-stderr @@ -3,6 +3,6 @@ ,-[$DIR/tests/typescript-errors/class/parameter-properties/input.ts:9:1] 9 | readonly x = 0, 10 | public y?: number = 0) {} - : ^^^^^^^^^^ + : ^ 11 | } `---- diff --git a/crates/swc_ecma_parser/tests/typescript/arrow-function/async-generic/input.ts.json b/crates/swc_ecma_parser/tests/typescript/arrow-function/async-generic/input.ts.json index bfd735501e74..519994448a46 100644 --- a/crates/swc_ecma_parser/tests/typescript/arrow-function/async-generic/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/arrow-function/async-generic/input.ts.json @@ -25,7 +25,7 @@ "type": "Identifier", "span": { "start": 11, - "end": 15, + "end": 12, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/typescript/class/constructor-with-modifier-names/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/constructor-with-modifier-names/input.ts.json index daacce4cf81a..01d02232ee01 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/constructor-with-modifier-names/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/constructor-with-modifier-names/input.ts.json @@ -127,7 +127,7 @@ "type": "Identifier", "span": { "start": 59, - "end": 67, + "end": 62, "ctxt": 0 }, "value": "set", @@ -163,7 +163,7 @@ "type": "Identifier", "span": { "start": 69, - "end": 86, + "end": 77, "ctxt": 0 }, "value": "readonly", diff --git a/crates/swc_ecma_parser/tests/typescript/class/constructor/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/constructor/input.ts.json index d507d0150f36..b9595ac6ca0a 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/constructor/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/constructor/input.ts.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 27, - "end": 36, + "end": 28, "ctxt": 0 }, "value": "x", @@ -92,7 +92,7 @@ "type": "Identifier", "span": { "start": 38, - "end": 47, + "end": 39, "ctxt": 0 }, "value": "y", @@ -151,7 +151,7 @@ "type": "Identifier", "span": { "start": 66, - "end": 75, + "end": 67, "ctxt": 0 }, "value": "x", @@ -187,7 +187,7 @@ "type": "Identifier", "span": { "start": 77, - "end": 86, + "end": 78, "ctxt": 0 }, "value": "y", @@ -246,7 +246,7 @@ "type": "Identifier", "span": { "start": 105, - "end": 111, + "end": 106, "ctxt": 0 }, "value": "x", @@ -282,7 +282,7 @@ "type": "Identifier", "span": { "start": 113, - "end": 119, + "end": 114, "ctxt": 0 }, "value": "y", diff --git a/crates/swc_ecma_parser/tests/typescript/class/decorators/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/decorators/input.ts.json index 35a99a200e80..21b225333155 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/decorators/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/decorators/input.ts.json @@ -97,7 +97,7 @@ "type": "Identifier", "span": { "start": 44, - "end": 57, + "end": 49, "ctxt": 0 }, "value": "param", diff --git a/crates/swc_ecma_parser/tests/typescript/class/method-generic/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/method-generic/input.ts.json index cd17609015f0..c60066bc1c33 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/method-generic/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/method-generic/input.ts.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 20, - "end": 24, + "end": 21, "ctxt": 0 }, "value": "a", @@ -103,7 +103,7 @@ "type": "Identifier", "span": { "start": 26, - "end": 31, + "end": 27, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/typescript/class/override-parameter-property/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/override-parameter-property/input.ts.json index 3c0609cdf122..155f4393e6f6 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/override-parameter-property/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/override-parameter-property/input.ts.json @@ -56,7 +56,7 @@ "type": "Identifier", "span": { "start": 35, - "end": 49, + "end": 43, "ctxt": 0 }, "value": "override", @@ -128,7 +128,7 @@ "type": "Identifier", "span": { "start": 74, - "end": 83, + "end": 75, "ctxt": 0 }, "value": "v", @@ -190,7 +190,7 @@ "type": "Identifier", "span": { "start": 115, - "end": 124, + "end": 116, "ctxt": 0 }, "value": "v", @@ -252,7 +252,7 @@ "type": "Identifier", "span": { "start": 158, - "end": 168, + "end": 159, "ctxt": 0 }, "value": "v", @@ -311,7 +311,7 @@ "type": "Identifier", "span": { "start": 184, - "end": 192, + "end": 187, "ctxt": 0 }, "value": "arg", diff --git a/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex-tsc/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex-tsc/input.ts.json index d3e2ada60cc9..ac554742ecda 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex-tsc/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex-tsc/input.ts.json @@ -181,7 +181,7 @@ "type": "Identifier", "span": { "start": 104, - "end": 114, + "end": 108, "ctxt": 0 }, "value": "node", diff --git a/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex/input.ts.json index bed0c04f7d7a..0dcd78b843d9 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex/input.ts.json @@ -39,7 +39,7 @@ "type": "Identifier", "span": { "start": 50, - "end": 100, + "end": 68, "ctxt": 0 }, "value": "tsConfigSourceFile", @@ -104,7 +104,7 @@ "type": "Identifier", "span": { "start": 102, - "end": 117, + "end": 109, "ctxt": 0 }, "value": "propKey", @@ -140,7 +140,7 @@ "type": "Identifier", "span": { "start": 119, - "end": 139, + "end": 131, "ctxt": 0 }, "value": "elementValue", diff --git a/crates/swc_ecma_parser/tests/typescript/custom/default-followed-by-type/function/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/default-followed-by-type/function/input.ts.json index 000cdf9a53e7..d29133dc8dcb 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/default-followed-by-type/function/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/default-followed-by-type/function/input.ts.json @@ -39,7 +39,7 @@ "type": "Identifier", "span": { "start": 15, - "end": 31, + "end": 23, "ctxt": 0 }, "value": "greeting", @@ -86,7 +86,7 @@ "type": "Identifier", "span": { "start": 43, - "end": 57, + "end": 49, "ctxt": 0 }, "value": "target", diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-236/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-236/input.ts.json index db17f8ec5ccc..3a63e8ae1e4a 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-236/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-236/input.ts.json @@ -39,7 +39,7 @@ "type": "Identifier", "span": { "start": 53, - "end": 62, + "end": 57, "ctxt": 0 }, "value": "this", @@ -75,7 +75,7 @@ "type": "Identifier", "span": { "start": 64, - "end": 86, + "end": 70, "ctxt": 0 }, "value": "$scope", @@ -134,7 +134,7 @@ "type": "Identifier", "span": { "start": 88, - "end": 115, + "end": 94, "ctxt": 0 }, "value": "$attrs", diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-496/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-496/input.ts.json index d37b2ac1750a..0799b3c36872 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-496/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-496/input.ts.json @@ -108,7 +108,7 @@ "type": "Identifier", "span": { "start": 63, - "end": 75, + "end": 70, "ctxt": 0 }, "value": "variant", diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-717/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-717/input.ts.json index 72efedd2f6b1..1e231042b7b1 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-717/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-717/input.ts.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 24, - "end": 38, + "end": 29, "ctxt": 0 }, "value": "async", diff --git a/crates/swc_ecma_parser/tests/typescript/deno-discord/2021-02-17/case1/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/deno-discord/2021-02-17/case1/input.tsx.json index 7d44a0786b40..5c9b99298aa1 100644 --- a/crates/swc_ecma_parser/tests/typescript/deno-discord/2021-02-17/case1/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/deno-discord/2021-02-17/case1/input.tsx.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 69, - "end": 81, + "end": 73, "ctxt": 0 }, "value": "name", @@ -68,7 +68,7 @@ "type": "Identifier", "span": { "start": 87, - "end": 99, + "end": 91, "ctxt": 0 }, "value": "path", diff --git a/crates/swc_ecma_parser/tests/typescript/deno-discord/2021-02-17/case2/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/deno-discord/2021-02-17/case2/input.tsx.json index fa4cdbd2837b..c294f6e12f9b 100644 --- a/crates/swc_ecma_parser/tests/typescript/deno-discord/2021-02-17/case2/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/deno-discord/2021-02-17/case2/input.tsx.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 83, - "end": 95, + "end": 87, "ctxt": 0 }, "value": "name", @@ -93,7 +93,7 @@ "type": "Identifier", "span": { "start": 105, - "end": 117, + "end": 109, "ctxt": 0 }, "value": "path", diff --git a/crates/swc_ecma_parser/tests/typescript/deno/dso/reflect/input.ts.json b/crates/swc_ecma_parser/tests/typescript/deno/dso/reflect/input.ts.json index 5b6571ea7ce2..cd84e57d2020 100644 --- a/crates/swc_ecma_parser/tests/typescript/deno/dso/reflect/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/deno/dso/reflect/input.ts.json @@ -626,7 +626,7 @@ "type": "Identifier", "span": { "start": 1192, - "end": 1203, + "end": 1197, "ctxt": 0 }, "value": "value", @@ -732,7 +732,7 @@ "type": "Identifier", "span": { "start": 1240, - "end": 1250, + "end": 1245, "ctxt": 0 }, "value": "value", @@ -838,7 +838,7 @@ "type": "Identifier", "span": { "start": 1288, - "end": 1297, + "end": 1293, "ctxt": 0 }, "value": "value", @@ -1506,7 +1506,7 @@ "type": "Identifier", "span": { "start": 1591, - "end": 1597, + "end": 1594, "ctxt": 0 }, "value": "key", @@ -1584,7 +1584,7 @@ "type": "Identifier", "span": { "start": 1621, - "end": 1627, + "end": 1624, "ctxt": 0 }, "value": "key", @@ -1672,7 +1672,7 @@ "type": "Identifier", "span": { "start": 1645, - "end": 1651, + "end": 1648, "ctxt": 0 }, "value": "key", @@ -1709,7 +1709,7 @@ "type": "Identifier", "span": { "start": 1653, - "end": 1662, + "end": 1658, "ctxt": 0 }, "value": "value", @@ -1786,7 +1786,7 @@ "type": "Identifier", "span": { "start": 1686, - "end": 1692, + "end": 1689, "ctxt": 0 }, "value": "key", @@ -2649,7 +2649,7 @@ "type": "Identifier", "span": { "start": 2067, - "end": 2075, + "end": 2072, "ctxt": 0 }, "value": "value", @@ -2727,7 +2727,7 @@ "type": "Identifier", "span": { "start": 2099, - "end": 2107, + "end": 2104, "ctxt": 0 }, "value": "value", @@ -2804,7 +2804,7 @@ "type": "Identifier", "span": { "start": 2131, - "end": 2139, + "end": 2136, "ctxt": 0 }, "value": "value", @@ -3581,7 +3581,7 @@ "type": "Identifier", "span": { "start": 2489, - "end": 2495, + "end": 2492, "ctxt": 0 }, "value": "key", @@ -3659,7 +3659,7 @@ "type": "Identifier", "span": { "start": 2519, - "end": 2525, + "end": 2522, "ctxt": 0 }, "value": "key", @@ -3747,7 +3747,7 @@ "type": "Identifier", "span": { "start": 2543, - "end": 2549, + "end": 2546, "ctxt": 0 }, "value": "key", @@ -3825,7 +3825,7 @@ "type": "Identifier", "span": { "start": 2573, - "end": 2579, + "end": 2576, "ctxt": 0 }, "value": "key", @@ -3862,7 +3862,7 @@ "type": "Identifier", "span": { "start": 2581, - "end": 2590, + "end": 2586, "ctxt": 0 }, "value": "value", @@ -4318,7 +4318,7 @@ "type": "Identifier", "span": { "start": 2806, - "end": 2820, + "end": 2812, "ctxt": 0 }, "value": "target", @@ -4355,7 +4355,7 @@ "type": "Identifier", "span": { "start": 2830, - "end": 2858, + "end": 2841, "ctxt": 0 }, "value": "propertyKey", @@ -4401,7 +4401,7 @@ "type": "Identifier", "span": { "start": 2868, - "end": 2907, + "end": 2878, "ctxt": 0 }, "value": "descriptor", @@ -5130,7 +5130,7 @@ "type": "Identifier", "span": { "start": 3835, - "end": 3863, + "end": 3845, "ctxt": 0 }, "value": "decorators", @@ -5184,7 +5184,7 @@ "type": "Identifier", "span": { "start": 3873, - "end": 3889, + "end": 3879, "ctxt": 0 }, "value": "target", @@ -5291,7 +5291,7 @@ "type": "Identifier", "span": { "start": 5367, - "end": 5418, + "end": 5377, "ctxt": 0 }, "value": "decorators", @@ -5382,7 +5382,7 @@ "type": "Identifier", "span": { "start": 5428, - "end": 5439, + "end": 5434, "ctxt": 0 }, "value": "target", @@ -5418,7 +5418,7 @@ "type": "Identifier", "span": { "start": 5449, - "end": 5477, + "end": 5460, "ctxt": 0 }, "value": "propertyKey", @@ -5473,7 +5473,7 @@ "type": "Identifier", "span": { "start": 5487, - "end": 5525, + "end": 5497, "ctxt": 0 }, "value": "attributes", @@ -5618,7 +5618,7 @@ "type": "Identifier", "span": { "start": 7025, - "end": 7076, + "end": 7035, "ctxt": 0 }, "value": "decorators", @@ -5709,7 +5709,7 @@ "type": "Identifier", "span": { "start": 7086, - "end": 7097, + "end": 7092, "ctxt": 0 }, "value": "target", @@ -5745,7 +5745,7 @@ "type": "Identifier", "span": { "start": 7107, - "end": 7135, + "end": 7118, "ctxt": 0 }, "value": "propertyKey", @@ -5800,7 +5800,7 @@ "type": "Identifier", "span": { "start": 7145, - "end": 7175, + "end": 7155, "ctxt": 0 }, "value": "attributes", @@ -5907,7 +5907,7 @@ "type": "Identifier", "span": { "start": 8498, - "end": 8514, + "end": 8509, "ctxt": 0 }, "value": "metadataKey", @@ -5943,7 +5943,7 @@ "type": "Identifier", "span": { "start": 8524, - "end": 8542, + "end": 8537, "ctxt": 0 }, "value": "metadataValue", @@ -6005,7 +6005,7 @@ "type": "Identifier", "span": { "start": 8562, - "end": 8578, + "end": 8568, "ctxt": 0 }, "value": "target", @@ -6070,7 +6070,7 @@ "type": "Identifier", "span": { "start": 8596, - "end": 8607, + "end": 8602, "ctxt": 0 }, "value": "target", @@ -6097,7 +6097,7 @@ "type": "Identifier", "span": { "start": 8609, - "end": 8637, + "end": 8620, "ctxt": 0 }, "value": "propertyKey", @@ -6197,7 +6197,7 @@ "type": "Identifier", "span": { "start": 9398, - "end": 9414, + "end": 9409, "ctxt": 0 }, "value": "metadataKey", @@ -6233,7 +6233,7 @@ "type": "Identifier", "span": { "start": 9424, - "end": 9442, + "end": 9437, "ctxt": 0 }, "value": "metadataValue", @@ -6269,7 +6269,7 @@ "type": "Identifier", "span": { "start": 9452, - "end": 9463, + "end": 9458, "ctxt": 0 }, "value": "target", @@ -6356,7 +6356,7 @@ "type": "Identifier", "span": { "start": 10983, - "end": 10999, + "end": 10994, "ctxt": 0 }, "value": "metadataKey", @@ -6392,7 +6392,7 @@ "type": "Identifier", "span": { "start": 11009, - "end": 11027, + "end": 11022, "ctxt": 0 }, "value": "metadataValue", @@ -6428,7 +6428,7 @@ "type": "Identifier", "span": { "start": 11037, - "end": 11048, + "end": 11043, "ctxt": 0 }, "value": "target", @@ -6464,7 +6464,7 @@ "type": "Identifier", "span": { "start": 11058, - "end": 11086, + "end": 11069, "ctxt": 0 }, "value": "propertyKey", @@ -6570,7 +6570,7 @@ "type": "Identifier", "span": { "start": 11713, - "end": 11729, + "end": 11724, "ctxt": 0 }, "value": "metadataKey", @@ -6606,7 +6606,7 @@ "type": "Identifier", "span": { "start": 11731, - "end": 11742, + "end": 11737, "ctxt": 0 }, "value": "target", @@ -6693,7 +6693,7 @@ "type": "Identifier", "span": { "start": 13115, - "end": 13131, + "end": 13126, "ctxt": 0 }, "value": "metadataKey", @@ -6729,7 +6729,7 @@ "type": "Identifier", "span": { "start": 13141, - "end": 13152, + "end": 13147, "ctxt": 0 }, "value": "target", @@ -6765,7 +6765,7 @@ "type": "Identifier", "span": { "start": 13162, - "end": 13190, + "end": 13173, "ctxt": 0 }, "value": "propertyKey", @@ -6871,7 +6871,7 @@ "type": "Identifier", "span": { "start": 13789, - "end": 13805, + "end": 13800, "ctxt": 0 }, "value": "metadataKey", @@ -6907,7 +6907,7 @@ "type": "Identifier", "span": { "start": 13815, - "end": 13826, + "end": 13821, "ctxt": 0 }, "value": "target", @@ -6994,7 +6994,7 @@ "type": "Identifier", "span": { "start": 15174, - "end": 15190, + "end": 15185, "ctxt": 0 }, "value": "metadataKey", @@ -7030,7 +7030,7 @@ "type": "Identifier", "span": { "start": 15200, - "end": 15211, + "end": 15206, "ctxt": 0 }, "value": "target", @@ -7066,7 +7066,7 @@ "type": "Identifier", "span": { "start": 15221, - "end": 15249, + "end": 15232, "ctxt": 0 }, "value": "propertyKey", @@ -7172,7 +7172,7 @@ "type": "Identifier", "span": { "start": 15836, - "end": 15852, + "end": 15847, "ctxt": 0 }, "value": "metadataKey", @@ -7208,7 +7208,7 @@ "type": "Identifier", "span": { "start": 15854, - "end": 15865, + "end": 15860, "ctxt": 0 }, "value": "target", @@ -7295,7 +7295,7 @@ "type": "Identifier", "span": { "start": 17191, - "end": 17207, + "end": 17202, "ctxt": 0 }, "value": "metadataKey", @@ -7331,7 +7331,7 @@ "type": "Identifier", "span": { "start": 17217, - "end": 17228, + "end": 17223, "ctxt": 0 }, "value": "target", @@ -7367,7 +7367,7 @@ "type": "Identifier", "span": { "start": 17238, - "end": 17266, + "end": 17249, "ctxt": 0 }, "value": "propertyKey", @@ -7473,7 +7473,7 @@ "type": "Identifier", "span": { "start": 17832, - "end": 17848, + "end": 17843, "ctxt": 0 }, "value": "metadataKey", @@ -7509,7 +7509,7 @@ "type": "Identifier", "span": { "start": 17850, - "end": 17861, + "end": 17856, "ctxt": 0 }, "value": "target", @@ -7596,7 +7596,7 @@ "type": "Identifier", "span": { "start": 19179, - "end": 19195, + "end": 19190, "ctxt": 0 }, "value": "metadataKey", @@ -7632,7 +7632,7 @@ "type": "Identifier", "span": { "start": 19205, - "end": 19216, + "end": 19211, "ctxt": 0 }, "value": "target", @@ -7668,7 +7668,7 @@ "type": "Identifier", "span": { "start": 19226, - "end": 19254, + "end": 19237, "ctxt": 0 }, "value": "propertyKey", @@ -7774,7 +7774,7 @@ "type": "Identifier", "span": { "start": 19692, - "end": 19703, + "end": 19698, "ctxt": 0 }, "value": "target", @@ -7869,7 +7869,7 @@ "type": "Identifier", "span": { "start": 20835, - "end": 20846, + "end": 20841, "ctxt": 0 }, "value": "target", @@ -7905,7 +7905,7 @@ "type": "Identifier", "span": { "start": 20856, - "end": 20884, + "end": 20867, "ctxt": 0 }, "value": "propertyKey", @@ -8019,7 +8019,7 @@ "type": "Identifier", "span": { "start": 21314, - "end": 21325, + "end": 21320, "ctxt": 0 }, "value": "target", @@ -8114,7 +8114,7 @@ "type": "Identifier", "span": { "start": 22456, - "end": 22467, + "end": 22462, "ctxt": 0 }, "value": "target", @@ -8150,7 +8150,7 @@ "type": "Identifier", "span": { "start": 22477, - "end": 22505, + "end": 22488, "ctxt": 0 }, "value": "propertyKey", @@ -8264,7 +8264,7 @@ "type": "Identifier", "span": { "start": 23075, - "end": 23091, + "end": 23086, "ctxt": 0 }, "value": "metadataKey", @@ -8300,7 +8300,7 @@ "type": "Identifier", "span": { "start": 23101, - "end": 23112, + "end": 23107, "ctxt": 0 }, "value": "target", @@ -8387,7 +8387,7 @@ "type": "Identifier", "span": { "start": 24433, - "end": 24449, + "end": 24444, "ctxt": 0 }, "value": "metadataKey", @@ -8423,7 +8423,7 @@ "type": "Identifier", "span": { "start": 24459, - "end": 24470, + "end": 24465, "ctxt": 0 }, "value": "target", @@ -8459,7 +8459,7 @@ "type": "Identifier", "span": { "start": 24480, - "end": 24508, + "end": 24491, "ctxt": 0 }, "value": "propertyKey", @@ -8569,7 +8569,7 @@ "type": "Identifier", "span": { "start": 24551, - "end": 24560, + "end": 24555, "ctxt": 0 }, "value": "this", @@ -8605,7 +8605,7 @@ "type": "Identifier", "span": { "start": 24570, - "end": 24743, + "end": 24577, "ctxt": 0 }, "value": "factory", @@ -8629,7 +8629,7 @@ "type": "Identifier", "span": { "start": 24593, - "end": 24724, + "end": 24601, "ctxt": 0 }, "value": "exporter", @@ -8653,7 +8653,7 @@ "type": "Identifier", "span": { "start": 24653, - "end": 24659, + "end": 24656, "ctxt": 0 }, "value": "key", @@ -8690,7 +8690,7 @@ "type": "Identifier", "span": { "start": 24677, - "end": 24701, + "end": 24682, "ctxt": 0 }, "value": "value", @@ -9509,7 +9509,7 @@ "type": "Identifier", "span": { "start": 25316, - "end": 25338, + "end": 25322, "ctxt": 0 }, "value": "target", @@ -9555,7 +9555,7 @@ "type": "Identifier", "span": { "start": 25352, - "end": 25484, + "end": 25360, "ctxt": 0 }, "value": "previous", @@ -9579,7 +9579,7 @@ "type": "Identifier", "span": { "start": 25413, - "end": 25419, + "end": 25416, "ctxt": 0 }, "value": "key", @@ -9616,7 +9616,7 @@ "type": "Identifier", "span": { "start": 25437, - "end": 25461, + "end": 25442, "ctxt": 0 }, "value": "value", @@ -13864,7 +13864,7 @@ "type": "Identifier", "span": { "start": 28932, - "end": 28960, + "end": 28942, "ctxt": 0 }, "value": "decorators", @@ -13918,7 +13918,7 @@ "type": "Identifier", "span": { "start": 28962, - "end": 28978, + "end": 28968, "ctxt": 0 }, "value": "target", @@ -14017,7 +14017,7 @@ "type": "Identifier", "span": { "start": 29030, - "end": 29081, + "end": 29040, "ctxt": 0 }, "value": "decorators", @@ -14108,7 +14108,7 @@ "type": "Identifier", "span": { "start": 29095, - "end": 29106, + "end": 29101, "ctxt": 0 }, "value": "target", @@ -14144,7 +14144,7 @@ "type": "Identifier", "span": { "start": 29120, - "end": 29148, + "end": 29131, "ctxt": 0 }, "value": "propertyKey", @@ -14199,7 +14199,7 @@ "type": "Identifier", "span": { "start": 29162, - "end": 29200, + "end": 29172, "ctxt": 0 }, "value": "attributes", @@ -14336,7 +14336,7 @@ "type": "Identifier", "span": { "start": 29284, - "end": 29335, + "end": 29294, "ctxt": 0 }, "value": "decorators", @@ -14427,7 +14427,7 @@ "type": "Identifier", "span": { "start": 29349, - "end": 29360, + "end": 29355, "ctxt": 0 }, "value": "target", @@ -14463,7 +14463,7 @@ "type": "Identifier", "span": { "start": 29374, - "end": 29402, + "end": 29385, "ctxt": 0 }, "value": "propertyKey", @@ -14518,7 +14518,7 @@ "type": "Identifier", "span": { "start": 29416, - "end": 29446, + "end": 29426, "ctxt": 0 }, "value": "attributes", @@ -14617,7 +14617,7 @@ "type": "Identifier", "span": { "start": 31264, - "end": 31312, + "end": 31274, "ctxt": 0 }, "value": "decorators", @@ -14708,7 +14708,7 @@ "type": "Identifier", "span": { "start": 31326, - "end": 31337, + "end": 31332, "ctxt": 0 }, "value": "target", @@ -14744,7 +14744,7 @@ "type": "Identifier", "span": { "start": 31351, - "end": 31380, + "end": 31362, "ctxt": 0 }, "value": "propertyKey", @@ -14799,7 +14799,7 @@ "type": "Identifier", "span": { "start": 31394, - "end": 31432, + "end": 31404, "ctxt": 0 }, "value": "attributes", @@ -15980,7 +15980,7 @@ "type": "Identifier", "span": { "start": 34161, - "end": 34177, + "end": 34172, "ctxt": 0 }, "value": "metadataKey", @@ -16016,7 +16016,7 @@ "type": "Identifier", "span": { "start": 34179, - "end": 34197, + "end": 34192, "ctxt": 0 }, "value": "metadataValue", @@ -16081,7 +16081,7 @@ "type": "Identifier", "span": { "start": 34232, - "end": 34248, + "end": 34238, "ctxt": 0 }, "value": "target", @@ -16170,7 +16170,7 @@ "type": "Identifier", "span": { "start": 34288, - "end": 34299, + "end": 34294, "ctxt": 0 }, "value": "target", @@ -16206,7 +16206,7 @@ "type": "Identifier", "span": { "start": 34301, - "end": 34329, + "end": 34312, "ctxt": 0 }, "value": "propertyKey", @@ -16304,7 +16304,7 @@ "type": "Identifier", "span": { "start": 34369, - "end": 34380, + "end": 34375, "ctxt": 0 }, "value": "target", @@ -16340,7 +16340,7 @@ "type": "Identifier", "span": { "start": 34382, - "end": 34411, + "end": 34393, "ctxt": 0 }, "value": "propertyKey", @@ -16830,7 +16830,7 @@ "type": "Identifier", "span": { "start": 35128, - "end": 35144, + "end": 35139, "ctxt": 0 }, "value": "metadataKey", @@ -16866,7 +16866,7 @@ "type": "Identifier", "span": { "start": 35158, - "end": 35176, + "end": 35171, "ctxt": 0 }, "value": "metadataValue", @@ -16902,7 +16902,7 @@ "type": "Identifier", "span": { "start": 35190, - "end": 35201, + "end": 35196, "ctxt": 0 }, "value": "target", @@ -16981,7 +16981,7 @@ "type": "Identifier", "span": { "start": 35265, - "end": 35281, + "end": 35276, "ctxt": 0 }, "value": "metadataKey", @@ -17017,7 +17017,7 @@ "type": "Identifier", "span": { "start": 35295, - "end": 35313, + "end": 35308, "ctxt": 0 }, "value": "metadataValue", @@ -17053,7 +17053,7 @@ "type": "Identifier", "span": { "start": 35327, - "end": 35338, + "end": 35333, "ctxt": 0 }, "value": "target", @@ -17089,7 +17089,7 @@ "type": "Identifier", "span": { "start": 35352, - "end": 35380, + "end": 35363, "ctxt": 0 }, "value": "propertyKey", @@ -17187,7 +17187,7 @@ "type": "Identifier", "span": { "start": 37202, - "end": 37218, + "end": 37213, "ctxt": 0 }, "value": "metadataKey", @@ -17223,7 +17223,7 @@ "type": "Identifier", "span": { "start": 37232, - "end": 37250, + "end": 37245, "ctxt": 0 }, "value": "metadataValue", @@ -17259,7 +17259,7 @@ "type": "Identifier", "span": { "start": 37264, - "end": 37275, + "end": 37270, "ctxt": 0 }, "value": "target", @@ -17295,7 +17295,7 @@ "type": "Identifier", "span": { "start": 37289, - "end": 37318, + "end": 37300, "ctxt": 0 }, "value": "propertyKey", @@ -17732,7 +17732,7 @@ "type": "Identifier", "span": { "start": 37899, - "end": 37915, + "end": 37910, "ctxt": 0 }, "value": "metadataKey", @@ -17768,7 +17768,7 @@ "type": "Identifier", "span": { "start": 37917, - "end": 37928, + "end": 37923, "ctxt": 0 }, "value": "target", @@ -17847,7 +17847,7 @@ "type": "Identifier", "span": { "start": 37982, - "end": 37998, + "end": 37993, "ctxt": 0 }, "value": "metadataKey", @@ -17883,7 +17883,7 @@ "type": "Identifier", "span": { "start": 38012, - "end": 38023, + "end": 38018, "ctxt": 0 }, "value": "target", @@ -17919,7 +17919,7 @@ "type": "Identifier", "span": { "start": 38037, - "end": 38065, + "end": 38048, "ctxt": 0 }, "value": "propertyKey", @@ -18017,7 +18017,7 @@ "type": "Identifier", "span": { "start": 39726, - "end": 39742, + "end": 39737, "ctxt": 0 }, "value": "metadataKey", @@ -18053,7 +18053,7 @@ "type": "Identifier", "span": { "start": 39756, - "end": 39767, + "end": 39762, "ctxt": 0 }, "value": "target", @@ -18089,7 +18089,7 @@ "type": "Identifier", "span": { "start": 39781, - "end": 39810, + "end": 39792, "ctxt": 0 }, "value": "propertyKey", @@ -18513,7 +18513,7 @@ "type": "Identifier", "span": { "start": 40297, - "end": 40313, + "end": 40308, "ctxt": 0 }, "value": "metadataKey", @@ -18549,7 +18549,7 @@ "type": "Identifier", "span": { "start": 40315, - "end": 40326, + "end": 40321, "ctxt": 0 }, "value": "target", @@ -18628,7 +18628,7 @@ "type": "Identifier", "span": { "start": 40383, - "end": 40399, + "end": 40394, "ctxt": 0 }, "value": "metadataKey", @@ -18664,7 +18664,7 @@ "type": "Identifier", "span": { "start": 40413, - "end": 40424, + "end": 40419, "ctxt": 0 }, "value": "target", @@ -18700,7 +18700,7 @@ "type": "Identifier", "span": { "start": 40438, - "end": 40466, + "end": 40449, "ctxt": 0 }, "value": "propertyKey", @@ -18798,7 +18798,7 @@ "type": "Identifier", "span": { "start": 42099, - "end": 42115, + "end": 42110, "ctxt": 0 }, "value": "metadataKey", @@ -18834,7 +18834,7 @@ "type": "Identifier", "span": { "start": 42129, - "end": 42140, + "end": 42135, "ctxt": 0 }, "value": "target", @@ -18870,7 +18870,7 @@ "type": "Identifier", "span": { "start": 42154, - "end": 42183, + "end": 42165, "ctxt": 0 }, "value": "propertyKey", @@ -19294,7 +19294,7 @@ "type": "Identifier", "span": { "start": 42670, - "end": 42686, + "end": 42681, "ctxt": 0 }, "value": "metadataKey", @@ -19330,7 +19330,7 @@ "type": "Identifier", "span": { "start": 42688, - "end": 42699, + "end": 42694, "ctxt": 0 }, "value": "target", @@ -19409,7 +19409,7 @@ "type": "Identifier", "span": { "start": 42749, - "end": 42765, + "end": 42760, "ctxt": 0 }, "value": "metadataKey", @@ -19445,7 +19445,7 @@ "type": "Identifier", "span": { "start": 42779, - "end": 42790, + "end": 42785, "ctxt": 0 }, "value": "target", @@ -19481,7 +19481,7 @@ "type": "Identifier", "span": { "start": 42804, - "end": 42832, + "end": 42815, "ctxt": 0 }, "value": "propertyKey", @@ -19579,7 +19579,7 @@ "type": "Identifier", "span": { "start": 44446, - "end": 44462, + "end": 44457, "ctxt": 0 }, "value": "metadataKey", @@ -19615,7 +19615,7 @@ "type": "Identifier", "span": { "start": 44476, - "end": 44487, + "end": 44482, "ctxt": 0 }, "value": "target", @@ -19651,7 +19651,7 @@ "type": "Identifier", "span": { "start": 44501, - "end": 44530, + "end": 44512, "ctxt": 0 }, "value": "propertyKey", @@ -20075,7 +20075,7 @@ "type": "Identifier", "span": { "start": 45013, - "end": 45029, + "end": 45024, "ctxt": 0 }, "value": "metadataKey", @@ -20111,7 +20111,7 @@ "type": "Identifier", "span": { "start": 45031, - "end": 45042, + "end": 45037, "ctxt": 0 }, "value": "target", @@ -20190,7 +20190,7 @@ "type": "Identifier", "span": { "start": 45095, - "end": 45111, + "end": 45106, "ctxt": 0 }, "value": "metadataKey", @@ -20226,7 +20226,7 @@ "type": "Identifier", "span": { "start": 45125, - "end": 45136, + "end": 45131, "ctxt": 0 }, "value": "target", @@ -20262,7 +20262,7 @@ "type": "Identifier", "span": { "start": 45150, - "end": 45178, + "end": 45161, "ctxt": 0 }, "value": "propertyKey", @@ -20360,7 +20360,7 @@ "type": "Identifier", "span": { "start": 46787, - "end": 46803, + "end": 46798, "ctxt": 0 }, "value": "metadataKey", @@ -20396,7 +20396,7 @@ "type": "Identifier", "span": { "start": 46817, - "end": 46828, + "end": 46823, "ctxt": 0 }, "value": "target", @@ -20432,7 +20432,7 @@ "type": "Identifier", "span": { "start": 46842, - "end": 46871, + "end": 46853, "ctxt": 0 }, "value": "propertyKey", @@ -20856,7 +20856,7 @@ "type": "Identifier", "span": { "start": 47353, - "end": 47364, + "end": 47359, "ctxt": 0 }, "value": "target", @@ -20943,7 +20943,7 @@ "type": "Identifier", "span": { "start": 47407, - "end": 47418, + "end": 47413, "ctxt": 0 }, "value": "target", @@ -20979,7 +20979,7 @@ "type": "Identifier", "span": { "start": 47420, - "end": 47448, + "end": 47431, "ctxt": 0 }, "value": "propertyKey", @@ -21085,7 +21085,7 @@ "type": "Identifier", "span": { "start": 48837, - "end": 48848, + "end": 48843, "ctxt": 0 }, "value": "target", @@ -21121,7 +21121,7 @@ "type": "Identifier", "span": { "start": 48862, - "end": 48891, + "end": 48873, "ctxt": 0 }, "value": "propertyKey", @@ -21540,7 +21540,7 @@ "type": "Identifier", "span": { "start": 49367, - "end": 49378, + "end": 49373, "ctxt": 0 }, "value": "target", @@ -21627,7 +21627,7 @@ "type": "Identifier", "span": { "start": 49437, - "end": 49448, + "end": 49443, "ctxt": 0 }, "value": "target", @@ -21663,7 +21663,7 @@ "type": "Identifier", "span": { "start": 49462, - "end": 49490, + "end": 49473, "ctxt": 0 }, "value": "propertyKey", @@ -21769,7 +21769,7 @@ "type": "Identifier", "span": { "start": 50891, - "end": 50902, + "end": 50897, "ctxt": 0 }, "value": "target", @@ -21805,7 +21805,7 @@ "type": "Identifier", "span": { "start": 50916, - "end": 50945, + "end": 50927, "ctxt": 0 }, "value": "propertyKey", @@ -22224,7 +22224,7 @@ "type": "Identifier", "span": { "start": 51436, - "end": 51452, + "end": 51447, "ctxt": 0 }, "value": "metadataKey", @@ -22260,7 +22260,7 @@ "type": "Identifier", "span": { "start": 51454, - "end": 51465, + "end": 51460, "ctxt": 0 }, "value": "target", @@ -22339,7 +22339,7 @@ "type": "Identifier", "span": { "start": 51522, - "end": 51538, + "end": 51533, "ctxt": 0 }, "value": "metadataKey", @@ -22375,7 +22375,7 @@ "type": "Identifier", "span": { "start": 51552, - "end": 51563, + "end": 51558, "ctxt": 0 }, "value": "target", @@ -22411,7 +22411,7 @@ "type": "Identifier", "span": { "start": 51577, - "end": 51605, + "end": 51588, "ctxt": 0 }, "value": "propertyKey", @@ -22509,7 +22509,7 @@ "type": "Identifier", "span": { "start": 53211, - "end": 53227, + "end": 53222, "ctxt": 0 }, "value": "metadataKey", @@ -22545,7 +22545,7 @@ "type": "Identifier", "span": { "start": 53241, - "end": 53252, + "end": 53247, "ctxt": 0 }, "value": "target", @@ -22581,7 +22581,7 @@ "type": "Identifier", "span": { "start": 53266, - "end": 53295, + "end": 53277, "ctxt": 0 }, "value": "propertyKey", @@ -23542,7 +23542,7 @@ "type": "Identifier", "span": { "start": 54119, - "end": 54147, + "end": 54129, "ctxt": 0 }, "value": "decorators", @@ -23596,7 +23596,7 @@ "type": "Identifier", "span": { "start": 54161, - "end": 54177, + "end": 54167, "ctxt": 0 }, "value": "target", @@ -24261,7 +24261,7 @@ "type": "Identifier", "span": { "start": 54676, - "end": 54705, + "end": 54686, "ctxt": 0 }, "value": "decorators", @@ -24315,7 +24315,7 @@ "type": "Identifier", "span": { "start": 54719, - "end": 54730, + "end": 54725, "ctxt": 0 }, "value": "target", @@ -24351,7 +24351,7 @@ "type": "Identifier", "span": { "start": 54744, - "end": 54772, + "end": 54755, "ctxt": 0 }, "value": "propertyKey", @@ -24406,7 +24406,7 @@ "type": "Identifier", "span": { "start": 54786, - "end": 54828, + "end": 54796, "ctxt": 0 }, "value": "descriptor", @@ -25135,7 +25135,7 @@ "type": "Identifier", "span": { "start": 55526, - "end": 55532, + "end": 55527, "ctxt": 0 }, "value": "O", @@ -25171,7 +25171,7 @@ "type": "Identifier", "span": { "start": 55546, - "end": 55576, + "end": 55547, "ctxt": 0 }, "value": "P", @@ -25235,7 +25235,7 @@ "type": "Identifier", "span": { "start": 55590, - "end": 55602, + "end": 55596, "ctxt": 0 }, "value": "Create", @@ -25359,7 +25359,7 @@ "type": "Identifier", "span": { "start": 55683, - "end": 55689, + "end": 55684, "ctxt": 0 }, "value": "O", @@ -25395,7 +25395,7 @@ "type": "Identifier", "span": { "start": 55703, - "end": 55733, + "end": 55704, "ctxt": 0 }, "value": "P", @@ -25459,7 +25459,7 @@ "type": "Identifier", "span": { "start": 55747, - "end": 55760, + "end": 55753, "ctxt": 0 }, "value": "Create", @@ -25602,7 +25602,7 @@ "type": "Identifier", "span": { "start": 55853, - "end": 55859, + "end": 55854, "ctxt": 0 }, "value": "O", @@ -25638,7 +25638,7 @@ "type": "Identifier", "span": { "start": 55873, - "end": 55903, + "end": 55874, "ctxt": 0 }, "value": "P", @@ -25702,7 +25702,7 @@ "type": "Identifier", "span": { "start": 55917, - "end": 55932, + "end": 55923, "ctxt": 0 }, "value": "Create", @@ -26591,7 +26591,7 @@ "type": "Identifier", "span": { "start": 56758, - "end": 56774, + "end": 56769, "ctxt": 0 }, "value": "MetadataKey", @@ -26627,7 +26627,7 @@ "type": "Identifier", "span": { "start": 56788, - "end": 56794, + "end": 56789, "ctxt": 0 }, "value": "O", @@ -26663,7 +26663,7 @@ "type": "Identifier", "span": { "start": 56808, - "end": 56838, + "end": 56809, "ctxt": 0 }, "value": "P", @@ -27110,7 +27110,7 @@ "type": "Identifier", "span": { "start": 57337, - "end": 57353, + "end": 57348, "ctxt": 0 }, "value": "MetadataKey", @@ -27146,7 +27146,7 @@ "type": "Identifier", "span": { "start": 57367, - "end": 57373, + "end": 57368, "ctxt": 0 }, "value": "O", @@ -27182,7 +27182,7 @@ "type": "Identifier", "span": { "start": 57387, - "end": 57417, + "end": 57388, "ctxt": 0 }, "value": "P", @@ -27533,7 +27533,7 @@ "type": "Identifier", "span": { "start": 57831, - "end": 57847, + "end": 57842, "ctxt": 0 }, "value": "MetadataKey", @@ -27569,7 +27569,7 @@ "type": "Identifier", "span": { "start": 57861, - "end": 57867, + "end": 57862, "ctxt": 0 }, "value": "O", @@ -27605,7 +27605,7 @@ "type": "Identifier", "span": { "start": 57881, - "end": 57911, + "end": 57882, "ctxt": 0 }, "value": "P", @@ -28104,7 +28104,7 @@ "type": "Identifier", "span": { "start": 58447, - "end": 58463, + "end": 58458, "ctxt": 0 }, "value": "MetadataKey", @@ -28140,7 +28140,7 @@ "type": "Identifier", "span": { "start": 58477, - "end": 58483, + "end": 58478, "ctxt": 0 }, "value": "O", @@ -28176,7 +28176,7 @@ "type": "Identifier", "span": { "start": 58497, - "end": 58527, + "end": 58498, "ctxt": 0 }, "value": "P", @@ -28504,7 +28504,7 @@ "type": "Identifier", "span": { "start": 58963, - "end": 58979, + "end": 58974, "ctxt": 0 }, "value": "MetadataKey", @@ -28540,7 +28540,7 @@ "type": "Identifier", "span": { "start": 58993, - "end": 59011, + "end": 59006, "ctxt": 0 }, "value": "MetadataValue", @@ -28576,7 +28576,7 @@ "type": "Identifier", "span": { "start": 59025, - "end": 59031, + "end": 59026, "ctxt": 0 }, "value": "O", @@ -28612,7 +28612,7 @@ "type": "Identifier", "span": { "start": 59045, - "end": 59075, + "end": 59046, "ctxt": 0 }, "value": "P", @@ -28892,7 +28892,7 @@ "type": "Identifier", "span": { "start": 59416, - "end": 59422, + "end": 59417, "ctxt": 0 }, "value": "O", @@ -28928,7 +28928,7 @@ "type": "Identifier", "span": { "start": 59436, - "end": 59466, + "end": 59437, "ctxt": 0 }, "value": "P", @@ -30239,7 +30239,7 @@ "type": "Identifier", "span": { "start": 60562, - "end": 60568, + "end": 60563, "ctxt": 0 }, "value": "O", @@ -30275,7 +30275,7 @@ "type": "Identifier", "span": { "start": 60582, - "end": 60612, + "end": 60583, "ctxt": 0 }, "value": "P", @@ -31292,7 +31292,7 @@ "type": "Identifier", "span": { "start": 61646, - "end": 61652, + "end": 61647, "ctxt": 0 }, "value": "x", @@ -32092,7 +32092,7 @@ "type": "Identifier", "span": { "start": 62724, - "end": 62730, + "end": 62725, "ctxt": 0 }, "value": "x", @@ -32244,7 +32244,7 @@ "type": "Identifier", "span": { "start": 62935, - "end": 62941, + "end": 62936, "ctxt": 0 }, "value": "x", @@ -32394,7 +32394,7 @@ "type": "Identifier", "span": { "start": 63142, - "end": 63148, + "end": 63143, "ctxt": 0 }, "value": "x", @@ -32555,7 +32555,7 @@ "type": "Identifier", "span": { "start": 63366, - "end": 63426, + "end": 63367, "ctxt": 0 }, "value": "x", @@ -32905,7 +32905,7 @@ "type": "Identifier", "span": { "start": 63780, - "end": 63790, + "end": 63785, "ctxt": 0 }, "value": "input", @@ -32941,7 +32941,7 @@ "type": "Identifier", "span": { "start": 63804, - "end": 63823, + "end": 63817, "ctxt": 0 }, "value": "PreferredType", @@ -34132,7 +34132,7 @@ "type": "Identifier", "span": { "start": 65116, - "end": 65122, + "end": 65117, "ctxt": 0 }, "value": "O", @@ -34168,7 +34168,7 @@ "type": "Identifier", "span": { "start": 65136, - "end": 65161, + "end": 65140, "ctxt": 0 }, "value": "hint", @@ -35501,7 +35501,7 @@ "type": "Identifier", "span": { "start": 66338, - "end": 66351, + "end": 66346, "ctxt": 0 }, "value": "argument", @@ -35625,7 +35625,7 @@ "type": "Identifier", "span": { "start": 66525, - "end": 66538, + "end": 66533, "ctxt": 0 }, "value": "argument", @@ -35750,7 +35750,7 @@ "type": "Identifier", "span": { "start": 66729, - "end": 66742, + "end": 66737, "ctxt": 0 }, "value": "argument", @@ -36057,7 +36057,7 @@ "type": "Identifier", "span": { "start": 67156, - "end": 67169, + "end": 67164, "ctxt": 0 }, "value": "argument", @@ -36449,7 +36449,7 @@ "type": "Identifier", "span": { "start": 67580, - "end": 67593, + "end": 67588, "ctxt": 0 }, "value": "argument", @@ -36620,7 +36620,7 @@ "type": "Identifier", "span": { "start": 67909, - "end": 67922, + "end": 67917, "ctxt": 0 }, "value": "argument", @@ -36791,7 +36791,7 @@ "type": "Identifier", "span": { "start": 68243, - "end": 68256, + "end": 68251, "ctxt": 0 }, "value": "argument", @@ -37107,7 +37107,7 @@ "type": "Identifier", "span": { "start": 68767, - "end": 68773, + "end": 68768, "ctxt": 0 }, "value": "V", @@ -37143,7 +37143,7 @@ "type": "Identifier", "span": { "start": 68775, - "end": 68781, + "end": 68776, "ctxt": 0 }, "value": "P", @@ -37518,7 +37518,7 @@ "type": "Identifier", "span": { "start": 69160, - "end": 69176, + "end": 69163, "ctxt": 0 }, "value": "obj", @@ -38055,7 +38055,7 @@ "type": "Identifier", "span": { "start": 69615, - "end": 69644, + "end": 69625, "ctxt": 0 }, "value": "iterResult", @@ -38259,7 +38259,7 @@ "type": "Identifier", "span": { "start": 69832, - "end": 69853, + "end": 69840, "ctxt": 0 }, "value": "iterator", @@ -38615,7 +38615,7 @@ "type": "Identifier", "span": { "start": 70136, - "end": 70157, + "end": 70144, "ctxt": 0 }, "value": "iterator", @@ -38904,7 +38904,7 @@ "type": "Identifier", "span": { "start": 70573, - "end": 70579, + "end": 70574, "ctxt": 0 }, "value": "O", @@ -40046,7 +40046,7 @@ "type": "Identifier", "span": { "start": 72689, - "end": 72695, + "end": 72692, "ctxt": 0 }, "value": "key", @@ -40083,7 +40083,7 @@ "type": "Identifier", "span": { "start": 72697, - "end": 72705, + "end": 72702, "ctxt": 0 }, "value": "value", @@ -40187,7 +40187,7 @@ "type": "Identifier", "span": { "start": 72741, - "end": 72750, + "end": 72745, "ctxt": 0 }, "value": "keys", @@ -40241,7 +40241,7 @@ "type": "Identifier", "span": { "start": 72752, - "end": 72763, + "end": 72758, "ctxt": 0 }, "value": "values", @@ -40295,7 +40295,7 @@ "type": "Identifier", "span": { "start": 72765, - "end": 72798, + "end": 72773, "ctxt": 0 }, "value": "selector", @@ -40319,7 +40319,7 @@ "type": "Identifier", "span": { "start": 72776, - "end": 72782, + "end": 72779, "ctxt": 0 }, "value": "key", @@ -40356,7 +40356,7 @@ "type": "Identifier", "span": { "start": 72784, - "end": 72792, + "end": 72789, "ctxt": 0 }, "value": "value", @@ -41683,7 +41683,7 @@ "type": "Identifier", "span": { "start": 73974, - "end": 73984, + "end": 73979, "ctxt": 0 }, "value": "error", @@ -42071,7 +42071,7 @@ "type": "Identifier", "span": { "start": 74295, - "end": 74304, + "end": 74300, "ctxt": 0 }, "value": "value", @@ -43156,7 +43156,7 @@ "type": "Identifier", "span": { "start": 74979, - "end": 74985, + "end": 74982, "ctxt": 0 }, "value": "key", @@ -43355,7 +43355,7 @@ "type": "Identifier", "span": { "start": 75103, - "end": 75109, + "end": 75106, "ctxt": 0 }, "value": "key", @@ -43695,7 +43695,7 @@ "type": "Identifier", "span": { "start": 75308, - "end": 75314, + "end": 75311, "ctxt": 0 }, "value": "key", @@ -43741,7 +43741,7 @@ "type": "Identifier", "span": { "start": 75316, - "end": 75324, + "end": 75321, "ctxt": 0 }, "value": "value", @@ -44039,7 +44039,7 @@ "type": "Identifier", "span": { "start": 75525, - "end": 75531, + "end": 75528, "ctxt": 0 }, "value": "key", @@ -46063,7 +46063,7 @@ "type": "Identifier", "span": { "start": 77149, - "end": 77155, + "end": 77152, "ctxt": 0 }, "value": "key", @@ -46109,7 +46109,7 @@ "type": "Identifier", "span": { "start": 77157, - "end": 77173, + "end": 77163, "ctxt": 0 }, "value": "insert", @@ -46841,7 +46841,7 @@ "type": "Identifier", "span": { "start": 77699, - "end": 77705, + "end": 77702, "ctxt": 0 }, "value": "key", @@ -46887,7 +46887,7 @@ "type": "Identifier", "span": { "start": 77707, - "end": 77711, + "end": 77708, "ctxt": 0 }, "value": "_", @@ -47042,7 +47042,7 @@ "type": "Identifier", "span": { "start": 77794, - "end": 77798, + "end": 77795, "ctxt": 0 }, "value": "_", @@ -47088,7 +47088,7 @@ "type": "Identifier", "span": { "start": 77800, - "end": 77808, + "end": 77805, "ctxt": 0 }, "value": "value", @@ -47243,7 +47243,7 @@ "type": "Identifier", "span": { "start": 77893, - "end": 77899, + "end": 77896, "ctxt": 0 }, "value": "key", @@ -47289,7 +47289,7 @@ "type": "Identifier", "span": { "start": 77901, - "end": 77909, + "end": 77906, "ctxt": 0 }, "value": "value", @@ -47810,7 +47810,7 @@ "type": "Identifier", "span": { "start": 78263, - "end": 78271, + "end": 78268, "ctxt": 0 }, "value": "value", @@ -47996,7 +47996,7 @@ "type": "Identifier", "span": { "start": 78371, - "end": 78379, + "end": 78376, "ctxt": 0 }, "value": "value", @@ -48251,7 +48251,7 @@ "type": "Identifier", "span": { "start": 78494, - "end": 78502, + "end": 78499, "ctxt": 0 }, "value": "value", @@ -49436,7 +49436,7 @@ "type": "Identifier", "span": { "start": 79497, - "end": 79506, + "end": 79503, "ctxt": 0 }, "value": "target", @@ -49787,7 +49787,7 @@ "type": "Identifier", "span": { "start": 79733, - "end": 79742, + "end": 79739, "ctxt": 0 }, "value": "target", @@ -50149,7 +50149,7 @@ "type": "Identifier", "span": { "start": 80015, - "end": 80024, + "end": 80021, "ctxt": 0 }, "value": "target", @@ -50195,7 +50195,7 @@ "type": "Identifier", "span": { "start": 80026, - "end": 80034, + "end": 80031, "ctxt": 0 }, "value": "value", @@ -50563,7 +50563,7 @@ "type": "Identifier", "span": { "start": 80260, - "end": 80269, + "end": 80266, "ctxt": 0 }, "value": "target", @@ -51398,7 +51398,7 @@ "type": "Identifier", "span": { "start": 81004, - "end": 81013, + "end": 81010, "ctxt": 0 }, "value": "target", @@ -51444,7 +51444,7 @@ "type": "Identifier", "span": { "start": 81015, - "end": 81027, + "end": 81021, "ctxt": 0 }, "value": "create", @@ -51591,7 +51591,7 @@ "type": "Identifier", "span": { "start": 81127, - "end": 81136, + "end": 81133, "ctxt": 0 }, "value": "target", @@ -51637,7 +51637,7 @@ "type": "Identifier", "span": { "start": 81138, - "end": 81151, + "end": 81144, "ctxt": 0 }, "value": "create", @@ -51803,7 +51803,7 @@ "type": "Identifier", "span": { "start": 81263, - "end": 81272, + "end": 81269, "ctxt": 0 }, "value": "target", @@ -51849,7 +51849,7 @@ "type": "Identifier", "span": { "start": 81274, - "end": 81289, + "end": 81280, "ctxt": 0 }, "value": "create", @@ -52379,7 +52379,7 @@ "type": "Identifier", "span": { "start": 81679, - "end": 81697, + "end": 81685, "ctxt": 0 }, "value": "buffer", @@ -52425,7 +52425,7 @@ "type": "Identifier", "span": { "start": 81699, - "end": 81711, + "end": 81703, "ctxt": 0 }, "value": "size", @@ -52777,7 +52777,7 @@ "type": "Identifier", "span": { "start": 81896, - "end": 81908, + "end": 81900, "ctxt": 0 }, "value": "size", @@ -54403,7 +54403,7 @@ "type": "Identifier", "span": { "start": 83285, - "end": 83291, + "end": 83288, "ctxt": 0 }, "value": "obj", diff --git a/crates/swc_ecma_parser/tests/typescript/es2019/from-entries/input.ts.json b/crates/swc_ecma_parser/tests/typescript/es2019/from-entries/input.ts.json index e55c4b1a0f59..d041acd7ade3 100644 --- a/crates/swc_ecma_parser/tests/typescript/es2019/from-entries/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/es2019/from-entries/input.ts.json @@ -59,7 +59,7 @@ "type": "Identifier", "span": { "start": 57, - "end": 101, + "end": 64, "ctxt": 0 }, "value": "entries", @@ -323,7 +323,7 @@ "type": "Identifier", "span": { "start": 147, - "end": 180, + "end": 154, "ctxt": 0 }, "value": "entries", diff --git a/crates/swc_ecma_parser/tests/typescript/function/annotated/input.ts.json b/crates/swc_ecma_parser/tests/typescript/function/annotated/input.ts.json index b46d5b51ec0a..df0495d43888 100644 --- a/crates/swc_ecma_parser/tests/typescript/function/annotated/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/function/annotated/input.ts.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 15, - "end": 20, + "end": 16, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/typescript/function/anonymous/input.ts.json b/crates/swc_ecma_parser/tests/typescript/function/anonymous/input.ts.json index 8c47d5feebb3..a75103822b19 100644 --- a/crates/swc_ecma_parser/tests/typescript/function/anonymous/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/function/anonymous/input.ts.json @@ -50,7 +50,7 @@ "type": "Identifier", "span": { "start": 23, - "end": 28, + "end": 24, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/typescript/function/export-default/input.ts.json b/crates/swc_ecma_parser/tests/typescript/function/export-default/input.ts.json index e7df1fd6b1ac..46000928415c 100644 --- a/crates/swc_ecma_parser/tests/typescript/function/export-default/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/function/export-default/input.ts.json @@ -29,7 +29,7 @@ "type": "Identifier", "span": { "start": 25, - "end": 35, + "end": 26, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/typescript/function/overloads/input.ts.json b/crates/swc_ecma_parser/tests/typescript/function/overloads/input.ts.json index 7ff1410a6260..e4d1ec30d038 100644 --- a/crates/swc_ecma_parser/tests/typescript/function/overloads/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/function/overloads/input.ts.json @@ -39,7 +39,7 @@ "type": "Identifier", "span": { "start": 19, - "end": 28, + "end": 20, "ctxt": 0 }, "value": "x", @@ -126,7 +126,7 @@ "type": "Identifier", "span": { "start": 57, - "end": 66, + "end": 58, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/typescript/function/predicate-types/input.ts.json b/crates/swc_ecma_parser/tests/typescript/function/predicate-types/input.ts.json index eb242dfdbf20..7984b2eee7b3 100644 --- a/crates/swc_ecma_parser/tests/typescript/function/predicate-types/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/function/predicate-types/input.ts.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 12, - "end": 18, + "end": 13, "ctxt": 0 }, "value": "x", @@ -150,7 +150,7 @@ "type": "Identifier", "span": { "start": 47, - "end": 53, + "end": 48, "ctxt": 0 }, "value": "x", @@ -266,7 +266,7 @@ "type": "Identifier", "span": { "start": 84, - "end": 90, + "end": 85, "ctxt": 0 }, "value": "x", @@ -380,7 +380,7 @@ "type": "Identifier", "span": { "start": 128, - "end": 134, + "end": 129, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/typescript/interface/call-signature/input.ts.json b/crates/swc_ecma_parser/tests/typescript/interface/call-signature/input.ts.json index f704580f3ced..2207529f9a34 100644 --- a/crates/swc_ecma_parser/tests/typescript/interface/call-signature/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/interface/call-signature/input.ts.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 20, - "end": 29, + "end": 21, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/typescript/interface/construct-signature/input.ts.json b/crates/swc_ecma_parser/tests/typescript/interface/construct-signature/input.ts.json index 2574defcd3ed..437fa78c5240 100644 --- a/crates/swc_ecma_parser/tests/typescript/interface/construct-signature/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/interface/construct-signature/input.ts.json @@ -46,7 +46,7 @@ "type": "Identifier", "span": { "start": 24, - "end": 33, + "end": 25, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/typescript/interface/method-plain/input.ts.json b/crates/swc_ecma_parser/tests/typescript/interface/method-plain/input.ts.json index 7de90770af82..0d8967986e40 100644 --- a/crates/swc_ecma_parser/tests/typescript/interface/method-plain/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/interface/method-plain/input.ts.json @@ -83,7 +83,7 @@ "type": "Identifier", "span": { "start": 30, - "end": 40, + "end": 31, "ctxt": 0 }, "value": "x", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1299/ts/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-1299/ts/input.ts.json index 1a275b00cdbb..f155f6100f57 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1299/ts/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1299/ts/input.ts.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 85, + "end": 64, "ctxt": 0 }, "value": "values", @@ -131,7 +131,7 @@ "type": "Identifier", "span": { "start": 91, - "end": 123, + "end": 98, "ctxt": 0 }, "value": "execute", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1299/tsx/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-1299/tsx/input.tsx.json index 1a275b00cdbb..f155f6100f57 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1299/tsx/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1299/tsx/input.tsx.json @@ -57,7 +57,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 85, + "end": 64, "ctxt": 0 }, "value": "values", @@ -131,7 +131,7 @@ "type": "Identifier", "span": { "start": 91, - "end": 123, + "end": 98, "ctxt": 0 }, "value": "execute", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1505/case2/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-1505/case2/input.tsx.json index 9595c03342c2..17e637a80d22 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1505/case2/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1505/case2/input.tsx.json @@ -1402,7 +1402,7 @@ "type": "Identifier", "span": { "start": 1441, - "end": 1454, + "end": 1446, "ctxt": 0 }, "value": "teams", @@ -1456,7 +1456,7 @@ "type": "Identifier", "span": { "start": 1456, - "end": 1475, + "end": 1464, "ctxt": 0 }, "value": "projects", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1517/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-1517/case1/input.ts.json index dcbb57b50aae..752a4df7d28c 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1517/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1517/case1/input.ts.json @@ -96,7 +96,7 @@ "type": "Identifier", "span": { "start": 46, - "end": 64, + "end": 47, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1517/case2/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-1517/case2/input.ts.json index 40bc79726ac7..bbd7fae31e49 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1517/case2/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1517/case2/input.ts.json @@ -95,7 +95,7 @@ "type": "Identifier", "span": { "start": 43, - "end": 61, + "end": 44, "ctxt": 0 }, "value": "v", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-2343/1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-2343/1/input.ts.json index b47215ff20bb..d2031fd9da5f 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-2343/1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-2343/1/input.ts.json @@ -39,7 +39,7 @@ "type": "Identifier", "span": { "start": 32, - "end": 44, + "end": 36, "ctxt": 0 }, "value": "some", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-3241/1/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-3241/1/input.tsx.json index 19d457ea3e4f..c6d2dad2cfdf 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-3241/1/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-3241/1/input.tsx.json @@ -283,7 +283,7 @@ "type": "Identifier", "span": { "start": 228, - "end": 237, + "end": 229, "ctxt": 0 }, "value": "a", @@ -319,7 +319,7 @@ "type": "Identifier", "span": { "start": 239, - "end": 248, + "end": 240, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-6430/index.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-6430/index.ts.json index 9b759039c8a7..64e0f83558d9 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-6430/index.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-6430/index.ts.json @@ -86,7 +86,7 @@ "type": "Identifier", "span": { "start": 124, - "end": 130, + "end": 127, "ctxt": 0 }, "value": "num", @@ -201,7 +201,7 @@ "type": "Identifier", "span": { "start": 163, - "end": 169, + "end": 166, "ctxt": 0 }, "value": "str", @@ -346,7 +346,7 @@ "type": "Identifier", "span": { "start": 218, - "end": 224, + "end": 221, "ctxt": 0 }, "value": "num", @@ -461,7 +461,7 @@ "type": "Identifier", "span": { "start": 261, - "end": 267, + "end": 264, "ctxt": 0 }, "value": "str", @@ -885,7 +885,7 @@ "type": "Identifier", "span": { "start": 404, - "end": 410, + "end": 407, "ctxt": 0 }, "value": "str", @@ -1030,7 +1030,7 @@ "type": "Identifier", "span": { "start": 446, - "end": 457, + "end": 449, "ctxt": 0 }, "value": "num", @@ -1085,7 +1085,7 @@ "type": "Identifier", "span": { "start": 472, - "end": 483, + "end": 475, "ctxt": 0 }, "value": "str", @@ -1170,7 +1170,7 @@ "type": "Identifier", "span": { "start": 533, - "end": 539, + "end": 536, "ctxt": 0 }, "value": "num", @@ -1275,7 +1275,7 @@ "type": "Identifier", "span": { "start": 572, - "end": 578, + "end": 575, "ctxt": 0 }, "value": "str", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-7186/1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-7186/1/input.ts.json index 3054d88283dc..e544b4915a8c 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-7186/1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-7186/1/input.ts.json @@ -66,7 +66,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 94, + "end": 66, "ctxt": 0 }, "value": "callback", @@ -90,7 +90,7 @@ "type": "Identifier", "span": { "start": 69, - "end": 85, + "end": 76, "ctxt": 0 }, "value": "package", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-7186/2/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-7186/2/input.tsx.json index 3054d88283dc..e544b4915a8c 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-7186/2/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-7186/2/input.tsx.json @@ -66,7 +66,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 94, + "end": 66, "ctxt": 0 }, "value": "callback", @@ -90,7 +90,7 @@ "type": "Identifier", "span": { "start": 69, - "end": 85, + "end": 76, "ctxt": 0 }, "value": "package", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-7187/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-7187/input.ts.json index ae027a7231d5..1e3a088a88db 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-7187/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-7187/input.ts.json @@ -65,7 +65,7 @@ "type": "Identifier", "span": { "start": 16, - "end": 22, + "end": 19, "ctxt": 0 }, "value": "key", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-7305/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-7305/input.ts.json index fd2fa053ce19..a5b89a6f15e0 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-7305/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-7305/input.ts.json @@ -110,7 +110,7 @@ "type": "Identifier", "span": { "start": 45, - "end": 54, + "end": 51, "ctxt": 0 }, "value": "object", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-8209/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-8209/input.ts.json index 4058c2a7d1d0..4f16e4323a83 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-8209/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-8209/input.ts.json @@ -164,7 +164,7 @@ "type": "Identifier", "span": { "start": 58, - "end": 66, + "end": 61, "ctxt": 0 }, "value": "key", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-8581/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-8581/input.ts.json index d4839c7153db..9926404063e6 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-8581/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-8581/input.ts.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 17, - "end": 24, + "end": 21, "ctxt": 0 }, "value": "func", @@ -280,7 +280,7 @@ "type": "Identifier", "span": { "start": 56, - "end": 62, + "end": 59, "ctxt": 0 }, "value": "key", @@ -521,7 +521,7 @@ "type": "Identifier", "span": { "start": 100, - "end": 107, + "end": 104, "ctxt": 0 }, "value": "key2", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-8735/1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-8735/1/input.ts.json index 44d43e2a9f2f..f6ffa02e2a3c 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-8735/1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-8735/1/input.ts.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 29, - "end": 39, + "end": 34, "ctxt": 0 }, "value": "array", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-8735/2/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-8735/2/input.tsx.json index 44d43e2a9f2f..f6ffa02e2a3c 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-8735/2/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-8735/2/input.tsx.json @@ -32,7 +32,7 @@ "type": "Identifier", "span": { "start": 29, - "end": 39, + "end": 34, "ctxt": 0 }, "value": "array", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-913/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-913/input.ts.json index 2ad73c00ba28..e51115c972e2 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-913/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-913/input.ts.json @@ -7857,7 +7857,7 @@ "type": "Identifier", "span": { "start": 7153, - "end": 7180, + "end": 7160, "ctxt": 0 }, "value": "request", @@ -7929,7 +7929,7 @@ "type": "Identifier", "span": { "start": 7186, - "end": 7215, + "end": 7194, "ctxt": 0 }, "value": "response", @@ -8216,7 +8216,7 @@ "type": "Identifier", "span": { "start": 7445, - "end": 7472, + "end": 7452, "ctxt": 0 }, "value": "request", @@ -8288,7 +8288,7 @@ "type": "Identifier", "span": { "start": 7478, - "end": 7507, + "end": 7486, "ctxt": 0 }, "value": "response", @@ -8542,7 +8542,7 @@ "type": "Identifier", "span": { "start": 7646, - "end": 7673, + "end": 7653, "ctxt": 0 }, "value": "request", @@ -8614,7 +8614,7 @@ "type": "Identifier", "span": { "start": 7679, - "end": 7708, + "end": 7687, "ctxt": 0 }, "value": "response", diff --git a/crates/swc_ecma_parser/tests/typescript/regression/tsx-issue-7742/input.ts.json b/crates/swc_ecma_parser/tests/typescript/regression/tsx-issue-7742/input.ts.json index 84d9c9ce7f94..457593c98975 100644 --- a/crates/swc_ecma_parser/tests/typescript/regression/tsx-issue-7742/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/regression/tsx-issue-7742/input.ts.json @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 28, - "end": 34, + "end": 31, "ctxt": 0 }, "value": "bar", diff --git a/crates/swc_ecma_parser/tests/typescript/types/conditional-infer-extends/basic/input.ts.json b/crates/swc_ecma_parser/tests/typescript/types/conditional-infer-extends/basic/input.ts.json index 514961436a4f..d464c3160833 100644 --- a/crates/swc_ecma_parser/tests/typescript/types/conditional-infer-extends/basic/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/types/conditional-infer-extends/basic/input.ts.json @@ -548,7 +548,7 @@ "type": "Identifier", "span": { "start": 215, - "end": 240, + "end": 216, "ctxt": 0 }, "value": "a", @@ -724,7 +724,7 @@ "type": "Identifier", "span": { "start": 283, - "end": 308, + "end": 284, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/typescript/types/function-generic/input.ts.json b/crates/swc_ecma_parser/tests/typescript/types/function-generic/input.ts.json index 2a0832fec1f0..7c56eec7bf08 100644 --- a/crates/swc_ecma_parser/tests/typescript/types/function-generic/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/types/function-generic/input.ts.json @@ -51,7 +51,7 @@ "type": "Identifier", "span": { "start": 12, - "end": 16, + "end": 13, "ctxt": 0 }, "value": "a", diff --git a/crates/swc_ecma_parser/tests/typescript/types/function-with-this/input.ts.json b/crates/swc_ecma_parser/tests/typescript/types/function-with-this/input.ts.json index 085bed8f4e03..78bd81d93cb3 100644 --- a/crates/swc_ecma_parser/tests/typescript/types/function-with-this/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/types/function-with-this/input.ts.json @@ -51,7 +51,7 @@ "type": "Identifier", "span": { "start": 9, - "end": 21, + "end": 13, "ctxt": 0 }, "value": "this", diff --git a/crates/swc_ecma_parser/tests/typescript/types/function/input.ts.json b/crates/swc_ecma_parser/tests/typescript/types/function/input.ts.json index 622e431f5427..17ea684edab1 100644 --- a/crates/swc_ecma_parser/tests/typescript/types/function/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/types/function/input.ts.json @@ -51,7 +51,7 @@ "type": "Identifier", "span": { "start": 9, - "end": 18, + "end": 10, "ctxt": 0 }, "value": "a", @@ -78,7 +78,7 @@ "type": "Identifier", "span": { "start": 20, - "end": 30, + "end": 21, "ctxt": 0 }, "value": "b", diff --git a/crates/swc_ecma_parser/tests/typescript/types/object-shorthand/input.ts.json b/crates/swc_ecma_parser/tests/typescript/types/object-shorthand/input.ts.json index 40ca56ebce31..102f8560963d 100644 --- a/crates/swc_ecma_parser/tests/typescript/types/object-shorthand/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/types/object-shorthand/input.ts.json @@ -67,7 +67,7 @@ "type": "Identifier", "span": { "start": 49, - "end": 57, + "end": 54, "ctxt": 0 }, "value": "value", diff --git a/crates/swc_ecma_parser/tests/typescript/variance-annotations/1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/variance-annotations/1/input.ts.json index 11898fd8c1aa..6f653dbde743 100644 --- a/crates/swc_ecma_parser/tests/typescript/variance-annotations/1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/variance-annotations/1/input.ts.json @@ -449,7 +449,7 @@ "type": "Identifier", "span": { "start": 250, - "end": 254, + "end": 251, "ctxt": 0 }, "value": "x", @@ -838,7 +838,7 @@ "type": "Identifier", "span": { "start": 510, - "end": 514, + "end": 511, "ctxt": 0 }, "value": "x", @@ -1838,7 +1838,7 @@ "type": "Identifier", "span": { "start": 1056, - "end": 1060, + "end": 1057, "ctxt": 0 }, "value": "x", @@ -1997,7 +1997,7 @@ "type": "Identifier", "span": { "start": 1118, - "end": 1122, + "end": 1119, "ctxt": 0 }, "value": "x", @@ -2166,7 +2166,7 @@ "type": "Identifier", "span": { "start": 1178, - "end": 1182, + "end": 1179, "ctxt": 0 }, "value": "x", @@ -2490,7 +2490,7 @@ "type": "Identifier", "span": { "start": 1303, - "end": 1317, + "end": 1306, "ctxt": 0 }, "value": "foo", @@ -2984,7 +2984,7 @@ "type": "Identifier", "span": { "start": 1451, - "end": 1465, + "end": 1454, "ctxt": 0 }, "value": "foo", @@ -3478,7 +3478,7 @@ "type": "Identifier", "span": { "start": 1592, - "end": 1606, + "end": 1595, "ctxt": 0 }, "value": "foo", @@ -4027,7 +4027,7 @@ "type": "Identifier", "span": { "start": 1855, - "end": 1859, + "end": 1856, "ctxt": 0 }, "value": "x", @@ -5192,7 +5192,7 @@ "type": "Identifier", "span": { "start": 2382, - "end": 2395, + "end": 2385, "ctxt": 0 }, "value": "inp", @@ -6211,7 +6211,7 @@ "type": "Identifier", "span": { "start": 2862, - "end": 2890, + "end": 2866, "ctxt": 0 }, "value": "meta", @@ -6333,7 +6333,7 @@ "type": "Identifier", "span": { "start": 2968, - "end": 2996, + "end": 2974, "ctxt": 0 }, "value": "action", @@ -6569,7 +6569,7 @@ "type": "Identifier", "span": { "start": 3058, - "end": 3091, + "end": 3065, "ctxt": 0 }, "value": "machine", diff --git a/crates/swc_ecma_parser/tests/typescript/variance-annotations/with_jsx/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/variance-annotations/with_jsx/input.tsx.json index 11898fd8c1aa..6f653dbde743 100644 --- a/crates/swc_ecma_parser/tests/typescript/variance-annotations/with_jsx/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/variance-annotations/with_jsx/input.tsx.json @@ -449,7 +449,7 @@ "type": "Identifier", "span": { "start": 250, - "end": 254, + "end": 251, "ctxt": 0 }, "value": "x", @@ -838,7 +838,7 @@ "type": "Identifier", "span": { "start": 510, - "end": 514, + "end": 511, "ctxt": 0 }, "value": "x", @@ -1838,7 +1838,7 @@ "type": "Identifier", "span": { "start": 1056, - "end": 1060, + "end": 1057, "ctxt": 0 }, "value": "x", @@ -1997,7 +1997,7 @@ "type": "Identifier", "span": { "start": 1118, - "end": 1122, + "end": 1119, "ctxt": 0 }, "value": "x", @@ -2166,7 +2166,7 @@ "type": "Identifier", "span": { "start": 1178, - "end": 1182, + "end": 1179, "ctxt": 0 }, "value": "x", @@ -2490,7 +2490,7 @@ "type": "Identifier", "span": { "start": 1303, - "end": 1317, + "end": 1306, "ctxt": 0 }, "value": "foo", @@ -2984,7 +2984,7 @@ "type": "Identifier", "span": { "start": 1451, - "end": 1465, + "end": 1454, "ctxt": 0 }, "value": "foo", @@ -3478,7 +3478,7 @@ "type": "Identifier", "span": { "start": 1592, - "end": 1606, + "end": 1595, "ctxt": 0 }, "value": "foo", @@ -4027,7 +4027,7 @@ "type": "Identifier", "span": { "start": 1855, - "end": 1859, + "end": 1856, "ctxt": 0 }, "value": "x", @@ -5192,7 +5192,7 @@ "type": "Identifier", "span": { "start": 2382, - "end": 2395, + "end": 2385, "ctxt": 0 }, "value": "inp", @@ -6211,7 +6211,7 @@ "type": "Identifier", "span": { "start": 2862, - "end": 2890, + "end": 2866, "ctxt": 0 }, "value": "meta", @@ -6333,7 +6333,7 @@ "type": "Identifier", "span": { "start": 2968, - "end": 2996, + "end": 2974, "ctxt": 0 }, "value": "action", @@ -6569,7 +6569,7 @@ "type": "Identifier", "span": { "start": 3058, - "end": 3091, + "end": 3065, "ctxt": 0 }, "value": "machine",