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.
316 lines
9.0 KiB
Plaintext
316 lines
9.0 KiB
Plaintext
[
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
44,
|
|
),
|
|
hi: BytePos(
|
|
44,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
44,
|
|
),
|
|
hi: BytePos(
|
|
60,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Socket class.\n *",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
44,
|
|
),
|
|
hi: BytePos(
|
|
49,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
44,
|
|
),
|
|
hi: BytePos(
|
|
49,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "class",
|
|
},
|
|
tag: Class(
|
|
ClassTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
44,
|
|
),
|
|
hi: BytePos(
|
|
49,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
ty: None,
|
|
name: None,
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
113,
|
|
),
|
|
hi: BytePos(
|
|
113,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
113,
|
|
),
|
|
hi: BytePos(
|
|
130,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Send a packet.\n *",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
113,
|
|
),
|
|
hi: BytePos(
|
|
118,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
113,
|
|
),
|
|
hi: BytePos(
|
|
118,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "param",
|
|
},
|
|
tag: Parameter(
|
|
ParameterTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
113,
|
|
),
|
|
hi: BytePos(
|
|
118,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
name: None,
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
113,
|
|
),
|
|
hi: BytePos(
|
|
121,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{Packet}",
|
|
},
|
|
),
|
|
desc: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
113,
|
|
),
|
|
hi: BytePos(
|
|
141,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "packet - The packet to send.",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
113,
|
|
),
|
|
hi: BytePos(
|
|
119,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
113,
|
|
),
|
|
hi: BytePos(
|
|
119,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "return",
|
|
},
|
|
tag: Return(
|
|
ReturnTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
113,
|
|
),
|
|
hi: BytePos(
|
|
119,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
113,
|
|
),
|
|
hi: BytePos(
|
|
122,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "{boolean}",
|
|
},
|
|
),
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
113,
|
|
),
|
|
hi: BytePos(
|
|
151,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "`true` on success, `false` on failure.",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
305,
|
|
),
|
|
hi: BytePos(
|
|
305,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
305,
|
|
),
|
|
hi: BytePos(
|
|
342,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Virtual doclet for `Packet` class.\n *",
|
|
},
|
|
tags: [
|
|
TagItem {
|
|
span: Span {
|
|
lo: BytePos(
|
|
305,
|
|
),
|
|
hi: BytePos(
|
|
310,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
tag_name: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
305,
|
|
),
|
|
hi: BytePos(
|
|
310,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "class",
|
|
},
|
|
tag: Class(
|
|
ClassTag {
|
|
span: Span {
|
|
lo: BytePos(
|
|
305,
|
|
),
|
|
hi: BytePos(
|
|
310,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
ty: Some(
|
|
Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
305,
|
|
),
|
|
hi: BytePos(
|
|
311,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Packet",
|
|
},
|
|
),
|
|
name: None,
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
JsDoc {
|
|
span: Span {
|
|
lo: BytePos(
|
|
369,
|
|
),
|
|
hi: BytePos(
|
|
369,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
description: Text {
|
|
span: Span {
|
|
lo: BytePos(
|
|
369,
|
|
),
|
|
hi: BytePos(
|
|
386,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
value: "Close the socket.",
|
|
},
|
|
tags: [],
|
|
},
|
|
]
|