| 1 | { |
| 2 | "type": "File", |
| 3 | "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":14,"index":26}}, |
| 4 | "program": { |
| 5 | "type": "Program", |
| 6 | "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":14,"index":26}}, |
| 7 | "sourceType": "script", |
| 8 | "interpreter": null, |
| 9 | "body": [ |
| 10 | { |
| 11 | "type": "VariableDeclaration", |
| 12 | "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}}, |
| 13 | "declarations": [ |
| 14 | { |
| 15 | "type": "VariableDeclarator", |
| 16 | "start":4,"end":9,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":9,"index":9}}, |
| 17 | "id": { |
| 18 | "type": "Identifier", |
| 19 | "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"a"}, |
| 20 | "name": "a" |
| 21 | }, |
| 22 | "init": { |
| 23 | "type": "NumericLiteral", |
| 24 | "start":8,"end":9,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":9,"index":9}}, |
| 25 | "extra": { |
| 26 | "rawValue": 1, |
| 27 | "raw": "1" |
| 28 | }, |
| 29 | "value": 1 |
| 30 | } |
| 31 | } |
| 32 | ], |
| 33 | "kind": "var" |
| 34 | }, |
| 35 | { |
| 36 | "type": "VariableDeclaration", |
| 37 | "start":12,"end":26,"loc":{"start":{"line":3,"column":0,"index":12},"end":{"line":3,"column":14,"index":26}}, |
| 38 | "declarations": [ |
| 39 | { |
| 40 | "type": "VariableDeclarator", |
| 41 | "start":16,"end":25,"loc":{"start":{"line":3,"column":4,"index":16},"end":{"line":3,"column":13,"index":25}}, |
| 42 | "id": { |
| 43 | "type": "Identifier", |
| 44 | "start":16,"end":17,"loc":{"start":{"line":3,"column":4,"index":16},"end":{"line":3,"column":5,"index":17},"identifierName":"b"}, |
| 45 | "name": "b" |
| 46 | }, |
| 47 | "init": { |
| 48 | "type": "BinaryExpression", |
| 49 | "start":20,"end":25,"loc":{"start":{"line":3,"column":8,"index":20},"end":{"line":3,"column":13,"index":25}}, |
| 50 | "left": { |
| 51 | "type": "Identifier", |
| 52 | "start":20,"end":21,"loc":{"start":{"line":3,"column":8,"index":20},"end":{"line":3,"column":9,"index":21},"identifierName":"a"}, |
| 53 | "name": "a" |
| 54 | }, |
| 55 | "operator": "+", |
| 56 | "right": { |
| 57 | "type": "NumericLiteral", |
| 58 | "start":24,"end":25,"loc":{"start":{"line":3,"column":12,"index":24},"end":{"line":3,"column":13,"index":25}}, |
| 59 | "extra": { |
| 60 | "rawValue": 1, |
| 61 | "raw": "1" |
| 62 | }, |
| 63 | "value": 1 |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | ], |
| 68 | "kind": "var" |
| 69 | } |
| 70 | ], |
| 71 | "directives": [] |
| 72 | }, |
| 73 | "tokens": [ |
| 74 | { |
| 75 | "type": { |
| 76 | "label": "var", |
| 77 | "keyword": "var", |
| 78 | "beforeExpr": false, |
| 79 | "startsExpr": false, |
| 80 | "rightAssociative": false, |
| 81 | "isLoop": false, |
| 82 | "isAssign": false, |
| 83 | "prefix": false, |
| 84 | "postfix": false, |
| 85 | "binop": null |
| 86 | }, |
| 87 | "value": "var", |
| 88 | "start":0,"end":3,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":3,"index":3}} |
| 89 | }, |
| 90 | { |
| 91 | "type": { |
| 92 | "label": "name", |
| 93 | "beforeExpr": false, |
| 94 | "startsExpr": true, |
| 95 | "rightAssociative": false, |
| 96 | "isLoop": false, |
| 97 | "isAssign": false, |
| 98 | "prefix": false, |
| 99 | "postfix": false, |
| 100 | "binop": null |
| 101 | }, |
| 102 | "value": "a", |
| 103 | "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5}} |
| 104 | }, |
| 105 | { |
| 106 | "type": { |
| 107 | "label": "=", |
| 108 | "beforeExpr": true, |
| 109 | "startsExpr": false, |
| 110 | "rightAssociative": false, |
| 111 | "isLoop": false, |
| 112 | "isAssign": true, |
| 113 | "prefix": false, |
| 114 | "postfix": false, |
| 115 | "binop": null |
| 116 | }, |
| 117 | "value": "=", |
| 118 | "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7}} |
| 119 | }, |
| 120 | { |
| 121 | "type": { |
| 122 | "label": "num", |
| 123 | "beforeExpr": false, |
| 124 | "startsExpr": true, |
| 125 | "rightAssociative": false, |
| 126 | "isLoop": false, |
| 127 | "isAssign": false, |
| 128 | "prefix": false, |
| 129 | "postfix": false, |
| 130 | "binop": null |
| 131 | }, |
| 132 | "value": 1, |
| 133 | "start":8,"end":9,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":9,"index":9}} |
| 134 | }, |
| 135 | { |
| 136 | "type": { |
| 137 | "label": ";", |
| 138 | "beforeExpr": true, |
| 139 | "startsExpr": false, |
| 140 | "rightAssociative": false, |
| 141 | "isLoop": false, |
| 142 | "isAssign": false, |
| 143 | "prefix": false, |
| 144 | "postfix": false, |
| 145 | "binop": null |
| 146 | }, |
| 147 | "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10}} |
| 148 | }, |
| 149 | { |
| 150 | "type": { |
| 151 | "label": "var", |
| 152 | "keyword": "var", |
| 153 | "beforeExpr": false, |
| 154 | "startsExpr": false, |
| 155 | "rightAssociative": false, |
| 156 | "isLoop": false, |
| 157 | "isAssign": false, |
| 158 | "prefix": false, |
| 159 | "postfix": false, |
| 160 | "binop": null |
| 161 | }, |
| 162 | "value": "var", |
| 163 | "start":12,"end":15,"loc":{"start":{"line":3,"column":0,"index":12},"end":{"line":3,"column":3,"index":15}} |
| 164 | }, |
| 165 | { |
| 166 | "type": { |
| 167 | "label": "name", |
| 168 | "beforeExpr": false, |
| 169 | "startsExpr": true, |
| 170 | "rightAssociative": false, |
| 171 | "isLoop": false, |
| 172 | "isAssign": false, |
| 173 | "prefix": false, |
| 174 | "postfix": false, |
| 175 | "binop": null |
| 176 | }, |
| 177 | "value": "b", |
| 178 | "start":16,"end":17,"loc":{"start":{"line":3,"column":4,"index":16},"end":{"line":3,"column":5,"index":17}} |
| 179 | }, |
| 180 | { |
| 181 | "type": { |
| 182 | "label": "=", |
| 183 | "beforeExpr": true, |
| 184 | "startsExpr": false, |
| 185 | "rightAssociative": false, |
| 186 | "isLoop": false, |
| 187 | "isAssign": true, |
| 188 | "prefix": false, |
| 189 | "postfix": false, |
| 190 | "binop": null |
| 191 | }, |
| 192 | "value": "=", |
| 193 | "start":18,"end":19,"loc":{"start":{"line":3,"column":6,"index":18},"end":{"line":3,"column":7,"index":19}} |
| 194 | }, |
| 195 | { |
| 196 | "type": { |
| 197 | "label": "name", |
| 198 | "beforeExpr": false, |
| 199 | "startsExpr": true, |
| 200 | "rightAssociative": false, |
| 201 | "isLoop": false, |
| 202 | "isAssign": false, |
| 203 | "prefix": false, |
| 204 | "postfix": false, |
| 205 | "binop": null |
| 206 | }, |
| 207 | "value": "a", |
| 208 | "start":20,"end":21,"loc":{"start":{"line":3,"column":8,"index":20},"end":{"line":3,"column":9,"index":21}} |
| 209 | }, |
| 210 | { |
| 211 | "type": { |
| 212 | "label": "+/-", |
| 213 | "beforeExpr": true, |
| 214 | "startsExpr": true, |
| 215 | "rightAssociative": false, |
| 216 | "isLoop": false, |
| 217 | "isAssign": false, |
| 218 | "prefix": true, |
| 219 | "postfix": false, |
| 220 | "binop": 9 |
| 221 | }, |
| 222 | "value": "+", |
| 223 | "start":22,"end":23,"loc":{"start":{"line":3,"column":10,"index":22},"end":{"line":3,"column":11,"index":23}} |
| 224 | }, |
| 225 | { |
| 226 | "type": { |
| 227 | "label": "num", |
| 228 | "beforeExpr": false, |
| 229 | "startsExpr": true, |
| 230 | "rightAssociative": false, |
| 231 | "isLoop": false, |
| 232 | "isAssign": false, |
| 233 | "prefix": false, |
| 234 | "postfix": false, |
| 235 | "binop": null |
| 236 | }, |
| 237 | "value": 1, |
| 238 | "start":24,"end":25,"loc":{"start":{"line":3,"column":12,"index":24},"end":{"line":3,"column":13,"index":25}} |
| 239 | }, |
| 240 | { |
| 241 | "type": { |
| 242 | "label": ";", |
| 243 | "beforeExpr": true, |
| 244 | "startsExpr": false, |
| 245 | "rightAssociative": false, |
| 246 | "isLoop": false, |
| 247 | "isAssign": false, |
| 248 | "prefix": false, |
| 249 | "postfix": false, |
| 250 | "binop": null |
| 251 | }, |
| 252 | "start":25,"end":26,"loc":{"start":{"line":3,"column":13,"index":25},"end":{"line":3,"column":14,"index":26}} |
| 253 | }, |
| 254 | { |
| 255 | "type": { |
| 256 | "label": "eof", |
| 257 | "beforeExpr": false, |
| 258 | "startsExpr": false, |
| 259 | "rightAssociative": false, |
| 260 | "isLoop": false, |
| 261 | "isAssign": false, |
| 262 | "prefix": false, |
| 263 | "postfix": false, |
| 264 | "binop": null |
| 265 | }, |
| 266 | "start":26,"end":26,"loc":{"start":{"line":3,"column":14,"index":26},"end":{"line":3,"column":14,"index":26}} |
| 267 | } |
| 268 | ] |
| 269 | } |