| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":210,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":17,"column":1,"index":210}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":210,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":17,"column":1,"index":210}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "ClassDeclaration", |
| 12 |
"start":0,"end":210,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":17,"column":1,"index":210}}, |
| 13 |
"id": { |
| 14 |
"type": "Identifier", |
| 15 |
"start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"C"}, |
| 16 |
"name": "C" |
| 17 |
}, |
| 18 |
"superClass": null, |
| 19 |
"body": { |
| 20 |
"type": "ClassBody", |
| 21 |
"start":8,"end":210,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":17,"column":1,"index":210}}, |
| 22 |
"body": [ |
| 23 |
{ |
| 24 |
"type": "ClassMethod", |
| 25 |
"start":12,"end":27,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":17,"index":27}}, |
| 26 |
"static": true, |
| 27 |
"key": { |
| 28 |
"type": "Identifier", |
| 29 |
"start":19,"end":22,"loc":{"start":{"line":2,"column":9,"index":19},"end":{"line":2,"column":12,"index":22},"identifierName":"foo"}, |
| 30 |
"name": "foo" |
| 31 |
}, |
| 32 |
"computed": false, |
| 33 |
"kind": "method", |
| 34 |
"id": null, |
| 35 |
"generator": false, |
| 36 |
"async": false, |
| 37 |
"params": [], |
| 38 |
"body": { |
| 39 |
"type": "BlockStatement", |
| 40 |
"start":25,"end":27,"loc":{"start":{"line":2,"column":15,"index":25},"end":{"line":2,"column":17,"index":27}}, |
| 41 |
"body": [], |
| 42 |
"directives": [] |
| 43 |
} |
| 44 |
}, |
| 45 |
{ |
| 46 |
"type": "StaticBlock", |
| 47 |
"start":30,"end":208,"loc":{"start":{"line":3,"column":2,"index":30},"end":{"line":16,"column":3,"index":208}}, |
| 48 |
"body": [ |
| 49 |
{ |
| 50 |
"type": "WhileStatement", |
| 51 |
"start":43,"end":145,"loc":{"start":{"line":4,"column":4,"index":43},"end":{"line":10,"column":5,"index":145}}, |
| 52 |
"test": { |
| 53 |
"type": "MemberExpression", |
| 54 |
"start":50,"end":58,"loc":{"start":{"line":4,"column":11,"index":50},"end":{"line":4,"column":19,"index":58}}, |
| 55 |
"object": { |
| 56 |
"type": "ThisExpression", |
| 57 |
"start":50,"end":54,"loc":{"start":{"line":4,"column":11,"index":50},"end":{"line":4,"column":15,"index":54}} |
| 58 |
}, |
| 59 |
"computed": false, |
| 60 |
"property": { |
| 61 |
"type": "Identifier", |
| 62 |
"start":55,"end":58,"loc":{"start":{"line":4,"column":16,"index":55},"end":{"line":4,"column":19,"index":58},"identifierName":"foo"}, |
| 63 |
"name": "foo" |
| 64 |
} |
| 65 |
}, |
| 66 |
"body": { |
| 67 |
"type": "BlockStatement", |
| 68 |
"start":60,"end":145,"loc":{"start":{"line":4,"column":21,"index":60},"end":{"line":10,"column":5,"index":145}}, |
| 69 |
"body": [ |
| 70 |
{ |
| 71 |
"type": "IfStatement", |
| 72 |
"start":68,"end":139,"loc":{"start":{"line":5,"column":6,"index":68},"end":{"line":9,"column":7,"index":139}}, |
| 73 |
"test": { |
| 74 |
"type": "MemberExpression", |
| 75 |
"start":72,"end":80,"loc":{"start":{"line":5,"column":10,"index":72},"end":{"line":5,"column":18,"index":80}}, |
| 76 |
"object": { |
| 77 |
"type": "ThisExpression", |
| 78 |
"start":72,"end":76,"loc":{"start":{"line":5,"column":10,"index":72},"end":{"line":5,"column":14,"index":76}} |
| 79 |
}, |
| 80 |
"computed": false, |
| 81 |
"property": { |
| 82 |
"type": "Identifier", |
| 83 |
"start":77,"end":80,"loc":{"start":{"line":5,"column":15,"index":77},"end":{"line":5,"column":18,"index":80},"identifierName":"foo"}, |
| 84 |
"name": "foo" |
| 85 |
} |
| 86 |
}, |
| 87 |
"consequent": { |
| 88 |
"type": "BlockStatement", |
| 89 |
"start":82,"end":106,"loc":{"start":{"line":5,"column":20,"index":82},"end":{"line":7,"column":7,"index":106}}, |
| 90 |
"body": [ |
| 91 |
{ |
| 92 |
"type": "BreakStatement", |
| 93 |
"start":92,"end":98,"loc":{"start":{"line":6,"column":8,"index":92},"end":{"line":6,"column":14,"index":98}}, |
| 94 |
"label": null |
| 95 |
} |
| 96 |
], |
| 97 |
"directives": [] |
| 98 |
}, |
| 99 |
"alternate": { |
| 100 |
"type": "BlockStatement", |
| 101 |
"start":112,"end":139,"loc":{"start":{"line":7,"column":13,"index":112},"end":{"line":9,"column":7,"index":139}}, |
| 102 |
"body": [ |
| 103 |
{ |
| 104 |
"type": "ContinueStatement", |
| 105 |
"start":122,"end":131,"loc":{"start":{"line":8,"column":8,"index":122},"end":{"line":8,"column":17,"index":131}}, |
| 106 |
"label": null |
| 107 |
} |
| 108 |
], |
| 109 |
"directives": [] |
| 110 |
} |
| 111 |
} |
| 112 |
], |
| 113 |
"directives": [] |
| 114 |
} |
| 115 |
}, |
| 116 |
{ |
| 117 |
"type": "ClassDeclaration", |
| 118 |
"start":150,"end":204,"loc":{"start":{"line":11,"column":4,"index":150},"end":{"line":15,"column":5,"index":204}}, |
| 119 |
"id": { |
| 120 |
"type": "Identifier", |
| 121 |
"start":156,"end":158,"loc":{"start":{"line":11,"column":10,"index":156},"end":{"line":11,"column":12,"index":158},"identifierName":"C2"}, |
| 122 |
"name": "C2" |
| 123 |
}, |
| 124 |
"superClass": null, |
| 125 |
"body": { |
| 126 |
"type": "ClassBody", |
| 127 |
"start":159,"end":204,"loc":{"start":{"line":11,"column":13,"index":159},"end":{"line":15,"column":5,"index":204}}, |
| 128 |
"body": [ |
| 129 |
{ |
| 130 |
"type": "ClassMethod", |
| 131 |
"start":167,"end":198,"loc":{"start":{"line":12,"column":6,"index":167},"end":{"line":14,"column":7,"index":198}}, |
| 132 |
"static": false, |
| 133 |
"key": { |
| 134 |
"type": "Identifier", |
| 135 |
"start":167,"end":170,"loc":{"start":{"line":12,"column":6,"index":167},"end":{"line":12,"column":9,"index":170},"identifierName":"bar"}, |
| 136 |
"name": "bar" |
| 137 |
}, |
| 138 |
"computed": false, |
| 139 |
"kind": "method", |
| 140 |
"id": null, |
| 141 |
"generator": false, |
| 142 |
"async": false, |
| 143 |
"params": [], |
| 144 |
"body": { |
| 145 |
"type": "BlockStatement", |
| 146 |
"start":173,"end":198,"loc":{"start":{"line":12,"column":12,"index":173},"end":{"line":14,"column":7,"index":198}}, |
| 147 |
"body": [ |
| 148 |
{ |
| 149 |
"type": "ReturnStatement", |
| 150 |
"start":183,"end":190,"loc":{"start":{"line":13,"column":8,"index":183},"end":{"line":13,"column":15,"index":190}}, |
| 151 |
"argument": null |
| 152 |
} |
| 153 |
], |
| 154 |
"directives": [] |
| 155 |
} |
| 156 |
} |
| 157 |
] |
| 158 |
} |
| 159 |
} |
| 160 |
] |
| 161 |
} |
| 162 |
] |
| 163 |
} |
| 164 |
} |
| 165 |
], |
| 166 |
"directives": [] |
| 167 |
} |
| 168 |
} |