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