swc/ecmascript/parser/tests/jsx/basic/entity/input.js.stdout
강동윤 c647cf1bc0
Fix bugs (#193)
swc_ecma_parser:
 - fix lexer
 - better error reporting for jsx reference test

swc_ecma_codegen:
 - Update references
2019-02-13 16:03:38 +09:00

108 lines
3.9 KiB
Plaintext

Module {
span: Span {
lo: BytePos(
0
),
hi: BytePos(
16
),
ctxt: #0
},
body: [
Stmt(
Expr(
JSXElement(
JSXElement {
span: Span {
lo: BytePos(
0
),
hi: BytePos(
16
),
ctxt: #0
},
opening: JSXOpeningElement {
name: Ident(
Ident {
sym: A,
span: Span {
lo: BytePos(
1
),
hi: BytePos(
2
),
ctxt: #0
},
type_ann: None,
optional: false
}
),
span: Span {
lo: BytePos(
1
),
hi: BytePos(
3
),
ctxt: #0
},
attrs: [],
self_closing: false,
type_args: None
},
children: [
JSXText(
JSXText {
span: Span {
lo: BytePos(
3
),
hi: BytePos(
12
),
ctxt: #0
},
value: Atom('💩' type=inline),
raw: Atom('💩' type=inline)
}
)
],
closing: Some(
JSXClosingElement {
span: Span {
lo: BytePos(
14
),
hi: BytePos(
16
),
ctxt: #0
},
name: Ident(
Ident {
sym: A,
span: Span {
lo: BytePos(
14
),
hi: BytePos(
15
),
ctxt: #0
},
type_ann: None,
optional: false
}
)
}
)
}
)
)
)
],
shebang: None
}