{ "type": "Script", "span": { "start": 15, "end": 198, "ctxt": 0 }, "body": [ { "type": "VariableDeclaration", "span": { "start": 15, "end": 198, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 19, "end": 198, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 19, "end": 23, "ctxt": 0 }, "value": "obj2", "optional": false, "typeAnnotation": null }, "init": { "type": "ObjectExpression", "span": { "start": 26, "end": 198, "ctxt": 0 }, "properties": [ { "type": "MethodProperty", "key": { "type": "Identifier", "span": { "start": 32, "end": 37, "ctxt": 0 }, "value": "func1", "optional": false }, "params": [ { "type": "Parameter", "span": { "start": 38, "end": 44, "ctxt": 0 }, "decorators": [], "pat": { "type": "AssignmentPattern", "span": { "start": 38, "end": 44, "ctxt": 0 }, "left": { "type": "Identifier", "span": { "start": 38, "end": 39, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": null }, "right": { "type": "NumericLiteral", "span": { "start": 42, "end": 44, "ctxt": 0 }, "value": 10.0 }, "typeAnnotation": null } }, { "type": "Parameter", "span": { "start": 46, "end": 53, "ctxt": 0 }, "decorators": [], "pat": { "type": "RestElement", "span": { "start": 46, "end": 53, "ctxt": 0 }, "rest": { "start": 46, "end": 49, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 49, "end": 53, "ctxt": 0 }, "value": "rest", "optional": false, "typeAnnotation": null }, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 32, "end": 58, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 55, "end": 58, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "MethodProperty", "key": { "type": "Identifier", "span": { "start": 64, "end": 69, "ctxt": 0 }, "value": "func2", "optional": false }, "params": [ { "type": "Parameter", "span": { "start": 70, "end": 81, "ctxt": 0 }, "decorators": [], "pat": { "type": "AssignmentPattern", "span": { "start": 70, "end": 81, "ctxt": 0 }, "left": { "type": "Identifier", "span": { "start": 70, "end": 71, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": null }, "right": { "type": "StringLiteral", "span": { "start": 74, "end": 81, "ctxt": 0 }, "value": "hello", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } }, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 64, "end": 86, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 83, "end": 86, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "MethodProperty", "key": { "type": "Identifier", "span": { "start": 92, "end": 97, "ctxt": 0 }, "value": "func3", "optional": false }, "params": [ { "type": "Parameter", "span": { "start": 98, "end": 107, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 98, "end": 107, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 99, "end": 107, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 101, "end": 107, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 109, "end": 118, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 109, "end": 118, "ctxt": 0 }, "value": "z", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 110, "end": 118, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 112, "end": 118, "ctxt": 0 }, "kind": "number" } } } }, { "type": "Parameter", "span": { "start": 120, "end": 131, "ctxt": 0 }, "decorators": [], "pat": { "type": "AssignmentPattern", "span": { "start": 120, "end": 131, "ctxt": 0 }, "left": { "type": "Identifier", "span": { "start": 120, "end": 121, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": null }, "right": { "type": "StringLiteral", "span": { "start": 124, "end": 131, "ctxt": 0 }, "value": "hello", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } }, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 92, "end": 136, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 133, "end": 136, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "MethodProperty", "key": { "type": "Identifier", "span": { "start": 142, "end": 147, "ctxt": 0 }, "value": "func4", "optional": false }, "params": [ { "type": "Parameter", "span": { "start": 148, "end": 157, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 148, "end": 157, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 149, "end": 157, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 151, "end": 157, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 159, "end": 168, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 159, "end": 168, "ctxt": 0 }, "value": "z", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 160, "end": 168, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 162, "end": 168, "ctxt": 0 }, "kind": "number" } } } }, { "type": "Parameter", "span": { "start": 170, "end": 181, "ctxt": 0 }, "decorators": [], "pat": { "type": "AssignmentPattern", "span": { "start": 170, "end": 181, "ctxt": 0 }, "left": { "type": "Identifier", "span": { "start": 170, "end": 171, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": null }, "right": { "type": "StringLiteral", "span": { "start": 174, "end": 181, "ctxt": 0 }, "value": "hello", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } }, "typeAnnotation": null } }, { "type": "Parameter", "span": { "start": 183, "end": 190, "ctxt": 0 }, "decorators": [], "pat": { "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 } } ], "decorators": [], "span": { "start": 142, "end": 195, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 192, "end": 195, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } ] }, "definite": false } ] } ], "interpreter": null }