Debian Codegraph @

packages/babel-parser/test/fixtures/estree/object-method/basic/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":24,"loc":{"start":{"line":1,"column":4},"end":{"line":3,"column":1}},
17 "id": {
18 "type": "Identifier",
19 "start":4,"end":7,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":7},"identifierName":"bar"},
20 "name": "bar"
21 },
22 "init": {
23 "type": "ObjectExpression",
24 "start":10,"end":24,"loc":{"start":{"line":1,"column":10},"end":{"line":3,"column":1}},
25 "properties": [
26 {
27 "type": "Property",
28 "start":14,"end":22,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":10}},
29 "method": true,
30 "key": {
31 "type": "Identifier",
32 "start":14,"end":17,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":5},"identifierName":"foo"},
33 "name": "foo"
34 },
35 "computed": false,
36 "kind": "init",
37 "value": {
38 "type": "FunctionExpression",
39 "start":17,"end":22,"loc":{"start":{"line":2,"column":5},"end":{"line":2,"column":10}},
40 "id": null,
41 "generator": false,
42 "async": false,
43 "expression": false,
44 "params": [],
45 "body": {
46 "type": "BlockStatement",
47 "start":20,"end":22,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":10}},
48 "body": []
49 }
50 },
51 "shorthand": false
52 }
53 ]
54 }
55 }
56 ],
57 "kind": "var"
58 }
59 ]
60 }
61 }