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