{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Foo", "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 10 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 20, "column": 2 } } }, "body": [ { "type": "MethodDefinition", "key": { "type": "StringLiteral", "value": "bar", "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 10 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "loc": { "start": { "line": 18, "column": 10 }, "end": { "line": 18, "column": 13 } } }, "loc": { "start": { "line": 18, "column": 10 }, "end": { "line": 18, "column": 13 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 13 } } }, { "type": "MethodDefinition", "key": { "type": "StringLiteral", "value": "baz", "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 10 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 16 } } }, "loc": { "start": { "line": 19, "column": 10 }, "end": { "line": 19, "column": 16 } } }, "loc": { "start": { "line": 19, "column": 10 }, "end": { "line": 19, "column": 16 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 16 } } } ], "indexSignatures": [], "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 20, "column": 2 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 20, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 20, "column": 2 } } }