Debian Codegraph @

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

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