{ "type": "Script", "span": { "start": 17, "end": 156, "ctxt": 0 }, "body": [ { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 26, "end": 29, "ctxt": 0 }, "value": "foo", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 30, "end": 39, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 30, "end": 39, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 31, "end": 39, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 33, "end": 39, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 41, "end": 47, "ctxt": 0 }, "decorators": [], "pat": { "type": "AssignmentPattern", "span": { "start": 41, "end": 47, "ctxt": 0 }, "left": { "type": "Identifier", "span": { "start": 41, "end": 42, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": null }, "right": { "type": "NumericLiteral", "span": { "start": 45, "end": 47, "ctxt": 0 }, "value": 10.0, "raw": "10" } } } ], "decorators": [], "span": { "start": 17, "end": 52, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 49, "end": 52, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 62, "end": 65, "ctxt": 0 }, "value": "baz", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 66, "end": 75, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 66, "end": 75, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 67, "end": 75, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 69, "end": 75, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 77, "end": 82, "ctxt": 0 }, "decorators": [], "pat": { "type": "AssignmentPattern", "span": { "start": 77, "end": 82, "ctxt": 0 }, "left": { "type": "Identifier", "span": { "start": 77, "end": 78, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": null }, "right": { "type": "NumericLiteral", "span": { "start": 81, "end": 82, "ctxt": 0 }, "value": 5.0, "raw": "5" } } }, { "type": "Parameter", "span": { "start": 84, "end": 91, "ctxt": 0 }, "decorators": [], "pat": { "type": "RestElement", "span": { "start": 84, "end": 91, "ctxt": 0 }, "rest": { "start": 84, "end": 87, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 87, "end": 91, "ctxt": 0 }, "value": "rest", "optional": false, "typeAnnotation": null }, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 53, "end": 96, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 93, "end": 96, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 106, "end": 109, "ctxt": 0 }, "value": "bar", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 110, "end": 116, "ctxt": 0 }, "decorators": [], "pat": { "type": "AssignmentPattern", "span": { "start": 110, "end": 116, "ctxt": 0 }, "left": { "type": "Identifier", "span": { "start": 110, "end": 111, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": null }, "right": { "type": "NumericLiteral", "span": { "start": 114, "end": 116, "ctxt": 0 }, "value": 10.0, "raw": "10" } } } ], "decorators": [], "span": { "start": 97, "end": 121, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 118, "end": 121, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 131, "end": 135, "ctxt": 0 }, "value": "bar1", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 136, "end": 142, "ctxt": 0 }, "decorators": [], "pat": { "type": "AssignmentPattern", "span": { "start": 136, "end": 142, "ctxt": 0 }, "left": { "type": "Identifier", "span": { "start": 136, "end": 137, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": null }, "right": { "type": "NumericLiteral", "span": { "start": 140, "end": 142, "ctxt": 0 }, "value": 10.0, "raw": "10" } } }, { "type": "Parameter", "span": { "start": 144, "end": 151, "ctxt": 0 }, "decorators": [], "pat": { "type": "RestElement", "span": { "start": 144, "end": 151, "ctxt": 0 }, "rest": { "start": 144, "end": 147, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 147, "end": 151, "ctxt": 0 }, "value": "rest", "optional": false, "typeAnnotation": null }, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 122, "end": 156, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 153, "end": 156, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } ], "interpreter": null }