swc/crates/swc_ecma_parser/tests/shifted/empty-with-comments/input.ts.comments
Donny/강동윤 79ba13cbb5
fix(es/parser): Fix comments of empty modules (#2828)
swc_ecma_parser:
 - Use correct span for storing comments when module is empty.
2021-11-22 01:02:28 +09:00

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: {},
},
}