mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
1267 lines
34 KiB
JSON
1267 lines
34 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 63,
|
|
"end": 645,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 63,
|
|
"end": 92,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": true,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 75,
|
|
"end": 91,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 75,
|
|
"end": 76,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 76,
|
|
"end": 91,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsTypeLiteral",
|
|
"span": {
|
|
"start": 78,
|
|
"end": 91,
|
|
"ctxt": 0
|
|
},
|
|
"members": [
|
|
{
|
|
"type": "TsPropertySignature",
|
|
"span": {
|
|
"start": 80,
|
|
"end": 89,
|
|
"ctxt": 0
|
|
},
|
|
"readonly": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 80,
|
|
"end": 81,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"computed": false,
|
|
"optional": false,
|
|
"init": null,
|
|
"params": [],
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 81,
|
|
"end": 89,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 83,
|
|
"end": 89,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "string"
|
|
}
|
|
},
|
|
"typeParams": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 93,
|
|
"end": 123,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": true,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 105,
|
|
"end": 122,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 105,
|
|
"end": 106,
|
|
"ctxt": 0
|
|
},
|
|
"value": "b",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 106,
|
|
"end": 122,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsTypeLiteral",
|
|
"span": {
|
|
"start": 108,
|
|
"end": 122,
|
|
"ctxt": 0
|
|
},
|
|
"members": [
|
|
{
|
|
"type": "TsPropertySignature",
|
|
"span": {
|
|
"start": 110,
|
|
"end": 120,
|
|
"ctxt": 0
|
|
},
|
|
"readonly": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 110,
|
|
"end": 111,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"computed": false,
|
|
"optional": true,
|
|
"init": null,
|
|
"params": [],
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 112,
|
|
"end": 120,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 114,
|
|
"end": 120,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "string"
|
|
}
|
|
},
|
|
"typeParams": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 124,
|
|
"end": 165,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": true,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 136,
|
|
"end": 164,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 136,
|
|
"end": 137,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 137,
|
|
"end": 164,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsTypeLiteral",
|
|
"span": {
|
|
"start": 139,
|
|
"end": 164,
|
|
"ctxt": 0
|
|
},
|
|
"members": [
|
|
{
|
|
"type": "TsPropertySignature",
|
|
"span": {
|
|
"start": 141,
|
|
"end": 162,
|
|
"ctxt": 0
|
|
},
|
|
"readonly": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 141,
|
|
"end": 142,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"computed": false,
|
|
"optional": false,
|
|
"init": null,
|
|
"params": [],
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 142,
|
|
"end": 162,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsUnionType",
|
|
"span": {
|
|
"start": 144,
|
|
"end": 162,
|
|
"ctxt": 0
|
|
},
|
|
"types": [
|
|
{
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 144,
|
|
"end": 150,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "string"
|
|
},
|
|
{
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 153,
|
|
"end": 162,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "undefined"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeParams": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 166,
|
|
"end": 208,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": true,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 178,
|
|
"end": 207,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 178,
|
|
"end": 179,
|
|
"ctxt": 0
|
|
},
|
|
"value": "d",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 179,
|
|
"end": 207,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsTypeLiteral",
|
|
"span": {
|
|
"start": 181,
|
|
"end": 207,
|
|
"ctxt": 0
|
|
},
|
|
"members": [
|
|
{
|
|
"type": "TsPropertySignature",
|
|
"span": {
|
|
"start": 183,
|
|
"end": 205,
|
|
"ctxt": 0
|
|
},
|
|
"readonly": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 183,
|
|
"end": 184,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"computed": false,
|
|
"optional": true,
|
|
"init": null,
|
|
"params": [],
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 185,
|
|
"end": 205,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsUnionType",
|
|
"span": {
|
|
"start": 187,
|
|
"end": 205,
|
|
"ctxt": 0
|
|
},
|
|
"types": [
|
|
{
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 187,
|
|
"end": 193,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "string"
|
|
},
|
|
{
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 196,
|
|
"end": 205,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "undefined"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeParams": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 210,
|
|
"end": 233,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": true,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 222,
|
|
"end": 232,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 222,
|
|
"end": 223,
|
|
"ctxt": 0
|
|
},
|
|
"value": "t",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 223,
|
|
"end": 232,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 225,
|
|
"end": 232,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 235,
|
|
"end": 261,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 239,
|
|
"end": 260,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 239,
|
|
"end": 241,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a1",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 244,
|
|
"end": 260,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 246,
|
|
"end": 247,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 249,
|
|
"end": 252,
|
|
"ctxt": 0
|
|
},
|
|
"value": 123.0,
|
|
"raw": "123"
|
|
}
|
|
},
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 254,
|
|
"end": 257,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 257,
|
|
"end": 258,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 281,
|
|
"end": 307,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 285,
|
|
"end": 306,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 285,
|
|
"end": 287,
|
|
"ctxt": 0
|
|
},
|
|
"value": "b1",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 290,
|
|
"end": 306,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 292,
|
|
"end": 293,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 295,
|
|
"end": 298,
|
|
"ctxt": 0
|
|
},
|
|
"value": 123.0,
|
|
"raw": "123"
|
|
}
|
|
},
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 300,
|
|
"end": 303,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 303,
|
|
"end": 304,
|
|
"ctxt": 0
|
|
},
|
|
"value": "b",
|
|
"optional": false
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 328,
|
|
"end": 354,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 332,
|
|
"end": 353,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 332,
|
|
"end": 334,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c1",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 337,
|
|
"end": 353,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 339,
|
|
"end": 340,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 342,
|
|
"end": 345,
|
|
"ctxt": 0
|
|
},
|
|
"value": 123.0,
|
|
"raw": "123"
|
|
}
|
|
},
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 347,
|
|
"end": 350,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 350,
|
|
"end": 351,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c",
|
|
"optional": false
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 386,
|
|
"end": 412,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 390,
|
|
"end": 411,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 390,
|
|
"end": 392,
|
|
"ctxt": 0
|
|
},
|
|
"value": "d1",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 395,
|
|
"end": 411,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 397,
|
|
"end": 398,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 400,
|
|
"end": 403,
|
|
"ctxt": 0
|
|
},
|
|
"value": 123.0,
|
|
"raw": "123"
|
|
}
|
|
},
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 405,
|
|
"end": 408,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 408,
|
|
"end": 409,
|
|
"ctxt": 0
|
|
},
|
|
"value": "d",
|
|
"optional": false
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 434,
|
|
"end": 471,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 438,
|
|
"end": 470,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 438,
|
|
"end": 440,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a2",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 443,
|
|
"end": 470,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 445,
|
|
"end": 446,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 448,
|
|
"end": 451,
|
|
"ctxt": 0
|
|
},
|
|
"value": 123.0,
|
|
"raw": "123"
|
|
}
|
|
},
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 453,
|
|
"end": 456,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "ParenthesisExpression",
|
|
"span": {
|
|
"start": 456,
|
|
"end": 468,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "ConditionalExpression",
|
|
"span": {
|
|
"start": 457,
|
|
"end": 467,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 457,
|
|
"end": 458,
|
|
"ctxt": 0
|
|
},
|
|
"value": "t",
|
|
"optional": false
|
|
},
|
|
"consequent": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 461,
|
|
"end": 462,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"alternate": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 465,
|
|
"end": 467,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 492,
|
|
"end": 529,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 496,
|
|
"end": 528,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 496,
|
|
"end": 498,
|
|
"ctxt": 0
|
|
},
|
|
"value": "b2",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 501,
|
|
"end": 528,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 503,
|
|
"end": 504,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 506,
|
|
"end": 509,
|
|
"ctxt": 0
|
|
},
|
|
"value": 123.0,
|
|
"raw": "123"
|
|
}
|
|
},
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 511,
|
|
"end": 514,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "ParenthesisExpression",
|
|
"span": {
|
|
"start": 514,
|
|
"end": 526,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "ConditionalExpression",
|
|
"span": {
|
|
"start": 515,
|
|
"end": 525,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 515,
|
|
"end": 516,
|
|
"ctxt": 0
|
|
},
|
|
"value": "t",
|
|
"optional": false
|
|
},
|
|
"consequent": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 519,
|
|
"end": 520,
|
|
"ctxt": 0
|
|
},
|
|
"value": "b",
|
|
"optional": false
|
|
},
|
|
"alternate": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 523,
|
|
"end": 525,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 550,
|
|
"end": 587,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 554,
|
|
"end": 586,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 554,
|
|
"end": 556,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c2",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 559,
|
|
"end": 586,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 561,
|
|
"end": 562,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 564,
|
|
"end": 567,
|
|
"ctxt": 0
|
|
},
|
|
"value": 123.0,
|
|
"raw": "123"
|
|
}
|
|
},
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 569,
|
|
"end": 572,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "ParenthesisExpression",
|
|
"span": {
|
|
"start": 572,
|
|
"end": 584,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "ConditionalExpression",
|
|
"span": {
|
|
"start": 573,
|
|
"end": 583,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 573,
|
|
"end": 574,
|
|
"ctxt": 0
|
|
},
|
|
"value": "t",
|
|
"optional": false
|
|
},
|
|
"consequent": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 577,
|
|
"end": 578,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c",
|
|
"optional": false
|
|
},
|
|
"alternate": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 581,
|
|
"end": 583,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 608,
|
|
"end": 645,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "let",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 612,
|
|
"end": 644,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 612,
|
|
"end": 614,
|
|
"ctxt": 0
|
|
},
|
|
"value": "d2",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 617,
|
|
"end": 644,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 619,
|
|
"end": 620,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 622,
|
|
"end": 625,
|
|
"ctxt": 0
|
|
},
|
|
"value": 123.0,
|
|
"raw": "123"
|
|
}
|
|
},
|
|
{
|
|
"type": "SpreadElement",
|
|
"spread": {
|
|
"start": 627,
|
|
"end": 630,
|
|
"ctxt": 0
|
|
},
|
|
"arguments": {
|
|
"type": "ParenthesisExpression",
|
|
"span": {
|
|
"start": 630,
|
|
"end": 642,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "ConditionalExpression",
|
|
"span": {
|
|
"start": 631,
|
|
"end": 641,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 631,
|
|
"end": 632,
|
|
"ctxt": 0
|
|
},
|
|
"value": "t",
|
|
"optional": false
|
|
},
|
|
"consequent": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 635,
|
|
"end": 636,
|
|
"ctxt": 0
|
|
},
|
|
"value": "d",
|
|
"optional": false
|
|
},
|
|
"alternate": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 639,
|
|
"end": 641,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|