Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/decorators/complex-expr/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":36}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":36}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":36}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"},
16 "name": "A"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":8,"end":36,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":4,"column":1,"index":36}},
22 "body": [
23 {
24 "type": "ClassMethod",
25 "start":12,"end":34,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":3,"column":7,"index":34}},
26 "decorators": [
27 {
28 "type": "Decorator",
29 "start":12,"end":26,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":16,"index":26}},
30 "expression": {
31 "type": "CallExpression",
32 "start":13,"end":26,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":16,"index":26}},
33 "callee": {
34 "type": "MemberExpression",
35 "start":13,"end":20,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":10,"index":20}},
36 "object": {
37 "type": "MemberExpression",
38 "start":13,"end":18,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":8,"index":18}},
39 "object": {
40 "type": "MemberExpression",
41 "start":13,"end":16,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":6,"index":16}},
42 "object": {
43 "type": "Identifier",
44 "start":13,"end":14,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":4,"index":14},"identifierName":"a"},
45 "name": "a"
46 },
47 "property": {
48 "type": "Identifier",
49 "start":15,"end":16,"loc":{"start":{"line":2,"column":5,"index":15},"end":{"line":2,"column":6,"index":16},"identifierName":"b"},
50 "name": "b"
51 },
52 "computed": false
53 },
54 "property": {
55 "type": "Identifier",
56 "start":17,"end":18,"loc":{"start":{"line":2,"column":7,"index":17},"end":{"line":2,"column":8,"index":18},"identifierName":"c"},
57 "name": "c"
58 },
59 "computed": false
60 },
61 "property": {
62 "type": "Identifier",
63 "start":19,"end":20,"loc":{"start":{"line":2,"column":9,"index":19},"end":{"line":2,"column":10,"index":20},"identifierName":"d"},
64 "name": "d"
65 },
66 "computed": false
67 },
68 "arguments": [
69 {
70 "type": "Identifier",
71 "start":21,"end":22,"loc":{"start":{"line":2,"column":11,"index":21},"end":{"line":2,"column":12,"index":22},"identifierName":"e"},
72 "name": "e"
73 },
74 {
75 "type": "Identifier",
76 "start":24,"end":25,"loc":{"start":{"line":2,"column":14,"index":24},"end":{"line":2,"column":15,"index":25},"identifierName":"f"},
77 "name": "f"
78 }
79 ]
80 }
81 }
82 ],
83 "static": false,
84 "key": {
85 "type": "Identifier",
86 "start":29,"end":30,"loc":{"start":{"line":3,"column":2,"index":29},"end":{"line":3,"column":3,"index":30},"identifierName":"m"},
87 "name": "m"
88 },
89 "computed": false,
90 "kind": "method",
91 "id": null,
92 "generator": false,
93 "async": false,
94 "params": [],
95 "body": {
96 "type": "BlockStatement",
97 "start":32,"end":34,"loc":{"start":{"line":3,"column":5,"index":32},"end":{"line":3,"column":7,"index":34}},
98 "body": [],
99 "directives": []
100 }
101 }
102 ]
103 }
104 }
105 ],
106 "directives": []
107 }
108 }