mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
79ba13cbb5
swc_ecma_parser: - Use correct span for storing comments when module is empty.
27 lines
599 B
Plaintext
27 lines
599 B
Plaintext
SingleThreadedComments {
|
|
leading: RefCell {
|
|
value: {
|
|
BytePos(
|
|
1,
|
|
): [
|
|
Comment {
|
|
kind: Line,
|
|
span: Span {
|
|
lo: BytePos(
|
|
1,
|
|
),
|
|
hi: BytePos(
|
|
8,
|
|
),
|
|
ctxt: #0,
|
|
},
|
|
text: "/ ref",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
trailing: RefCell {
|
|
value: {},
|
|
},
|
|
}
|