swc/ecmascript/parser/tests/jsx/basic/17/input.js.stdout
강동윤 ea610c6ded
Typescript & parser for decorators
swc_atoms:
 - add some atoms

swc_ecma_ast:
 - ast nodes for typescript
 - `ClassMethod` -> `Method`, `ClassMethodKind` -> `MethodKind`
 - private class method / class property
 - use separate type for tagged template literals
 - add `declare` field to `Decl`s
 - make function body optional

swc_ecma_parser:
 - rename Type to TokenContext
 - support decorators
 Note: error reporting for invalid decorator is not implemented yet
 - merge `Config` into `Syntax`
 - Use DiagnosticBuilder for error type
This is to make backtracking cheaper.

swc_ecma_transforms:
 - add `strip` pass
2019-01-07 19:43:47 +09:00

93 lines
3.5 KiB
Plaintext

Module {
span: Span {
lo: BytePos(
0
),
hi: BytePos(
18
),
ctxt: #0
},
body: [
Stmt(
Expr(
JSXElement(
JSXElement {
span: Span {
lo: BytePos(
0
),
hi: BytePos(
18
),
ctxt: #0
},
opening: JSXOpeningElement {
name: Ident(
Ident {
sym: div,
span: Span {
lo: BytePos(
1
),
hi: BytePos(
4
),
ctxt: #0
},
type_ann: None,
optional: false
}
),
span: Span {
lo: BytePos(
1
),
hi: BytePos(
18
),
ctxt: #0
},
attrs: [
SpreadElement(
SpreadElement {
dot3_token: Span {
lo: BytePos(
6
),
hi: BytePos(
9
),
ctxt: #0
},
expr: Ident(
Ident {
sym: props,
span: Span {
lo: BytePos(
9
),
hi: BytePos(
14
),
ctxt: #0
},
type_ann: None,
optional: false
}
)
}
)
],
self_closing: true,
type_args: None
},
children: [],
closing: None
}
)
)
)
]
}