{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "ExampleClass1", "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 20 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 23 } } }, "kind": "constructor", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [ { "type": "AssignmentPattern", "left": { "type": "Identifier", "name": "declare", "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 16 } } }, "right": { "type": "NumberLiteral", "value": 5, "loc": { "start": { "line": 19, "column": 19 }, "end": { "line": 19, "column": 20 } } }, "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 20 } } }, { "type": "AssignmentPattern", "left": { "type": "Identifier", "name": "async", "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 20, "column": 16 }, "end": { "line": 20, "column": 22 } } }, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 14 } } }, "right": { "type": "StringLiteral", "value": "async", "loc": { "start": { "line": 20, "column": 25 }, "end": { "line": 20, "column": 32 } } }, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 32 } } }, { "type": "TSParameterProperty", "accessibility": "public", "readonly": false, "static": false, "export": false, "parameter": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 21, "column": 16 }, "end": { "line": 21, "column": 17 } } }, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 17 } } }, { "type": "TSParameterProperty", "accessibility": "private", "readonly": false, "static": false, "export": false, "parameter": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 18 } } }, "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 22, "column": 18 } } }, { "type": "TSParameterProperty", "accessibility": "protected", "readonly": false, "static": false, "export": false, "parameter": { "type": "Identifier", "name": "c", "loc": { "start": { "line": 23, "column": 19 }, "end": { "line": 23, "column": 20 } } }, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 20 } } }, { "type": "TSParameterProperty", "accessibility": "undefined", "readonly": true, "static": false, "export": false, "parameter": { "type": "Identifier", "name": "d", "loc": { "start": { "line": 24, "column": 18 }, "end": { "line": 24, "column": 19 } } }, "loc": { "start": { "line": 24, "column": 9 }, "end": { "line": 24, "column": 19 } } }, { "type": "TSParameterProperty", "accessibility": "public", "readonly": true, "static": false, "export": false, "parameter": { "type": "Identifier", "name": "e", "loc": { "start": { "line": 25, "column": 25 }, "end": { "line": 25, "column": 26 } } }, "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 26 } } }, { "type": "TSParameterProperty", "accessibility": "private", "readonly": true, "static": false, "export": false, "parameter": { "type": "Identifier", "name": "f", "loc": { "start": { "line": 26, "column": 26 }, "end": { "line": 26, "column": 27 } } }, "loc": { "start": { "line": 26, "column": 9 }, "end": { "line": 26, "column": 27 } } }, { "type": "TSParameterProperty", "accessibility": "protected", "readonly": true, "static": false, "export": false, "parameter": { "type": "Identifier", "name": "g", "loc": { "start": { "line": 27, "column": 28 }, "end": { "line": 27, "column": 29 } } }, "loc": { "start": { "line": 27, "column": 9 }, "end": { "line": 27, "column": 29 } } }, { "type": "TSParameterProperty", "accessibility": "public", "readonly": true, "static": false, "export": false, "parameter": { "type": "AssignmentPattern", "left": { "type": "Identifier", "name": "readonly", "typeAnnotation": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 28, "column": 35 }, "end": { "line": 28, "column": 42 } } }, "loc": { "start": { "line": 28, "column": 25 }, "end": { "line": 28, "column": 33 } } }, "right": { "type": "BooleanLiteral", "value": false, "loc": { "start": { "line": 28, "column": 45 }, "end": { "line": 28, "column": 50 } } }, "loc": { "start": { "line": 28, "column": 25 }, "end": { "line": 28, "column": 50 } } }, "loc": { "start": { "line": 28, "column": 9 }, "end": { "line": 28, "column": 50 } } }, { "type": "ArrayPattern", "elements": [ { "type": "Identifier", "name": "h", "loc": { "start": { "line": 29, "column": 10 }, "end": { "line": 29, "column": 11 } } } ], "loc": { "start": { "line": 29, "column": 9 }, "end": { "line": 29, "column": 12 } } }, { "type": "ObjectPattern", "properties": [ { "type": "Property", "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "name": "i", "loc": { "start": { "line": 30, "column": 11 }, "end": { "line": 30, "column": 12 } } }, "value": { "type": "Identifier", "name": "i", "loc": { "start": { "line": 30, "column": 11 }, "end": { "line": 30, "column": 12 } } }, "kind": "init", "loc": { "start": { "line": 30, "column": 11 }, "end": { "line": 30, "column": 12 } } } ], "loc": { "start": { "line": 30, "column": 9 }, "end": { "line": 30, "column": 14 } } }, { "type": "AssignmentPattern", "left": { "type": "ArrayPattern", "elements": [ { "type": "Identifier", "name": "j", "loc": { "start": { "line": 31, "column": 10 }, "end": { "line": 31, "column": 11 } } } ], "loc": { "start": { "line": 31, "column": 9 }, "end": { "line": 31, "column": 12 } } }, "right": { "type": "ArrayExpression", "elements": [ { "type": "StringLiteral", "value": "foo", "loc": { "start": { "line": 31, "column": 16 }, "end": { "line": 31, "column": 21 } } } ], "loc": { "start": { "line": 31, "column": 15 }, "end": { "line": 31, "column": 22 } } }, "loc": { "start": { "line": 31, "column": 9 }, "end": { "line": 31, "column": 22 } } }, { "type": "AssignmentPattern", "left": { "type": "ObjectPattern", "properties": [ { "type": "Property", "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "name": "k", "loc": { "start": { "line": 32, "column": 11 }, "end": { "line": 32, "column": 12 } } }, "value": { "type": "Identifier", "name": "k", "loc": { "start": { "line": 32, "column": 11 }, "end": { "line": 32, "column": 12 } } }, "kind": "init", "loc": { "start": { "line": 32, "column": 11 }, "end": { "line": 32, "column": 12 } } } ], "loc": { "start": { "line": 32, "column": 9 }, "end": { "line": 32, "column": 14 } } }, "right": { "type": "ObjectExpression", "properties": [ { "type": "Property", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "k", "loc": { "start": { "line": 32, "column": 19 }, "end": { "line": 32, "column": 20 } } }, "value": { "type": "NumberLiteral", "value": 5, "loc": { "start": { "line": 32, "column": 22 }, "end": { "line": 32, "column": 23 } } }, "kind": "init", "loc": { "start": { "line": 32, "column": 19 }, "end": { "line": 32, "column": 23 } } } ], "loc": { "start": { "line": 32, "column": 17 }, "end": { "line": 32, "column": 25 } } }, "loc": { "start": { "line": 32, "column": 9 }, "end": { "line": 32, "column": 25 } } }, { "type": "RestElement", "argument": { "type": "Identifier", "name": "rest", "loc": { "start": { "line": 33, "column": 12 }, "end": { "line": 33, "column": 16 } } }, "loc": { "start": { "line": 33, "column": 9 }, "end": { "line": 33, "column": 16 } } } ], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 33, "column": 18 }, "end": { "line": 33, "column": 21 } } }, "loc": { "start": { "line": 18, "column": 23 }, "end": { "line": 33, "column": 21 } } }, "loc": { "start": { "line": 18, "column": 23 }, "end": { "line": 33, "column": 21 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 33, "column": 21 } } }, "body": [], "indexSignatures": [], "loc": { "start": { "line": 17, "column": 21 }, "end": { "line": 34, "column": 2 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 34, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "ExampleClass2", "loc": { "start": { "line": 36, "column": 7 }, "end": { "line": 36, "column": 20 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 37, "column": 12 }, "end": { "line": 37, "column": 23 } } }, "kind": "constructor", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "readonly", "loc": { "start": { "line": 37, "column": 24 }, "end": { "line": 37, "column": 32 } } } ], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 37, "column": 34 }, "end": { "line": 37, "column": 37 } } }, "loc": { "start": { "line": 37, "column": 23 }, "end": { "line": 37, "column": 37 } } }, "loc": { "start": { "line": 37, "column": 23 }, "end": { "line": 37, "column": 37 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 37, "column": 5 }, "end": { "line": 37, "column": 37 } } }, "body": [], "indexSignatures": [], "loc": { "start": { "line": 36, "column": 21 }, "end": { "line": 38, "column": 2 } } }, "decorators": [], "loc": { "start": { "line": 36, "column": 1 }, "end": { "line": 38, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "ExampleClass3", "loc": { "start": { "line": 40, "column": 7 }, "end": { "line": 40, "column": 20 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 41, "column": 12 }, "end": { "line": 41, "column": 23 } } }, "kind": "constructor", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [ { "type": "TSParameterProperty", "accessibility": "public", "readonly": false, "static": false, "export": false, "parameter": { "type": "Identifier", "name": "readonly", "loc": { "start": { "line": 41, "column": 31 }, "end": { "line": 41, "column": 39 } } }, "loc": { "start": { "line": 41, "column": 24 }, "end": { "line": 41, "column": 39 } } } ], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 41, "column": 41 }, "end": { "line": 41, "column": 44 } } }, "loc": { "start": { "line": 41, "column": 23 }, "end": { "line": 41, "column": 44 } } }, "loc": { "start": { "line": 41, "column": 23 }, "end": { "line": 41, "column": 44 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 41, "column": 5 }, "end": { "line": 41, "column": 44 } } }, "body": [], "indexSignatures": [], "loc": { "start": { "line": 40, "column": 21 }, "end": { "line": 42, "column": 2 } } }, "decorators": [], "loc": { "start": { "line": 40, "column": 1 }, "end": { "line": 42, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "ExampleClass4", "loc": { "start": { "line": 44, "column": 7 }, "end": { "line": 44, "column": 20 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 45, "column": 12 }, "end": { "line": 45, "column": 23 } } }, "kind": "constructor", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [ { "type": "TSParameterProperty", "accessibility": "undefined", "readonly": true, "static": false, "export": false, "parameter": { "type": "Identifier", "name": "readonly", "loc": { "start": { "line": 45, "column": 33 }, "end": { "line": 45, "column": 41 } } }, "loc": { "start": { "line": 45, "column": 24 }, "end": { "line": 45, "column": 41 } } } ], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 45, "column": 43 }, "end": { "line": 45, "column": 46 } } }, "loc": { "start": { "line": 45, "column": 23 }, "end": { "line": 45, "column": 46 } } }, "loc": { "start": { "line": 45, "column": 23 }, "end": { "line": 45, "column": 46 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 45, "column": 5 }, "end": { "line": 45, "column": 46 } } }, "body": [], "indexSignatures": [], "loc": { "start": { "line": 44, "column": 21 }, "end": { "line": 46, "column": 2 } } }, "decorators": [], "loc": { "start": { "line": 44, "column": 1 }, "end": { "line": 46, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 46, "column": 2 } } }