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