{
"type": "Program",
"statements": [
{
"type": "ClassDeclaration",
"definition": {
"id": {
"type": "Identifier",
"name": "A",
"loc": {
"start": {
"line": 16,
"column": 7
},
"end": {
"line": 16,
"column": 8
}
}
},
"superClass": null,
"implements": [],
"constructor": {
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "constructor",
"loc": {
"start": {
"line": 17,
"column": 5
},
"end": {
"line": 17,
"column": 16
}
}
},
"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": 17,
"column": 19
},
"end": {
"line": 17,
"column": 21
}
}
},
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 21
}
}
},
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 21
}
}
},
"overloads": [],
"decorators": [],
"annotations": [],
"loc": {
"start": {
"line": 17,
"column": 5
},
"end": {
"line": 17,
"column": 21
}
}
},
"body": [
{
"type": "ClassProperty",
"key": {
"type": "PrivateIdentifier",
"prefix": "#",
"name": "field",
"loc": {
"start": {
"line": 18,
"column": 5
},
"end": {
"line": 18,
"column": 11
}
}
},
"value": {
"type": "NumberLiteral",
"value": 123,
"loc": {
"start": {
"line": 18,
"column": 14
},
"end": {
"line": 18,
"column": 17
}
}
},
"static": false,
"readonly": false,
"declare": false,
"optional": false,
"computed": false,
"decorators": [],
"loc": {
"start": {
"line": 18,
"column": 5
},
"end": {
"line": 18,
"column": 17
}
}
},
{
"type": "MethodDefinition",
"key": {
"type": "PrivateIdentifier",
"prefix": "#",
"name": "method",
"loc": {
"start": {
"line": 19,
"column": 5
},
"end": {
"line": 19,
"column": 12
}
}
},
"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": 15
},
"end": {
"line": 19,
"column": 17
}
}
},
"loc": {
"start": {
"line": 19,
"column": 12
},
"end": {
"line": 19,
"column": 17
}
}
},
"loc": {
"start": {
"line": 19,
"column": 12
},
"end": {
"line": 19,
"column": 17
}
}
},
"overloads": [],
"decorators": [],
"annotations": [],
"loc": {
"start": {
"line": 19,
"column": 5
},
"end": {
"line": 19,
"column": 17
}
}
},
{
"type": "ClassProperty",
"key": {
"type": "PrivateIdentifier",
"prefix": "#",
"name": "sField",
"loc": {
"start": {
"line": 20,
"column": 12
},
"end": {
"line": 20,
"column": 19
}
}
},
"value": {
"type": "StringLiteral",
"value": "hello world",
"loc": {
"start": {
"line": 20,
"column": 22
},
"end": {
"line": 20,
"column": 35
}
}
},
"static": true,
"readonly": false,
"declare": false,
"optional": false,
"computed": false,
"decorators": [],
"loc": {
"start": {
"line": 20,
"column": 5
},
"end": {
"line": 20,
"column": 35
}
}
},
{
"type": "MethodDefinition",
"key": {
"type": "PrivateIdentifier",
"prefix": "#",
"name": "sMethod",
"loc": {
"start": {
"line": 21,
"column": 12
},
"end": {
"line": 21,
"column": 20
}
}
},
"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": 21,
"column": 23
},
"end": {
"line": 21,
"column": 25
}
}
},
"loc": {
"start": {
"line": 21,
"column": 20
},
"end": {
"line": 21,
"column": 25
}
}
},
"loc": {
"start": {
"line": 21,
"column": 20
},
"end": {
"line": 21,
"column": 25
}
}
},
"overloads": [],
"decorators": [],
"annotations": [],
"loc": {
"start": {
"line": 21,
"column": 5
},
"end": {
"line": 21,
"column": 25
}
}
},
{
"type": "MethodDefinition",
"key": {
"type": "PrivateIdentifier",
"prefix": "#",
"name": "acc",
"loc": {
"start": {
"line": 22,
"column": 9
},
"end": {
"line": 22,
"column": 13
}
}
},
"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": [
{
"type": "ReturnStatement",
"argument": {
"type": "StringLiteral",
"value": "",
"loc": {
"start": {
"line": 22,
"column": 25
},
"end": {
"line": 22,
"column": 27
}
}
},
"loc": {
"start": {
"line": 22,
"column": 18
},
"end": {
"line": 22,
"column": 28
}
}
}
],
"loc": {
"start": {
"line": 22,
"column": 16
},
"end": {
"line": 22,
"column": 30
}
}
},
"loc": {
"start": {
"line": 22,
"column": 13
},
"end": {
"line": 22,
"column": 30
}
}
},
"loc": {
"start": {
"line": 22,
"column": 13
},
"end": {
"line": 22,
"column": 30
}
}
},
"overloads": [],
"decorators": [],
"annotations": [],
"loc": {
"start": {
"line": 22,
"column": 5
},
"end": {
"line": 22,
"column": 30
}
}
},
{
"type": "MethodDefinition",
"key": {
"type": "PrivateIdentifier",
"prefix": "#",
"name": "acc",
"loc": {
"start": {
"line": 23,
"column": 9
},
"end": {
"line": 23,
"column": 13
}
}
},
"kind": "set",
"static": false,
"optional": false,
"computed": false,
"value": {
"type": "FunctionExpression",
"function": {
"type": "ScriptFunction",
"id": null,
"generator": false,
"async": false,
"expression": false,
"params": [
{
"type": "Identifier",
"name": "x",
"typeAnnotation": {
"type": "TSStringKeyword",
"loc": {
"start": {
"line": 23,
"column": 17
},
"end": {
"line": 23,
"column": 23
}
}
},
"loc": {
"start": {
"line": 23,
"column": 14
},
"end": {
"line": 23,
"column": 15
}
}
}
],
"body": {
"type": "BlockStatement",
"statements": [],
"loc": {
"start": {
"line": 23,
"column": 25
},
"end": {
"line": 23,
"column": 27
}
}
},
"loc": {
"start": {
"line": 23,
"column": 13
},
"end": {
"line": 23,
"column": 27
}
}
},
"loc": {
"start": {
"line": 23,
"column": 13
},
"end": {
"line": 23,
"column": 27
}
}
},
"overloads": [],
"decorators": [],
"annotations": [],
"loc": {
"start": {
"line": 23,
"column": 5
},
"end": {
"line": 23,
"column": 27
}
}
},
{
"type": "MethodDefinition",
"key": {
"type": "PrivateIdentifier",
"prefix": "#",
"name": "sAcc",
"loc": {
"start": {
"line": 24,
"column": 16
},
"end": {
"line": 24,
"column": 21
}
}
},
"kind": "get",
"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": [
{
"type": "ReturnStatement",
"argument": {
"type": "NumberLiteral",
"value": 0,
"loc": {
"start": {
"line": 24,
"column": 33
},
"end": {
"line": 24,
"column": 34
}
}
},
"loc": {
"start": {
"line": 24,
"column": 26
},
"end": {
"line": 24,
"column": 35
}
}
}
],
"loc": {
"start": {
"line": 24,
"column": 24
},
"end": {
"line": 24,
"column": 37
}
}
},
"loc": {
"start": {
"line": 24,
"column": 21
},
"end": {
"line": 24,
"column": 37
}
}
},
"loc": {
"start": {
"line": 24,
"column": 21
},
"end": {
"line": 24,
"column": 37
}
}
},
"overloads": [],
"decorators": [],
"annotations": [],
"loc": {
"start": {
"line": 24,
"column": 5
},
"end": {
"line": 24,
"column": 37
}
}
},
{
"type": "MethodDefinition",
"key": {
"type": "PrivateIdentifier",
"prefix": "#",
"name": "sAcc",
"loc": {
"start": {
"line": 25,
"column": 16
},
"end": {
"line": 25,
"column": 21
}
}
},
"kind": "set",
"static": true,
"optional": false,
"computed": false,
"value": {
"type": "FunctionExpression",
"function": {
"type": "ScriptFunction",
"id": null,
"generator": false,
"async": false,
"expression": false,
"params": [
{
"type": "Identifier",
"name": "x",
"typeAnnotation": {
"type": "TSNumberKeyword",
"loc": {
"start": {
"line": 25,
"column": 25
},
"end": {
"line": 25,
"column": 31
}
}
},
"loc": {
"start": {
"line": 25,
"column": 22
},
"end": {
"line": 25,
"column": 23
}
}
}
],
"body": {
"type": "BlockStatement",
"statements": [],
"loc": {
"start": {
"line": 25,
"column": 33
},
"end": {
"line": 25,
"column": 35
}
}
},
"loc": {
"start": {
"line": 25,
"column": 21
},
"end": {
"line": 25,
"column": 35
}
}
},
"loc": {
"start": {
"line": 25,
"column": 21
},
"end": {
"line": 25,
"column": 35
}
}
},
"overloads": [],
"decorators": [],
"annotations": [],
"loc": {
"start": {
"line": 25,
"column": 5
},
"end": {
"line": 25,
"column": 35
}
}
}
],
"indexSignatures": [],
"loc": {
"start": {
"line": 16,
"column": 9
},
"end": {
"line": 26,
"column": 2
}
}
},
"decorators": [],
"isAnnotationDeclaration": false,
"loc": {
"start": {
"line": 16,
"column": 1
},
"end": {
"line": 26,
"column": 2
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 27,
"column": 1
}
}
}