Debian Codegraph @

packages/babel-parser/test/fixtures/es2021/logical-assignment-operator/and-and-equals/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":12,"index":21}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":12,"index":21}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":8,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":8,"index":8}},
13 "expression": {
14 "type": "AssignmentExpression",
15 "start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}},
16 "operator": "&&=",
17 "left": {
18 "type": "Identifier",
19 "start":0,"end":1,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":1,"index":1},"identifierName":"a"},
20 "name": "a"
21 },
22 "right": {
23 "type": "Identifier",
24 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"b"},
25 "name": "b"
26 }
27 }
28 },
29 {
30 "type": "ExpressionStatement",
31 "start":9,"end":21,"loc":{"start":{"line":2,"column":0,"index":9},"end":{"line":2,"column":12,"index":21}},
32 "expression": {
33 "type": "AssignmentExpression",
34 "start":9,"end":20,"loc":{"start":{"line":2,"column":0,"index":9},"end":{"line":2,"column":11,"index":20}},
35 "operator": "&&=",
36 "left": {
37 "type": "MemberExpression",
38 "start":9,"end":14,"loc":{"start":{"line":2,"column":0,"index":9},"end":{"line":2,"column":5,"index":14}},
39 "object": {
40 "type": "Identifier",
41 "start":9,"end":12,"loc":{"start":{"line":2,"column":0,"index":9},"end":{"line":2,"column":3,"index":12},"identifierName":"obj"},
42 "name": "obj"
43 },
44 "computed": false,
45 "property": {
46 "type": "Identifier",
47 "start":13,"end":14,"loc":{"start":{"line":2,"column":4,"index":13},"end":{"line":2,"column":5,"index":14},"identifierName":"a"},
48 "name": "a"
49 }
50 },
51 "right": {
52 "type": "Identifier",
53 "start":19,"end":20,"loc":{"start":{"line":2,"column":10,"index":19},"end":{"line":2,"column":11,"index":20},"identifierName":"b"},
54 "name": "b"
55 }
56 }
57 }
58 ],
59 "directives": []
60 }
61 }