{ "type": "Program", "statements": [ { "type": "ExportNamedDeclaration", "declaration": { "type": "TSDeclareFunction", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "func", "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 21 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 31 } } }, "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 17, "column": 23 } } }, { "type": "Identifier", "name": "b", "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 17, "column": 36 }, "end": { "line": 17, "column": 42 } } }, "loc": { "start": { "line": 17, "column": 33 }, "end": { "line": 17, "column": 34 } } }, { "type": "RestElement", "argument": { "type": "Identifier", "name": "args", "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "TSAnyKeyword", "loc": { "start": { "line": 17, "column": 53 }, "end": { "line": 17, "column": 56 } } }, "loc": { "start": { "line": 17, "column": 53 }, "end": { "line": 17, "column": 58 } } }, "loc": { "start": { "line": 17, "column": 47 }, "end": { "line": 17, "column": 51 } } }, "loc": { "start": { "line": 17, "column": 44 }, "end": { "line": 17, "column": 51 } } } ], "returnType": { "type": "TSVoidKeyword", "loc": { "start": { "line": 17, "column": 61 }, "end": { "line": 17, "column": 65 } } }, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 66 } } }, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 66 } } }, "source": null, "specifiers": [], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 66 } } }, { "type": "ExportNamedDeclaration", "declaration": { "type": "FunctionDeclaration", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "func", "loc": { "start": { "line": 18, "column": 17 }, "end": { "line": 18, "column": 21 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 18, "column": 25 }, "end": { "line": 18, "column": 31 } } }, "loc": { "start": { "line": 18, "column": 22 }, "end": { "line": 18, "column": 23 } } }, { "type": "Identifier", "name": "b", "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 18, "column": 36 }, "end": { "line": 18, "column": 42 } } }, "loc": { "start": { "line": 18, "column": 33 }, "end": { "line": 18, "column": 34 } } } ], "returnType": { "type": "TSAnyKeyword", "loc": { "start": { "line": 18, "column": 45 }, "end": { "line": 18, "column": 48 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 19, "column": 12 }, "end": { "line": 19, "column": 13 } } }, "right": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 19, "column": 16 }, "end": { "line": 19, "column": 17 } } }, "loc": { "start": { "line": 19, "column": 12 }, "end": { "line": 19, "column": 17 } } }, "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 18 } } } ], "loc": { "start": { "line": 18, "column": 49 }, "end": { "line": 20, "column": 2 } } }, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 20, "column": 2 } } }, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 20, "column": 2 } } }, "source": null, "specifiers": [], "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 20, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 20, "column": 2 } } }