Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/class/extends-strict/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":64,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":7,"index":64}},
4 "errors": [
5 "SyntaxError: 'with' in strict mode. (2:2)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":64,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":7,"index":64}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":64,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":7,"index":64}},
16 "id": {
17 "type": "Identifier",
18 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"C"},
19 "name": "C"
20 },
21 "superClass": {
22 "type": "CallExpression",
23 "start":17,"end":60,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":4,"column":3,"index":60}},
24 "callee": {
25 "type": "FunctionExpression",
26 "start":17,"end":58,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":4,"column":1,"index":58}},
27 "id": {
28 "type": "Identifier",
29 "start":26,"end":27,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":27,"index":27},"identifierName":"B"},
30 "name": "B"
31 },
32 "generator": false,
33 "async": false,
34 "params": [],
35 "body": {
36 "type": "BlockStatement",
37 "start":30,"end":58,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":4,"column":1,"index":58}},
38 "body": [
39 {
40 "type": "WithStatement",
41 "start":34,"end":44,"loc":{"start":{"line":2,"column":2,"index":34},"end":{"line":2,"column":12,"index":44}},
42 "object": {
43 "type": "ObjectExpression",
44 "start":40,"end":42,"loc":{"start":{"line":2,"column":8,"index":40},"end":{"line":2,"column":10,"index":42}},
45 "properties": []
46 },
47 "body": {
48 "type": "EmptyStatement",
49 "start":43,"end":44,"loc":{"start":{"line":2,"column":11,"index":43},"end":{"line":2,"column":12,"index":44}}
50 }
51 },
52 {
53 "type": "ReturnStatement",
54 "start":47,"end":56,"loc":{"start":{"line":3,"column":2,"index":47},"end":{"line":3,"column":11,"index":56}},
55 "argument": {
56 "type": "Identifier",
57 "start":54,"end":55,"loc":{"start":{"line":3,"column":9,"index":54},"end":{"line":3,"column":10,"index":55},"identifierName":"B"},
58 "name": "B"
59 }
60 }
61 ],
62 "directives": []
63 }
64 },
65 "arguments": [],
66 "extra": {
67 "parenthesized": true,
68 "parenStart": 16
69 }
70 },
71 "body": {
72 "type": "ClassBody",
73 "start":62,"end":64,"loc":{"start":{"line":4,"column":5,"index":62},"end":{"line":4,"column":7,"index":64}},
74 "body": []
75 }
76 }
77 ],
78 "directives": []
79 }
80 }