1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "ClassDeclaration", 6 "definition": { 7 "id": { 8 "type": "Identifier", 9 "name": "A", 10 "decorators": [], 11 "loc": { 12 "start": { 13 "line": 17, 14 "column": 7, 15 "program": "test_class_property.ts" 16 }, 17 "end": { 18 "line": 17, 19 "column": 8, 20 "program": "test_class_property.ts" 21 } 22 } 23 }, 24 "superClass": null, 25 "implements": [], 26 "constructor": { 27 "type": "MethodDefinition", 28 "key": { 29 "type": "Identifier", 30 "name": "constructor", 31 "decorators": [], 32 "loc": { 33 "start": { 34 "line": 17, 35 "column": 10, 36 "program": "test_class_property.ts" 37 }, 38 "end": { 39 "line": 17, 40 "column": 10, 41 "program": "test_class_property.ts" 42 } 43 } 44 }, 45 "kind": "constructor", 46 "static": false, 47 "optional": false, 48 "computed": false, 49 "value": { 50 "type": "FunctionExpression", 51 "function": { 52 "type": "ScriptFunction", 53 "id": null, 54 "generator": false, 55 "async": false, 56 "expression": false, 57 "params": [], 58 "body": { 59 "type": "BlockStatement", 60 "statements": [], 61 "loc": { 62 "start": { 63 "line": 17, 64 "column": 10, 65 "program": "test_class_property.ts" 66 }, 67 "end": { 68 "line": 17, 69 "column": 10, 70 "program": "test_class_property.ts" 71 } 72 } 73 }, 74 "loc": { 75 "start": { 76 "line": 17, 77 "column": 10, 78 "program": "test_class_property.ts" 79 }, 80 "end": { 81 "line": 17, 82 "column": 10, 83 "program": "test_class_property.ts" 84 } 85 } 86 }, 87 "loc": { 88 "start": { 89 "line": 17, 90 "column": 10, 91 "program": "test_class_property.ts" 92 }, 93 "end": { 94 "line": 17, 95 "column": 10, 96 "program": "test_class_property.ts" 97 } 98 } 99 }, 100 "overloads": [], 101 "decorators": [], 102 "loc": { 103 "start": { 104 "line": 1, 105 "column": 1, 106 "program": null 107 }, 108 "end": { 109 "line": 1, 110 "column": 1, 111 "program": null 112 } 113 } 114 }, 115 "body": [ 116 { 117 "type": "ClassProperty", 118 "key": { 119 "type": "Identifier", 120 "name": "a", 121 "decorators": [], 122 "loc": { 123 "start": { 124 "line": 18, 125 "column": 5, 126 "program": "test_class_property.ts" 127 }, 128 "end": { 129 "line": 18, 130 "column": 6, 131 "program": "test_class_property.ts" 132 } 133 } 134 }, 135 "value": { 136 "type": "NumberLiteral", 137 "value": 1, 138 "loc": { 139 "start": { 140 "line": 18, 141 "column": 14, 142 "program": "test_class_property.ts" 143 }, 144 "end": { 145 "line": 18, 146 "column": 15, 147 "program": "test_class_property.ts" 148 } 149 } 150 }, 151 "static": false, 152 "readonly": false, 153 "declare": false, 154 "optional": false, 155 "computed": false, 156 "typeAnnotation": { 157 "type": "NamedType", 158 "name": { 159 "type": "Identifier", 160 "name": "i32", 161 "decorators": [], 162 "loc": { 163 "start": { 164 "line": 18, 165 "column": 8, 166 "program": "test_class_property.ts" 167 }, 168 "end": { 169 "line": 18, 170 "column": 11, 171 "program": "test_class_property.ts" 172 } 173 } 174 }, 175 "isNullable": false, 176 "loc": { 177 "start": { 178 "line": 18, 179 "column": 8, 180 "program": "test_class_property.ts" 181 }, 182 "end": { 183 "line": 18, 184 "column": 11, 185 "program": "test_class_property.ts" 186 } 187 } 188 }, 189 "definite": false, 190 "decorators": [], 191 "loc": { 192 "start": { 193 "line": 18, 194 "column": 5, 195 "program": "test_class_property.ts" 196 }, 197 "end": { 198 "line": 18, 199 "column": 15, 200 "program": "test_class_property.ts" 201 } 202 } 203 } 204 ], 205 "loc": { 206 "start": { 207 "line": 17, 208 "column": 9, 209 "program": "test_class_property.ts" 210 }, 211 "end": { 212 "line": 20, 213 "column": 1, 214 "program": "test_class_property.ts" 215 } 216 } 217 }, 218 "loc": { 219 "start": { 220 "line": 17, 221 "column": 1, 222 "program": "test_class_property.ts" 223 }, 224 "end": { 225 "line": 20, 226 "column": 1, 227 "program": "test_class_property.ts" 228 } 229 } 230 } 231 ], 232 "loc": { 233 "start": { 234 "line": 1, 235 "column": 1, 236 "program": "test_class_property.ts" 237 }, 238 "end": { 239 "line": 20, 240 "column": 1, 241 "program": "test_class_property.ts" 242 } 243 } 244} 245