mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
c647cf1bc0
swc_ecma_parser: - fix lexer - better error reporting for jsx reference test swc_ecma_codegen: - Update references
128 lines
5.2 KiB
Plaintext
128 lines
5.2 KiB
Plaintext
Module {
|
|
span: Span {
|
|
lo: BytePos(
|
|
0
|
|
),
|
|
hi: BytePos(
|
|
11
|
|
),
|
|
ctxt: #0
|
|
},
|
|
body: [
|
|
Stmt(
|
|
Expr(
|
|
JSXElement(
|
|
JSXElement {
|
|
span: Span {
|
|
lo: BytePos(
|
|
0
|
|
),
|
|
hi: BytePos(
|
|
11
|
|
),
|
|
ctxt: #0
|
|
},
|
|
opening: JSXOpeningElement {
|
|
name: JSXMemberExpr(
|
|
JSXMemberExpr {
|
|
obj: Ident(
|
|
Ident {
|
|
sym: a,
|
|
span: Span {
|
|
lo: BytePos(
|
|
1
|
|
),
|
|
hi: BytePos(
|
|
2
|
|
),
|
|
ctxt: #0
|
|
},
|
|
type_ann: None,
|
|
optional: false
|
|
}
|
|
),
|
|
prop: Ident {
|
|
sym: b,
|
|
span: Span {
|
|
lo: BytePos(
|
|
3
|
|
),
|
|
hi: BytePos(
|
|
4
|
|
),
|
|
ctxt: #0
|
|
},
|
|
type_ann: None,
|
|
optional: false
|
|
}
|
|
}
|
|
),
|
|
span: Span {
|
|
lo: BytePos(
|
|
1
|
|
),
|
|
hi: BytePos(
|
|
5
|
|
),
|
|
ctxt: #0
|
|
},
|
|
attrs: [],
|
|
self_closing: false,
|
|
type_args: None
|
|
},
|
|
children: [],
|
|
closing: Some(
|
|
JSXClosingElement {
|
|
span: Span {
|
|
lo: BytePos(
|
|
7
|
|
),
|
|
hi: BytePos(
|
|
11
|
|
),
|
|
ctxt: #0
|
|
},
|
|
name: JSXMemberExpr(
|
|
JSXMemberExpr {
|
|
obj: Ident(
|
|
Ident {
|
|
sym: a,
|
|
span: Span {
|
|
lo: BytePos(
|
|
7
|
|
),
|
|
hi: BytePos(
|
|
8
|
|
),
|
|
ctxt: #0
|
|
},
|
|
type_ann: None,
|
|
optional: false
|
|
}
|
|
),
|
|
prop: Ident {
|
|
sym: b,
|
|
span: Span {
|
|
lo: BytePos(
|
|
9
|
|
),
|
|
hi: BytePos(
|
|
10
|
|
),
|
|
ctxt: #0
|
|
},
|
|
type_ann: None,
|
|
optional: false
|
|
}
|
|
}
|
|
)
|
|
}
|
|
)
|
|
}
|
|
)
|
|
)
|
|
)
|
|
],
|
|
shebang: None
|
|
}
|