Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/pipeline-operator/hack-hash-proposal-class-expression-with-private-property/output.json

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