mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 00:23:10 +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.
212 lines
5.6 KiB
Plaintext
212 lines
5.6 KiB
Plaintext
[
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
1,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
31,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Increment a number by 1.\n *\n *",
|
|
},
|
|
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: "param",
|
|
},
|
|
tag: Parameter(
|
|
ParameterTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
6,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: None,
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
9,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{number}",
|
|
},
|
|
),
|
|
desc: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
29,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "n - The number to increment.",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
117,
|
|
),
|
|
hi: BytePos(
|
|
117,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
117,
|
|
),
|
|
hi: BytePos(
|
|
146,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Print a value to the console.",
|
|
},
|
|
tags: [],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
171,
|
|
),
|
|
hi: BytePos(
|
|
175,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
171,
|
|
),
|
|
hi: BytePos(
|
|
171,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
171,
|
|
),
|
|
hi: BytePos(
|
|
175,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
171,
|
|
),
|
|
hi: BytePos(
|
|
175,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "type",
|
|
},
|
|
tag: Type(
|
|
TypeTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
171,
|
|
),
|
|
hi: BytePos(
|
|
175,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
0,
|
|
),
|
|
hi: BytePos(
|
|
0,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
215,
|
|
),
|
|
hi: BytePos(
|
|
215,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
215,
|
|
),
|
|
hi: BytePos(
|
|
253,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Create a class with a `name` property.",
|
|
},
|
|
tags: [],
|
|
},
|
|
]
|