{ "type": "File", "start":0,"end":81,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":81}}, "program": { "type": "Program", "start":0,"end":81,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":81}}, "sourceType": "script", "interpreter": null, "body": [ { "type": "SwitchStatement", "start":0,"end":81,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":81}}, "discriminant": { "type": "Identifier", "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8},"identifierName":"x"}, "name": "x" }, "cases": [ { "type": "SwitchCase", "start":14,"end":42,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":3,"column":20,"index":42}}, "consequent": [ { "type": "ExpressionStatement", "start":26,"end":42,"loc":{"start":{"line":3,"column":4,"index":26},"end":{"line":3,"column":20,"index":42}}, "expression": { "type": "CallExpression", "start":26,"end":42,"loc":{"start":{"line":3,"column":4,"index":26},"end":{"line":3,"column":20,"index":42}}, "callee": { "type": "MemberExpression", "start":26,"end":37,"loc":{"start":{"line":3,"column":4,"index":26},"end":{"line":3,"column":15,"index":37}}, "object": { "type": "Identifier", "start":26,"end":33,"loc":{"start":{"line":3,"column":4,"index":26},"end":{"line":3,"column":11,"index":33},"identifierName":"console"}, "name": "console" }, "computed": false, "property": { "type": "Identifier", "start":34,"end":37,"loc":{"start":{"line":3,"column":12,"index":34},"end":{"line":3,"column":15,"index":37},"identifierName":"log"}, "name": "log" } }, "arguments": [ { "type": "StringLiteral", "start":38,"end":41,"loc":{"start":{"line":3,"column":16,"index":38},"end":{"line":3,"column":19,"index":41}}, "extra": { "rawValue": "1", "raw": "'1'" }, "value": "1" } ] } } ], "test": { "type": "NumericLiteral", "start":19,"end":20,"loc":{"start":{"line":2,"column":7,"index":19},"end":{"line":2,"column":8,"index":20}}, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, "trailingComments": [ { "type": "CommentLine", "value": " comment", "start":47,"end":57,"loc":{"start":{"line":4,"column":4,"index":47},"end":{"line":4,"column":14,"index":57}} } ] }, { "type": "SwitchCase", "start":60,"end":79,"loc":{"start":{"line":5,"column":2,"index":60},"end":{"line":6,"column":10,"index":79}}, "consequent": [ { "type": "BreakStatement", "start":73,"end":79,"loc":{"start":{"line":6,"column":4,"index":73},"end":{"line":6,"column":10,"index":79}}, "label": null } ], "test": null, "leadingComments": [ { "type": "CommentLine", "value": " comment", "start":47,"end":57,"loc":{"start":{"line":4,"column":4,"index":47},"end":{"line":4,"column":14,"index":57}} } ] } ] } ], "directives": [] }, "comments": [ { "type": "CommentLine", "value": " comment", "start":47,"end":57,"loc":{"start":{"line":4,"column":4,"index":47},"end":{"line":4,"column":14,"index":57}} } ] }