{ "type": "File", "start": 0, "end": 22, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 3, "column": 1 } }, "program": { "type": "Program", "start": 0, "end": 22, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 3, "column": 1 } }, "sourceType": "script", "body": [ { "type": "ClassDeclaration", "start": 0, "end": 22, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 3, "column": 1 } }, "id": { "type": "Identifier", "start": 6, "end": 7, "loc": { "start": { "line": 1, "column": 6 }, "end": { "line": 1, "column": 7 }, "identifierName": "A" }, "name": "A" }, "superClass": null, "body": { "type": "ClassBody", "start": 8, "end": 22, "loc": { "start": { "line": 1, "column": 8 }, "end": { "line": 3, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 12, "end": 20, "loc": { "start": { "line": 2, "column": 2 }, "end": { "line": 2, "column": 10 } }, "computed": false, "key": { "type": "Identifier", "start": 12, "end": 15, "loc": { "start": { "line": 2, "column": 2 }, "end": { "line": 2, "column": 5 }, "identifierName": "foo" }, "name": "foo" }, "static": false, "kind": "method", "value": { "type": "FunctionExpression", "start": 15, "end": 20, "loc": { "start": { "line": 2, "column": 5 }, "end": { "line": 2, "column": 10 } }, "id": null, "generator": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 18, "end": 20, "loc": { "start": { "line": 2, "column": 8 }, "end": { "line": 2, "column": 10 } }, "body": [] }, "expression": false } } ] } } ] } }