| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":91,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":91}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":91,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":91}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "SwitchStatement", |
| 12 |
"start":0,"end":91,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":91}}, |
| 13 |
"discriminant": { |
| 14 |
"type": "Identifier", |
| 15 |
"start":7,"end":10,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":10,"index":10},"identifierName":"foo"}, |
| 16 |
"name": "foo" |
| 17 |
}, |
| 18 |
"cases": [ |
| 19 |
{ |
| 20 |
"type": "SwitchCase", |
| 21 |
"start":29,"end":36,"loc":{"start":{"line":3,"column":4,"index":29},"end":{"line":3,"column":11,"index":36}}, |
| 22 |
"consequent": [], |
| 23 |
"test": { |
| 24 |
"type": "NumericLiteral", |
| 25 |
"start":34,"end":35,"loc":{"start":{"line":3,"column":9,"index":34},"end":{"line":3,"column":10,"index":35}}, |
| 26 |
"extra": { |
| 27 |
"rawValue": 1, |
| 28 |
"raw": "1" |
| 29 |
}, |
| 30 |
"value": 1 |
| 31 |
}, |
| 32 |
"trailingComments": [ |
| 33 |
{ |
| 34 |
"type": "CommentLine", |
| 35 |
"value": " falls through", |
| 36 |
"start":45,"end":61,"loc":{"start":{"line":4,"column":8,"index":45},"end":{"line":4,"column":24,"index":61}} |
| 37 |
} |
| 38 |
], |
| 39 |
"leadingComments": [ |
| 40 |
{ |
| 41 |
"type": "CommentLine", |
| 42 |
"value": " foo", |
| 43 |
"start":18,"end":24,"loc":{"start":{"line":2,"column":4,"index":18},"end":{"line":2,"column":10,"index":24}} |
| 44 |
} |
| 45 |
] |
| 46 |
}, |
| 47 |
{ |
| 48 |
"type": "SwitchCase", |
| 49 |
"start":66,"end":89,"loc":{"start":{"line":5,"column":4,"index":66},"end":{"line":6,"column":15,"index":89}}, |
| 50 |
"consequent": [ |
| 51 |
{ |
| 52 |
"type": "ExpressionStatement", |
| 53 |
"start":82,"end":89,"loc":{"start":{"line":6,"column":8,"index":82},"end":{"line":6,"column":15,"index":89}}, |
| 54 |
"expression": { |
| 55 |
"type": "CallExpression", |
| 56 |
"start":82,"end":88,"loc":{"start":{"line":6,"column":8,"index":82},"end":{"line":6,"column":14,"index":88}}, |
| 57 |
"callee": { |
| 58 |
"type": "Identifier", |
| 59 |
"start":82,"end":86,"loc":{"start":{"line":6,"column":8,"index":82},"end":{"line":6,"column":12,"index":86},"identifierName":"doIt"}, |
| 60 |
"name": "doIt" |
| 61 |
}, |
| 62 |
"arguments": [] |
| 63 |
} |
| 64 |
} |
| 65 |
], |
| 66 |
"test": { |
| 67 |
"type": "NumericLiteral", |
| 68 |
"start":71,"end":72,"loc":{"start":{"line":5,"column":9,"index":71},"end":{"line":5,"column":10,"index":72}}, |
| 69 |
"extra": { |
| 70 |
"rawValue": 2, |
| 71 |
"raw": "2" |
| 72 |
}, |
| 73 |
"value": 2 |
| 74 |
}, |
| 75 |
"leadingComments": [ |
| 76 |
{ |
| 77 |
"type": "CommentLine", |
| 78 |
"value": " falls through", |
| 79 |
"start":45,"end":61,"loc":{"start":{"line":4,"column":8,"index":45},"end":{"line":4,"column":24,"index":61}} |
| 80 |
} |
| 81 |
] |
| 82 |
} |
| 83 |
] |
| 84 |
} |
| 85 |
], |
| 86 |
"directives": [] |
| 87 |
}, |
| 88 |
"comments": [ |
| 89 |
{ |
| 90 |
"type": "CommentLine", |
| 91 |
"value": " foo", |
| 92 |
"start":18,"end":24,"loc":{"start":{"line":2,"column":4,"index":18},"end":{"line":2,"column":10,"index":24}} |
| 93 |
}, |
| 94 |
{ |
| 95 |
"type": "CommentLine", |
| 96 |
"value": " falls through", |
| 97 |
"start":45,"end":61,"loc":{"start":{"line":4,"column":8,"index":45},"end":{"line":4,"column":24,"index":61}} |
| 98 |
} |
| 99 |
] |
| 100 |
} |