{ "type": "Program", "statements": [ { "type": "TSEnumDeclaration", "id": { "type": "Identifier", "name": "E", "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 13 } } }, "members": [ { "type": "TSEnumMember", "id": { "type": "Identifier", "name": "A", "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 6 } } }, "initializer": { "type": "StringLiteral", "value": "Hello", "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 16 } } }, "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 17 } } }, { "type": "TSEnumMember", "id": { "type": "Identifier", "name": "B", "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 6 } } }, "initializer": { "type": "StringLiteral", "value": "world!", "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 17 } } }, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 19, "column": 2 } } } ], "const": true, "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 19, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Anno1", "loc": { "start": { "line": 21, "column": 12 }, "end": { "line": 21, "column": 17 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "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": "Program", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "annotations": [], "loc": { "start": { "line": 21, "column": 2 }, "end": { "line": 24, "column": 2 } } }, "body": [ { "type": "ClassProperty", "key": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 6 } } }, "value": { "type": "ArrayExpression", "elements": [ { "type": "ArrayExpression", "elements": [ { "type": "NewExpression", "callee": { "type": "Identifier", "name": "Array", "loc": { "start": { "line": 23, "column": 24 }, "end": { "line": 23, "column": 29 } } }, "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "E", "loc": { "start": { "line": 23, "column": 30 }, "end": { "line": 23, "column": 31 } } }, "loc": { "start": { "line": 23, "column": 30 }, "end": { "line": 23, "column": 31 } } } ], "loc": { "start": { "line": 23, "column": 29 }, "end": { "line": 23, "column": 32 } } }, "arguments": [ { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 23, "column": 33 }, "end": { "line": 23, "column": 34 } } } ], "loc": { "start": { "line": 23, "column": 20 }, "end": { "line": 23, "column": 35 } } } ], "loc": { "start": { "line": 23, "column": 19 }, "end": { "line": 23, "column": 36 } } } ], "loc": { "start": { "line": 23, "column": 18 }, "end": { "line": 23, "column": 37 } } }, "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "TSArrayType", "elementType": { "type": "TSArrayType", "elementType": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "E", "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 9 } } }, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 9 } } }, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 11 } } }, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 13 } } }, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 15 } } }, "decorators": [], "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 37 } } } ], "indexSignatures": [], "loc": { "start": { "line": 21, "column": 18 }, "end": { "line": 24, "column": 2 } } }, "decorators": [], "isAnnotationDeclaration": true, "loc": { "start": { "line": 21, "column": 2 }, "end": { "line": 24, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Anno2", "loc": { "start": { "line": 26, "column": 12 }, "end": { "line": 26, "column": 17 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "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": "Program", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "annotations": [], "loc": { "start": { "line": 26, "column": 2 }, "end": { "line": 29, "column": 2 } } }, "body": [ { "type": "ClassProperty", "key": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 28, "column": 5 }, "end": { "line": 28, "column": 6 } } }, "value": { "type": "ArrayExpression", "elements": [ { "type": "ArrayExpression", "elements": [ { "type": "NewExpression", "callee": { "type": "Identifier", "name": "Array", "loc": { "start": { "line": 28, "column": 24 }, "end": { "line": 28, "column": 29 } } }, "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "E", "loc": { "start": { "line": 28, "column": 30 }, "end": { "line": 28, "column": 31 } } }, "loc": { "start": { "line": 28, "column": 30 }, "end": { "line": 28, "column": 31 } } } ], "loc": { "start": { "line": 28, "column": 29 }, "end": { "line": 28, "column": 32 } } }, "arguments": [ { "type": "NumberLiteral", "value": 3, "loc": { "start": { "line": 28, "column": 33 }, "end": { "line": 28, "column": 34 } } } ], "loc": { "start": { "line": 28, "column": 20 }, "end": { "line": 28, "column": 35 } } } ], "loc": { "start": { "line": 28, "column": 19 }, "end": { "line": 28, "column": 36 } } } ], "loc": { "start": { "line": 28, "column": 18 }, "end": { "line": 28, "column": 37 } } }, "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "TSArrayType", "elementType": { "type": "TSArrayType", "elementType": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "E", "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 9 } } }, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 9 } } }, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 11 } } }, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 13 } } }, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 15 } } }, "decorators": [], "loc": { "start": { "line": 28, "column": 5 }, "end": { "line": 28, "column": 37 } } } ], "indexSignatures": [], "loc": { "start": { "line": 26, "column": 18 }, "end": { "line": 29, "column": 2 } } }, "decorators": [], "isAnnotationDeclaration": true, "loc": { "start": { "line": 26, "column": 2 }, "end": { "line": 29, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Anno3", "loc": { "start": { "line": 31, "column": 12 }, "end": { "line": 31, "column": 17 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "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": "Program", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "annotations": [], "loc": { "start": { "line": 31, "column": 2 }, "end": { "line": 33, "column": 2 } } }, "body": [ { "type": "ClassProperty", "key": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 32, "column": 5 }, "end": { "line": 32, "column": 6 } } }, "value": { "type": "ArrayExpression", "elements": [ { "type": "ArrayExpression", "elements": [ { "type": "ArrayExpression", "elements": [ { "type": "StringLiteral", "value": "Hello", "loc": { "start": { "line": 32, "column": 21 }, "end": { "line": 32, "column": 28 } } }, { "type": "StringLiteral", "value": "world!", "loc": { "start": { "line": 32, "column": 30 }, "end": { "line": 32, "column": 38 } } }, { "type": "StringLiteral", "value": "Hello", "loc": { "start": { "line": 32, "column": 40 }, "end": { "line": 32, "column": 47 } } } ], "loc": { "start": { "line": 32, "column": 20 }, "end": { "line": 32, "column": 48 } } } ], "loc": { "start": { "line": 32, "column": 19 }, "end": { "line": 32, "column": 49 } } } ], "loc": { "start": { "line": 32, "column": 18 }, "end": { "line": 32, "column": 50 } } }, "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "TSArrayType", "elementType": { "type": "TSArrayType", "elementType": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "E", "loc": { "start": { "line": 32, "column": 8 }, "end": { "line": 32, "column": 9 } } }, "loc": { "start": { "line": 32, "column": 8 }, "end": { "line": 32, "column": 9 } } }, "loc": { "start": { "line": 32, "column": 8 }, "end": { "line": 32, "column": 11 } } }, "loc": { "start": { "line": 32, "column": 8 }, "end": { "line": 32, "column": 13 } } }, "loc": { "start": { "line": 32, "column": 8 }, "end": { "line": 32, "column": 15 } } }, "decorators": [], "loc": { "start": { "line": 32, "column": 5 }, "end": { "line": 32, "column": 50 } } } ], "indexSignatures": [], "loc": { "start": { "line": 31, "column": 18 }, "end": { "line": 33, "column": 2 } } }, "decorators": [], "isAnnotationDeclaration": true, "loc": { "start": { "line": 31, "column": 2 }, "end": { "line": 33, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 34, "column": 1 } } }