JsModule { bom_token: missing (optional), interpreter_token: missing (optional), directives: JsDirectiveList [], items: JsModuleItemList [ JsExpressionStatement { expression: JsxTagExpression { tag: JsxElement { opening_element: JsxOpeningElement { l_angle_token: L_ANGLE@0..1 "<" [] [], name: JsxName { value_token: JSX_IDENT@1..4 "div" [] [], }, type_arguments: missing (optional), attributes: JsxAttributeList [], r_angle_token: R_ANGLE@4..5 ">" [] [], }, children: JsxChildList [ JsxText { value_token: JSX_TEXT_LITERAL@5..8 "\n " [] [], }, JsxExpressionChild { l_curly_token: L_CURLY@8..9 "{" [] [], expression: JsBogusExpression { items: [ IMPORT_KW@9..15 "import" [] [], DOT@15..16 "." [] [], META@16..20 "meta" [] [], ], }, r_curly_token: R_CURLY@20..21 "}" [] [], }, JsxText { value_token: JSX_TEXT_LITERAL@21..24 "\n " [] [], }, JsxExpressionChild { l_curly_token: L_CURLY@24..25 "{" [] [], expression: JsBogusExpression { items: [ JsDecoratorList [], CLASS_KW@25..31 "class" [] [Whitespace(" ")], JsIdentifierBinding { name_token: IDENT@31..32 "A" [] [], }, L_CURLY@32..33 "{" [] [], JsClassMemberList [], R_CURLY@33..34 "}" [] [], ], }, r_curly_token: R_CURLY@34..35 "}" [] [], }, JsxText { value_token: JSX_TEXT_LITERAL@35..38 "\n " [] [], }, JsxExpressionChild { l_curly_token: L_CURLY@38..39 "{" [] [], expression: JsCallExpression { callee: JsBogusExpression { items: [ SUPER_KW@39..44 "super" [] [], ], }, optional_chain_token: missing (optional), type_arguments: missing (optional), arguments: JsCallArguments { l_paren_token: L_PAREN@44..45 "(" [] [], args: JsCallArgumentList [], r_paren_token: R_PAREN@45..46 ")" [] [], }, }, r_curly_token: R_CURLY@46..47 "}" [] [], }, JsxText { value_token: JSX_TEXT_LITERAL@47..50 "\n " [] [], }, JsxExpressionChild { l_curly_token: L_CURLY@50..51 "{" [] [], expression: JsBogusExpression { items: [ NEW_KW@51..54 "new" [] [], DOT@54..55 "." [] [], TARGET@55..61 "target" [] [], ], }, r_curly_token: R_CURLY@61..62 "}" [] [], }, JsxText { value_token: JSX_TEXT_LITERAL@62..63 "\n" [] [], }, ], closing_element: JsxClosingElement { l_angle_token: L_ANGLE@63..64 "<" [] [], slash_token: SLASH@64..65 "/" [] [], name: JsxName { value_token: JSX_IDENT@65..68 "div" [] [], }, r_angle_token: R_ANGLE@68..69 ">" [] [], }, }, }, semicolon_token: missing (optional), }, ], eof_token: EOF@69..70 "" [Newline("\n")] [], } 0: JS_MODULE@0..70 0: (empty) 1: (empty) 2: JS_DIRECTIVE_LIST@0..0 3: JS_MODULE_ITEM_LIST@0..69 0: JS_EXPRESSION_STATEMENT@0..69 0: JSX_TAG_EXPRESSION@0..69 0: JSX_ELEMENT@0..69 0: JSX_OPENING_ELEMENT@0..5 0: L_ANGLE@0..1 "<" [] [] 1: JSX_NAME@1..4 0: JSX_IDENT@1..4 "div" [] [] 2: (empty) 3: JSX_ATTRIBUTE_LIST@4..4 4: R_ANGLE@4..5 ">" [] [] 1: JSX_CHILD_LIST@5..63 0: JSX_TEXT@5..8 0: JSX_TEXT_LITERAL@5..8 "\n " [] [] 1: JSX_EXPRESSION_CHILD@8..21 0: L_CURLY@8..9 "{" [] [] 1: JS_BOGUS_EXPRESSION@9..20 0: IMPORT_KW@9..15 "import" [] [] 1: DOT@15..16 "." [] [] 2: META@16..20 "meta" [] [] 2: R_CURLY@20..21 "}" [] [] 2: JSX_TEXT@21..24 0: JSX_TEXT_LITERAL@21..24 "\n " [] [] 3: JSX_EXPRESSION_CHILD@24..35 0: L_CURLY@24..25 "{" [] [] 1: JS_BOGUS_EXPRESSION@25..34 0: JS_DECORATOR_LIST@25..25 1: CLASS_KW@25..31 "class" [] [Whitespace(" ")] 2: JS_IDENTIFIER_BINDING@31..32 0: IDENT@31..32 "A" [] [] 3: L_CURLY@32..33 "{" [] [] 4: JS_CLASS_MEMBER_LIST@33..33 5: R_CURLY@33..34 "}" [] [] 2: R_CURLY@34..35 "}" [] [] 4: JSX_TEXT@35..38 0: JSX_TEXT_LITERAL@35..38 "\n " [] [] 5: JSX_EXPRESSION_CHILD@38..47 0: L_CURLY@38..39 "{" [] [] 1: JS_CALL_EXPRESSION@39..46 0: JS_BOGUS_EXPRESSION@39..44 0: SUPER_KW@39..44 "super" [] [] 1: (empty) 2: (empty) 3: JS_CALL_ARGUMENTS@44..46 0: L_PAREN@44..45 "(" [] [] 1: JS_CALL_ARGUMENT_LIST@45..45 2: R_PAREN@45..46 ")" [] [] 2: R_CURLY@46..47 "}" [] [] 6: JSX_TEXT@47..50 0: JSX_TEXT_LITERAL@47..50 "\n " [] [] 7: JSX_EXPRESSION_CHILD@50..62 0: L_CURLY@50..51 "{" [] [] 1: JS_BOGUS_EXPRESSION@51..61 0: NEW_KW@51..54 "new" [] [] 1: DOT@54..55 "." [] [] 2: TARGET@55..61 "target" [] [] 2: R_CURLY@61..62 "}" [] [] 8: JSX_TEXT@62..63 0: JSX_TEXT_LITERAL@62..63 "\n" [] [] 2: JSX_CLOSING_ELEMENT@63..69 0: L_ANGLE@63..64 "<" [] [] 1: SLASH@64..65 "/" [] [] 2: JSX_NAME@65..68 0: JSX_IDENT@65..68 "div" [] [] 3: R_ANGLE@68..69 ">" [] [] 1: (empty) 4: EOF@69..70 "" [Newline("\n")] [] -- jsx_children_expressions_not_accepted.jsx:2:4 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × This expression is not valid as a JSX expression. 1 │
> 2 │ {import.meta} │ ^^^^^^^^^^^ 3 │ {class A{}} 4 │ {super()} -- jsx_children_expressions_not_accepted.jsx:3:4 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × This expression is not valid as a JSX expression. 1 │
2 │ {import.meta} > 3 │ {class A{}} │ ^^^^^^^^^ 4 │ {super()} 5 │ {new.target} -- jsx_children_expressions_not_accepted.jsx:4:4 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × `super` is only valid inside of a class constructor of a subclass. 2 │ {import.meta} 3 │ {class A{}} > 4 │ {super()} │ ^^^^^ 5 │ {new.target} 6 │
-- jsx_children_expressions_not_accepted.jsx:5:4 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × This expression is not valid as a JSX expression. 3 │ {class A{}} 4 │ {super()} > 5 │ {new.target} │ ^^^^^^^^^^ 6 │
7 │ --
{import.meta} {class A{}} {super()} {new.target}