Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/pipeline-operator/hack-double-at-proposal-yield-generator-unparenthesized/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":44}},
4 "errors": [
5 "SyntaxError: Hack-style pipe body cannot be an unparenthesized yield expression; please wrap it in parentheses. (2:14)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":44}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":44}},
16 "id": {
17 "type": "Identifier",
18 "start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12},"identifierName":"f"},
19 "name": "f"
20 },
21 "generator": true,
22 "async": false,
23 "params": [
24 {
25 "type": "Identifier",
26 "start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"x"},
27 "name": "x"
28 }
29 ],
30 "body": {
31 "type": "BlockStatement",
32 "start":17,"end":44,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":3,"column":1,"index":44}},
33 "body": [
34 {
35 "type": "ReturnStatement",
36 "start":21,"end":42,"loc":{"start":{"line":2,"column":2,"index":21},"end":{"line":2,"column":23,"index":42}},
37 "argument": {
38 "type": "BinaryExpression",
39 "start":28,"end":41,"loc":{"start":{"line":2,"column":9,"index":28},"end":{"line":2,"column":22,"index":41}},
40 "left": {
41 "type": "Identifier",
42 "start":28,"end":29,"loc":{"start":{"line":2,"column":9,"index":28},"end":{"line":2,"column":10,"index":29},"identifierName":"x"},
43 "name": "x"
44 },
45 "operator": "|>",
46 "right": {
47 "type": "YieldExpression",
48 "start":33,"end":41,"loc":{"start":{"line":2,"column":14,"index":33},"end":{"line":2,"column":22,"index":41}},
49 "delegate": false,
50 "argument": {
51 "type": "TopicReference",
52 "start":39,"end":41,"loc":{"start":{"line":2,"column":20,"index":39},"end":{"line":2,"column":22,"index":41}}
53 }
54 }
55 }
56 }
57 ],
58 "directives": []
59 }
60 }
61 ],
62 "directives": []
63 }
64 }