{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "A", "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 8 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 24, "column": 3 }, "end": { "line": 24, "column": 14 } } }, "kind": "constructor", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "a", "loc": { "start": { "line": 24, "column": 15 }, "end": { "line": 24, "column": 16 } } }, { "type": "Identifier", "name": "b", "loc": { "start": { "line": 24, "column": 18 }, "end": { "line": 24, "column": 19 } } }, { "type": "Identifier", "name": "c", "loc": { "start": { "line": 24, "column": 21 }, "end": { "line": 24, "column": 22 } } } ], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 25, "column": 3 }, "end": { "line": 26, "column": 4 } } }, "loc": { "start": { "line": 24, "column": 14 }, "end": { "line": 26, "column": 4 } } }, "loc": { "start": { "line": 24, "column": 14 }, "end": { "line": 26, "column": 4 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 24, "column": 3 }, "end": { "line": 26, "column": 4 } } }, "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "myStaticFunc", "loc": { "start": { "line": 18, "column": 10 }, "end": { "line": 18, "column": 22 } } }, "kind": "method", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "a", "loc": { "start": { "line": 18, "column": 23 }, "end": { "line": 18, "column": 24 } } }, { "type": "Identifier", "name": "b", "loc": { "start": { "line": 18, "column": 26 }, "end": { "line": 18, "column": 27 } } }, { "type": "Identifier", "name": "c", "loc": { "start": { "line": 18, "column": 29 }, "end": { "line": 18, "column": 30 } } } ], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 18, "column": 32 }, "end": { "line": 18, "column": 34 } } }, "loc": { "start": { "line": 18, "column": 22 }, "end": { "line": 18, "column": 34 } } }, "loc": { "start": { "line": 18, "column": 22 }, "end": { "line": 18, "column": 34 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 18, "column": 3 }, "end": { "line": 18, "column": 34 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "myFunc", "loc": { "start": { "line": 20, "column": 3 }, "end": { "line": 20, "column": 9 } } }, "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": 20, "column": 12 }, "end": { "line": 22, "column": 4 } } }, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 22, "column": 4 } } }, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 22, "column": 4 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 20, "column": 3 }, "end": { "line": 22, "column": 4 } } } ], "indexSignatures": [], "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 27, "column": 2 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 27, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "B", "loc": { "start": { "line": 29, "column": 7 }, "end": { "line": 29, "column": 8 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 34, "column": 3 }, "end": { "line": 34, "column": 14 } } }, "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": 34, "column": 16 }, "end": { "line": 34, "column": 18 } } }, "loc": { "start": { "line": 34, "column": 14 }, "end": { "line": 34, "column": 18 } } }, "loc": { "start": { "line": 34, "column": 14 }, "end": { "line": 34, "column": 18 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 34, "column": 3 }, "end": { "line": 34, "column": 18 } } }, "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "static", "loc": { "start": { "line": 30, "column": 16 }, "end": { "line": 30, "column": 22 } } }, "kind": "method", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": true, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 30, "column": 24 }, "end": { "line": 30, "column": 26 } } }, "loc": { "start": { "line": 30, "column": 22 }, "end": { "line": 30, "column": 26 } } }, "loc": { "start": { "line": 30, "column": 22 }, "end": { "line": 30, "column": 26 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 30, "column": 3 }, "end": { "line": 30, "column": 26 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 31, "column": 15 }, "end": { "line": 31, "column": 16 } } }, "kind": "get", "static": true, "optional": false, "computed": true, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 31, "column": 19 }, "end": { "line": 31, "column": 21 } } }, "loc": { "start": { "line": 31, "column": 17 }, "end": { "line": 31, "column": 21 } } }, "loc": { "start": { "line": 31, "column": 17 }, "end": { "line": 31, "column": 21 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 31, "column": 3 }, "end": { "line": 31, "column": 21 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "get", "loc": { "start": { "line": 32, "column": 16 }, "end": { "line": 32, "column": 19 } } }, "kind": "method", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": true, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 32, "column": 21 }, "end": { "line": 32, "column": 23 } } }, "loc": { "start": { "line": 32, "column": 19 }, "end": { "line": 32, "column": 23 } } }, "loc": { "start": { "line": 32, "column": 19 }, "end": { "line": 32, "column": 23 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 32, "column": 3 }, "end": { "line": 32, "column": 23 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 33, "column": 10 }, "end": { "line": 33, "column": 21 } } }, "kind": "method", "static": true, "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": 33, "column": 23 }, "end": { "line": 33, "column": 25 } } }, "loc": { "start": { "line": 33, "column": 21 }, "end": { "line": 33, "column": 25 } } }, "loc": { "start": { "line": 33, "column": 21 }, "end": { "line": 33, "column": 25 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 33, "column": 3 }, "end": { "line": 33, "column": 25 } } }, { "type": "MethodDefinition", "key": { "type": "NumberLiteral", "value": 5, "loc": { "start": { "line": 35, "column": 8 }, "end": { "line": 35, "column": 9 } } }, "kind": "set", "static": false, "optional": false, "computed": true, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "a", "loc": { "start": { "line": 35, "column": 11 }, "end": { "line": 35, "column": 12 } } } ], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 35, "column": 13 }, "end": { "line": 35, "column": 15 } } }, "loc": { "start": { "line": 35, "column": 10 }, "end": { "line": 35, "column": 15 } } }, "loc": { "start": { "line": 35, "column": 10 }, "end": { "line": 35, "column": 15 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 35, "column": 3 }, "end": { "line": 35, "column": 15 } } }, { "type": "MethodDefinition", "key": { "type": "StringLiteral", "value": "foo", "loc": { "start": { "line": 36, "column": 7 }, "end": { "line": 36, "column": 12 } } }, "kind": "get", "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": 36, "column": 14 }, "end": { "line": 36, "column": 16 } } }, "loc": { "start": { "line": 36, "column": 12 }, "end": { "line": 36, "column": 16 } } }, "loc": { "start": { "line": 36, "column": 12 }, "end": { "line": 36, "column": 16 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 36, "column": 3 }, "end": { "line": 36, "column": 16 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 37, "column": 4 }, "end": { "line": 37, "column": 5 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": true, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 37, "column": 7 }, "end": { "line": 37, "column": 9 } } }, "loc": { "start": { "line": 37, "column": 5 }, "end": { "line": 37, "column": 9 } } }, "loc": { "start": { "line": 37, "column": 5 }, "end": { "line": 37, "column": 9 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 37, "column": 3 }, "end": { "line": 37, "column": 9 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 38, "column": 10 }, "end": { "line": 38, "column": 11 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": true, "async": true, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 38, "column": 13 }, "end": { "line": 38, "column": 15 } } }, "loc": { "start": { "line": 38, "column": 11 }, "end": { "line": 38, "column": 15 } } }, "loc": { "start": { "line": 38, "column": 11 }, "end": { "line": 38, "column": 15 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 38, "column": 3 }, "end": { "line": 38, "column": 15 } } }, { "type": "MethodDefinition", "key": { "type": "StringLiteral", "value": "bar", "loc": { "start": { "line": 39, "column": 5 }, "end": { "line": 39, "column": 10 } } }, "kind": "method", "static": false, "optional": false, "computed": true, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": true, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 39, "column": 13 }, "end": { "line": 39, "column": 15 } } }, "loc": { "start": { "line": 39, "column": 11 }, "end": { "line": 39, "column": 15 } } }, "loc": { "start": { "line": 39, "column": 11 }, "end": { "line": 39, "column": 15 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 39, "column": 3 }, "end": { "line": 39, "column": 15 } } }, { "type": "MethodDefinition", "key": { "type": "StringLiteral", "value": "baz", "loc": { "start": { "line": 40, "column": 12 }, "end": { "line": 40, "column": 17 } } }, "kind": "method", "static": false, "optional": false, "computed": true, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": true, "async": true, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 40, "column": 20 }, "end": { "line": 40, "column": 22 } } }, "loc": { "start": { "line": 40, "column": 18 }, "end": { "line": 40, "column": 22 } } }, "loc": { "start": { "line": 40, "column": 18 }, "end": { "line": 40, "column": 22 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 40, "column": 3 }, "end": { "line": 40, "column": 22 } } } ], "indexSignatures": [], "loc": { "start": { "line": 29, "column": 9 }, "end": { "line": 41, "column": 2 } } }, "decorators": [], "loc": { "start": { "line": 29, "column": 1 }, "end": { "line": 41, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 41, "column": 2 } } }