Debian Codegraph @

packages/babel-parser/test/fixtures/estree/class-private-method/not-enabled-babel-7/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":70,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":70,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":70,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":7,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":7},"identifierName":"A"},
16 "name": "A"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":8,"end":70,"loc":{"start":{"line":1,"column":8},"end":{"line":4,"column":1}},
22 "body": [
23 {
24 "type": "MethodDefinition",
25 "start":12,"end":35,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":25}},
26 "static": false,
27 "key": {
28 "type": "PrivateName",
29 "start":12,"end":16,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":6}},
30 "id": {
31 "type": "Identifier",
32 "start":13,"end":16,"loc":{"start":{"line":2,"column":3},"end":{"line":2,"column":6},"identifierName":"foo"},
33 "name": "foo"
34 }
35 },
36 "kind": "method",
37 "value": {
38 "type": "FunctionExpression",
39 "start":16,"end":35,"loc":{"start":{"line":2,"column":6},"end":{"line":2,"column":25}},
40 "id": null,
41 "generator": false,
42 "async": false,
43 "expression": false,
44 "params": [
45 {
46 "type": "Identifier",
47 "start":17,"end":20,"loc":{"start":{"line":2,"column":7},"end":{"line":2,"column":10},"identifierName":"arg"},
48 "name": "arg"
49 },
50 {
51 "type": "RestElement",
52 "start":22,"end":31,"loc":{"start":{"line":2,"column":12},"end":{"line":2,"column":21}},
53 "argument": {
54 "type": "Identifier",
55 "start":25,"end":31,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":21},"identifierName":"others"},
56 "name": "others"
57 }
58 }
59 ],
60 "body": {
61 "type": "BlockStatement",
62 "start":33,"end":35,"loc":{"start":{"line":2,"column":23},"end":{"line":2,"column":25}},
63 "body": []
64 }
65 },
66 "computed": false
67 },
68 {
69 "type": "MethodDefinition",
70 "start":38,"end":68,"loc":{"start":{"line":3,"column":2},"end":{"line":3,"column":32}},
71 "static": true,
72 "key": {
73 "type": "PrivateName",
74 "start":45,"end":49,"loc":{"start":{"line":3,"column":9},"end":{"line":3,"column":13}},
75 "id": {
76 "type": "Identifier",
77 "start":46,"end":49,"loc":{"start":{"line":3,"column":10},"end":{"line":3,"column":13},"identifierName":"bar"},
78 "name": "bar"
79 }
80 },
81 "kind": "method",
82 "value": {
83 "type": "FunctionExpression",
84 "start":49,"end":68,"loc":{"start":{"line":3,"column":13},"end":{"line":3,"column":32}},
85 "id": null,
86 "generator": false,
87 "async": false,
88 "expression": false,
89 "params": [
90 {
91 "type": "Identifier",
92 "start":50,"end":53,"loc":{"start":{"line":3,"column":14},"end":{"line":3,"column":17},"identifierName":"arg"},
93 "name": "arg"
94 },
95 {
96 "type": "RestElement",
97 "start":55,"end":64,"loc":{"start":{"line":3,"column":19},"end":{"line":3,"column":28}},
98 "argument": {
99 "type": "Identifier",
100 "start":58,"end":64,"loc":{"start":{"line":3,"column":22},"end":{"line":3,"column":28},"identifierName":"others"},
101 "name": "others"
102 }
103 }
104 ],
105 "body": {
106 "type": "BlockStatement",
107 "start":66,"end":68,"loc":{"start":{"line":3,"column":30},"end":{"line":3,"column":32}},
108 "body": []
109 }
110 },
111 "computed": false
112 }
113 ]
114 }
115 }
116 ]
117 }
118 }