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