mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
84cec8766d
**Description:** This PR is to prepare removal of `string-cache`. Actually, this PR does not remove it. Instead, this PR only removes direct usages of `js_word!`s, especially in patterns. **Related issue:** - #4946.
791 lines
20 KiB
Plaintext
791 lines
20 KiB
Plaintext
[
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
16,
|
|
),
|
|
hi: BytePos(
|
|
16,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
16,
|
|
),
|
|
hi: BytePos(
|
|
16,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
16,
|
|
),
|
|
hi: BytePos(
|
|
25,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
16,
|
|
),
|
|
hi: BytePos(
|
|
25,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "interface",
|
|
},
|
|
tag: Interface(
|
|
InterfaceTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
16,
|
|
),
|
|
hi: BytePos(
|
|
25,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: None,
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
61,
|
|
),
|
|
hi: BytePos(
|
|
61,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
61,
|
|
),
|
|
hi: BytePos(
|
|
61,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
61,
|
|
),
|
|
hi: BytePos(
|
|
65,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
61,
|
|
),
|
|
hi: BytePos(
|
|
65,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "type",
|
|
},
|
|
tag: Type(
|
|
TypeTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
61,
|
|
),
|
|
hi: BytePos(
|
|
65,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
61,
|
|
),
|
|
hi: BytePos(
|
|
69,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{string}",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
121,
|
|
),
|
|
hi: BytePos(
|
|
121,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
121,
|
|
),
|
|
hi: BytePos(
|
|
121,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
121,
|
|
),
|
|
hi: BytePos(
|
|
125,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
121,
|
|
),
|
|
hi: BytePos(
|
|
125,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "enum",
|
|
},
|
|
tag: Enum(
|
|
EnumTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
121,
|
|
),
|
|
hi: BytePos(
|
|
125,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
ty: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
0,
|
|
),
|
|
hi: BytePos(
|
|
0,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
189,
|
|
),
|
|
hi: BytePos(
|
|
189,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
189,
|
|
),
|
|
hi: BytePos(
|
|
207,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "before each method",
|
|
},
|
|
tags: [],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
266,
|
|
),
|
|
hi: BytePos(
|
|
266,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
266,
|
|
),
|
|
hi: BytePos(
|
|
276,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "it method.",
|
|
},
|
|
tags: [],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
327,
|
|
),
|
|
hi: BytePos(
|
|
327,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
327,
|
|
),
|
|
hi: BytePos(
|
|
327,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
327,
|
|
),
|
|
hi: BytePos(
|
|
338,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
327,
|
|
),
|
|
hi: BytePos(
|
|
338,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "constructor",
|
|
},
|
|
tag: Class(
|
|
ClassTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
327,
|
|
),
|
|
hi: BytePos(
|
|
338,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
327,
|
|
),
|
|
hi: BytePos(
|
|
350,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "* @implements {ITester}",
|
|
},
|
|
),
|
|
name: None,
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
400,
|
|
),
|
|
hi: BytePos(
|
|
409,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
400,
|
|
),
|
|
hi: BytePos(
|
|
400,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
400,
|
|
),
|
|
hi: BytePos(
|
|
404,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
400,
|
|
),
|
|
hi: BytePos(
|
|
404,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "type",
|
|
},
|
|
tag: Type(
|
|
TypeTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
400,
|
|
),
|
|
hi: BytePos(
|
|
404,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
0,
|
|
),
|
|
hi: BytePos(
|
|
0,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
457,
|
|
),
|
|
hi: BytePos(
|
|
457,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
457,
|
|
),
|
|
hi: BytePos(
|
|
457,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
457,
|
|
),
|
|
hi: BytePos(
|
|
461,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
457,
|
|
),
|
|
hi: BytePos(
|
|
461,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "enum",
|
|
},
|
|
tag: Enum(
|
|
EnumTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
457,
|
|
),
|
|
hi: BytePos(
|
|
461,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
ty: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
0,
|
|
),
|
|
hi: BytePos(
|
|
0,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
492,
|
|
),
|
|
hi: BytePos(
|
|
492,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
492,
|
|
),
|
|
hi: BytePos(
|
|
503,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "keyboard up",
|
|
},
|
|
tags: [],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
561,
|
|
),
|
|
hi: BytePos(
|
|
561,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
561,
|
|
),
|
|
hi: BytePos(
|
|
591,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "my tester's beforeEach method.",
|
|
},
|
|
tags: [],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
690,
|
|
),
|
|
hi: BytePos(
|
|
690,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
690,
|
|
),
|
|
hi: BytePos(
|
|
690,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
690,
|
|
),
|
|
hi: BytePos(
|
|
699,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
690,
|
|
),
|
|
hi: BytePos(
|
|
699,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "interface",
|
|
},
|
|
tag: Interface(
|
|
InterfaceTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
690,
|
|
),
|
|
hi: BytePos(
|
|
699,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: None,
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
734,
|
|
),
|
|
hi: BytePos(
|
|
734,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
734,
|
|
),
|
|
hi: BytePos(
|
|
764,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Interface for doing some work.",
|
|
},
|
|
tags: [],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
813,
|
|
),
|
|
hi: BytePos(
|
|
813,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
813,
|
|
),
|
|
hi: BytePos(
|
|
813,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
813,
|
|
),
|
|
hi: BytePos(
|
|
824,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
813,
|
|
),
|
|
hi: BytePos(
|
|
824,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "constructor",
|
|
},
|
|
tag: Class(
|
|
ClassTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
813,
|
|
),
|
|
hi: BytePos(
|
|
824,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
813,
|
|
),
|
|
hi: BytePos(
|
|
836,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "* @implements {IWorker}",
|
|
},
|
|
),
|
|
name: None,
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
885,
|
|
),
|
|
hi: BytePos(
|
|
885,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
885,
|
|
),
|
|
hi: BytePos(
|
|
898,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Do some work.",
|
|
},
|
|
tags: [],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
992,
|
|
),
|
|
hi: BytePos(
|
|
992,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
992,
|
|
),
|
|
hi: BytePos(
|
|
992,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
992,
|
|
),
|
|
hi: BytePos(
|
|
1003,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
992,
|
|
),
|
|
hi: BytePos(
|
|
1003,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "constructor",
|
|
},
|
|
tag: Class(
|
|
ClassTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
992,
|
|
),
|
|
hi: BytePos(
|
|
1003,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
992,
|
|
),
|
|
hi: BytePos(
|
|
1015,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "* @implements {IWorker}",
|
|
},
|
|
),
|
|
name: None,
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
]
|