swc/crates/swc_ecma_parser/tests/tsc/tsxSpreadAttributesResolution11.json
2022-03-22 07:54:08 +00:00

1769 lines
48 KiB
JSON

{
"type": "Module",
"span": {
"start": 115,
"end": 880,
"ctxt": 0
},
"body": [
{
"type": "TsImportEqualsDeclaration",
"span": {
"start": 115,
"end": 147,
"ctxt": 0
},
"declare": false,
"isExport": false,
"isTypeOnly": false,
"id": {
"type": "Identifier",
"span": {
"start": 122,
"end": 127,
"ctxt": 0
},
"value": "React",
"optional": false
},
"moduleRef": {
"type": "TsExternalModuleReference",
"span": {
"start": 130,
"end": 146,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 138,
"end": 145,
"ctxt": 0
},
"value": "react",
"raw": "'react'"
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 149,
"end": 164,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 155,
"end": 163,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 155,
"end": 158,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 161,
"end": 163,
"ctxt": 0
},
"properties": []
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 165,
"end": 200,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 171,
"end": 200,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 171,
"end": 175,
"ctxt": 0
},
"value": "obj1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 175,
"end": 185,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 177,
"end": 185,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 179,
"end": 183,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 179,
"end": 180,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 180,
"end": 183,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 182,
"end": 183,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 182,
"end": 183,
"ctxt": 0
},
"value": 2.0
}
}
},
"typeParams": null
}
]
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 188,
"end": 200,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 194,
"end": 195,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 197,
"end": 198,
"ctxt": 0
},
"value": 2.0
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 201,
"end": 281,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 207,
"end": 281,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 207,
"end": 211,
"ctxt": 0
},
"value": "obj3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 211,
"end": 242,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 213,
"end": 242,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 214,
"end": 222,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 214,
"end": 215,
"ctxt": 0
},
"value": "y",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 215,
"end": 221,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 217,
"end": 221,
"ctxt": 0
},
"literal": {
"type": "BooleanLiteral",
"span": {
"start": 217,
"end": 221,
"ctxt": 0
},
"value": true
}
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 223,
"end": 240,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 223,
"end": 232,
"ctxt": 0
},
"value": "overwrite",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 232,
"end": 240,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 234,
"end": 240,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 245,
"end": 281,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 251,
"end": 252,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 254,
"end": 258,
"ctxt": 0
},
"value": true
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 264,
"end": 273,
"ctxt": 0
},
"value": "overwrite",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 275,
"end": 279,
"ctxt": 0
},
"value": "hi",
"raw": "\"hi\""
}
}
]
},
"definite": false
}
]
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 283,
"end": 344,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 293,
"end": 297,
"ctxt": 0
},
"value": "Prop",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 298,
"end": 344,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 304,
"end": 308,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 304,
"end": 305,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 305,
"end": 308,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 307,
"end": 308,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 307,
"end": 308,
"ctxt": 0
},
"value": 2.0
}
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 313,
"end": 320,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 313,
"end": 314,
"ctxt": 0
},
"value": "y",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 314,
"end": 320,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 316,
"end": 320,
"ctxt": 0
},
"literal": {
"type": "BooleanLiteral",
"span": {
"start": 316,
"end": 320,
"ctxt": 0
},
"value": true
}
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 325,
"end": 342,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 325,
"end": 334,
"ctxt": 0
},
"value": "overwrite",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 334,
"end": 342,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 336,
"end": 342,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 352,
"end": 365,
"ctxt": 0
},
"value": "OverWriteAttr",
"optional": false
},
"declare": false,
"span": {
"start": 346,
"end": 457,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 406,
"end": 455,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 406,
"end": 412,
"ctxt": 0
},
"value": "render",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 406,
"end": 455,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 415,
"end": 455,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 425,
"end": 449,
"ctxt": 0
},
"argument": {
"type": "JSXElement",
"span": {
"start": 432,
"end": 448,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 433,
"end": 436,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 432,
"end": 437,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 437,
"end": 442,
"ctxt": 0
},
"value": "Hello",
"raw": "Hello"
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 442,
"end": 448,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 444,
"end": 447,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": {
"type": "MemberExpression",
"span": {
"start": 374,
"end": 389,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 374,
"end": 379,
"ctxt": 0
},
"value": "React",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 380,
"end": 389,
"ctxt": 0
},
"value": "Component",
"optional": false
}
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 389,
"end": 399,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 390,
"end": 394,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 390,
"end": 394,
"ctxt": 0
},
"value": "Prop",
"optional": false
},
"typeParams": null
},
{
"type": "TsTypeLiteral",
"span": {
"start": 396,
"end": 398,
"ctxt": 0
},
"members": []
}
]
},
"implements": []
},
{
"type": "VariableDeclaration",
"span": {
"start": 459,
"end": 475,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 463,
"end": 474,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 463,
"end": 469,
"ctxt": 0
},
"value": "anyobj",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 469,
"end": 474,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 471,
"end": 474,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 482,
"end": 543,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 486,
"end": 543,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 486,
"end": 487,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 490,
"end": 543,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 491,
"end": 504,
"ctxt": 0
},
"value": "OverWriteAttr",
"optional": false
},
"span": {
"start": 490,
"end": 543,
"ctxt": 0
},
"attributes": [
{
"type": "SpreadElement",
"spread": {
"start": 506,
"end": 509,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 509,
"end": 512,
"ctxt": 0
},
"value": "obj",
"optional": false
}
},
{
"type": "JSXAttribute",
"span": {
"start": 514,
"end": 515,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 514,
"end": 515,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": null
},
{
"type": "JSXAttribute",
"span": {
"start": 516,
"end": 530,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 516,
"end": 525,
"ctxt": 0
},
"value": "overwrite",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 526,
"end": 530,
"ctxt": 0
},
"value": "hi",
"raw": "\"hi\""
}
},
{
"type": "SpreadElement",
"spread": {
"start": 532,
"end": 535,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 535,
"end": 539,
"ctxt": 0
},
"value": "obj1",
"optional": false
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 544,
"end": 590,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 548,
"end": 590,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 548,
"end": 550,
"ctxt": 0
},
"value": "x1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 553,
"end": 590,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 554,
"end": 567,
"ctxt": 0
},
"value": "OverWriteAttr",
"optional": false
},
"span": {
"start": 553,
"end": 590,
"ctxt": 0
},
"attributes": [
{
"type": "SpreadElement",
"spread": {
"start": 569,
"end": 572,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 572,
"end": 576,
"ctxt": 0
},
"value": "obj1",
"optional": false
}
},
{
"type": "SpreadElement",
"spread": {
"start": 579,
"end": 582,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 582,
"end": 586,
"ctxt": 0
},
"value": "obj3",
"optional": false
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 591,
"end": 663,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 595,
"end": 663,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 595,
"end": 597,
"ctxt": 0
},
"value": "x2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 600,
"end": 663,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 601,
"end": 614,
"ctxt": 0
},
"value": "OverWriteAttr",
"optional": false
},
"span": {
"start": 600,
"end": 663,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 615,
"end": 620,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 615,
"end": 616,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 617,
"end": 620,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 618,
"end": 619,
"ctxt": 0
},
"value": 3.0
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 621,
"end": 635,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 621,
"end": 630,
"ctxt": 0
},
"value": "overwrite",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 631,
"end": 635,
"ctxt": 0
},
"value": "hi",
"raw": "\"hi\""
}
},
{
"type": "SpreadElement",
"spread": {
"start": 637,
"end": 640,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 640,
"end": 644,
"ctxt": 0
},
"value": "obj1",
"optional": false
}
},
{
"type": "SpreadElement",
"spread": {
"start": 647,
"end": 650,
"ctxt": 0
},
"arguments": {
"type": "ObjectExpression",
"span": {
"start": 650,
"end": 659,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 651,
"end": 652,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 654,
"end": 658,
"ctxt": 0
},
"value": true
}
}
]
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 664,
"end": 761,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 668,
"end": 761,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 668,
"end": 670,
"ctxt": 0
},
"value": "x3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 673,
"end": 761,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 674,
"end": 687,
"ctxt": 0
},
"value": "OverWriteAttr",
"optional": false
},
"span": {
"start": 673,
"end": 761,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 688,
"end": 702,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 688,
"end": 697,
"ctxt": 0
},
"value": "overwrite",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 698,
"end": 702,
"ctxt": 0
},
"value": "hi",
"raw": "\"hi\""
}
},
{
"type": "SpreadElement",
"spread": {
"start": 704,
"end": 707,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 707,
"end": 711,
"ctxt": 0
},
"value": "obj1",
"optional": false
}
},
{
"type": "JSXAttribute",
"span": {
"start": 713,
"end": 718,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 713,
"end": 714,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 715,
"end": 718,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 716,
"end": 717,
"ctxt": 0
},
"value": 3.0
}
}
},
{
"type": "SpreadElement",
"spread": {
"start": 720,
"end": 723,
"ctxt": 0
},
"arguments": {
"type": "ObjectExpression",
"span": {
"start": 723,
"end": 757,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 724,
"end": 725,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 727,
"end": 731,
"ctxt": 0
},
"value": true
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 733,
"end": 734,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 736,
"end": 737,
"ctxt": 0
},
"value": 2.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 739,
"end": 748,
"ctxt": 0
},
"value": "overwrite",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 749,
"end": 756,
"ctxt": 0
},
"value": "world",
"raw": "\"world\""
}
}
]
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 762,
"end": 841,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 766,
"end": 841,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 766,
"end": 768,
"ctxt": 0
},
"value": "x4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 771,
"end": 841,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 772,
"end": 785,
"ctxt": 0
},
"value": "OverWriteAttr",
"optional": false
},
"span": {
"start": 771,
"end": 841,
"ctxt": 0
},
"attributes": [
{
"type": "SpreadElement",
"spread": {
"start": 787,
"end": 790,
"ctxt": 0
},
"arguments": {
"type": "ObjectExpression",
"span": {
"start": 790,
"end": 796,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 791,
"end": 792,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 794,
"end": 795,
"ctxt": 0
},
"value": 2.0
}
}
]
}
},
{
"type": "SpreadElement",
"spread": {
"start": 799,
"end": 802,
"ctxt": 0
},
"arguments": {
"type": "ObjectExpression",
"span": {
"start": 802,
"end": 822,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 803,
"end": 812,
"ctxt": 0
},
"value": "overwrite",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 814,
"end": 821,
"ctxt": 0
},
"value": "world",
"raw": "\"world\""
}
}
]
}
},
{
"type": "SpreadElement",
"spread": {
"start": 825,
"end": 828,
"ctxt": 0
},
"arguments": {
"type": "ObjectExpression",
"span": {
"start": 828,
"end": 837,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 829,
"end": 830,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 832,
"end": 836,
"ctxt": 0
},
"value": true
}
}
]
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 842,
"end": 880,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 846,
"end": 880,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 846,
"end": 848,
"ctxt": 0
},
"value": "x5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 851,
"end": 880,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 852,
"end": 865,
"ctxt": 0
},
"value": "OverWriteAttr",
"optional": false
},
"span": {
"start": 851,
"end": 880,
"ctxt": 0
},
"attributes": [
{
"type": "SpreadElement",
"spread": {
"start": 867,
"end": 870,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 870,
"end": 876,
"ctxt": 0
},
"value": "anyobj",
"optional": false
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
}
],
"interpreter": null
}