1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "TSEnumDeclaration", 6 "id": { 7 "type": "Identifier", 8 "name": "Foo", 9 "decorators": [], 10 "loc": { 11 "start": { 12 "line": 17, 13 "column": 6, 14 "program": "test-enum-declaration.ts" 15 }, 16 "end": { 17 "line": 17, 18 "column": 9, 19 "program": "test-enum-declaration.ts" 20 } 21 } 22 }, 23 "members": [ 24 { 25 "type": "TSEnumMember", 26 "id": { 27 "type": "Identifier", 28 "name": "A", 29 "decorators": [], 30 "loc": { 31 "start": { 32 "line": 18, 33 "column": 5, 34 "program": "test-enum-declaration.ts" 35 }, 36 "end": { 37 "line": 18, 38 "column": 6, 39 "program": "test-enum-declaration.ts" 40 } 41 } 42 }, 43 "loc": { 44 "start": { 45 "line": 18, 46 "column": 6, 47 "program": "test-enum-declaration.ts" 48 }, 49 "end": { 50 "line": 18, 51 "column": 7, 52 "program": "test-enum-declaration.ts" 53 } 54 } 55 }, 56 { 57 "type": "TSEnumMember", 58 "id": { 59 "type": "Identifier", 60 "name": "B", 61 "decorators": [], 62 "loc": { 63 "start": { 64 "line": 19, 65 "column": 5, 66 "program": "test-enum-declaration.ts" 67 }, 68 "end": { 69 "line": 19, 70 "column": 6, 71 "program": "test-enum-declaration.ts" 72 } 73 } 74 }, 75 "initializer": { 76 "type": "BinaryExpression", 77 "operator": "<<", 78 "left": { 79 "type": "NumberLiteral", 80 "value": 5, 81 "loc": { 82 "start": { 83 "line": 19, 84 "column": 9, 85 "program": "test-enum-declaration.ts" 86 }, 87 "end": { 88 "line": 19, 89 "column": 10, 90 "program": "test-enum-declaration.ts" 91 } 92 } 93 }, 94 "right": { 95 "type": "NumberLiteral", 96 "value": 4, 97 "loc": { 98 "start": { 99 "line": 19, 100 "column": 14, 101 "program": "test-enum-declaration.ts" 102 }, 103 "end": { 104 "line": 19, 105 "column": 15, 106 "program": "test-enum-declaration.ts" 107 } 108 } 109 }, 110 "loc": { 111 "start": { 112 "line": 19, 113 "column": 9, 114 "program": "test-enum-declaration.ts" 115 }, 116 "end": { 117 "line": 19, 118 "column": 15, 119 "program": "test-enum-declaration.ts" 120 } 121 } 122 }, 123 "loc": { 124 "start": { 125 "line": 19, 126 "column": 9, 127 "program": "test-enum-declaration.ts" 128 }, 129 "end": { 130 "line": 19, 131 "column": 16, 132 "program": "test-enum-declaration.ts" 133 } 134 } 135 }, 136 { 137 "type": "TSEnumMember", 138 "id": { 139 "type": "Identifier", 140 "name": "C", 141 "decorators": [], 142 "loc": { 143 "start": { 144 "line": 20, 145 "column": 5, 146 "program": "test-enum-declaration.ts" 147 }, 148 "end": { 149 "line": 20, 150 "column": 6, 151 "program": "test-enum-declaration.ts" 152 } 153 } 154 }, 155 "loc": { 156 "start": { 157 "line": 20, 158 "column": 6, 159 "program": "test-enum-declaration.ts" 160 }, 161 "end": { 162 "line": 20, 163 "column": 7, 164 "program": "test-enum-declaration.ts" 165 } 166 } 167 }, 168 { 169 "type": "TSEnumMember", 170 "id": { 171 "type": "Identifier", 172 "name": "D", 173 "decorators": [], 174 "loc": { 175 "start": { 176 "line": 21, 177 "column": 5, 178 "program": "test-enum-declaration.ts" 179 }, 180 "end": { 181 "line": 21, 182 "column": 6, 183 "program": "test-enum-declaration.ts" 184 } 185 } 186 }, 187 "initializer": { 188 "type": "BinaryExpression", 189 "operator": "|", 190 "left": { 191 "type": "Identifier", 192 "name": "B", 193 "decorators": [], 194 "loc": { 195 "start": { 196 "line": 21, 197 "column": 9, 198 "program": "test-enum-declaration.ts" 199 }, 200 "end": { 201 "line": 21, 202 "column": 10, 203 "program": "test-enum-declaration.ts" 204 } 205 } 206 }, 207 "right": { 208 "type": "Identifier", 209 "name": "C", 210 "decorators": [], 211 "loc": { 212 "start": { 213 "line": 21, 214 "column": 13, 215 "program": "test-enum-declaration.ts" 216 }, 217 "end": { 218 "line": 21, 219 "column": 14, 220 "program": "test-enum-declaration.ts" 221 } 222 } 223 }, 224 "loc": { 225 "start": { 226 "line": 21, 227 "column": 9, 228 "program": "test-enum-declaration.ts" 229 }, 230 "end": { 231 "line": 21, 232 "column": 14, 233 "program": "test-enum-declaration.ts" 234 } 235 } 236 }, 237 "loc": { 238 "start": { 239 "line": 21, 240 "column": 9, 241 "program": "test-enum-declaration.ts" 242 }, 243 "end": { 244 "line": 21, 245 "column": 15, 246 "program": "test-enum-declaration.ts" 247 } 248 } 249 }, 250 { 251 "type": "TSEnumMember", 252 "id": { 253 "type": "Identifier", 254 "name": "E", 255 "decorators": [], 256 "loc": { 257 "start": { 258 "line": 22, 259 "column": 5, 260 "program": "test-enum-declaration.ts" 261 }, 262 "end": { 263 "line": 22, 264 "column": 6, 265 "program": "test-enum-declaration.ts" 266 } 267 } 268 }, 269 "initializer": { 270 "type": "NumberLiteral", 271 "value": 6, 272 "loc": { 273 "start": { 274 "line": 22, 275 "column": 9, 276 "program": "test-enum-declaration.ts" 277 }, 278 "end": { 279 "line": 22, 280 "column": 10, 281 "program": "test-enum-declaration.ts" 282 } 283 } 284 }, 285 "loc": { 286 "start": { 287 "line": 22, 288 "column": 9, 289 "program": "test-enum-declaration.ts" 290 }, 291 "end": { 292 "line": 22, 293 "column": 11, 294 "program": "test-enum-declaration.ts" 295 } 296 } 297 }, 298 { 299 "type": "TSEnumMember", 300 "id": { 301 "type": "Identifier", 302 "name": "F", 303 "decorators": [], 304 "loc": { 305 "start": { 306 "line": 23, 307 "column": 5, 308 "program": "test-enum-declaration.ts" 309 }, 310 "end": { 311 "line": 23, 312 "column": 6, 313 "program": "test-enum-declaration.ts" 314 } 315 } 316 }, 317 "initializer": { 318 "type": "MemberExpression", 319 "object": { 320 "type": "StringLiteral", 321 "value": "123", 322 "loc": { 323 "start": { 324 "line": 23, 325 "column": 9, 326 "program": "test-enum-declaration.ts" 327 }, 328 "end": { 329 "line": 23, 330 "column": 14, 331 "program": "test-enum-declaration.ts" 332 } 333 } 334 }, 335 "property": { 336 "type": "Identifier", 337 "name": "length", 338 "decorators": [], 339 "loc": { 340 "start": { 341 "line": 23, 342 "column": 15, 343 "program": "test-enum-declaration.ts" 344 }, 345 "end": { 346 "line": 23, 347 "column": 21, 348 "program": "test-enum-declaration.ts" 349 } 350 } 351 }, 352 "computed": false, 353 "optional": false, 354 "loc": { 355 "start": { 356 "line": 23, 357 "column": 9, 358 "program": "test-enum-declaration.ts" 359 }, 360 "end": { 361 "line": 23, 362 "column": 21, 363 "program": "test-enum-declaration.ts" 364 } 365 } 366 }, 367 "loc": { 368 "start": { 369 "line": 23, 370 "column": 9, 371 "program": "test-enum-declaration.ts" 372 }, 373 "end": { 374 "line": 23, 375 "column": 22, 376 "program": "test-enum-declaration.ts" 377 } 378 } 379 } 380 ], 381 "const": false, 382 "declare": false, 383 "loc": { 384 "start": { 385 "line": 17, 386 "column": 1, 387 "program": "test-enum-declaration.ts" 388 }, 389 "end": { 390 "line": 24, 391 "column": 2, 392 "program": "test-enum-declaration.ts" 393 } 394 } 395 } 396 ], 397 "loc": { 398 "start": { 399 "line": 1, 400 "column": 1, 401 "program": "test-enum-declaration.ts" 402 }, 403 "end": { 404 "line": 24, 405 "column": 2, 406 "program": "test-enum-declaration.ts" 407 } 408 } 409} 410