| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":33}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":33}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "ClassDeclaration", |
| 12 |
"start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":33}}, |
| 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":"A"}, |
| 16 |
"name": "A" |
| 17 |
}, |
| 18 |
"superClass": null, |
| 19 |
"body": { |
| 20 |
"type": "ClassBody", |
| 21 |
"start":8,"end":33,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":4,"column":1,"index":33}}, |
| 22 |
"body": [ |
| 23 |
{ |
| 24 |
"type": "ClassMethod", |
| 25 |
"start":12,"end":31,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":3,"column":14,"index":31}}, |
| 26 |
"decorators": [ |
| 27 |
{ |
| 28 |
"type": "Decorator", |
| 29 |
"start":12,"end":16,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":6,"index":16}}, |
| 30 |
"expression": { |
| 31 |
"type": "Identifier", |
| 32 |
"start":13,"end":16,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":6,"index":16},"identifierName":"dec"}, |
| 33 |
"name": "dec" |
| 34 |
} |
| 35 |
} |
| 36 |
], |
| 37 |
"static": false, |
| 38 |
"computed": true, |
| 39 |
"key": { |
| 40 |
"type": "StringLiteral", |
| 41 |
"start":20,"end":26,"loc":{"start":{"line":3,"column":3,"index":20},"end":{"line":3,"column":9,"index":26}}, |
| 42 |
"extra": { |
| 43 |
"rawValue": "name", |
| 44 |
"raw": "'name'" |
| 45 |
}, |
| 46 |
"value": "name" |
| 47 |
}, |
| 48 |
"kind": "method", |
| 49 |
"id": null, |
| 50 |
"generator": false, |
| 51 |
"async": false, |
| 52 |
"params": [], |
| 53 |
"body": { |
| 54 |
"type": "BlockStatement", |
| 55 |
"start":29,"end":31,"loc":{"start":{"line":3,"column":12,"index":29},"end":{"line":3,"column":14,"index":31}}, |
| 56 |
"body": [], |
| 57 |
"directives": [] |
| 58 |
} |
| 59 |
} |
| 60 |
] |
| 61 |
} |
| 62 |
} |
| 63 |
], |
| 64 |
"directives": [] |
| 65 |
} |
| 66 |
} |