| 1 | { |
| 2 | "type": "File", |
| 3 | "start":0,"end":61,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":9,"column":1,"index":61}}, |
| 4 | "program": { |
| 5 | "type": "Program", |
| 6 | "start":0,"end":61,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":9,"column":1,"index":61}}, |
| 7 | "sourceType": "script", |
| 8 | "interpreter": null, |
| 9 | "body": [ |
| 10 | { |
| 11 | "type": "ClassDeclaration", |
| 12 | "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":27}}, |
| 13 | "id": { |
| 14 | "type": "Identifier", |
| 15 | "start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"Foo"}, |
| 16 | "name": "Foo" |
| 17 | }, |
| 18 | "superClass": null, |
| 19 | "body": { |
| 20 | "type": "ClassBody", |
| 21 | "start":10,"end":27,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":4,"column":1,"index":27}}, |
| 22 | "body": [ |
| 23 | { |
| 24 | "type": "ClassProperty", |
| 25 | "start":14,"end":17,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":5,"index":17}}, |
| 26 | "static": false, |
| 27 | "computed": true, |
| 28 | "key": { |
| 29 | "type": "Identifier", |
| 30 | "start":15,"end":16,"loc":{"start":{"line":2,"column":3,"index":15},"end":{"line":2,"column":4,"index":16},"identifierName":"x"}, |
| 31 | "name": "x" |
| 32 | }, |
| 33 | "value": null |
| 34 | }, |
| 35 | { |
| 36 | "type": "ClassProperty", |
| 37 | "start":20,"end":25,"loc":{"start":{"line":3,"column":2,"index":20},"end":{"line":3,"column":7,"index":25}}, |
| 38 | "static": false, |
| 39 | "computed": true, |
| 40 | "key": { |
| 41 | "type": "StringLiteral", |
| 42 | "start":21,"end":24,"loc":{"start":{"line":3,"column":3,"index":21},"end":{"line":3,"column":6,"index":24}}, |
| 43 | "extra": { |
| 44 | "rawValue": "y", |
| 45 | "raw": "'y'" |
| 46 | }, |
| 47 | "value": "y" |
| 48 | }, |
| 49 | "value": null |
| 50 | } |
| 51 | ] |
| 52 | } |
| 53 | }, |
| 54 | { |
| 55 | "type": "ClassDeclaration", |
| 56 | "start":29,"end":61,"loc":{"start":{"line":6,"column":0,"index":29},"end":{"line":9,"column":1,"index":61}}, |
| 57 | "id": { |
| 58 | "type": "Identifier", |
| 59 | "start":35,"end":39,"loc":{"start":{"line":6,"column":6,"index":35},"end":{"line":6,"column":10,"index":39},"identifierName":"Foo2"}, |
| 60 | "name": "Foo2" |
| 61 | }, |
| 62 | "superClass": null, |
| 63 | "body": { |
| 64 | "type": "ClassBody", |
| 65 | "start":40,"end":61,"loc":{"start":{"line":6,"column":11,"index":40},"end":{"line":9,"column":1,"index":61}}, |
| 66 | "body": [ |
| 67 | { |
| 68 | "type": "ClassProperty", |
| 69 | "start":44,"end":47,"loc":{"start":{"line":7,"column":2,"index":44},"end":{"line":7,"column":5,"index":47}}, |
| 70 | "static": false, |
| 71 | "computed": true, |
| 72 | "key": { |
| 73 | "type": "Identifier", |
| 74 | "start":45,"end":46,"loc":{"start":{"line":7,"column":3,"index":45},"end":{"line":7,"column":4,"index":46},"identifierName":"p"}, |
| 75 | "name": "p" |
| 76 | }, |
| 77 | "value": null |
| 78 | }, |
| 79 | { |
| 80 | "type": "ClassMethod", |
| 81 | "start":50,"end":59,"loc":{"start":{"line":8,"column":2,"index":50},"end":{"line":8,"column":11,"index":59}}, |
| 82 | "static": false, |
| 83 | "computed": true, |
| 84 | "key": { |
| 85 | "type": "Identifier", |
| 86 | "start":51,"end":52,"loc":{"start":{"line":8,"column":3,"index":51},"end":{"line":8,"column":4,"index":52},"identifierName":"m"}, |
| 87 | "name": "m" |
| 88 | }, |
| 89 | "kind": "method", |
| 90 | "id": null, |
| 91 | "generator": false, |
| 92 | "async": false, |
| 93 | "params": [], |
| 94 | "body": { |
| 95 | "type": "BlockStatement", |
| 96 | "start":57,"end":59,"loc":{"start":{"line":8,"column":9,"index":57},"end":{"line":8,"column":11,"index":59}}, |
| 97 | "body": [], |
| 98 | "directives": [] |
| 99 | } |
| 100 | } |
| 101 | ] |
| 102 | } |
| 103 | } |
| 104 | ], |
| 105 | "directives": [] |
| 106 | } |
| 107 | } |