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.
482 lines
13 KiB
Plaintext
482 lines
13 KiB
Plaintext
[
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
1,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
1,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
6,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
6,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "class",
|
|
},
|
|
tag: Class(
|
|
ClassTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
6,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
ty: None,
|
|
name: None,
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
43,
|
|
),
|
|
hi: BytePos(
|
|
43,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
43,
|
|
),
|
|
hi: BytePos(
|
|
43,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
43,
|
|
),
|
|
hi: BytePos(
|
|
48,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
43,
|
|
),
|
|
hi: BytePos(
|
|
48,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "lends",
|
|
},
|
|
tag: Lends(
|
|
LendsTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
43,
|
|
),
|
|
hi: BytePos(
|
|
48,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: NamePath {
|
|
span: Span {
|
|
lo: BytePos(
|
|
43,
|
|
),
|
|
hi: BytePos(
|
|
44,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
components: [
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
43,
|
|
),
|
|
hi: BytePos(
|
|
49,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Person",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
79,
|
|
),
|
|
hi: BytePos(
|
|
79,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
79,
|
|
),
|
|
hi: BytePos(
|
|
101,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Set up initial values.",
|
|
},
|
|
tags: [],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
166,
|
|
),
|
|
hi: BytePos(
|
|
166,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
166,
|
|
),
|
|
hi: BytePos(
|
|
182,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Speak a message.",
|
|
},
|
|
tags: [],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
295,
|
|
),
|
|
hi: BytePos(
|
|
295,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
295,
|
|
),
|
|
hi: BytePos(
|
|
329,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "The name of the person.\n *",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
295,
|
|
),
|
|
hi: BytePos(
|
|
299,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
295,
|
|
),
|
|
hi: BytePos(
|
|
299,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "type",
|
|
},
|
|
tag: Type(
|
|
TypeTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
295,
|
|
),
|
|
hi: BytePos(
|
|
299,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
295,
|
|
),
|
|
hi: BytePos(
|
|
303,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{string}",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
444,
|
|
),
|
|
hi: BytePos(
|
|
444,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
444,
|
|
),
|
|
hi: BytePos(
|
|
444,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
444,
|
|
),
|
|
hi: BytePos(
|
|
448,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
444,
|
|
),
|
|
hi: BytePos(
|
|
448,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "type",
|
|
},
|
|
tag: Type(
|
|
TypeTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
444,
|
|
),
|
|
hi: BytePos(
|
|
448,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
444,
|
|
),
|
|
hi: BytePos(
|
|
452,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{string}",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
444,
|
|
),
|
|
hi: BytePos(
|
|
449,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
444,
|
|
),
|
|
hi: BytePos(
|
|
449,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "param",
|
|
},
|
|
tag: Parameter(
|
|
ParameterTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
444,
|
|
),
|
|
hi: BytePos(
|
|
449,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: None,
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
444,
|
|
),
|
|
hi: BytePos(
|
|
447,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "val",
|
|
},
|
|
),
|
|
desc: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
0,
|
|
),
|
|
hi: BytePos(
|
|
0,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
583,
|
|
),
|
|
hi: BytePos(
|
|
583,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
583,
|
|
),
|
|
hi: BytePos(
|
|
583,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
583,
|
|
),
|
|
hi: BytePos(
|
|
587,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
583,
|
|
),
|
|
hi: BytePos(
|
|
587,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "type",
|
|
},
|
|
tag: Type(
|
|
TypeTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
583,
|
|
),
|
|
hi: BytePos(
|
|
587,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
583,
|
|
),
|
|
hi: BytePos(
|
|
591,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{number}",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
]
|