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.
436 lines
14 KiB
Plaintext
436 lines
14 KiB
Plaintext
[
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
1,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
50,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "An example of a server-side JavaScript module.\n *",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
7,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
7,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "module",
|
|
},
|
|
tag: Module(
|
|
ModuleTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
7,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
6,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "world",
|
|
},
|
|
ty: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
6,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "hello",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
8,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
8,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "example",
|
|
},
|
|
tag: Example(
|
|
ExampleTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
8,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
text: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
58,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "* var g = require('hello/world').sayHello('Gracie');\n ",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
152,
|
|
),
|
|
hi: BytePos(
|
|
152,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
152,
|
|
),
|
|
hi: BytePos(
|
|
175,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Generate a greeting.\n *",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
152,
|
|
),
|
|
hi: BytePos(
|
|
157,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
152,
|
|
),
|
|
hi: BytePos(
|
|
157,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "param",
|
|
},
|
|
tag: Parameter(
|
|
ParameterTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
152,
|
|
),
|
|
hi: BytePos(
|
|
157,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: None,
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
152,
|
|
),
|
|
hi: BytePos(
|
|
160,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{string}",
|
|
},
|
|
),
|
|
desc: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
152,
|
|
),
|
|
hi: BytePos(
|
|
191,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "[subject=\"world\"] To whom we say hello.",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
152,
|
|
),
|
|
hi: BytePos(
|
|
159,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
152,
|
|
),
|
|
hi: BytePos(
|
|
159,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "returns",
|
|
},
|
|
tag: Return(
|
|
ReturnTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
152,
|
|
),
|
|
hi: BytePos(
|
|
159,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
152,
|
|
),
|
|
hi: BytePos(
|
|
160,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{string}",
|
|
},
|
|
),
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
152,
|
|
),
|
|
hi: BytePos(
|
|
152,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
351,
|
|
),
|
|
hi: BytePos(
|
|
351,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
351,
|
|
),
|
|
hi: BytePos(
|
|
381,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Generate a morose farewell.\n *",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
351,
|
|
),
|
|
hi: BytePos(
|
|
356,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
351,
|
|
),
|
|
hi: BytePos(
|
|
356,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "param",
|
|
},
|
|
tag: Parameter(
|
|
ParameterTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
351,
|
|
),
|
|
hi: BytePos(
|
|
356,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: None,
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
351,
|
|
),
|
|
hi: BytePos(
|
|
359,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{string}",
|
|
},
|
|
),
|
|
desc: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
351,
|
|
),
|
|
hi: BytePos(
|
|
392,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "[subject=\"world\"] To whom we say goodbye.",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
351,
|
|
),
|
|
hi: BytePos(
|
|
358,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
351,
|
|
),
|
|
hi: BytePos(
|
|
358,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "returns",
|
|
},
|
|
tag: Return(
|
|
ReturnTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
351,
|
|
),
|
|
hi: BytePos(
|
|
358,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
351,
|
|
),
|
|
hi: BytePos(
|
|
359,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{string}",
|
|
},
|
|
),
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
351,
|
|
),
|
|
hi: BytePos(
|
|
351,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
]
|