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

1730 lines
53 KiB
JSON

{
"type": "Script",
"span": {
"start": 17,
"end": 663,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 26,
"end": 36,
"ctxt": 0
},
"value": "cloneAgain",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 37,
"end": 78,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "ObjectPattern",
"span": {
"start": 37,
"end": 78,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 39,
"end": 40,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 39,
"end": 40,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": null
},
{
"type": "RestElement",
"span": {
"start": 42,
"end": 50,
"ctxt": 0
},
"rest": {
"start": 42,
"end": 45,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 45,
"end": 50,
"ctxt": 0
},
"value": "clone",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 52,
"end": 78,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 54,
"end": 78,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 56,
"end": 66,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 56,
"end": 57,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 57,
"end": 65,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 59,
"end": 65,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 67,
"end": 76,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 67,
"end": 68,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 68,
"end": 76,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 70,
"end": 76,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 17,
"end": 89,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 86,
"end": 89,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 79,
"end": 85,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 81,
"end": 85,
"ctxt": 0
},
"kind": "void"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 108,
"end": 116,
"ctxt": 0
},
"value": "suddenly",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 117,
"end": 160,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 117,
"end": 160,
"ctxt": 0
},
"value": "f",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 118,
"end": 160,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 120,
"end": 160,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 121,
"end": 151,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 122,
"end": 151,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 124,
"end": 151,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 126,
"end": 139,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 126,
"end": 127,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 127,
"end": 138,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 129,
"end": 138,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 131,
"end": 133,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 131,
"end": 132,
"ctxt": 0
},
"value": "z",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": null,
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 134,
"end": 136,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 134,
"end": 136,
"ctxt": 0
},
"value": "ka",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": null,
"typeParams": null
}
]
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 140,
"end": 149,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 140,
"end": 141,
"ctxt": 0
},
"value": "y",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 141,
"end": 149,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 143,
"end": 149,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 153,
"end": 160,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 156,
"end": 160,
"ctxt": 0
},
"kind": "void"
}
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 91,
"end": 162,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 163,
"end": 203,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 163,
"end": 202,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 163,
"end": 171,
"ctxt": 0
},
"value": "suddenly",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 172,
"end": 201,
"ctxt": 0
},
"params": [
{
"type": "ObjectPattern",
"span": {
"start": 173,
"end": 190,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 175,
"end": 176,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 178,
"end": 179,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "RestElement",
"span": {
"start": 181,
"end": 188,
"ctxt": 0
},
"rest": {
"start": 181,
"end": 184,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 184,
"end": 188,
"ctxt": 0
},
"value": "rest",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
],
"body": {
"type": "MemberExpression",
"span": {
"start": 195,
"end": 201,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 195,
"end": 199,
"ctxt": 0
},
"value": "rest",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 200,
"end": 201,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 204,
"end": 311,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 204,
"end": 310,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 204,
"end": 212,
"ctxt": 0
},
"value": "suddenly",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 213,
"end": 309,
"ctxt": 0
},
"params": [
{
"type": "AssignmentPattern",
"span": {
"start": 214,
"end": 286,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 214,
"end": 251,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 216,
"end": 217,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "ObjectPattern",
"span": {
"start": 219,
"end": 240,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 221,
"end": 227,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 221,
"end": 222,
"ctxt": 0
},
"value": "z",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 225,
"end": 227,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
}
},
{
"type": "RestElement",
"span": {
"start": 229,
"end": 238,
"ctxt": 0
},
"rest": {
"start": 229,
"end": 232,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 232,
"end": 238,
"ctxt": 0
},
"value": "nested",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
},
{
"type": "RestElement",
"span": {
"start": 242,
"end": 249,
"ctxt": 0
},
"rest": {
"start": 242,
"end": 245,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 245,
"end": 249,
"ctxt": 0
},
"value": "rest",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 254,
"end": 286,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 256,
"end": 257,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "ObjectExpression",
"span": {
"start": 259,
"end": 274,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 261,
"end": 262,
"ctxt": 0
},
"value": "z",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 264,
"end": 265,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 267,
"end": 269,
"ctxt": 0
},
"value": "ka",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 271,
"end": 272,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 276,
"end": 277,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 279,
"end": 284,
"ctxt": 0
},
"value": "noo",
"raw": "'noo'"
}
}
]
},
"typeAnnotation": null
}
],
"body": {
"type": "BinaryExpression",
"span": {
"start": 291,
"end": 309,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "MemberExpression",
"span": {
"start": 291,
"end": 297,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 291,
"end": 295,
"ctxt": 0
},
"value": "rest",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 296,
"end": 297,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 300,
"end": 309,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 300,
"end": 306,
"ctxt": 0
},
"value": "nested",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 307,
"end": 309,
"ctxt": 0
},
"value": "ka",
"optional": false
}
}
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
],
"typeArguments": null
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 319,
"end": 320,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 313,
"end": 536,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 327,
"end": 429,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 327,
"end": 328,
"ctxt": 0
},
"value": "m",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 329,
"end": 369,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "ObjectPattern",
"span": {
"start": 329,
"end": 369,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 331,
"end": 332,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 331,
"end": 332,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": null
},
{
"type": "RestElement",
"span": {
"start": 334,
"end": 342,
"ctxt": 0
},
"rest": {
"start": 334,
"end": 337,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 337,
"end": 342,
"ctxt": 0
},
"value": "clone",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 344,
"end": 369,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 346,
"end": 369,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 348,
"end": 358,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 348,
"end": 349,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 349,
"end": 357,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 351,
"end": 357,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 359,
"end": 368,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 359,
"end": 360,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 360,
"end": 368,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 362,
"end": 368,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 327,
"end": 429,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 377,
"end": 429,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 370,
"end": 376,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 372,
"end": 376,
"ctxt": 0
},
"kind": "void"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 434,
"end": 534,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 438,
"end": 439,
"ctxt": 0
},
"value": "p",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 440,
"end": 480,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "ObjectPattern",
"span": {
"start": 440,
"end": 480,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 442,
"end": 443,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 442,
"end": 443,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": null
},
{
"type": "RestElement",
"span": {
"start": 445,
"end": 453,
"ctxt": 0
},
"rest": {
"start": 445,
"end": 448,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 448,
"end": 453,
"ctxt": 0
},
"value": "clone",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 455,
"end": 480,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 457,
"end": 480,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 459,
"end": 469,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 459,
"end": 460,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 460,
"end": 468,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 462,
"end": 468,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 470,
"end": 479,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 470,
"end": 471,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 471,
"end": 479,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 473,
"end": 479,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 434,
"end": 534,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 482,
"end": 534,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 546,
"end": 552,
"ctxt": 0
},
"value": "foobar",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 553,
"end": 582,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 553,
"end": 582,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 553,
"end": 577,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 555,
"end": 561,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 555,
"end": 558,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"value": {
"type": "ObjectExpression",
"span": {
"start": 559,
"end": 561,
"ctxt": 0
},
"properties": []
}
},
{
"type": "RestElement",
"span": {
"start": 563,
"end": 570,
"ctxt": 0
},
"rest": {
"start": 563,
"end": 566,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 566,
"end": 570,
"ctxt": 0
},
"value": "opts",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 572,
"end": 577,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 574,
"end": 577,
"ctxt": 0
},
"kind": "any"
}
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 580,
"end": 582,
"ctxt": 0
},
"properties": []
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 537,
"end": 587,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 584,
"end": 587,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 588,
"end": 597,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 588,
"end": 596,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 588,
"end": 594,
"ctxt": 0
},
"value": "foobar",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 598,
"end": 623,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 598,
"end": 622,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 598,
"end": 604,
"ctxt": 0
},
"value": "foobar",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 605,
"end": 621,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 607,
"end": 610,
"ctxt": 0
},
"value": "baz",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 612,
"end": 619,
"ctxt": 0
},
"value": "hello",
"raw": "'hello'"
}
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 624,
"end": 663,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 624,
"end": 662,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 624,
"end": 630,
"ctxt": 0
},
"value": "foobar",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 631,
"end": 661,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 633,
"end": 636,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"value": {
"type": "ObjectExpression",
"span": {
"start": 638,
"end": 659,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 640,
"end": 648,
"ctxt": 0
},
"value": "greeting",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 650,
"end": 657,
"ctxt": 0
},
"value": "hello",
"raw": "'hello'"
}
}
]
}
}
]
}
}
],
"typeArguments": null
}
}
],
"interpreter": null
}