|
| 1 | +{ |
| 2 | + "type": "File", |
| 3 | + "start":0,"end":159,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":159}}, |
| 4 | + "errors": [ |
| 5 | + "SyntaxError: Initializers are not allowed in ambient contexts. (2:10)", |
| 6 | + "SyntaxError: Initializers are not allowed in ambient contexts. (3:19)", |
| 7 | + "SyntaxError: Initializers are not allowed in ambient contexts. (4:10)", |
| 8 | + "SyntaxError: Initializers are not allowed in ambient contexts. (5:19)", |
| 9 | + "SyntaxError: Initializers are not allowed in ambient contexts. (6:20)", |
| 10 | + "SyntaxError: Initializers are not allowed in ambient contexts. (7:20)" |
| 11 | + ], |
| 12 | + "program": { |
| 13 | + "type": "Program", |
| 14 | + "start":0,"end":159,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":159}}, |
| 15 | + "sourceType": "module", |
| 16 | + "interpreter": null, |
| 17 | + "body": [ |
| 18 | + { |
| 19 | + "type": "TSModuleDeclaration", |
| 20 | + "start":0,"end":159,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":159}}, |
| 21 | + "kind": "namespace", |
| 22 | + "id": { |
| 23 | + "type": "Identifier", |
| 24 | + "start":18,"end":39,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":39,"index":39},"identifierName":"invalid_namespace_var"}, |
| 25 | + "name": "invalid_namespace_var" |
| 26 | + }, |
| 27 | + "body": { |
| 28 | + "type": "TSModuleBlock", |
| 29 | + "start":40,"end":159,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":8,"column":1,"index":159}}, |
| 30 | + "body": [ |
| 31 | + { |
| 32 | + "type": "VariableDeclaration", |
| 33 | + "start":44,"end":54,"loc":{"start":{"line":2,"column":2,"index":44},"end":{"line":2,"column":12,"index":54}}, |
| 34 | + "declarations": [ |
| 35 | + { |
| 36 | + "type": "VariableDeclarator", |
| 37 | + "start":48,"end":53,"loc":{"start":{"line":2,"column":6,"index":48},"end":{"line":2,"column":11,"index":53}}, |
| 38 | + "id": { |
| 39 | + "type": "Identifier", |
| 40 | + "start":48,"end":49,"loc":{"start":{"line":2,"column":6,"index":48},"end":{"line":2,"column":7,"index":49},"identifierName":"A"}, |
| 41 | + "name": "A" |
| 42 | + }, |
| 43 | + "init": { |
| 44 | + "type": "NumericLiteral", |
| 45 | + "start":52,"end":53,"loc":{"start":{"line":2,"column":10,"index":52},"end":{"line":2,"column":11,"index":53}}, |
| 46 | + "extra": { |
| 47 | + "rawValue": 0, |
| 48 | + "raw": "0" |
| 49 | + }, |
| 50 | + "value": 0 |
| 51 | + } |
| 52 | + } |
| 53 | + ], |
| 54 | + "kind": "var" |
| 55 | + }, |
| 56 | + { |
| 57 | + "type": "VariableDeclaration", |
| 58 | + "start":57,"end":76,"loc":{"start":{"line":3,"column":2,"index":57},"end":{"line":3,"column":21,"index":76}}, |
| 59 | + "declarations": [ |
| 60 | + { |
| 61 | + "type": "VariableDeclarator", |
| 62 | + "start":61,"end":75,"loc":{"start":{"line":3,"column":6,"index":61},"end":{"line":3,"column":20,"index":75}}, |
| 63 | + "id": { |
| 64 | + "type": "Identifier", |
| 65 | + "start":61,"end":71,"loc":{"start":{"line":3,"column":6,"index":61},"end":{"line":3,"column":16,"index":71},"identifierName":"A1"}, |
| 66 | + "name": "A1", |
| 67 | + "typeAnnotation": { |
| 68 | + "type": "TSTypeAnnotation", |
| 69 | + "start":63,"end":71,"loc":{"start":{"line":3,"column":8,"index":63},"end":{"line":3,"column":16,"index":71}}, |
| 70 | + "typeAnnotation": { |
| 71 | + "type": "TSNumberKeyword", |
| 72 | + "start":65,"end":71,"loc":{"start":{"line":3,"column":10,"index":65},"end":{"line":3,"column":16,"index":71}} |
| 73 | + } |
| 74 | + } |
| 75 | + }, |
| 76 | + "init": { |
| 77 | + "type": "NumericLiteral", |
| 78 | + "start":74,"end":75,"loc":{"start":{"line":3,"column":19,"index":74},"end":{"line":3,"column":20,"index":75}}, |
| 79 | + "extra": { |
| 80 | + "rawValue": 0, |
| 81 | + "raw": "0" |
| 82 | + }, |
| 83 | + "value": 0 |
| 84 | + } |
| 85 | + } |
| 86 | + ], |
| 87 | + "kind": "var" |
| 88 | + }, |
| 89 | + { |
| 90 | + "type": "VariableDeclaration", |
| 91 | + "start":79,"end":89,"loc":{"start":{"line":4,"column":2,"index":79},"end":{"line":4,"column":12,"index":89}}, |
| 92 | + "declarations": [ |
| 93 | + { |
| 94 | + "type": "VariableDeclarator", |
| 95 | + "start":83,"end":88,"loc":{"start":{"line":4,"column":6,"index":83},"end":{"line":4,"column":11,"index":88}}, |
| 96 | + "id": { |
| 97 | + "type": "Identifier", |
| 98 | + "start":83,"end":84,"loc":{"start":{"line":4,"column":6,"index":83},"end":{"line":4,"column":7,"index":84},"identifierName":"B"}, |
| 99 | + "name": "B" |
| 100 | + }, |
| 101 | + "init": { |
| 102 | + "type": "NumericLiteral", |
| 103 | + "start":87,"end":88,"loc":{"start":{"line":4,"column":10,"index":87},"end":{"line":4,"column":11,"index":88}}, |
| 104 | + "extra": { |
| 105 | + "rawValue": 0, |
| 106 | + "raw": "0" |
| 107 | + }, |
| 108 | + "value": 0 |
| 109 | + } |
| 110 | + } |
| 111 | + ], |
| 112 | + "kind": "let" |
| 113 | + }, |
| 114 | + { |
| 115 | + "type": "VariableDeclaration", |
| 116 | + "start":92,"end":111,"loc":{"start":{"line":5,"column":2,"index":92},"end":{"line":5,"column":21,"index":111}}, |
| 117 | + "declarations": [ |
| 118 | + { |
| 119 | + "type": "VariableDeclarator", |
| 120 | + "start":96,"end":110,"loc":{"start":{"line":5,"column":6,"index":96},"end":{"line":5,"column":20,"index":110}}, |
| 121 | + "id": { |
| 122 | + "type": "Identifier", |
| 123 | + "start":96,"end":106,"loc":{"start":{"line":5,"column":6,"index":96},"end":{"line":5,"column":16,"index":106},"identifierName":"B1"}, |
| 124 | + "name": "B1", |
| 125 | + "typeAnnotation": { |
| 126 | + "type": "TSTypeAnnotation", |
| 127 | + "start":98,"end":106,"loc":{"start":{"line":5,"column":8,"index":98},"end":{"line":5,"column":16,"index":106}}, |
| 128 | + "typeAnnotation": { |
| 129 | + "type": "TSNumberKeyword", |
| 130 | + "start":100,"end":106,"loc":{"start":{"line":5,"column":10,"index":100},"end":{"line":5,"column":16,"index":106}} |
| 131 | + } |
| 132 | + } |
| 133 | + }, |
| 134 | + "init": { |
| 135 | + "type": "NumericLiteral", |
| 136 | + "start":109,"end":110,"loc":{"start":{"line":5,"column":19,"index":109},"end":{"line":5,"column":20,"index":110}}, |
| 137 | + "extra": { |
| 138 | + "rawValue": 0, |
| 139 | + "raw": "0" |
| 140 | + }, |
| 141 | + "value": 0 |
| 142 | + } |
| 143 | + } |
| 144 | + ], |
| 145 | + "kind": "let" |
| 146 | + }, |
| 147 | + { |
| 148 | + "type": "VariableDeclaration", |
| 149 | + "start":114,"end":134,"loc":{"start":{"line":6,"column":2,"index":114},"end":{"line":6,"column":22,"index":134}}, |
| 150 | + "declarations": [ |
| 151 | + { |
| 152 | + "type": "VariableDeclarator", |
| 153 | + "start":120,"end":133,"loc":{"start":{"line":6,"column":8,"index":120},"end":{"line":6,"column":21,"index":133}}, |
| 154 | + "id": { |
| 155 | + "type": "Identifier", |
| 156 | + "start":120,"end":129,"loc":{"start":{"line":6,"column":8,"index":120},"end":{"line":6,"column":17,"index":129},"identifierName":"C"}, |
| 157 | + "name": "C", |
| 158 | + "typeAnnotation": { |
| 159 | + "type": "TSTypeAnnotation", |
| 160 | + "start":121,"end":129,"loc":{"start":{"line":6,"column":9,"index":121},"end":{"line":6,"column":17,"index":129}}, |
| 161 | + "typeAnnotation": { |
| 162 | + "type": "TSNumberKeyword", |
| 163 | + "start":123,"end":129,"loc":{"start":{"line":6,"column":11,"index":123},"end":{"line":6,"column":17,"index":129}} |
| 164 | + } |
| 165 | + } |
| 166 | + }, |
| 167 | + "init": { |
| 168 | + "type": "NumericLiteral", |
| 169 | + "start":132,"end":133,"loc":{"start":{"line":6,"column":20,"index":132},"end":{"line":6,"column":21,"index":133}}, |
| 170 | + "extra": { |
| 171 | + "rawValue": 0, |
| 172 | + "raw": "0" |
| 173 | + }, |
| 174 | + "value": 0 |
| 175 | + } |
| 176 | + } |
| 177 | + ], |
| 178 | + "kind": "const" |
| 179 | + }, |
| 180 | + { |
| 181 | + "type": "VariableDeclaration", |
| 182 | + "start":137,"end":157,"loc":{"start":{"line":7,"column":2,"index":137},"end":{"line":7,"column":22,"index":157}}, |
| 183 | + "declarations": [ |
| 184 | + { |
| 185 | + "type": "VariableDeclarator", |
| 186 | + "start":143,"end":156,"loc":{"start":{"line":7,"column":8,"index":143},"end":{"line":7,"column":21,"index":156}}, |
| 187 | + "id": { |
| 188 | + "type": "Identifier", |
| 189 | + "start":143,"end":152,"loc":{"start":{"line":7,"column":8,"index":143},"end":{"line":7,"column":17,"index":152},"identifierName":"D"}, |
| 190 | + "name": "D", |
| 191 | + "typeAnnotation": { |
| 192 | + "type": "TSTypeAnnotation", |
| 193 | + "start":144,"end":152,"loc":{"start":{"line":7,"column":9,"index":144},"end":{"line":7,"column":17,"index":152}}, |
| 194 | + "typeAnnotation": { |
| 195 | + "type": "TSNumberKeyword", |
| 196 | + "start":146,"end":152,"loc":{"start":{"line":7,"column":11,"index":146},"end":{"line":7,"column":17,"index":152}} |
| 197 | + } |
| 198 | + } |
| 199 | + }, |
| 200 | + "init": { |
| 201 | + "type": "NumericLiteral", |
| 202 | + "start":155,"end":156,"loc":{"start":{"line":7,"column":20,"index":155},"end":{"line":7,"column":21,"index":156}}, |
| 203 | + "extra": { |
| 204 | + "rawValue": 0, |
| 205 | + "raw": "0" |
| 206 | + }, |
| 207 | + "value": 0 |
| 208 | + } |
| 209 | + } |
| 210 | + ], |
| 211 | + "kind": "using" |
| 212 | + } |
| 213 | + ] |
| 214 | + }, |
| 215 | + "declare": true |
| 216 | + } |
| 217 | + ], |
| 218 | + "directives": [], |
| 219 | + "extra": { |
| 220 | + "topLevelAwait": false |
| 221 | + } |
| 222 | + } |
| 223 | +} |
0 commit comments