{ "type": "Program", "body": [ { "range": [ 0, 63 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 5, "column": 1 } }, "type": "ClassDeclaration", "id": { "range": [ 6, 7 ], "loc": { "start": { "line": 1, "column": 6 }, "end": { "line": 1, "column": 7 } }, "type": "Identifier", "name": "A" }, "superClass": { "range": [ 16, 17 ], "loc": { "start": { "line": 1, "column": 16 }, "end": { "line": 1, "column": 17 } }, "type": "Identifier", "name": "B" }, "body": { "range": [ 18, 63 ], "loc": { "start": { "line": 1, "column": 18 }, "end": { "line": 5, "column": 1 } }, "type": "ClassBody", "body": [ { "range": [ 24, 61 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 4, "column": 5 } }, "type": "MethodDefinition", "key": { "range": [ 24, 27 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 7 } }, "type": "Identifier", "name": "foo" }, "computed": false, "value": { "range": [ 27, 61 ], "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 4, "column": 5 } }, "type": "FunctionExpression", "id": null, "params": [], "body": { "range": [ 30, 61 ], "loc": { "start": { "line": 2, "column": 10 }, "end": { "line": 4, "column": 5 } }, "type": "BlockStatement", "body": [ { "range": [ 40, 55 ], "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 23 } }, "type": "ExpressionStatement", "expression": { "range": [ 40, 55 ], "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 23 } }, "type": "NewExpression", "callee": { "range": [ 44, 53 ], "loc": { "start": { "line": 3, "column": 12 }, "end": { "line": 3, "column": 21 } }, "type": "MemberExpression", "computed": false, "object": { "range": [ 44, 49 ], "loc": { "start": { "line": 3, "column": 12 }, "end": { "line": 3, "column": 17 } }, "type": "Super" }, "property": { "range": [ 50, 53 ], "loc": { "start": { "line": 3, "column": 18 }, "end": { "line": 3, "column": 21 } }, "type": "Identifier", "name": "bar" } }, "arguments": [] } } ] }, "generator": false, "expression": false, "async": false }, "kind": "method", "static": false } ] } } ], "sourceType": "script", "tokens": [ { "type": "Keyword", "value": "class", "range": [ 0, 5 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 5 } } }, { "type": "Identifier", "value": "A", "range": [ 6, 7 ], "loc": { "start": { "line": 1, "column": 6 }, "end": { "line": 1, "column": 7 } } }, { "type": "Keyword", "value": "extends", "range": [ 8, 15 ], "loc": { "start": { "line": 1, "column": 8 }, "end": { "line": 1, "column": 15 } } }, { "type": "Identifier", "value": "B", "range": [ 16, 17 ], "loc": { "start": { "line": 1, "column": 16 }, "end": { "line": 1, "column": 17 } } }, { "type": "Punctuator", "value": "{", "range": [ 18, 19 ], "loc": { "start": { "line": 1, "column": 18 }, "end": { "line": 1, "column": 19 } } }, { "type": "Identifier", "value": "foo", "range": [ 24, 27 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 7 } } }, { "type": "Punctuator", "value": "(", "range": [ 27, 28 ], "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 8 } } }, { "type": "Punctuator", "value": ")", "range": [ 28, 29 ], "loc": { "start": { "line": 2, "column": 8 }, "end": { "line": 2, "column": 9 } } }, { "type": "Punctuator", "value": "{", "range": [ 30, 31 ], "loc": { "start": { "line": 2, "column": 10 }, "end": { "line": 2, "column": 11 } } }, { "type": "Keyword", "value": "new", "range": [ 40, 43 ], "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 11 } } }, { "type": "Keyword", "value": "super", "range": [ 44, 49 ], "loc": { "start": { "line": 3, "column": 12 }, "end": { "line": 3, "column": 17 } } }, { "type": "Punctuator", "value": ".", "range": [ 49, 50 ], "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 18 } } }, { "type": "Identifier", "value": "bar", "range": [ 50, 53 ], "loc": { "start": { "line": 3, "column": 18 }, "end": { "line": 3, "column": 21 } } }, { "type": "Punctuator", "value": "(", "range": [ 53, 54 ], "loc": { "start": { "line": 3, "column": 21 }, "end": { "line": 3, "column": 22 } } }, { "type": "Punctuator", "value": ")", "range": [ 54, 55 ], "loc": { "start": { "line": 3, "column": 22 }, "end": { "line": 3, "column": 23 } } }, { "type": "Punctuator", "value": "}", "range": [ 60, 61 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 5 } } }, { "type": "Punctuator", "value": "}", "range": [ 62, 63 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 1 } } } ], "range": [ 0, 63 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 5, "column": 1 } } }