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