{ "type": "Script", "span": { "start": 19, "end": 665, "ctxt": 0 }, "body": [ { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 28, "end": 38, "ctxt": 0 }, "value": "cloneAgain", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 39, "end": 80, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 39, "end": 80, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 41, "end": 42, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 41, "end": 42, "ctxt": 0 }, "value": "a", "optional": false }, "value": null }, { "type": "RestElement", "span": { "start": 44, "end": 52, "ctxt": 0 }, "rest": { "start": 44, "end": 47, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 47, "end": 52, "ctxt": 0 }, "value": "clone", "optional": false, "typeAnnotation": null }, "typeAnnotation": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 54, "end": 80, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 56, "end": 80, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 58, "end": 68, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 58, "end": 59, "ctxt": 0 }, "value": "a", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 59, "end": 67, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 61, "end": 67, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 69, "end": 78, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 69, "end": 70, "ctxt": 0 }, "value": "b", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 70, "end": 78, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 72, "end": 78, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } } } } ], "decorators": [], "span": { "start": 19, "end": 91, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 88, "end": 91, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 81, "end": 87, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 83, "end": 87, "ctxt": 0 }, "kind": "void" } } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 110, "end": 118, "ctxt": 0 }, "value": "suddenly", "optional": false }, "declare": true, "params": [ { "type": "Parameter", "span": { "start": 119, "end": 162, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 119, "end": 162, "ctxt": 0 }, "value": "f", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 120, "end": 162, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 122, "end": 162, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 123, "end": 153, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 124, "end": 153, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 126, "end": 153, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 128, "end": 141, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 128, "end": 129, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 129, "end": 140, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 131, "end": 140, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 133, "end": 135, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 133, "end": 134, "ctxt": 0 }, "value": "z", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": null, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 136, "end": 138, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 136, "end": 138, "ctxt": 0 }, "value": "ka", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": null, "typeParams": null } ] } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 142, "end": 151, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 142, "end": 143, "ctxt": 0 }, "value": "y", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 143, "end": 151, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 145, "end": 151, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 155, "end": 162, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 158, "end": 162, "ctxt": 0 }, "kind": "void" } } } } } } ], "decorators": [], "span": { "start": 93, "end": 164, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "ExpressionStatement", "span": { "start": 165, "end": 205, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 165, "end": 204, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 165, "end": 173, "ctxt": 0 }, "value": "suddenly", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 174, "end": 203, "ctxt": 0 }, "params": [ { "type": "ObjectPattern", "span": { "start": 175, "end": 192, "ctxt": 0 }, "properties": [ { "type": "KeyValuePatternProperty", "key": { "type": "Identifier", "span": { "start": 177, "end": 178, "ctxt": 0 }, "value": "x", "optional": false }, "value": { "type": "Identifier", "span": { "start": 180, "end": 181, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": null } }, { "type": "RestElement", "span": { "start": 183, "end": 190, "ctxt": 0 }, "rest": { "start": 183, "end": 186, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 186, "end": 190, "ctxt": 0 }, "value": "rest", "optional": false, "typeAnnotation": null }, "typeAnnotation": null } ], "optional": false, "typeAnnotation": null } ], "body": { "type": "MemberExpression", "span": { "start": 197, "end": 203, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 197, "end": 201, "ctxt": 0 }, "value": "rest", "optional": false }, "property": { "type": "Identifier", "span": { "start": 202, "end": 203, "ctxt": 0 }, "value": "y", "optional": false } }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 206, "end": 313, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 206, "end": 312, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 206, "end": 214, "ctxt": 0 }, "value": "suddenly", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 215, "end": 311, "ctxt": 0 }, "params": [ { "type": "AssignmentPattern", "span": { "start": 216, "end": 288, "ctxt": 0 }, "left": { "type": "ObjectPattern", "span": { "start": 216, "end": 253, "ctxt": 0 }, "properties": [ { "type": "KeyValuePatternProperty", "key": { "type": "Identifier", "span": { "start": 218, "end": 219, "ctxt": 0 }, "value": "x", "optional": false }, "value": { "type": "ObjectPattern", "span": { "start": 221, "end": 242, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 223, "end": 229, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 223, "end": 224, "ctxt": 0 }, "value": "z", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 227, "end": 229, "ctxt": 0 }, "value": 12.0 } }, { "type": "RestElement", "span": { "start": 231, "end": 240, "ctxt": 0 }, "rest": { "start": 231, "end": 234, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 234, "end": 240, "ctxt": 0 }, "value": "nested", "optional": false, "typeAnnotation": null }, "typeAnnotation": null } ], "optional": false, "typeAnnotation": null } }, { "type": "RestElement", "span": { "start": 244, "end": 251, "ctxt": 0 }, "rest": { "start": 244, "end": 247, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 247, "end": 251, "ctxt": 0 }, "value": "rest", "optional": false, "typeAnnotation": null }, "typeAnnotation": null } ], "optional": false, "typeAnnotation": null }, "right": { "type": "ObjectExpression", "span": { "start": 256, "end": 288, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 258, "end": 259, "ctxt": 0 }, "value": "x", "optional": false }, "value": { "type": "ObjectExpression", "span": { "start": 261, "end": 276, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 263, "end": 264, "ctxt": 0 }, "value": "z", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 266, "end": 267, "ctxt": 0 }, "value": 1.0 } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 269, "end": 271, "ctxt": 0 }, "value": "ka", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 273, "end": 274, "ctxt": 0 }, "value": 1.0 } } ] } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 278, "end": 279, "ctxt": 0 }, "value": "y", "optional": false }, "value": { "type": "StringLiteral", "span": { "start": 281, "end": 286, "ctxt": 0 }, "value": "noo", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } } } ] }, "typeAnnotation": null } ], "body": { "type": "BinaryExpression", "span": { "start": 293, "end": 311, "ctxt": 0 }, "operator": "+", "left": { "type": "MemberExpression", "span": { "start": 293, "end": 299, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 293, "end": 297, "ctxt": 0 }, "value": "rest", "optional": false }, "property": { "type": "Identifier", "span": { "start": 298, "end": 299, "ctxt": 0 }, "value": "y", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 302, "end": 311, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 302, "end": 308, "ctxt": 0 }, "value": "nested", "optional": false }, "property": { "type": "Identifier", "span": { "start": 309, "end": 311, "ctxt": 0 }, "value": "ka", "optional": false } } }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ], "typeArguments": null } }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 321, "end": 322, "ctxt": 0 }, "value": "C", "optional": false }, "declare": false, "span": { "start": 315, "end": 538, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 329, "end": 431, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 329, "end": 330, "ctxt": 0 }, "value": "m", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 331, "end": 371, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 331, "end": 371, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 333, "end": 334, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 333, "end": 334, "ctxt": 0 }, "value": "a", "optional": false }, "value": null }, { "type": "RestElement", "span": { "start": 336, "end": 344, "ctxt": 0 }, "rest": { "start": 336, "end": 339, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 339, "end": 344, "ctxt": 0 }, "value": "clone", "optional": false, "typeAnnotation": null }, "typeAnnotation": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 346, "end": 371, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 348, "end": 371, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 350, "end": 360, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 350, "end": 351, "ctxt": 0 }, "value": "a", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 351, "end": 359, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 353, "end": 359, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 361, "end": 370, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 361, "end": 362, "ctxt": 0 }, "value": "b", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 362, "end": 370, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 364, "end": 370, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } } } } ], "decorators": [], "span": { "start": 329, "end": 431, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 379, "end": 431, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 372, "end": 378, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 374, "end": 378, "ctxt": 0 }, "kind": "void" } } }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 436, "end": 536, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 440, "end": 441, "ctxt": 0 }, "value": "p", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 442, "end": 482, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 442, "end": 482, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 444, "end": 445, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 444, "end": 445, "ctxt": 0 }, "value": "a", "optional": false }, "value": null }, { "type": "RestElement", "span": { "start": 447, "end": 455, "ctxt": 0 }, "rest": { "start": 447, "end": 450, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 450, "end": 455, "ctxt": 0 }, "value": "clone", "optional": false, "typeAnnotation": null }, "typeAnnotation": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 457, "end": 482, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 459, "end": 482, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 461, "end": 471, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 461, "end": 462, "ctxt": 0 }, "value": "a", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 462, "end": 470, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 464, "end": 470, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 472, "end": 481, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 472, "end": 473, "ctxt": 0 }, "value": "b", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 473, "end": 481, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 475, "end": 481, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } } } } ], "decorators": [], "span": { "start": 436, "end": 536, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 484, "end": 536, "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": 548, "end": 554, "ctxt": 0 }, "value": "foobar", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 555, "end": 584, "ctxt": 0 }, "decorators": [], "pat": { "type": "AssignmentPattern", "span": { "start": 555, "end": 584, "ctxt": 0 }, "left": { "type": "ObjectPattern", "span": { "start": 555, "end": 579, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 557, "end": 563, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 557, "end": 560, "ctxt": 0 }, "value": "bar", "optional": false }, "value": { "type": "ObjectExpression", "span": { "start": 561, "end": 563, "ctxt": 0 }, "properties": [] } }, { "type": "RestElement", "span": { "start": 565, "end": 572, "ctxt": 0 }, "rest": { "start": 565, "end": 568, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 568, "end": 572, "ctxt": 0 }, "value": "opts", "optional": false, "typeAnnotation": null }, "typeAnnotation": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 574, "end": 579, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 576, "end": 579, "ctxt": 0 }, "kind": "any" } } }, "right": { "type": "ObjectExpression", "span": { "start": 582, "end": 584, "ctxt": 0 }, "properties": [] }, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 539, "end": 589, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 586, "end": 589, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "ExpressionStatement", "span": { "start": 590, "end": 599, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 590, "end": 598, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 590, "end": 596, "ctxt": 0 }, "value": "foobar", "optional": false }, "arguments": [], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 600, "end": 625, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 600, "end": 624, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 600, "end": 606, "ctxt": 0 }, "value": "foobar", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "ObjectExpression", "span": { "start": 607, "end": 623, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 609, "end": 612, "ctxt": 0 }, "value": "baz", "optional": false }, "value": { "type": "StringLiteral", "span": { "start": 614, "end": 621, "ctxt": 0 }, "value": "hello", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } } } ] } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 626, "end": 665, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 626, "end": 664, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 626, "end": 632, "ctxt": 0 }, "value": "foobar", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "ObjectExpression", "span": { "start": 633, "end": 663, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 635, "end": 638, "ctxt": 0 }, "value": "bar", "optional": false }, "value": { "type": "ObjectExpression", "span": { "start": 640, "end": 661, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 642, "end": 650, "ctxt": 0 }, "value": "greeting", "optional": false }, "value": { "type": "StringLiteral", "span": { "start": 652, "end": 659, "ctxt": 0 }, "value": "hello", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } } } ] } } ] } } ], "typeArguments": null } } ], "interpreter": null }