mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
1649 lines
43 KiB
JSON
1649 lines
43 KiB
JSON
{
|
|
"type": "Module",
|
|
"span": {
|
|
"start": 131,
|
|
"end": 920,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "TsImportEqualsDeclaration",
|
|
"span": {
|
|
"start": 131,
|
|
"end": 162,
|
|
"ctxt": 0
|
|
},
|
|
"declare": false,
|
|
"isExport": false,
|
|
"isTypeOnly": false,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 138,
|
|
"end": 143,
|
|
"ctxt": 0
|
|
},
|
|
"value": "React",
|
|
"optional": false
|
|
},
|
|
"moduleRef": {
|
|
"type": "TsExternalModuleReference",
|
|
"span": {
|
|
"start": 146,
|
|
"end": 162,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 154,
|
|
"end": 161,
|
|
"ctxt": 0
|
|
},
|
|
"value": "react",
|
|
"raw": "'react'"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 180,
|
|
"end": 188,
|
|
"ctxt": 0
|
|
},
|
|
"value": "OneThing",
|
|
"optional": false
|
|
},
|
|
"declare": true,
|
|
"params": [],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 163,
|
|
"end": 204,
|
|
"ctxt": 0
|
|
},
|
|
"body": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"typeParameters": null,
|
|
"returnType": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 190,
|
|
"end": 203,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsTypeReference",
|
|
"span": {
|
|
"start": 192,
|
|
"end": 203,
|
|
"ctxt": 0
|
|
},
|
|
"typeName": {
|
|
"type": "TsQualifiedName",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 192,
|
|
"end": 195,
|
|
"ctxt": 0
|
|
},
|
|
"value": "JSX",
|
|
"optional": false
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 196,
|
|
"end": 203,
|
|
"ctxt": 0
|
|
},
|
|
"value": "Element",
|
|
"optional": false
|
|
}
|
|
},
|
|
"typeParams": null
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 222,
|
|
"end": 230,
|
|
"ctxt": 0
|
|
},
|
|
"value": "OneThing",
|
|
"optional": false
|
|
},
|
|
"declare": true,
|
|
"params": [
|
|
{
|
|
"type": "Parameter",
|
|
"span": {
|
|
"start": 231,
|
|
"end": 259,
|
|
"ctxt": 0
|
|
},
|
|
"decorators": [],
|
|
"pat": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 231,
|
|
"end": 259,
|
|
"ctxt": 0
|
|
},
|
|
"value": "l",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 232,
|
|
"end": 259,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsTypeLiteral",
|
|
"span": {
|
|
"start": 234,
|
|
"end": 259,
|
|
"ctxt": 0
|
|
},
|
|
"members": [
|
|
{
|
|
"type": "TsPropertySignature",
|
|
"span": {
|
|
"start": 235,
|
|
"end": 246,
|
|
"ctxt": 0
|
|
},
|
|
"readonly": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 235,
|
|
"end": 237,
|
|
"ctxt": 0
|
|
},
|
|
"value": "yy",
|
|
"optional": false
|
|
},
|
|
"computed": false,
|
|
"optional": false,
|
|
"init": null,
|
|
"params": [],
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 237,
|
|
"end": 245,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 239,
|
|
"end": 245,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "number"
|
|
}
|
|
},
|
|
"typeParams": null
|
|
},
|
|
{
|
|
"type": "TsPropertySignature",
|
|
"span": {
|
|
"start": 247,
|
|
"end": 258,
|
|
"ctxt": 0
|
|
},
|
|
"readonly": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 247,
|
|
"end": 250,
|
|
"ctxt": 0
|
|
},
|
|
"value": "yy1",
|
|
"optional": false
|
|
},
|
|
"computed": false,
|
|
"optional": false,
|
|
"init": null,
|
|
"params": [],
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 250,
|
|
"end": 258,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 252,
|
|
"end": 258,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "string"
|
|
}
|
|
},
|
|
"typeParams": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 205,
|
|
"end": 274,
|
|
"ctxt": 0
|
|
},
|
|
"body": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"typeParameters": null,
|
|
"returnType": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 260,
|
|
"end": 273,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsTypeReference",
|
|
"span": {
|
|
"start": 262,
|
|
"end": 273,
|
|
"ctxt": 0
|
|
},
|
|
"typeName": {
|
|
"type": "TsQualifiedName",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 262,
|
|
"end": 265,
|
|
"ctxt": 0
|
|
},
|
|
"value": "JSX",
|
|
"optional": false
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 266,
|
|
"end": 273,
|
|
"ctxt": 0
|
|
},
|
|
"value": "Element",
|
|
"optional": false
|
|
}
|
|
},
|
|
"typeParams": null
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 276,
|
|
"end": 318,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 280,
|
|
"end": 318,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 280,
|
|
"end": 283,
|
|
"ctxt": 0
|
|
},
|
|
"value": "obj",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 286,
|
|
"end": 318,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 292,
|
|
"end": 294,
|
|
"ctxt": 0
|
|
},
|
|
"value": "yy",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 296,
|
|
"end": 298,
|
|
"ctxt": 0
|
|
},
|
|
"value": 10.0
|
|
}
|
|
},
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 304,
|
|
"end": 307,
|
|
"ctxt": 0
|
|
},
|
|
"value": "yy1",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 309,
|
|
"end": 316,
|
|
"ctxt": 0
|
|
},
|
|
"value": "hello",
|
|
"raw": "\"hello\""
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 320,
|
|
"end": 347,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 324,
|
|
"end": 347,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 324,
|
|
"end": 328,
|
|
"ctxt": 0
|
|
},
|
|
"value": "obj1",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 331,
|
|
"end": 347,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 337,
|
|
"end": 339,
|
|
"ctxt": 0
|
|
},
|
|
"value": "yy",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "BooleanLiteral",
|
|
"span": {
|
|
"start": 341,
|
|
"end": 345,
|
|
"ctxt": 0
|
|
},
|
|
"value": true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 349,
|
|
"end": 403,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 353,
|
|
"end": 403,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 353,
|
|
"end": 357,
|
|
"ctxt": 0
|
|
},
|
|
"value": "obj2",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 360,
|
|
"end": 403,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 366,
|
|
"end": 368,
|
|
"ctxt": 0
|
|
},
|
|
"value": "yy",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 370,
|
|
"end": 373,
|
|
"ctxt": 0
|
|
},
|
|
"value": 500.0
|
|
}
|
|
},
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 379,
|
|
"end": 392,
|
|
"ctxt": 0
|
|
},
|
|
"value": "ignore-prop",
|
|
"raw": "\"ignore-prop\""
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 394,
|
|
"end": 401,
|
|
"ctxt": 0
|
|
},
|
|
"value": "hello",
|
|
"raw": "\"hello\""
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 405,
|
|
"end": 425,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 409,
|
|
"end": 424,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 409,
|
|
"end": 419,
|
|
"ctxt": 0
|
|
},
|
|
"value": "defaultObj",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 419,
|
|
"end": 424,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 421,
|
|
"end": 424,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "any"
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 433,
|
|
"end": 456,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "const",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 439,
|
|
"end": 456,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 439,
|
|
"end": 441,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c1",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "JSXElement",
|
|
"span": {
|
|
"start": 444,
|
|
"end": 456,
|
|
"ctxt": 0
|
|
},
|
|
"opening": {
|
|
"type": "JSXOpeningElement",
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 445,
|
|
"end": 453,
|
|
"ctxt": 0
|
|
},
|
|
"value": "OneThing",
|
|
"optional": false
|
|
},
|
|
"span": {
|
|
"start": 444,
|
|
"end": 456,
|
|
"ctxt": 0
|
|
},
|
|
"attributes": [],
|
|
"selfClosing": true,
|
|
"typeArguments": null
|
|
},
|
|
"children": [],
|
|
"closing": null
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 457,
|
|
"end": 488,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "const",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 463,
|
|
"end": 488,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 463,
|
|
"end": 465,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c2",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "JSXElement",
|
|
"span": {
|
|
"start": 468,
|
|
"end": 488,
|
|
"ctxt": 0
|
|
},
|
|
"opening": {
|
|
"type": "JSXOpeningElement",
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 469,
|
|
"end": 477,
|
|
"ctxt": 0
|
|
},
|
|
"value": "OneThing",
|
|
"optional": false
|
|
},
|
|
"span": {
|
|
"start": 468,
|
|
"end": 488,
|
|
"ctxt": 0
|
|
},
|
|
"attributes": [
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 479,
|
|
"end": 482,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 482,
|
|
"end": 485,
|
|
"ctxt": 0
|
|
},
|
|
"value": "obj",
|
|
"optional": false
|
|
}
|
|
}
|
|
],
|
|
"selfClosing": true,
|
|
"typeArguments": null
|
|
},
|
|
"children": [],
|
|
"closing": null
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 489,
|
|
"end": 520,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "const",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 495,
|
|
"end": 520,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 495,
|
|
"end": 497,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c3",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "JSXElement",
|
|
"span": {
|
|
"start": 500,
|
|
"end": 520,
|
|
"ctxt": 0
|
|
},
|
|
"opening": {
|
|
"type": "JSXOpeningElement",
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 501,
|
|
"end": 509,
|
|
"ctxt": 0
|
|
},
|
|
"value": "OneThing",
|
|
"optional": false
|
|
},
|
|
"span": {
|
|
"start": 500,
|
|
"end": 520,
|
|
"ctxt": 0
|
|
},
|
|
"attributes": [
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 511,
|
|
"end": 514,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 514,
|
|
"end": 516,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
}
|
|
}
|
|
],
|
|
"selfClosing": true,
|
|
"typeArguments": null
|
|
},
|
|
"children": [],
|
|
"closing": null
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 521,
|
|
"end": 563,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "const",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 527,
|
|
"end": 563,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 527,
|
|
"end": 529,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c4",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "JSXElement",
|
|
"span": {
|
|
"start": 532,
|
|
"end": 563,
|
|
"ctxt": 0
|
|
},
|
|
"opening": {
|
|
"type": "JSXOpeningElement",
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 533,
|
|
"end": 541,
|
|
"ctxt": 0
|
|
},
|
|
"value": "OneThing",
|
|
"optional": false
|
|
},
|
|
"span": {
|
|
"start": 532,
|
|
"end": 563,
|
|
"ctxt": 0
|
|
},
|
|
"attributes": [
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 543,
|
|
"end": 546,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 546,
|
|
"end": 550,
|
|
"ctxt": 0
|
|
},
|
|
"value": "obj1",
|
|
"optional": false
|
|
}
|
|
},
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 553,
|
|
"end": 556,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 556,
|
|
"end": 559,
|
|
"ctxt": 0
|
|
},
|
|
"value": "obj",
|
|
"optional": false
|
|
}
|
|
}
|
|
],
|
|
"selfClosing": true,
|
|
"typeArguments": null
|
|
},
|
|
"children": [],
|
|
"closing": null
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 564,
|
|
"end": 621,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "const",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 570,
|
|
"end": 621,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 570,
|
|
"end": 572,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c5",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "JSXElement",
|
|
"span": {
|
|
"start": 575,
|
|
"end": 621,
|
|
"ctxt": 0
|
|
},
|
|
"opening": {
|
|
"type": "JSXOpeningElement",
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 576,
|
|
"end": 584,
|
|
"ctxt": 0
|
|
},
|
|
"value": "OneThing",
|
|
"optional": false
|
|
},
|
|
"span": {
|
|
"start": 575,
|
|
"end": 621,
|
|
"ctxt": 0
|
|
},
|
|
"attributes": [
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 586,
|
|
"end": 589,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 589,
|
|
"end": 593,
|
|
"ctxt": 0
|
|
},
|
|
"value": "obj1",
|
|
"optional": false
|
|
}
|
|
},
|
|
{
|
|
"type": "JSXAttribute",
|
|
"span": {
|
|
"start": 595,
|
|
"end": 602,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 595,
|
|
"end": 597,
|
|
"ctxt": 0
|
|
},
|
|
"value": "yy",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "JSXExpressionContainer",
|
|
"span": {
|
|
"start": 598,
|
|
"end": 602,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 599,
|
|
"end": 601,
|
|
"ctxt": 0
|
|
},
|
|
"value": 42.0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 604,
|
|
"end": 607,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 607,
|
|
"end": 618,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 608,
|
|
"end": 611,
|
|
"ctxt": 0
|
|
},
|
|
"value": "yy1",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 613,
|
|
"end": 617,
|
|
"ctxt": 0
|
|
},
|
|
"value": "hi",
|
|
"raw": "\"hi\""
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"selfClosing": true,
|
|
"typeArguments": null
|
|
},
|
|
"children": [],
|
|
"closing": null
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 622,
|
|
"end": 685,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "const",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 628,
|
|
"end": 685,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 628,
|
|
"end": 630,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c6",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "JSXElement",
|
|
"span": {
|
|
"start": 633,
|
|
"end": 685,
|
|
"ctxt": 0
|
|
},
|
|
"opening": {
|
|
"type": "JSXOpeningElement",
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 634,
|
|
"end": 642,
|
|
"ctxt": 0
|
|
},
|
|
"value": "OneThing",
|
|
"optional": false
|
|
},
|
|
"span": {
|
|
"start": 633,
|
|
"end": 685,
|
|
"ctxt": 0
|
|
},
|
|
"attributes": [
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 644,
|
|
"end": 647,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 647,
|
|
"end": 651,
|
|
"ctxt": 0
|
|
},
|
|
"value": "obj1",
|
|
"optional": false
|
|
}
|
|
},
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 654,
|
|
"end": 657,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 657,
|
|
"end": 681,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 658,
|
|
"end": 660,
|
|
"ctxt": 0
|
|
},
|
|
"value": "yy",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 662,
|
|
"end": 667,
|
|
"ctxt": 0
|
|
},
|
|
"value": 10000.0
|
|
}
|
|
},
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 669,
|
|
"end": 672,
|
|
"ctxt": 0
|
|
},
|
|
"value": "yy1",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 674,
|
|
"end": 680,
|
|
"ctxt": 0
|
|
},
|
|
"value": "true",
|
|
"raw": "\"true\""
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"selfClosing": true,
|
|
"typeArguments": null
|
|
},
|
|
"children": [],
|
|
"closing": null
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 686,
|
|
"end": 738,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "const",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 692,
|
|
"end": 737,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 692,
|
|
"end": 694,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c7",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "JSXElement",
|
|
"span": {
|
|
"start": 697,
|
|
"end": 737,
|
|
"ctxt": 0
|
|
},
|
|
"opening": {
|
|
"type": "JSXOpeningElement",
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 698,
|
|
"end": 706,
|
|
"ctxt": 0
|
|
},
|
|
"value": "OneThing",
|
|
"optional": false
|
|
},
|
|
"span": {
|
|
"start": 697,
|
|
"end": 737,
|
|
"ctxt": 0
|
|
},
|
|
"attributes": [
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 708,
|
|
"end": 711,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 711,
|
|
"end": 721,
|
|
"ctxt": 0
|
|
},
|
|
"value": "defaultObj",
|
|
"optional": false
|
|
}
|
|
},
|
|
{
|
|
"type": "JSXAttribute",
|
|
"span": {
|
|
"start": 723,
|
|
"end": 725,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 723,
|
|
"end": 725,
|
|
"ctxt": 0
|
|
},
|
|
"value": "yy",
|
|
"optional": false
|
|
},
|
|
"value": null
|
|
},
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 727,
|
|
"end": 730,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 730,
|
|
"end": 733,
|
|
"ctxt": 0
|
|
},
|
|
"value": "obj",
|
|
"optional": false
|
|
}
|
|
}
|
|
],
|
|
"selfClosing": true,
|
|
"typeArguments": null
|
|
},
|
|
"children": [],
|
|
"closing": null
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 781,
|
|
"end": 822,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "const",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 787,
|
|
"end": 822,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 787,
|
|
"end": 789,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c8",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "JSXElement",
|
|
"span": {
|
|
"start": 792,
|
|
"end": 822,
|
|
"ctxt": 0
|
|
},
|
|
"opening": {
|
|
"type": "JSXOpeningElement",
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 793,
|
|
"end": 801,
|
|
"ctxt": 0
|
|
},
|
|
"value": "OneThing",
|
|
"optional": false
|
|
},
|
|
"span": {
|
|
"start": 792,
|
|
"end": 822,
|
|
"ctxt": 0
|
|
},
|
|
"attributes": [
|
|
{
|
|
"type": "JSXAttribute",
|
|
"span": {
|
|
"start": 802,
|
|
"end": 819,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 802,
|
|
"end": 813,
|
|
"ctxt": 0
|
|
},
|
|
"value": "ignore-prop",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "JSXExpressionContainer",
|
|
"span": {
|
|
"start": 814,
|
|
"end": 819,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 815,
|
|
"end": 818,
|
|
"ctxt": 0
|
|
},
|
|
"value": 100.0
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"selfClosing": true,
|
|
"typeArguments": null
|
|
},
|
|
"children": [],
|
|
"closing": null
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 823,
|
|
"end": 874,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "const",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 829,
|
|
"end": 873,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 829,
|
|
"end": 831,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c9",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "JSXElement",
|
|
"span": {
|
|
"start": 834,
|
|
"end": 873,
|
|
"ctxt": 0
|
|
},
|
|
"opening": {
|
|
"type": "JSXOpeningElement",
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 835,
|
|
"end": 843,
|
|
"ctxt": 0
|
|
},
|
|
"value": "OneThing",
|
|
"optional": false
|
|
},
|
|
"span": {
|
|
"start": 834,
|
|
"end": 873,
|
|
"ctxt": 0
|
|
},
|
|
"attributes": [
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 845,
|
|
"end": 848,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 848,
|
|
"end": 869,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 850,
|
|
"end": 863,
|
|
"ctxt": 0
|
|
},
|
|
"value": "ignore-prop",
|
|
"raw": "\"ignore-prop\""
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 864,
|
|
"end": 867,
|
|
"ctxt": 0
|
|
},
|
|
"value": 200.0
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"selfClosing": true,
|
|
"typeArguments": null
|
|
},
|
|
"children": [],
|
|
"closing": null
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 875,
|
|
"end": 920,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "const",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 881,
|
|
"end": 919,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 881,
|
|
"end": 884,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c10",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "JSXElement",
|
|
"span": {
|
|
"start": 887,
|
|
"end": 919,
|
|
"ctxt": 0
|
|
},
|
|
"opening": {
|
|
"type": "JSXOpeningElement",
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 888,
|
|
"end": 896,
|
|
"ctxt": 0
|
|
},
|
|
"value": "OneThing",
|
|
"optional": false
|
|
},
|
|
"span": {
|
|
"start": 887,
|
|
"end": 919,
|
|
"ctxt": 0
|
|
},
|
|
"attributes": [
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 898,
|
|
"end": 901,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 901,
|
|
"end": 905,
|
|
"ctxt": 0
|
|
},
|
|
"value": "obj2",
|
|
"optional": false
|
|
}
|
|
},
|
|
{
|
|
"type": "JSXAttribute",
|
|
"span": {
|
|
"start": 907,
|
|
"end": 916,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 907,
|
|
"end": 910,
|
|
"ctxt": 0
|
|
},
|
|
"value": "yy1",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 911,
|
|
"end": 916,
|
|
"ctxt": 0
|
|
},
|
|
"value": "boo",
|
|
"raw": "\"boo\""
|
|
}
|
|
}
|
|
],
|
|
"selfClosing": true,
|
|
"typeArguments": null
|
|
},
|
|
"children": [],
|
|
"closing": null
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|