| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":78,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":78}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":78,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":78}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "ClassDeclaration", |
| 12 |
"start":0,"end":78,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":78}}, |
| 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":78,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":5,"column":1,"index":78}}, |
| 22 |
"body": [ |
| 23 |
{ |
| 24 |
"type": "ClassMethod", |
| 25 |
"start":16,"end":76,"loc":{"start":{"line":2,"column":4,"index":16},"end":{"line":4,"column":5,"index":76}}, |
| 26 |
"static": false, |
| 27 |
"key": { |
| 28 |
"type": "Identifier", |
| 29 |
"start":16,"end":27,"loc":{"start":{"line":2,"column":4,"index":16},"end":{"line":2,"column":15,"index":27},"identifierName":"constructor"}, |
| 30 |
"name": "constructor" |
| 31 |
}, |
| 32 |
"computed": false, |
| 33 |
"kind": "constructor", |
| 34 |
"id": null, |
| 35 |
"generator": false, |
| 36 |
"async": false, |
| 37 |
"params": [], |
| 38 |
"body": { |
| 39 |
"type": "BlockStatement", |
| 40 |
"start":30,"end":76,"loc":{"start":{"line":2,"column":18,"index":30},"end":{"line":4,"column":5,"index":76}}, |
| 41 |
"body": [ |
| 42 |
{ |
| 43 |
"type": "ExpressionStatement", |
| 44 |
"start":40,"end":70,"loc":{"start":{"line":3,"column":8,"index":40},"end":{"line":3,"column":38,"index":70}}, |
| 45 |
"expression": { |
| 46 |
"type": "CallExpression", |
| 47 |
"start":40,"end":69,"loc":{"start":{"line":3,"column":8,"index":40},"end":{"line":3,"column":37,"index":69}}, |
| 48 |
"callee": { |
| 49 |
"type": "Identifier", |
| 50 |
"start":40,"end":43,"loc":{"start":{"line":3,"column":8,"index":40},"end":{"line":3,"column":11,"index":43},"identifierName":"baz"}, |
| 51 |
"name": "baz" |
| 52 |
}, |
| 53 |
"arguments": [ |
| 54 |
{ |
| 55 |
"type": "ThisExpression", |
| 56 |
"start":44,"end":48,"loc":{"start":{"line":3,"column":12,"index":44},"end":{"line":3,"column":16,"index":48}} |
| 57 |
}, |
| 58 |
{ |
| 59 |
"type": "ArrowFunctionExpression", |
| 60 |
"start":50,"end":68,"loc":{"start":{"line":3,"column":18,"index":50},"end":{"line":3,"column":36,"index":68}}, |
| 61 |
"id": null, |
| 62 |
"generator": false, |
| 63 |
"async": false, |
| 64 |
"params": [], |
| 65 |
"body": { |
| 66 |
"type": "CallExpression", |
| 67 |
"start":56,"end":68,"loc":{"start":{"line":3,"column":24,"index":56},"end":{"line":3,"column":36,"index":68}}, |
| 68 |
"callee": { |
| 69 |
"type": "MemberExpression", |
| 70 |
"start":56,"end":65,"loc":{"start":{"line":3,"column":24,"index":56},"end":{"line":3,"column":33,"index":65}}, |
| 71 |
"object": { |
| 72 |
"type": "Super", |
| 73 |
"start":56,"end":61,"loc":{"start":{"line":3,"column":24,"index":56},"end":{"line":3,"column":29,"index":61}} |
| 74 |
}, |
| 75 |
"computed": false, |
| 76 |
"property": { |
| 77 |
"type": "Identifier", |
| 78 |
"start":62,"end":65,"loc":{"start":{"line":3,"column":30,"index":62},"end":{"line":3,"column":33,"index":65},"identifierName":"bar"}, |
| 79 |
"name": "bar" |
| 80 |
} |
| 81 |
}, |
| 82 |
"arguments": [ |
| 83 |
{ |
| 84 |
"type": "ArgumentPlaceholder", |
| 85 |
"start":66,"end":67,"loc":{"start":{"line":3,"column":34,"index":66},"end":{"line":3,"column":35,"index":67}} |
| 86 |
} |
| 87 |
] |
| 88 |
} |
| 89 |
} |
| 90 |
] |
| 91 |
} |
| 92 |
} |
| 93 |
], |
| 94 |
"directives": [] |
| 95 |
} |
| 96 |
} |
| 97 |
] |
| 98 |
} |
| 99 |
} |
| 100 |
], |
| 101 |
"directives": [] |
| 102 |
} |
| 103 |
} |