{ "type": "Program", "statements": [ { "type": "TSDeclareFunction", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "foo", "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 13 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 23 } } }, "loc": { "start": { "line": 17, "column": 14 }, "end": { "line": 17, "column": 15 } } }, { "type": "Identifier", "name": "b", "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 17, "column": 28 }, "end": { "line": 17, "column": 34 } } }, "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 26 } } } ], "returnType": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 17, "column": 37 }, "end": { "line": 17, "column": 44 } } }, "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 45 } } }, "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 45 } } }, { "type": "TSDeclareFunction", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "foo", "loc": { "start": { "line": 18, "column": 10 }, "end": { "line": 18, "column": 13 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 18, "column": 17 }, "end": { "line": 18, "column": 23 } } }, "loc": { "start": { "line": 18, "column": 14 }, "end": { "line": 18, "column": 15 } } }, { "type": "Identifier", "name": "b", "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 18, "column": 29 }, "end": { "line": 18, "column": 35 } } }, "optional": true, "loc": { "start": { "line": 18, "column": 25 }, "end": { "line": 18, "column": 26 } } } ], "returnType": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 18, "column": 38 }, "end": { "line": 18, "column": 45 } } }, "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 18, "column": 46 } } }, "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 18, "column": 46 } } }, { "type": "FunctionDeclaration", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "foo", "loc": { "start": { "line": 19, "column": 10 }, "end": { "line": 19, "column": 13 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 19, "column": 18 }, "end": { "line": 19, "column": 24 } } }, "optional": true, "loc": { "start": { "line": 19, "column": 14 }, "end": { "line": 19, "column": 15 } } }, { "type": "Identifier", "name": "b", "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 19, "column": 30 }, "end": { "line": 19, "column": 36 } } }, "optional": true, "loc": { "start": { "line": 19, "column": 26 }, "end": { "line": 19, "column": 27 } } } ], "returnType": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 19, "column": 39 }, "end": { "line": 19, "column": 46 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "BooleanLiteral", "value": true, "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 20, "column": 16 } } }, "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 17 } } } ], "loc": { "start": { "line": 19, "column": 47 }, "end": { "line": 21, "column": 2 } } }, "loc": { "start": { "line": 19, "column": 1 }, "end": { "line": 21, "column": 2 } } }, "loc": { "start": { "line": 19, "column": 1 }, "end": { "line": 21, "column": 2 } } }, { "type": "FunctionDeclaration", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "bar", "loc": { "start": { "line": 23, "column": 10 }, "end": { "line": 23, "column": 13 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 23, "column": 16 }, "end": { "line": 23, "column": 19 } } }, "loc": { "start": { "line": 23, "column": 1 }, "end": { "line": 23, "column": 19 } } }, "loc": { "start": { "line": 23, "column": 1 }, "end": { "line": 23, "column": 19 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 23, "column": 19 } } }