Debian Codegraph @

packages/babel-parser/test/fixtures/placeholders/variable/let-context-2/output.json

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