Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-properties/yield-in-generator-in-class-property/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
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":"C"},
16 "name": "C"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":8,"end":46,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":3,"column":1,"index":46}},
22 "body": [
23 {
24 "type": "ClassProperty",
25 "start":12,"end":44,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":34,"index":44}},
26 "static": false,
27 "key": {
28 "type": "Identifier",
29 "start":12,"end":13,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":3,"index":13},"identifierName":"p"},
30 "name": "p"
31 },
32 "computed": false,
33 "value": {
34 "type": "FunctionExpression",
35 "start":16,"end":43,"loc":{"start":{"line":2,"column":6,"index":16},"end":{"line":2,"column":33,"index":43}},
36 "id": null,
37 "generator": true,
38 "async": false,
39 "params": [],
40 "body": {
41 "type": "BlockStatement",
42 "start":29,"end":43,"loc":{"start":{"line":2,"column":19,"index":29},"end":{"line":2,"column":33,"index":43}},
43 "body": [
44 {
45 "type": "ExpressionStatement",
46 "start":31,"end":41,"loc":{"start":{"line":2,"column":21,"index":31},"end":{"line":2,"column":31,"index":41}},
47 "expression": {
48 "type": "YieldExpression",
49 "start":31,"end":41,"loc":{"start":{"line":2,"column":21,"index":31},"end":{"line":2,"column":31,"index":41}},
50 "delegate": false,
51 "argument": {
52 "type": "UnaryExpression",
53 "start":37,"end":41,"loc":{"start":{"line":2,"column":27,"index":37},"end":{"line":2,"column":31,"index":41}},
54 "operator": "+",
55 "prefix": true,
56 "argument": {
57 "type": "NumericLiteral",
58 "start":39,"end":41,"loc":{"start":{"line":2,"column":29,"index":39},"end":{"line":2,"column":31,"index":41}},
59 "extra": {
60 "rawValue": 42,
61 "raw": "42"
62 },
63 "value": 42
64 }
65 }
66 }
67 }
68 ],
69 "directives": []
70 }
71 }
72 }
73 ]
74 }
75 }
76 ],
77 "directives": []
78 }
79 }