Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":100,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":100}},
4 "errors": [
5 "SyntaxError: Unexpected reserved word 'yield'. (4:8)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":100,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":100}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":100,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":100}},
16 "id": {
17 "type": "Identifier",
18 "start":10,"end":13,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":13,"index":13},"identifierName":"foo"},
19 "name": "foo"
20 },
21 "generator": true,
22 "async": false,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":16,"end":100,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":6,"column":1,"index":100}},
27 "body": [
28 {
29 "type": "ClassDeclaration",
30 "start":20,"end":98,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":5,"column":3,"index":98}},
31 "id": {
32 "type": "Identifier",
33 "start":26,"end":27,"loc":{"start":{"line":2,"column":8,"index":26},"end":{"line":2,"column":9,"index":27},"identifierName":"C"},
34 "name": "C"
35 },
36 "superClass": null,
37 "body": {
38 "type": "ClassBody",
39 "start":28,"end":98,"loc":{"start":{"line":2,"column":10,"index":28},"end":{"line":5,"column":3,"index":98}},
40 "body": [
41 {
42 "type": "ClassProperty",
43 "start":79,"end":94,"loc":{"start":{"line":4,"column":4,"index":79},"end":{"line":4,"column":19,"index":94}},
44 "static": false,
45 "key": {
46 "type": "Identifier",
47 "start":79,"end":80,"loc":{"start":{"line":4,"column":4,"index":79},"end":{"line":4,"column":5,"index":80},"identifierName":"p"},
48 "name": "p"
49 },
50 "computed": false,
51 "value": {
52 "type": "BinaryExpression",
53 "start":83,"end":93,"loc":{"start":{"line":4,"column":8,"index":83},"end":{"line":4,"column":18,"index":93}},
54 "left": {
55 "type": "Identifier",
56 "start":83,"end":88,"loc":{"start":{"line":4,"column":8,"index":83},"end":{"line":4,"column":13,"index":88},"identifierName":"yield"},
57 "name": "yield"
58 },
59 "operator": "+",
60 "right": {
61 "type": "NumericLiteral",
62 "start":91,"end":93,"loc":{"start":{"line":4,"column":16,"index":91},"end":{"line":4,"column":18,"index":93}},
63 "extra": {
64 "rawValue": 42,
65 "raw": "42"
66 },
67 "value": 42
68 }
69 },
70 "leadingComments": [
71 {
72 "type": "CommentLine",
73 "value": " here yield is an identifier reference",
74 "start":34,"end":74,"loc":{"start":{"line":3,"column":4,"index":34},"end":{"line":3,"column":44,"index":74}}
75 }
76 ]
77 }
78 ]
79 }
80 }
81 ],
82 "directives": []
83 }
84 }
85 ],
86 "directives": []
87 },
88 "comments": [
89 {
90 "type": "CommentLine",
91 "value": " here yield is an identifier reference",
92 "start":34,"end":74,"loc":{"start":{"line":3,"column":4,"index":34},"end":{"line":3,"column":44,"index":74}}
93 }
94 ]
95 }