| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":94,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":94}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":94,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":94}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "ExpressionStatement", |
| 12 |
"start":0,"end":94,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":94}}, |
| 13 |
"expression": { |
| 14 |
"type": "BinaryExpression", |
| 15 |
"start":0,"end":94,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":94}}, |
| 16 |
"left": { |
| 17 |
"type": "Identifier", |
| 18 |
"start":0,"end":5,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":5,"index":5},"identifierName":"value"}, |
| 19 |
"name": "value" |
| 20 |
}, |
| 21 |
"operator": "|>", |
| 22 |
"right": { |
| 23 |
"type": "DoExpression", |
| 24 |
"start":9,"end":94,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":7,"column":1,"index":94}}, |
| 25 |
"async": false, |
| 26 |
"body": { |
| 27 |
"type": "BlockStatement", |
| 28 |
"start":12,"end":94,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":7,"column":1,"index":94}}, |
| 29 |
"body": [ |
| 30 |
{ |
| 31 |
"type": "SwitchStatement", |
| 32 |
"start":16,"end":92,"loc":{"start":{"line":2,"column":2,"index":16},"end":{"line":6,"column":3,"index":92}}, |
| 33 |
"discriminant": { |
| 34 |
"type": "Identifier", |
| 35 |
"start":24,"end":30,"loc":{"start":{"line":2,"column":10,"index":24},"end":{"line":2,"column":16,"index":30},"identifierName":"number"}, |
| 36 |
"name": "number" |
| 37 |
}, |
| 38 |
"cases": [ |
| 39 |
{ |
| 40 |
"type": "SwitchCase", |
| 41 |
"start":38,"end":48,"loc":{"start":{"line":3,"column":4,"index":38},"end":{"line":3,"column":14,"index":48}}, |
| 42 |
"consequent": [ |
| 43 |
{ |
| 44 |
"type": "ExpressionStatement", |
| 45 |
"start":46,"end":48,"loc":{"start":{"line":3,"column":12,"index":46},"end":{"line":3,"column":14,"index":48}}, |
| 46 |
"expression": { |
| 47 |
"type": "TopicReference", |
| 48 |
"start":46,"end":47,"loc":{"start":{"line":3,"column":12,"index":46},"end":{"line":3,"column":13,"index":47}} |
| 49 |
} |
| 50 |
} |
| 51 |
], |
| 52 |
"test": { |
| 53 |
"type": "NumericLiteral", |
| 54 |
"start":43,"end":44,"loc":{"start":{"line":3,"column":9,"index":43},"end":{"line":3,"column":10,"index":44}}, |
| 55 |
"extra": { |
| 56 |
"rawValue": 0, |
| 57 |
"raw": "0" |
| 58 |
}, |
| 59 |
"value": 0 |
| 60 |
} |
| 61 |
}, |
| 62 |
{ |
| 63 |
"type": "SwitchCase", |
| 64 |
"start":53,"end":67,"loc":{"start":{"line":4,"column":4,"index":53},"end":{"line":4,"column":18,"index":67}}, |
| 65 |
"consequent": [ |
| 66 |
{ |
| 67 |
"type": "ExpressionStatement", |
| 68 |
"start":61,"end":67,"loc":{"start":{"line":4,"column":12,"index":61},"end":{"line":4,"column":18,"index":67}}, |
| 69 |
"expression": { |
| 70 |
"type": "BinaryExpression", |
| 71 |
"start":61,"end":66,"loc":{"start":{"line":4,"column":12,"index":61},"end":{"line":4,"column":17,"index":66}}, |
| 72 |
"left": { |
| 73 |
"type": "TopicReference", |
| 74 |
"start":61,"end":62,"loc":{"start":{"line":4,"column":12,"index":61},"end":{"line":4,"column":13,"index":62}} |
| 75 |
}, |
| 76 |
"operator": "+", |
| 77 |
"right": { |
| 78 |
"type": "NumericLiteral", |
| 79 |
"start":65,"end":66,"loc":{"start":{"line":4,"column":16,"index":65},"end":{"line":4,"column":17,"index":66}}, |
| 80 |
"extra": { |
| 81 |
"rawValue": 1, |
| 82 |
"raw": "1" |
| 83 |
}, |
| 84 |
"value": 1 |
| 85 |
} |
| 86 |
} |
| 87 |
} |
| 88 |
], |
| 89 |
"test": { |
| 90 |
"type": "NumericLiteral", |
| 91 |
"start":58,"end":59,"loc":{"start":{"line":4,"column":9,"index":58},"end":{"line":4,"column":10,"index":59}}, |
| 92 |
"extra": { |
| 93 |
"rawValue": 1, |
| 94 |
"raw": "1" |
| 95 |
}, |
| 96 |
"value": 1 |
| 97 |
} |
| 98 |
}, |
| 99 |
{ |
| 100 |
"type": "SwitchCase", |
| 101 |
"start":72,"end":88,"loc":{"start":{"line":5,"column":4,"index":72},"end":{"line":5,"column":20,"index":88}}, |
| 102 |
"consequent": [ |
| 103 |
{ |
| 104 |
"type": "ExpressionStatement", |
| 105 |
"start":81,"end":88,"loc":{"start":{"line":5,"column":13,"index":81},"end":{"line":5,"column":20,"index":88}}, |
| 106 |
"expression": { |
| 107 |
"type": "BinaryExpression", |
| 108 |
"start":81,"end":87,"loc":{"start":{"line":5,"column":13,"index":81},"end":{"line":5,"column":19,"index":87}}, |
| 109 |
"left": { |
| 110 |
"type": "TopicReference", |
| 111 |
"start":81,"end":82,"loc":{"start":{"line":5,"column":13,"index":81},"end":{"line":5,"column":14,"index":82}} |
| 112 |
}, |
| 113 |
"operator": "+", |
| 114 |
"right": { |
| 115 |
"type": "NumericLiteral", |
| 116 |
"start":85,"end":87,"loc":{"start":{"line":5,"column":17,"index":85},"end":{"line":5,"column":19,"index":87}}, |
| 117 |
"extra": { |
| 118 |
"rawValue": 10, |
| 119 |
"raw": "10" |
| 120 |
}, |
| 121 |
"value": 10 |
| 122 |
} |
| 123 |
} |
| 124 |
} |
| 125 |
], |
| 126 |
"test": null |
| 127 |
} |
| 128 |
] |
| 129 |
} |
| 130 |
], |
| 131 |
"directives": [] |
| 132 |
} |
| 133 |
} |
| 134 |
} |
| 135 |
} |
| 136 |
], |
| 137 |
"directives": [] |
| 138 |
} |
| 139 |
} |