| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":86,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":86}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Unexpected argument placeholder. (3:16)", |
| 6 |
"SyntaxError: Unexpected argument placeholder. (3:19)" |
| 7 |
], |
| 8 |
"program": { |
| 9 |
"type": "Program", |
| 10 |
"start":0,"end":86,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":86}}, |
| 11 |
"sourceType": "script", |
| 12 |
"interpreter": null, |
| 13 |
"body": [ |
| 14 |
{ |
| 15 |
"type": "ClassDeclaration", |
| 16 |
"start":0,"end":86,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":86}}, |
| 17 |
"id": { |
| 18 |
"type": "Identifier", |
| 19 |
"start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"Foo"}, |
| 20 |
"name": "Foo" |
| 21 |
}, |
| 22 |
"superClass": { |
| 23 |
"type": "Identifier", |
| 24 |
"start":18,"end":21,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":21,"index":21},"identifierName":"Bar"}, |
| 25 |
"name": "Bar" |
| 26 |
}, |
| 27 |
"body": { |
| 28 |
"type": "ClassBody", |
| 29 |
"start":22,"end":86,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":6,"column":1,"index":86}}, |
| 30 |
"body": [ |
| 31 |
{ |
| 32 |
"type": "ClassMethod", |
| 33 |
"start":26,"end":84,"loc":{"start":{"line":2,"column":2,"index":26},"end":{"line":5,"column":3,"index":84}}, |
| 34 |
"static": false, |
| 35 |
"key": { |
| 36 |
"type": "Identifier", |
| 37 |
"start":26,"end":37,"loc":{"start":{"line":2,"column":2,"index":26},"end":{"line":2,"column":13,"index":37},"identifierName":"constructor"}, |
| 38 |
"name": "constructor" |
| 39 |
}, |
| 40 |
"computed": false, |
| 41 |
"kind": "constructor", |
| 42 |
"id": null, |
| 43 |
"generator": false, |
| 44 |
"async": false, |
| 45 |
"params": [ |
| 46 |
{ |
| 47 |
"type": "Identifier", |
| 48 |
"start":38,"end":39,"loc":{"start":{"line":2,"column":14,"index":38},"end":{"line":2,"column":15,"index":39},"identifierName":"x"}, |
| 49 |
"name": "x" |
| 50 |
} |
| 51 |
], |
| 52 |
"body": { |
| 53 |
"type": "BlockStatement", |
| 54 |
"start":40,"end":84,"loc":{"start":{"line":2,"column":16,"index":40},"end":{"line":5,"column":3,"index":84}}, |
| 55 |
"body": [ |
| 56 |
{ |
| 57 |
"type": "ExpressionStatement", |
| 58 |
"start":46,"end":64,"loc":{"start":{"line":3,"column":4,"index":46},"end":{"line":3,"column":22,"index":64}}, |
| 59 |
"expression": { |
| 60 |
"type": "CallExpression", |
| 61 |
"start":46,"end":63,"loc":{"start":{"line":3,"column":4,"index":46},"end":{"line":3,"column":21,"index":63}}, |
| 62 |
"callee": { |
| 63 |
"type": "Super", |
| 64 |
"start":46,"end":51,"loc":{"start":{"line":3,"column":4,"index":46},"end":{"line":3,"column":9,"index":51}} |
| 65 |
}, |
| 66 |
"arguments": [ |
| 67 |
{ |
| 68 |
"type": "Identifier", |
| 69 |
"start":52,"end":53,"loc":{"start":{"line":3,"column":10,"index":52},"end":{"line":3,"column":11,"index":53},"identifierName":"x"}, |
| 70 |
"name": "x" |
| 71 |
}, |
| 72 |
{ |
| 73 |
"type": "NumericLiteral", |
| 74 |
"start":55,"end":56,"loc":{"start":{"line":3,"column":13,"index":55},"end":{"line":3,"column":14,"index":56}}, |
| 75 |
"extra": { |
| 76 |
"rawValue": 1, |
| 77 |
"raw": "1" |
| 78 |
}, |
| 79 |
"value": 1 |
| 80 |
}, |
| 81 |
{ |
| 82 |
"type": "ArgumentPlaceholder", |
| 83 |
"start":58,"end":59,"loc":{"start":{"line":3,"column":16,"index":58},"end":{"line":3,"column":17,"index":59}} |
| 84 |
}, |
| 85 |
{ |
| 86 |
"type": "ArgumentPlaceholder", |
| 87 |
"start":61,"end":62,"loc":{"start":{"line":3,"column":19,"index":61},"end":{"line":3,"column":20,"index":62}} |
| 88 |
} |
| 89 |
] |
| 90 |
} |
| 91 |
}, |
| 92 |
{ |
| 93 |
"type": "ExpressionStatement", |
| 94 |
"start":69,"end":80,"loc":{"start":{"line":4,"column":4,"index":69},"end":{"line":4,"column":15,"index":80}}, |
| 95 |
"expression": { |
| 96 |
"type": "AssignmentExpression", |
| 97 |
"start":69,"end":79,"loc":{"start":{"line":4,"column":4,"index":69},"end":{"line":4,"column":14,"index":79}}, |
| 98 |
"operator": "=", |
| 99 |
"left": { |
| 100 |
"type": "MemberExpression", |
| 101 |
"start":69,"end":75,"loc":{"start":{"line":4,"column":4,"index":69},"end":{"line":4,"column":10,"index":75}}, |
| 102 |
"object": { |
| 103 |
"type": "ThisExpression", |
| 104 |
"start":69,"end":73,"loc":{"start":{"line":4,"column":4,"index":69},"end":{"line":4,"column":8,"index":73}} |
| 105 |
}, |
| 106 |
"computed": false, |
| 107 |
"property": { |
| 108 |
"type": "Identifier", |
| 109 |
"start":74,"end":75,"loc":{"start":{"line":4,"column":9,"index":74},"end":{"line":4,"column":10,"index":75},"identifierName":"x"}, |
| 110 |
"name": "x" |
| 111 |
} |
| 112 |
}, |
| 113 |
"right": { |
| 114 |
"type": "Identifier", |
| 115 |
"start":78,"end":79,"loc":{"start":{"line":4,"column":13,"index":78},"end":{"line":4,"column":14,"index":79},"identifierName":"x"}, |
| 116 |
"name": "x" |
| 117 |
} |
| 118 |
} |
| 119 |
} |
| 120 |
], |
| 121 |
"directives": [] |
| 122 |
} |
| 123 |
} |
| 124 |
] |
| 125 |
} |
| 126 |
} |
| 127 |
], |
| 128 |
"directives": [] |
| 129 |
} |
| 130 |
} |