swc/crates/swc_ecma_parser/tests/tsc/checkJsxChildrenProperty2x.json

2148 lines
59 KiB
JSON

{
"type": "Module",
"span": {
"start": 142,
"end": 1021,
"ctxt": 0
},
"body": [
{
"type": "TsImportEqualsDeclaration",
"span": {
"start": 142,
"end": 174,
"ctxt": 0
},
"declare": false,
"isExport": false,
"isTypeOnly": false,
"id": {
"type": "Identifier",
"span": {
"start": 149,
"end": 154,
"ctxt": 0
},
"value": "React",
"optional": false
},
"moduleRef": {
"type": "TsExternalModuleReference",
"span": {
"start": 157,
"end": 173,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 165,
"end": 172,
"ctxt": 0
},
"value": "react",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 176,
"end": 259,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 186,
"end": 190,
"ctxt": 0
},
"value": "Prop",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 191,
"end": 259,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 197,
"end": 207,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 197,
"end": 198,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 198,
"end": 206,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 200,
"end": 206,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 212,
"end": 222,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 212,
"end": 213,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 213,
"end": 221,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 215,
"end": 221,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 227,
"end": 257,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 227,
"end": 235,
"ctxt": 0
},
"value": "children",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 235,
"end": 257,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 237,
"end": 257,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 237,
"end": 243,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsTypeReference",
"span": {
"start": 246,
"end": 257,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 246,
"end": 249,
"ctxt": 0
},
"value": "JSX",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 250,
"end": 257,
"ctxt": 0
},
"value": "Element",
"optional": false
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 270,
"end": 274,
"ctxt": 0
},
"value": "Comp",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 275,
"end": 282,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 275,
"end": 282,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 276,
"end": 282,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 278,
"end": 282,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 278,
"end": 282,
"ctxt": 0
},
"value": "Prop",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 261,
"end": 316,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 284,
"end": 316,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 290,
"end": 314,
"ctxt": 0
},
"argument": {
"type": "JSXElement",
"span": {
"start": 297,
"end": 313,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 298,
"end": 301,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 297,
"end": 302,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXExpressionContainer",
"span": {
"start": 302,
"end": 307,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 303,
"end": 306,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 303,
"end": 304,
"ctxt": 0
},
"value": "p",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 305,
"end": 306,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 307,
"end": 313,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 309,
"end": 312,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 345,
"end": 376,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 349,
"end": 375,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 349,
"end": 350,
"ctxt": 0
},
"value": "k",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 353,
"end": 375,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 354,
"end": 358,
"ctxt": 0
},
"value": "Comp",
"optional": false
},
"span": {
"start": 353,
"end": 375,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 359,
"end": 365,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 359,
"end": 360,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 361,
"end": 365,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 362,
"end": 364,
"ctxt": 0
},
"value": 10.0
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 366,
"end": 372,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 366,
"end": 367,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 368,
"end": 372,
"ctxt": 0
},
"value": "hi",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 378,
"end": 461,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 382,
"end": 460,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 382,
"end": 384,
"ctxt": 0
},
"value": "k0",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 391,
"end": 460,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 392,
"end": 396,
"ctxt": 0
},
"value": "Comp",
"optional": false
},
"span": {
"start": 391,
"end": 430,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 397,
"end": 403,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 397,
"end": 398,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 399,
"end": 403,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 400,
"end": 402,
"ctxt": 0
},
"value": 10.0
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 404,
"end": 410,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 404,
"end": 405,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 406,
"end": 410,
"ctxt": 0
},
"value": "hi",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 411,
"end": 428,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 411,
"end": 419,
"ctxt": 0
},
"value": "children",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 420,
"end": 428,
"ctxt": 0
},
"value": "Random",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 430,
"end": 453,
"ctxt": 0
},
"value": "\n\n hi hi hi!\n\n ",
"raw": "\n\n hi hi hi!\n\n "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 453,
"end": 460,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 455,
"end": 459,
"ctxt": 0
},
"value": "Comp",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 463,
"end": 497,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 467,
"end": 497,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 467,
"end": 468,
"ctxt": 0
},
"value": "o",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 471,
"end": 497,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 478,
"end": 486,
"ctxt": 0
},
"value": "children",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 487,
"end": 495,
"ctxt": 0
},
"value": "Random",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 498,
"end": 570,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 502,
"end": 569,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 502,
"end": 504,
"ctxt": 0
},
"value": "k1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 511,
"end": 569,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 512,
"end": 516,
"ctxt": 0
},
"value": "Comp",
"optional": false
},
"span": {
"start": 511,
"end": 539,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 517,
"end": 523,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 517,
"end": 518,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 519,
"end": 523,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 520,
"end": 522,
"ctxt": 0
},
"value": 10.0
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 524,
"end": 530,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 524,
"end": 525,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 526,
"end": 530,
"ctxt": 0
},
"value": "hi",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"type": "SpreadElement",
"spread": {
"start": 532,
"end": 535,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 535,
"end": 536,
"ctxt": 0
},
"value": "o",
"optional": false
}
}
],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 539,
"end": 562,
"ctxt": 0
},
"value": "\n\n hi hi hi!\n\n ",
"raw": "\n\n hi hi hi!\n\n "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 562,
"end": 569,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 564,
"end": 568,
"ctxt": 0
},
"value": "Comp",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 597,
"end": 727,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 601,
"end": 726,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 601,
"end": 603,
"ctxt": 0
},
"value": "k2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 610,
"end": 726,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 611,
"end": 615,
"ctxt": 0
},
"value": "Comp",
"optional": false
},
"span": {
"start": 610,
"end": 630,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 616,
"end": 622,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 616,
"end": 617,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 618,
"end": 622,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 619,
"end": 621,
"ctxt": 0
},
"value": 10.0
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 623,
"end": 629,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 623,
"end": 624,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 625,
"end": 629,
"ctxt": 0
},
"value": "hi",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 630,
"end": 639,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXElement",
"span": {
"start": 639,
"end": 658,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 640,
"end": 643,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 639,
"end": 644,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 644,
"end": 652,
"ctxt": 0
},
"value": " My Div ",
"raw": " My Div "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 652,
"end": 658,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 654,
"end": 657,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
},
{
"type": "JSXText",
"span": {
"start": 658,
"end": 667,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXExpressionContainer",
"span": {
"start": 667,
"end": 714,
"ctxt": 0
},
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 668,
"end": 713,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 669,
"end": 681,
"ctxt": 0
},
"value": "name",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 673,
"end": 681,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 675,
"end": 681,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"body": {
"type": "JSXElement",
"span": {
"start": 686,
"end": 713,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 687,
"end": 690,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 686,
"end": 691,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 691,
"end": 700,
"ctxt": 0
},
"value": " My name ",
"raw": " My name "
},
{
"type": "JSXExpressionContainer",
"span": {
"start": 700,
"end": 706,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 701,
"end": 705,
"ctxt": 0
},
"value": "name",
"optional": false
}
},
{
"type": "JSXText",
"span": {
"start": 706,
"end": 707,
"ctxt": 0
},
"value": " ",
"raw": " "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 707,
"end": 713,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 709,
"end": 712,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "JSXText",
"span": {
"start": 714,
"end": 719,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 719,
"end": 726,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 721,
"end": 725,
"ctxt": 0
},
"value": "Comp",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 729,
"end": 821,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 733,
"end": 820,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 733,
"end": 735,
"ctxt": 0
},
"value": "k3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 742,
"end": 820,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 743,
"end": 747,
"ctxt": 0
},
"value": "Comp",
"optional": false
},
"span": {
"start": 742,
"end": 762,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 748,
"end": 754,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 748,
"end": 749,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 750,
"end": 754,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 751,
"end": 753,
"ctxt": 0
},
"value": 10.0
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 755,
"end": 761,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 755,
"end": 756,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 757,
"end": 761,
"ctxt": 0
},
"value": "hi",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 762,
"end": 771,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXElement",
"span": {
"start": 771,
"end": 790,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 772,
"end": 775,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 771,
"end": 776,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 776,
"end": 784,
"ctxt": 0
},
"value": " My Div ",
"raw": " My Div "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 784,
"end": 790,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 786,
"end": 789,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
},
{
"type": "JSXText",
"span": {
"start": 790,
"end": 799,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXExpressionContainer",
"span": {
"start": 799,
"end": 808,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 800,
"end": 807,
"ctxt": 0
},
"value": 1000000.0
}
},
{
"type": "JSXText",
"span": {
"start": 808,
"end": 813,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 813,
"end": 820,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 815,
"end": 819,
"ctxt": 0
},
"value": "Comp",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 823,
"end": 916,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 827,
"end": 915,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 827,
"end": 829,
"ctxt": 0
},
"value": "k4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 836,
"end": 915,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 837,
"end": 841,
"ctxt": 0
},
"value": "Comp",
"optional": false
},
"span": {
"start": 836,
"end": 857,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 842,
"end": 848,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 842,
"end": 843,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 844,
"end": 848,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 845,
"end": 847,
"ctxt": 0
},
"value": 10.0
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 849,
"end": 855,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 849,
"end": 850,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 851,
"end": 855,
"ctxt": 0
},
"value": "hi",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 857,
"end": 866,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXElement",
"span": {
"start": 866,
"end": 885,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 867,
"end": 870,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 866,
"end": 871,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 871,
"end": 879,
"ctxt": 0
},
"value": " My Div ",
"raw": " My Div "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 879,
"end": 885,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 881,
"end": 884,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
},
{
"type": "JSXText",
"span": {
"start": 885,
"end": 908,
"ctxt": 0
},
"value": "\n\n hi hi hi!\n\n ",
"raw": "\n\n hi hi hi!\n\n "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 908,
"end": 915,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 910,
"end": 914,
"ctxt": 0
},
"value": "Comp",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 918,
"end": 1021,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 922,
"end": 1020,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 922,
"end": 924,
"ctxt": 0
},
"value": "k5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 931,
"end": 1020,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 932,
"end": 936,
"ctxt": 0
},
"value": "Comp",
"optional": false
},
"span": {
"start": 931,
"end": 952,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 937,
"end": 943,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 937,
"end": 938,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 939,
"end": 943,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 940,
"end": 942,
"ctxt": 0
},
"value": 10.0
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 944,
"end": 950,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 944,
"end": 945,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 946,
"end": 950,
"ctxt": 0
},
"value": "hi",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 952,
"end": 961,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXElement",
"span": {
"start": 961,
"end": 980,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 962,
"end": 965,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 961,
"end": 966,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 966,
"end": 974,
"ctxt": 0
},
"value": " My Div ",
"raw": " My Div "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 974,
"end": 980,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 976,
"end": 979,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
},
{
"type": "JSXText",
"span": {
"start": 980,
"end": 989,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXElement",
"span": {
"start": 989,
"end": 1008,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 990,
"end": 993,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 989,
"end": 994,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 994,
"end": 1002,
"ctxt": 0
},
"value": " My Div ",
"raw": " My Div "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 1002,
"end": 1008,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1004,
"end": 1007,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
},
{
"type": "JSXText",
"span": {
"start": 1008,
"end": 1013,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 1013,
"end": 1020,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1015,
"end": 1019,
"ctxt": 0
},
"value": "Comp",
"optional": false
}
}
},
"definite": false
}
]
}
],
"interpreter": null
}