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.
860 lines
27 KiB
Plaintext
860 lines
27 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(
|
|
10,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
10,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "namespace",
|
|
},
|
|
tag: Namespace(
|
|
NamespaceTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
10,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
5,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "anim",
|
|
},
|
|
),
|
|
name: None,
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
29,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
29,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
35,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
35,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "method",
|
|
},
|
|
tag: Function(
|
|
FunctionTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
35,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
43,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "anim.fadein(1)",
|
|
},
|
|
),
|
|
},
|
|
),
|
|
},
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
33,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
33,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "desc",
|
|
},
|
|
tag: Description(
|
|
DescriptionTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
33,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
text: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
81,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Show the nodelist elements by fading them to opaque.",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
34,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
34,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "since",
|
|
},
|
|
tag: Since(
|
|
SinceTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
34,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
version: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
32,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "1.0",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
34,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
34,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "param",
|
|
},
|
|
tag: Parameter(
|
|
ParameterTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
34,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: None,
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
37,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{number}",
|
|
},
|
|
),
|
|
desc: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
76,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "[duration=400] How long the animation will run.",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
34,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
34,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "param",
|
|
},
|
|
tag: Parameter(
|
|
ParameterTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
34,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: None,
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
39,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{function}",
|
|
},
|
|
),
|
|
desc: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
82,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "[callback] Called once the animation is complete.",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
36,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
36,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "returns",
|
|
},
|
|
tag: Return(
|
|
ReturnTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
36,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
35,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{this}",
|
|
},
|
|
),
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
29,
|
|
),
|
|
hi: BytePos(
|
|
29,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
309,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
309,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
315,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
315,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "method",
|
|
},
|
|
tag: Function(
|
|
FunctionTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
315,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
323,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "anim.fadein(2)",
|
|
},
|
|
),
|
|
},
|
|
),
|
|
},
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
313,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
313,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "desc",
|
|
},
|
|
tag: Description(
|
|
DescriptionTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
313,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
text: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
361,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Show the nodelist elements by fading them to opaque.",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
314,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
314,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "since",
|
|
},
|
|
tag: Since(
|
|
SinceTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
314,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
version: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
314,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "1.4.3",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
314,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
314,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "param",
|
|
},
|
|
tag: Parameter(
|
|
ParameterTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
314,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: None,
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
317,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{number}",
|
|
},
|
|
),
|
|
desc: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
356,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "[duration=400] How long the animation will run.",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
314,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
314,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "param",
|
|
},
|
|
tag: Parameter(
|
|
ParameterTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
314,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: None,
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
317,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{string}",
|
|
},
|
|
),
|
|
desc: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
363,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "[easing=swing] The easing function for the transition.",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
314,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
314,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "param",
|
|
},
|
|
tag: Parameter(
|
|
ParameterTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
314,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: None,
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
319,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{function}",
|
|
},
|
|
),
|
|
desc: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
362,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "[callback] Called once the animation is complete.",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
316,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
316,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "returns",
|
|
},
|
|
tag: Return(
|
|
ReturnTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
316,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
315,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{this}",
|
|
},
|
|
),
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
309,
|
|
),
|
|
hi: BytePos(
|
|
309,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
]
|