|
| 1 | +{ |
| 2 | + "type": "File", |
| 3 | + "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}}, |
| 4 | + "program": { |
| 5 | + "type": "Program", |
| 6 | + "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}}, |
| 7 | + "sourceType": "module", |
| 8 | + "interpreter": null, |
| 9 | + "body": [ |
| 10 | + { |
| 11 | + "type": "VariableDeclaration", |
| 12 | + "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}}, |
| 13 | + "declarations": [ |
| 14 | + { |
| 15 | + "type": "VariableDeclarator", |
| 16 | + "start":4,"end":19,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":19,"index":19}}, |
| 17 | + "id": { |
| 18 | + "type": "Identifier", |
| 19 | + "start":4,"end":19,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":19,"index":19},"identifierName":"x"}, |
| 20 | + "name": "x", |
| 21 | + "typeAnnotation": { |
| 22 | + "type": "TSTypeAnnotation", |
| 23 | + "start":5,"end":19,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":19,"index":19}}, |
| 24 | + "typeAnnotation": { |
| 25 | + "type": "TSLiteralType", |
| 26 | + "start":7,"end":19,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":19,"index":19}}, |
| 27 | + "literal": { |
| 28 | + "type": "TemplateLiteral", |
| 29 | + "start":7,"end":19,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":19,"index":19}}, |
| 30 | + "expressions": [ |
| 31 | + { |
| 32 | + "type": "TSTypeReference", |
| 33 | + "start":14,"end":17,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":17,"index":17}}, |
| 34 | + "typeName": { |
| 35 | + "type": "Identifier", |
| 36 | + "start":14,"end":17,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":17,"index":17},"identifierName":"bar"}, |
| 37 | + "name": "bar" |
| 38 | + } |
| 39 | + } |
| 40 | + ], |
| 41 | + "quasis": [ |
| 42 | + { |
| 43 | + "type": "TemplateElement", |
| 44 | + "start":8,"end":12,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":12,"index":12}}, |
| 45 | + "value": { |
| 46 | + "raw": "foo-", |
| 47 | + "cooked": "foo-" |
| 48 | + }, |
| 49 | + "tail": false |
| 50 | + }, |
| 51 | + { |
| 52 | + "type": "TemplateElement", |
| 53 | + "start":18,"end":18,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":18,"index":18}}, |
| 54 | + "value": { |
| 55 | + "raw": "", |
| 56 | + "cooked": "" |
| 57 | + }, |
| 58 | + "tail": true |
| 59 | + } |
| 60 | + ] |
| 61 | + } |
| 62 | + } |
| 63 | + } |
| 64 | + }, |
| 65 | + "init": null |
| 66 | + } |
| 67 | + ], |
| 68 | + "kind": "let" |
| 69 | + } |
| 70 | + ], |
| 71 | + "directives": [], |
| 72 | + "extra": { |
| 73 | + "topLevelAwait": false |
| 74 | + } |
| 75 | + } |
| 76 | +} |
0 commit comments