Debian Codegraph @

packages/babel-parser/test/fixtures/comments/regression/10432/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":136,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":2,"index":136}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":136,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":2,"index":136}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":6,"end":36,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":36,"index":36}},
17 "id": {
18 "type": "Identifier",
19 "start":6,"end":12,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":12,"index":12},"identifierName":"socket"},
20 "name": "socket"
21 },
22 "init": {
23 "type": "CallExpression",
24 "start":15,"end":36,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":36,"index":36}},
25 "callee": {
26 "type": "Identifier",
27 "start":15,"end":27,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":27,"index":27},"identifierName":"socketClient"},
28 "name": "socketClient"
29 },
30 "arguments": [
31 {
32 "type": "Identifier",
33 "start":28,"end":35,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":35,"index":35},"identifierName":"address"},
34 "name": "address"
35 }
36 ]
37 }
38 }
39 ],
40 "kind": "const",
41 "trailingComments": [
42 {
43 "type": "CommentBlock",
44 "value": " istanbul ignore next ",
45 "start":37,"end":63,"loc":{"start":{"line":2,"column":0,"index":37},"end":{"line":2,"column":26,"index":63}}
46 }
47 ]
48 },
49 {
50 "type": "ExpressionStatement",
51 "start":64,"end":136,"loc":{"start":{"line":3,"column":0,"index":64},"end":{"line":5,"column":2,"index":136}},
52 "expression": {
53 "type": "CallExpression",
54 "start":64,"end":136,"loc":{"start":{"line":3,"column":0,"index":64},"end":{"line":5,"column":2,"index":136}},
55 "callee": {
56 "type": "MemberExpression",
57 "start":64,"end":73,"loc":{"start":{"line":3,"column":0,"index":64},"end":{"line":3,"column":9,"index":73}},
58 "object": {
59 "type": "Identifier",
60 "start":64,"end":70,"loc":{"start":{"line":3,"column":0,"index":64},"end":{"line":3,"column":6,"index":70},"identifierName":"socket"},
61 "name": "socket"
62 },
63 "computed": false,
64 "property": {
65 "type": "Identifier",
66 "start":71,"end":73,"loc":{"start":{"line":3,"column":7,"index":71},"end":{"line":3,"column":9,"index":73},"identifierName":"on"},
67 "name": "on"
68 }
69 },
70 "arguments": [
71 {
72 "type": "StringLiteral",
73 "start":74,"end":83,"loc":{"start":{"line":3,"column":10,"index":74},"end":{"line":3,"column":19,"index":83}},
74 "extra": {
75 "rawValue": "connect",
76 "raw": "'connect'"
77 },
78 "value": "connect"
79 },
80 {
81 "type": "FunctionExpression",
82 "start":85,"end":135,"loc":{"start":{"line":3,"column":21,"index":85},"end":{"line":5,"column":1,"index":135}},
83 "id": null,
84 "generator": false,
85 "async": false,
86 "params": [],
87 "body": {
88 "type": "BlockStatement",
89 "start":97,"end":135,"loc":{"start":{"line":3,"column":33,"index":97},"end":{"line":5,"column":1,"index":135}},
90 "body": [
91 {
92 "type": "ExpressionStatement",
93 "start":101,"end":133,"loc":{"start":{"line":4,"column":2,"index":101},"end":{"line":4,"column":34,"index":133}},
94 "expression": {
95 "type": "CallExpression",
96 "start":101,"end":133,"loc":{"start":{"line":4,"column":2,"index":101},"end":{"line":4,"column":34,"index":133}},
97 "callee": {
98 "type": "Identifier",
99 "start":101,"end":106,"loc":{"start":{"line":4,"column":2,"index":101},"end":{"line":4,"column":7,"index":106},"identifierName":"debug"},
100 "name": "debug"
101 },
102 "arguments": [
103 {
104 "type": "BinaryExpression",
105 "start":107,"end":132,"loc":{"start":{"line":4,"column":8,"index":107},"end":{"line":4,"column":33,"index":132}},
106 "left": {
107 "type": "StringLiteral",
108 "start":107,"end":122,"loc":{"start":{"line":4,"column":8,"index":107},"end":{"line":4,"column":23,"index":122}},
109 "extra": {
110 "rawValue": "Connected to ",
111 "raw": "'Connected to '"
112 },
113 "value": "Connected to "
114 },
115 "operator": "+",
116 "right": {
117 "type": "Identifier",
118 "start":125,"end":132,"loc":{"start":{"line":4,"column":26,"index":125},"end":{"line":4,"column":33,"index":132},"identifierName":"address"},
119 "name": "address"
120 }
121 }
122 ]
123 }
124 }
125 ],
126 "directives": []
127 }
128 }
129 ]
130 },
131 "leadingComments": [
132 {
133 "type": "CommentBlock",
134 "value": " istanbul ignore next ",
135 "start":37,"end":63,"loc":{"start":{"line":2,"column":0,"index":37},"end":{"line":2,"column":26,"index":63}}
136 }
137 ]
138 }
139 ],
140 "directives": []
141 },
142 "comments": [
143 {
144 "type": "CommentBlock",
145 "value": " istanbul ignore next ",
146 "start":37,"end":63,"loc":{"start":{"line":2,"column":0,"index":37},"end":{"line":2,"column":26,"index":63}}
147 }
148 ]
149 }