Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-yield/yield-expression-precedence/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}},
13 "id": {
14 "type": "Identifier",
15 "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"g"},
16 "name": "g"
17 },
18 "generator": true,
19 "async": false,
20 "params": [],
21 "body": {
22 "type": "BlockStatement",
23 "start":14,"end":42,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":42,"index":42}},
24 "body": [
25 {
26 "type": "ExpressionStatement",
27 "start":16,"end":40,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":40,"index":40}},
28 "expression": {
29 "type": "SequenceExpression",
30 "start":16,"end":40,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":40,"index":40}},
31 "expressions": [
32 {
33 "type": "YieldExpression",
34 "start":16,"end":25,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":25,"index":25}},
35 "delegate": false,
36 "argument": {
37 "type": "AssignmentExpression",
38 "start":22,"end":25,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":25,"index":25}},
39 "operator": "=",
40 "left": {
41 "type": "Identifier",
42 "start":22,"end":23,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":23,"index":23},"identifierName":"a"},
43 "name": "a"
44 },
45 "right": {
46 "type": "Identifier",
47 "start":24,"end":25,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":25,"index":25},"identifierName":"b"},
48 "name": "b"
49 }
50 }
51 },
52 {
53 "type": "YieldExpression",
54 "start":27,"end":37,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":37,"index":37}},
55 "delegate": true,
56 "argument": {
57 "type": "AssignmentExpression",
58 "start":34,"end":37,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":37,"index":37}},
59 "operator": "=",
60 "left": {
61 "type": "Identifier",
62 "start":34,"end":35,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":35,"index":35},"identifierName":"c"},
63 "name": "c"
64 },
65 "right": {
66 "type": "Identifier",
67 "start":36,"end":37,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":37,"index":37},"identifierName":"d"},
68 "name": "d"
69 }
70 }
71 },
72 {
73 "type": "Identifier",
74 "start":39,"end":40,"loc":{"start":{"line":1,"column":39,"index":39},"end":{"line":1,"column":40,"index":40},"identifierName":"e"},
75 "name": "e"
76 }
77 ]
78 }
79 }
80 ],
81 "directives": []
82 }
83 }
84 ],
85 "directives": []
86 }
87 }