swc/crates/swc_ecma_parser/tests/tsc/jsxReactTestSuite.json
2022-02-04 17:08:38 +09:00

3818 lines
96 KiB
JSON
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"type": "Script",
"span": {
"start": 19,
"end": 1769,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 19,
"end": 42,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 31,
"end": 41,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 31,
"end": 36,
"ctxt": 0
},
"value": "React",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 36,
"end": 41,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 38,
"end": 41,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 43,
"end": 69,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 55,
"end": 68,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 55,
"end": 64,
"ctxt": 0
},
"value": "Component",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 64,
"end": 68,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 65,
"end": 68,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 70,
"end": 96,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 82,
"end": 95,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 82,
"end": 91,
"ctxt": 0
},
"value": "Composite",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 91,
"end": 95,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 92,
"end": 95,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 97,
"end": 124,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 109,
"end": 123,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 109,
"end": 119,
"ctxt": 0
},
"value": "Composite2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 119,
"end": 123,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 120,
"end": 123,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 125,
"end": 147,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 137,
"end": 146,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 137,
"end": 142,
"ctxt": 0
},
"value": "Child",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 142,
"end": 146,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 143,
"end": 146,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 148,
"end": 174,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 160,
"end": 173,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 160,
"end": 169,
"ctxt": 0
},
"value": "Namespace",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 169,
"end": 173,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 170,
"end": 173,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 175,
"end": 196,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 187,
"end": 195,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 187,
"end": 190,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 190,
"end": 195,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 192,
"end": 195,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 197,
"end": 218,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 209,
"end": 217,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 209,
"end": 212,
"ctxt": 0
},
"value": "bar",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 212,
"end": 217,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 214,
"end": 217,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 219,
"end": 237,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 231,
"end": 236,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 231,
"end": 232,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 232,
"end": 236,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 233,
"end": 236,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 238,
"end": 256,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 250,
"end": 255,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 250,
"end": 251,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 251,
"end": 255,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 252,
"end": 255,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 257,
"end": 275,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 269,
"end": 274,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 269,
"end": 270,
"ctxt": 0
},
"value": "z",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 270,
"end": 274,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 271,
"end": 274,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 276,
"end": 307,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 288,
"end": 306,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 288,
"end": 302,
"ctxt": 0
},
"value": "hasOwnProperty",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 302,
"end": 306,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 303,
"end": 306,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 309,
"end": 325,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 309,
"end": 324,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 310,
"end": 313,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 309,
"end": 314,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 314,
"end": 318,
"ctxt": 0
},
"value": "text",
"raw": "text"
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 318,
"end": 324,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 320,
"end": 323,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 327,
"end": 364,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 327,
"end": 363,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 328,
"end": 331,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 327,
"end": 332,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 332,
"end": 335,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXExpressionContainer",
"span": {
"start": 335,
"end": 356,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 336,
"end": 355,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 336,
"end": 346,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 336,
"end": 340,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 341,
"end": 346,
"ctxt": 0
},
"value": "props",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 347,
"end": 355,
"ctxt": 0
},
"value": "children",
"optional": false
}
}
},
{
"type": "JSXText",
"span": {
"start": 356,
"end": 357,
"ctxt": 0
},
"value": "\n\n",
"raw": "\n\n"
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 357,
"end": 363,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 359,
"end": 362,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 366,
"end": 450,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 366,
"end": 449,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 367,
"end": 370,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 366,
"end": 371,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 371,
"end": 374,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXElement",
"span": {
"start": 374,
"end": 391,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 375,
"end": 378,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 374,
"end": 379,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXElement",
"span": {
"start": 379,
"end": 385,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 380,
"end": 382,
"ctxt": 0
},
"value": "br",
"optional": false
},
"span": {
"start": 379,
"end": 385,
"ctxt": 0
},
"attributes": [],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 385,
"end": 391,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 387,
"end": 390,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
},
{
"type": "JSXText",
"span": {
"start": 391,
"end": 394,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXElement",
"span": {
"start": 394,
"end": 433,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 395,
"end": 404,
"ctxt": 0
},
"value": "Component",
"optional": false
},
"span": {
"start": 394,
"end": 405,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXExpressionContainer",
"span": {
"start": 405,
"end": 410,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 406,
"end": 409,
"ctxt": 0
},
"value": "foo",
"optional": false
}
},
{
"type": "JSXElement",
"span": {
"start": 410,
"end": 416,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 411,
"end": 413,
"ctxt": 0
},
"value": "br",
"optional": false
},
"span": {
"start": 410,
"end": 416,
"ctxt": 0
},
"attributes": [],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
{
"type": "JSXExpressionContainer",
"span": {
"start": 416,
"end": 421,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 417,
"end": 420,
"ctxt": 0
},
"value": "bar",
"optional": false
}
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 421,
"end": 433,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 423,
"end": 432,
"ctxt": 0
},
"value": "Component",
"optional": false
}
}
},
{
"type": "JSXText",
"span": {
"start": 433,
"end": 436,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXElement",
"span": {
"start": 436,
"end": 442,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 437,
"end": 439,
"ctxt": 0
},
"value": "br",
"optional": false
},
"span": {
"start": 436,
"end": 442,
"ctxt": 0
},
"attributes": [],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
{
"type": "JSXText",
"span": {
"start": 442,
"end": 443,
"ctxt": 0
},
"value": "\n\n",
"raw": "\n\n"
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 443,
"end": 449,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 445,
"end": 448,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 453,
"end": 504,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 453,
"end": 503,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 454,
"end": 463,
"ctxt": 0
},
"value": "Composite",
"optional": false
},
"span": {
"start": 453,
"end": 464,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 464,
"end": 469,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXExpressionContainer",
"span": {
"start": 469,
"end": 490,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 470,
"end": 489,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 470,
"end": 480,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 470,
"end": 474,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 475,
"end": 480,
"ctxt": 0
},
"value": "props",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 481,
"end": 489,
"ctxt": 0
},
"value": "children",
"optional": false
}
}
},
{
"type": "JSXText",
"span": {
"start": 490,
"end": 491,
"ctxt": 0
},
"value": "\n\n",
"raw": "\n\n"
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 491,
"end": 503,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 493,
"end": 502,
"ctxt": 0
},
"value": "Composite",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 506,
"end": 550,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 506,
"end": 549,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 507,
"end": 516,
"ctxt": 0
},
"value": "Composite",
"optional": false
},
"span": {
"start": 506,
"end": 517,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 517,
"end": 522,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXElement",
"span": {
"start": 522,
"end": 536,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 523,
"end": 533,
"ctxt": 0
},
"value": "Composite2",
"optional": false
},
"span": {
"start": 522,
"end": 536,
"ctxt": 0
},
"attributes": [],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
{
"type": "JSXText",
"span": {
"start": 536,
"end": 537,
"ctxt": 0
},
"value": "\n\n",
"raw": "\n\n"
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 537,
"end": 549,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 539,
"end": 548,
"ctxt": 0
},
"value": "Composite",
"optional": false
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 552,
"end": 784,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 556,
"end": 783,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 556,
"end": 557,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 562,
"end": 783,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 563,
"end": 566,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 562,
"end": 774,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 571,
"end": 604,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 571,
"end": 576,
"ctxt": 0
},
"value": "attr1",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 577,
"end": 604,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 585,
"end": 598,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "StringLiteral",
"span": {
"start": 585,
"end": 590,
"ctxt": 0
},
"value": "foo",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 593,
"end": 598,
"ctxt": 0
},
"value": "bar",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 609,
"end": 671,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 609,
"end": 614,
"ctxt": 0
},
"value": "attr2",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 615,
"end": 671,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 623,
"end": 665,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 623,
"end": 657,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 623,
"end": 636,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "StringLiteral",
"span": {
"start": 623,
"end": 628,
"ctxt": 0
},
"value": "foo",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 631,
"end": 636,
"ctxt": 0
},
"value": "bar",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 652,
"end": 657,
"ctxt": 0
},
"value": "baz",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 660,
"end": 665,
"ctxt": 0
},
"value": "bug",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 676,
"end": 757,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 676,
"end": 681,
"ctxt": 0
},
"value": "attr3",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 682,
"end": 757,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 690,
"end": 725,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 690,
"end": 717,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 690,
"end": 703,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "StringLiteral",
"span": {
"start": 690,
"end": 695,
"ctxt": 0
},
"value": "foo",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 698,
"end": 703,
"ctxt": 0
},
"value": "bar",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 712,
"end": 717,
"ctxt": 0
},
"value": "baz",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 720,
"end": 725,
"ctxt": 0
},
"value": "bug",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 762,
"end": 773,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 762,
"end": 767,
"ctxt": 0
},
"value": "attr4",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 768,
"end": 773,
"ctxt": 0
},
"value": "baz",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 774,
"end": 777,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 777,
"end": 783,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 779,
"end": 782,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 786,
"end": 1063,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 786,
"end": 1062,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 790,
"end": 1060,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 791,
"end": 794,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 790,
"end": 795,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 795,
"end": 800,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXExpressionContainer",
"span": {
"start": 800,
"end": 834,
"ctxt": 0
},
"expression": {
"type": "JSXEmptyExpression",
"span": {
"start": 833,
"end": 833,
"ctxt": 0
}
}
},
{
"type": "JSXText",
"span": {
"start": 834,
"end": 839,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXExpressionContainer",
"span": {
"start": 839,
"end": 880,
"ctxt": 0
},
"expression": {
"type": "JSXEmptyExpression",
"span": {
"start": 879,
"end": 879,
"ctxt": 0
}
}
},
{
"type": "JSXText",
"span": {
"start": 880,
"end": 885,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXElement",
"span": {
"start": 885,
"end": 934,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 886,
"end": 890,
"ctxt": 0
},
"value": "span",
"optional": false
},
"span": {
"start": 885,
"end": 891,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 891,
"end": 898,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXExpressionContainer",
"span": {
"start": 898,
"end": 922,
"ctxt": 0
},
"expression": {
"type": "JSXEmptyExpression",
"span": {
"start": 921,
"end": 921,
"ctxt": 0
}
}
},
{
"type": "JSXText",
"span": {
"start": 922,
"end": 927,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 927,
"end": 934,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 929,
"end": 933,
"ctxt": 0
},
"value": "span",
"optional": false
}
}
},
{
"type": "JSXText",
"span": {
"start": 934,
"end": 939,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXExpressionContainer",
"span": {
"start": 939,
"end": 967,
"ctxt": 0
},
"expression": {
"type": "JSXEmptyExpression",
"span": {
"start": 966,
"end": 966,
"ctxt": 0
}
}
},
{
"type": "JSXText",
"span": {
"start": 967,
"end": 972,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXElement",
"span": {
"start": 972,
"end": 978,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 973,
"end": 975,
"ctxt": 0
},
"value": "br",
"optional": false
},
"span": {
"start": 972,
"end": 978,
"ctxt": 0
},
"attributes": [],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
{
"type": "JSXText",
"span": {
"start": 978,
"end": 983,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXExpressionContainer",
"span": {
"start": 983,
"end": 1011,
"ctxt": 0
},
"expression": {
"type": "JSXEmptyExpression",
"span": {
"start": 1010,
"end": 1010,
"ctxt": 0
}
}
},
{
"type": "JSXText",
"span": {
"start": 1011,
"end": 1016,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXExpressionContainer",
"span": {
"start": 1016,
"end": 1051,
"ctxt": 0
},
"expression": {
"type": "JSXEmptyExpression",
"span": {
"start": 1050,
"end": 1050,
"ctxt": 0
}
}
},
{
"type": "JSXText",
"span": {
"start": 1051,
"end": 1054,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 1054,
"end": 1060,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1056,
"end": 1059,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1065,
"end": 1201,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 1065,
"end": 1200,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1069,
"end": 1198,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1070,
"end": 1073,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 1069,
"end": 1128,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1116,
"end": 1127,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1116,
"end": 1121,
"ctxt": 0
},
"value": "attr1",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1122,
"end": 1127,
"ctxt": 0
},
"value": "foo",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 1128,
"end": 1133,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXElement",
"span": {
"start": 1133,
"end": 1189,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1134,
"end": 1138,
"ctxt": 0
},
"value": "span",
"optional": false
},
"span": {
"start": 1133,
"end": 1189,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1171,
"end": 1182,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1171,
"end": 1176,
"ctxt": 0
},
"value": "attr2",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1177,
"end": 1182,
"ctxt": 0
},
"value": "bar",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
{
"type": "JSXText",
"span": {
"start": 1189,
"end": 1192,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 1192,
"end": 1198,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1194,
"end": 1197,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1203,
"end": 1221,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1203,
"end": 1220,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1204,
"end": 1207,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 1203,
"end": 1208,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 1208,
"end": 1214,
"ctxt": 0
},
"value": " ",
"raw": " "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 1214,
"end": 1220,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1216,
"end": 1219,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1223,
"end": 1242,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1223,
"end": 1241,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1224,
"end": 1227,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 1223,
"end": 1228,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 1228,
"end": 1235,
"ctxt": 0
},
"value": "  ",
"raw": "  "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 1235,
"end": 1241,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1237,
"end": 1240,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1244,
"end": 1285,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1244,
"end": 1284,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1245,
"end": 1259,
"ctxt": 0
},
"value": "hasOwnProperty",
"optional": false
},
"span": {
"start": 1244,
"end": 1260,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 1260,
"end": 1267,
"ctxt": 0
},
"value": "testing",
"raw": "testing"
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 1267,
"end": 1284,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1269,
"end": 1283,
"ctxt": 0
},
"value": "hasOwnProperty",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1287,
"end": 1319,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1287,
"end": 1318,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1288,
"end": 1297,
"ctxt": 0
},
"value": "Component",
"optional": false
},
"span": {
"start": 1287,
"end": 1318,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1298,
"end": 1315,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1298,
"end": 1309,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1310,
"end": 1315,
"ctxt": 0
},
"value": "foo",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1321,
"end": 1345,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1321,
"end": 1344,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "JSXMemberExpression",
"object": {
"type": "Identifier",
"span": {
"start": 1322,
"end": 1331,
"ctxt": 0
},
"value": "Namespace",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1332,
"end": 1341,
"ctxt": 0
},
"value": "Component",
"optional": false
}
},
"span": {
"start": 1321,
"end": 1344,
"ctxt": 0
},
"attributes": [],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1347,
"end": 1385,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1347,
"end": 1384,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "JSXMemberExpression",
"object": {
"type": "JSXMemberExpression",
"object": {
"type": "Identifier",
"span": {
"start": 1348,
"end": 1357,
"ctxt": 0
},
"value": "Namespace",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1358,
"end": 1371,
"ctxt": 0
},
"value": "DeepNamespace",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1372,
"end": 1381,
"ctxt": 0
},
"value": "Component",
"optional": false
}
},
"span": {
"start": 1347,
"end": 1384,
"ctxt": 0
},
"attributes": [],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1387,
"end": 1421,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1387,
"end": 1420,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1388,
"end": 1397,
"ctxt": 0
},
"value": "Component",
"optional": false
},
"span": {
"start": 1387,
"end": 1420,
"ctxt": 0
},
"attributes": [
{
"type": "SpreadElement",
"spread": {
"start": 1400,
"end": 1403,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 1404,
"end": 1405,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
{
"type": "JSXAttribute",
"span": {
"start": 1408,
"end": 1415,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1408,
"end": 1409,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 1411,
"end": 1415,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1412,
"end": 1413,
"ctxt": 0
},
"value": 2.0
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 1416,
"end": 1417,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1416,
"end": 1417,
"ctxt": 0
},
"value": "z",
"optional": false
},
"value": null
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1423,
"end": 1469,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1423,
"end": 1468,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1424,
"end": 1433,
"ctxt": 0
},
"value": "Component",
"optional": false
},
"span": {
"start": 1423,
"end": 1468,
"ctxt": 0
},
"attributes": [
{
"type": "SpreadElement",
"spread": {
"start": 1439,
"end": 1442,
"ctxt": 0
},
"arguments": {
"type": "MemberExpression",
"span": {
"start": 1442,
"end": 1452,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 1442,
"end": 1446,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1447,
"end": 1452,
"ctxt": 0
},
"value": "props",
"optional": false
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 1454,
"end": 1465,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1454,
"end": 1459,
"ctxt": 0
},
"value": "sound",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1460,
"end": 1465,
"ctxt": 0
},
"value": "moo",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1471,
"end": 1485,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1471,
"end": 1484,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1472,
"end": 1481,
"ctxt": 0
},
"value": "font-face",
"optional": false
},
"span": {
"start": 1471,
"end": 1484,
"ctxt": 0
},
"attributes": [],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1487,
"end": 1507,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1487,
"end": 1506,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1488,
"end": 1497,
"ctxt": 0
},
"value": "Component",
"optional": false
},
"span": {
"start": 1487,
"end": 1506,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1498,
"end": 1503,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1498,
"end": 1499,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 1500,
"end": 1503,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1501,
"end": 1502,
"ctxt": 0
},
"value": "y",
"optional": false
}
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1509,
"end": 1525,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1509,
"end": 1524,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1510,
"end": 1521,
"ctxt": 0
},
"value": "x-component",
"optional": false
},
"span": {
"start": 1509,
"end": 1524,
"ctxt": 0
},
"attributes": [],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1527,
"end": 1548,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1527,
"end": 1547,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1528,
"end": 1537,
"ctxt": 0
},
"value": "Component",
"optional": false
},
"span": {
"start": 1527,
"end": 1547,
"ctxt": 0
},
"attributes": [
{
"type": "SpreadElement",
"spread": {
"start": 1539,
"end": 1542,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 1542,
"end": 1543,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1550,
"end": 1579,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1550,
"end": 1578,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1551,
"end": 1560,
"ctxt": 0
},
"value": "Component",
"optional": false
},
"span": {
"start": 1550,
"end": 1578,
"ctxt": 0
},
"attributes": [
{
"type": "SpreadElement",
"spread": {
"start": 1563,
"end": 1566,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 1566,
"end": 1567,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
{
"type": "JSXAttribute",
"span": {
"start": 1570,
"end": 1575,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1570,
"end": 1571,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 1572,
"end": 1575,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1573,
"end": 1574,
"ctxt": 0
},
"value": 2.0
}
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1581,
"end": 1613,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1581,
"end": 1612,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1582,
"end": 1591,
"ctxt": 0
},
"value": "Component",
"optional": false
},
"span": {
"start": 1581,
"end": 1612,
"ctxt": 0
},
"attributes": [
{
"type": "SpreadElement",
"spread": {
"start": 1594,
"end": 1597,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 1598,
"end": 1599,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
{
"type": "JSXAttribute",
"span": {
"start": 1602,
"end": 1607,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1602,
"end": 1603,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 1604,
"end": 1607,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1605,
"end": 1606,
"ctxt": 0
},
"value": 2.0
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 1608,
"end": 1609,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1608,
"end": 1609,
"ctxt": 0
},
"value": "z",
"optional": false
},
"value": null
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1615,
"end": 1642,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1615,
"end": 1641,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1616,
"end": 1625,
"ctxt": 0
},
"value": "Component",
"optional": false
},
"span": {
"start": 1615,
"end": 1641,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1626,
"end": 1631,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1626,
"end": 1627,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 1628,
"end": 1631,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1629,
"end": 1630,
"ctxt": 0
},
"value": 1.0
}
}
},
{
"type": "SpreadElement",
"spread": {
"start": 1633,
"end": 1636,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 1636,
"end": 1637,
"ctxt": 0
},
"value": "y",
"optional": false
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1645,
"end": 1704,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1645,
"end": 1703,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1646,
"end": 1655,
"ctxt": 0
},
"value": "Component",
"optional": false
},
"span": {
"start": 1645,
"end": 1682,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1656,
"end": 1661,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1656,
"end": 1657,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 1658,
"end": 1661,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1659,
"end": 1660,
"ctxt": 0
},
"value": 1.0
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 1662,
"end": 1667,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1662,
"end": 1663,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1664,
"end": 1667,
"ctxt": 0
},
"value": "2",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"type": "SpreadElement",
"spread": {
"start": 1669,
"end": 1672,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 1672,
"end": 1673,
"ctxt": 0
},
"value": "z",
"optional": false
}
},
{
"type": "SpreadElement",
"spread": {
"start": 1676,
"end": 1679,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 1679,
"end": 1680,
"ctxt": 0
},
"value": "z",
"optional": false
}
}
],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXElement",
"span": {
"start": 1682,
"end": 1691,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1683,
"end": 1688,
"ctxt": 0
},
"value": "Child",
"optional": false
},
"span": {
"start": 1682,
"end": 1691,
"ctxt": 0
},
"attributes": [],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 1691,
"end": 1703,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1693,
"end": 1702,
"ctxt": 0
},
"value": "Component",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1706,
"end": 1769,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1706,
"end": 1768,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1707,
"end": 1716,
"ctxt": 0
},
"value": "Component",
"optional": false
},
"span": {
"start": 1706,
"end": 1752,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1717,
"end": 1722,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1717,
"end": 1718,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1719,
"end": 1722,
"ctxt": 0
},
"value": "1",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"type": "SpreadElement",
"spread": {
"start": 1724,
"end": 1727,
"ctxt": 0
},
"arguments": {
"type": "ParenthesisExpression",
"span": {
"start": 1727,
"end": 1744,
"ctxt": 0
},
"expression": {
"type": "SequenceExpression",
"span": {
"start": 1728,
"end": 1743,
"ctxt": 0
},
"expressions": [
{
"type": "AssignmentExpression",
"span": {
"start": 1728,
"end": 1740,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1728,
"end": 1729,
"ctxt": 0
},
"value": "z",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 1732,
"end": 1740,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1734,
"end": 1735,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1737,
"end": 1738,
"ctxt": 0
},
"value": 2.0
}
}
]
}
},
{
"type": "Identifier",
"span": {
"start": 1742,
"end": 1743,
"ctxt": 0
},
"value": "z",
"optional": false
}
]
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 1746,
"end": 1751,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1746,
"end": 1747,
"ctxt": 0
},
"value": "z",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 1748,
"end": 1751,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1749,
"end": 1750,
"ctxt": 0
},
"value": 3.0
}
}
}
],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 1752,
"end": 1756,
"ctxt": 0
},
"value": "Text",
"raw": "Text"
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 1756,
"end": 1768,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1758,
"end": 1767,
"ctxt": 0
},
"value": "Component",
"optional": false
}
}
}
}
],
"interpreter": null
}