--- source: tests/transform.rs expression: element.transform() --- Element { tag: Native( "div", ), attrs: [], children: [ Text( Text { content: "text1", raw: JSXText { span: Span { lo: BytePos( 19, ), hi: BytePos( 52, ), ctxt: #0, }, value: "\n\n text1\n\n ", raw: "\n\n text1\n\n ", }, }, ), Element( Element { tag: Native( "br", ), attrs: [], children: [], raw: JSXElement { span: Span { lo: BytePos( 52, ), hi: BytePos( 57, ), ctxt: #0, }, opening: JSXOpeningElement { name: Ident( Ident { span: Span { lo: BytePos( 53, ), hi: BytePos( 55, ), ctxt: #0, }, sym: Atom('br' type=static), optional: false, }, ), span: Span { lo: BytePos( 52, ), hi: BytePos( 57, ), ctxt: #0, }, attrs: [], self_closing: true, type_args: None, }, children: [], closing: None, }, is_static: true, }, ), Text( Text { content: "text2", raw: JSXText { span: Span { lo: BytePos( 57, ), hi: BytePos( 84, ), ctxt: #0, }, value: "\n\n text2\n\n ", raw: "\n\n text2\n\n ", }, }, ), ], raw: JSXElement { span: Span { lo: BytePos( 14, ), hi: BytePos( 90, ), ctxt: #0, }, opening: JSXOpeningElement { name: Ident( Ident { span: Span { lo: BytePos( 15, ), hi: BytePos( 18, ), ctxt: #0, }, sym: Atom('div' type=static), optional: false, }, ), span: Span { lo: BytePos( 14, ), hi: BytePos( 19, ), ctxt: #0, }, attrs: [], self_closing: false, type_args: None, }, children: [ JSXText( JSXText { span: Span { lo: BytePos( 19, ), hi: BytePos( 52, ), ctxt: #0, }, value: "\n\n text1\n\n ", raw: "\n\n text1\n\n ", }, ), JSXElement( JSXElement { span: Span { lo: BytePos( 52, ), hi: BytePos( 57, ), ctxt: #0, }, opening: JSXOpeningElement { name: Ident( Ident { span: Span { lo: BytePos( 53, ), hi: BytePos( 55, ), ctxt: #0, }, sym: Atom('br' type=static), optional: false, }, ), span: Span { lo: BytePos( 52, ), hi: BytePos( 57, ), ctxt: #0, }, attrs: [], self_closing: true, type_args: None, }, children: [], closing: None, }, ), JSXText( JSXText { span: Span { lo: BytePos( 57, ), hi: BytePos( 84, ), ctxt: #0, }, value: "\n\n text2\n\n ", raw: "\n\n text2\n\n ", }, ), ], closing: Some( JSXClosingElement { span: Span { lo: BytePos( 84, ), hi: BytePos( 90, ), ctxt: #0, }, name: Ident( Ident { span: Span { lo: BytePos( 86, ), hi: BytePos( 89, ), ctxt: #0, }, sym: Atom('div' type=static), optional: false, }, ), }, ), }, is_static: true, }