| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":76,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":76}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: 'arguments' is only allowed in functions and class methods. (3:25)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":76,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":76}}, |
| 10 |
"sourceType": "script", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "FunctionDeclaration", |
| 15 |
"start":0,"end":76,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":76}}, |
| 16 |
"id": { |
| 17 |
"type": "Identifier", |
| 18 |
"start":9,"end":11,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":11,"index":11},"identifierName":"fn"}, |
| 19 |
"name": "fn" |
| 20 |
}, |
| 21 |
"generator": false, |
| 22 |
"async": false, |
| 23 |
"params": [], |
| 24 |
"body": { |
| 25 |
"type": "BlockStatement", |
| 26 |
"start":14,"end":76,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":5,"column":1,"index":76}}, |
| 27 |
"body": [ |
| 28 |
{ |
| 29 |
"type": "ClassDeclaration", |
| 30 |
"start":18,"end":74,"loc":{"start":{"line":2,"column":2,"index":18},"end":{"line":4,"column":3,"index":74}}, |
| 31 |
"id": { |
| 32 |
"type": "Identifier", |
| 33 |
"start":24,"end":25,"loc":{"start":{"line":2,"column":8,"index":24},"end":{"line":2,"column":9,"index":25},"identifierName":"A"}, |
| 34 |
"name": "A" |
| 35 |
}, |
| 36 |
"superClass": null, |
| 37 |
"body": { |
| 38 |
"type": "ClassBody", |
| 39 |
"start":26,"end":74,"loc":{"start":{"line":2,"column":10,"index":26},"end":{"line":4,"column":3,"index":74}}, |
| 40 |
"body": [ |
| 41 |
{ |
| 42 |
"type": "ClassProperty", |
| 43 |
"start":32,"end":70,"loc":{"start":{"line":3,"column":4,"index":32},"end":{"line":3,"column":42,"index":70}}, |
| 44 |
"static": false, |
| 45 |
"key": { |
| 46 |
"type": "Identifier", |
| 47 |
"start":32,"end":35,"loc":{"start":{"line":3,"column":4,"index":32},"end":{"line":3,"column":7,"index":35},"identifierName":"foo"}, |
| 48 |
"name": "foo" |
| 49 |
}, |
| 50 |
"computed": false, |
| 51 |
"value": { |
| 52 |
"type": "ClassExpression", |
| 53 |
"start":38,"end":69,"loc":{"start":{"line":3,"column":10,"index":38},"end":{"line":3,"column":41,"index":69}}, |
| 54 |
"id": { |
| 55 |
"type": "Identifier", |
| 56 |
"start":44,"end":45,"loc":{"start":{"line":3,"column":16,"index":44},"end":{"line":3,"column":17,"index":45},"identifierName":"B"}, |
| 57 |
"name": "B" |
| 58 |
}, |
| 59 |
"superClass": null, |
| 60 |
"body": { |
| 61 |
"type": "ClassBody", |
| 62 |
"start":46,"end":69,"loc":{"start":{"line":3,"column":18,"index":46},"end":{"line":3,"column":41,"index":69}}, |
| 63 |
"body": [ |
| 64 |
{ |
| 65 |
"type": "ClassProperty", |
| 66 |
"start":48,"end":67,"loc":{"start":{"line":3,"column":20,"index":48},"end":{"line":3,"column":39,"index":67}}, |
| 67 |
"decorators": [ |
| 68 |
{ |
| 69 |
"type": "Decorator", |
| 70 |
"start":48,"end":63,"loc":{"start":{"line":3,"column":20,"index":48},"end":{"line":3,"column":35,"index":63}}, |
| 71 |
"expression": { |
| 72 |
"type": "CallExpression", |
| 73 |
"start":49,"end":63,"loc":{"start":{"line":3,"column":21,"index":49},"end":{"line":3,"column":35,"index":63}}, |
| 74 |
"callee": { |
| 75 |
"type": "Identifier", |
| 76 |
"start":49,"end":52,"loc":{"start":{"line":3,"column":21,"index":49},"end":{"line":3,"column":24,"index":52},"identifierName":"bar"}, |
| 77 |
"name": "bar" |
| 78 |
}, |
| 79 |
"arguments": [ |
| 80 |
{ |
| 81 |
"type": "Identifier", |
| 82 |
"start":53,"end":62,"loc":{"start":{"line":3,"column":25,"index":53},"end":{"line":3,"column":34,"index":62},"identifierName":"arguments"}, |
| 83 |
"name": "arguments" |
| 84 |
} |
| 85 |
] |
| 86 |
} |
| 87 |
} |
| 88 |
], |
| 89 |
"static": false, |
| 90 |
"key": { |
| 91 |
"type": "Identifier", |
| 92 |
"start":64,"end":67,"loc":{"start":{"line":3,"column":36,"index":64},"end":{"line":3,"column":39,"index":67},"identifierName":"foo"}, |
| 93 |
"name": "foo" |
| 94 |
}, |
| 95 |
"computed": false, |
| 96 |
"value": null |
| 97 |
} |
| 98 |
] |
| 99 |
} |
| 100 |
} |
| 101 |
} |
| 102 |
] |
| 103 |
} |
| 104 |
} |
| 105 |
], |
| 106 |
"directives": [] |
| 107 |
} |
| 108 |
} |
| 109 |
], |
| 110 |
"directives": [] |
| 111 |
} |
| 112 |
} |