{ "type": "Script", "span": { "start": 109, "end": 388, "ctxt": 0 }, "body": [ { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 118, "end": 122, "ctxt": 0 }, "value": "test", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 123, "end": 227, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 123, "end": 227, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 129, "end": 141, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 129, "end": 135, "ctxt": 0 }, "value": "method", "optional": false }, "value": { "type": "StringLiteral", "span": { "start": 138, "end": 141, "ctxt": 0 }, "value": "z", "raw": "'z'" } }, { "type": "KeyValuePatternProperty", "key": { "type": "Identifier", "span": { "start": 147, "end": 153, "ctxt": 0 }, "value": "nested", "optional": false }, "value": { "type": "ObjectPattern", "span": { "start": 155, "end": 166, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 157, "end": 164, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 157, "end": 158, "ctxt": 0 }, "value": "p", "optional": false }, "value": { "type": "StringLiteral", "span": { "start": 161, "end": 164, "ctxt": 0 }, "value": "c", "raw": "'c'" } } ], "optional": false, "typeAnnotation": null } } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 168, "end": 227, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 170, "end": 227, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 176, "end": 195, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 176, "end": 182, "ctxt": 0 }, "value": "method", "optional": false }, "computed": false, "optional": true, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 183, "end": 194, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 185, "end": 194, "ctxt": 0 }, "types": [ { "type": "TsLiteralType", "span": { "start": 185, "end": 188, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 185, "end": 188, "ctxt": 0 }, "value": "x", "raw": "'x'" } }, { "type": "TsLiteralType", "span": { "start": 191, "end": 194, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 191, "end": 194, "ctxt": 0 }, "value": "y", "raw": "'y'" } } ] } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 200, "end": 225, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 200, "end": 206, "ctxt": 0 }, "value": "nested", "optional": false }, "computed": false, "optional": true, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 207, "end": 225, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 209, "end": 225, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 211, "end": 223, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 211, "end": 212, "ctxt": 0 }, "value": "p", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 212, "end": 223, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 214, "end": 223, "ctxt": 0 }, "types": [ { "type": "TsLiteralType", "span": { "start": 214, "end": 217, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 214, "end": 217, "ctxt": 0 }, "value": "a", "raw": "'a'" } }, { "type": "TsLiteralType", "span": { "start": 220, "end": 223, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 220, "end": 223, "ctxt": 0 }, "value": "b", "raw": "'b'" } } ] } }, "typeParams": null } ] } }, "typeParams": null } ] } } } } ], "decorators": [], "span": { "start": 109, "end": 249, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 229, "end": 249, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 235, "end": 241, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 235, "end": 241, "ctxt": 0 }, "value": "method", "optional": false } }, { "type": "ExpressionStatement", "span": { "start": 246, "end": 247, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 246, "end": 247, "ctxt": 0 }, "value": "p", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "ExpressionStatement", "span": { "start": 251, "end": 260, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 251, "end": 259, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 251, "end": 255, "ctxt": 0 }, "value": "test", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "ObjectExpression", "span": { "start": 256, "end": 258, "ctxt": 0 }, "properties": [] } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 261, "end": 302, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 261, "end": 302, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 261, "end": 265, "ctxt": 0 }, "value": "test", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "ObjectExpression", "span": { "start": 266, "end": 301, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 268, "end": 274, "ctxt": 0 }, "value": "method", "optional": false }, "value": { "type": "StringLiteral", "span": { "start": 276, "end": 279, "ctxt": 0 }, "value": "x", "raw": "'x'" } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 281, "end": 287, "ctxt": 0 }, "value": "nested", "optional": false }, "value": { "type": "ObjectExpression", "span": { "start": 289, "end": 299, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 291, "end": 292, "ctxt": 0 }, "value": "p", "optional": false }, "value": { "type": "StringLiteral", "span": { "start": 294, "end": 297, "ctxt": 0 }, "value": "a", "raw": "'a'" } } ] } } ] } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 303, "end": 344, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 303, "end": 344, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 303, "end": 307, "ctxt": 0 }, "value": "test", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "ObjectExpression", "span": { "start": 308, "end": 343, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 310, "end": 316, "ctxt": 0 }, "value": "method", "optional": false }, "value": { "type": "StringLiteral", "span": { "start": 318, "end": 321, "ctxt": 0 }, "value": "z", "raw": "'z'" } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 323, "end": 329, "ctxt": 0 }, "value": "nested", "optional": false }, "value": { "type": "ObjectExpression", "span": { "start": 331, "end": 341, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 333, "end": 334, "ctxt": 0 }, "value": "p", "optional": false }, "value": { "type": "StringLiteral", "span": { "start": 336, "end": 339, "ctxt": 0 }, "value": "b", "raw": "'b'" } } ] } } ] } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 345, "end": 388, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 345, "end": 388, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 345, "end": 349, "ctxt": 0 }, "value": "test", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "ObjectExpression", "span": { "start": 350, "end": 387, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 352, "end": 358, "ctxt": 0 }, "value": "method", "optional": false }, "value": { "type": "StringLiteral", "span": { "start": 360, "end": 365, "ctxt": 0 }, "value": "one", "raw": "'one'" } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 367, "end": 373, "ctxt": 0 }, "value": "nested", "optional": false }, "value": { "type": "ObjectExpression", "span": { "start": 375, "end": 385, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 377, "end": 378, "ctxt": 0 }, "value": "p", "optional": false }, "value": { "type": "StringLiteral", "span": { "start": 380, "end": 383, "ctxt": 0 }, "value": "a", "raw": "'a'" } } ] } } ] } } ], "typeArguments": null } } ], "interpreter": null }