Debian Codegraph @

packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-lex/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":12,"index":34}},
4 "errors": [
5 "SyntaxError: Identifier 'foo' has already been declared. (3:4)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":12,"index":34}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":8,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":8,"index":8}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7}},
20 "id": {
21 "type": "Identifier",
22 "start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7},"identifierName":"bar"},
23 "name": "bar"
24 },
25 "init": null
26 }
27 ],
28 "kind": "let"
29 },
30 {
31 "type": "VariableDeclaration",
32 "start":9,"end":21,"loc":{"start":{"line":2,"column":0,"index":9},"end":{"line":2,"column":12,"index":21}},
33 "declarations": [
34 {
35 "type": "VariableDeclarator",
36 "start":13,"end":20,"loc":{"start":{"line":2,"column":4,"index":13},"end":{"line":2,"column":11,"index":20}},
37 "id": {
38 "type": "Identifier",
39 "start":13,"end":16,"loc":{"start":{"line":2,"column":4,"index":13},"end":{"line":2,"column":7,"index":16},"identifierName":"foo"},
40 "name": "foo"
41 },
42 "init": {
43 "type": "NumericLiteral",
44 "start":19,"end":20,"loc":{"start":{"line":2,"column":10,"index":19},"end":{"line":2,"column":11,"index":20}},
45 "extra": {
46 "rawValue": 1,
47 "raw": "1"
48 },
49 "value": 1
50 }
51 }
52 ],
53 "kind": "var"
54 },
55 {
56 "type": "VariableDeclaration",
57 "start":22,"end":34,"loc":{"start":{"line":3,"column":0,"index":22},"end":{"line":3,"column":12,"index":34}},
58 "declarations": [
59 {
60 "type": "VariableDeclarator",
61 "start":26,"end":33,"loc":{"start":{"line":3,"column":4,"index":26},"end":{"line":3,"column":11,"index":33}},
62 "id": {
63 "type": "Identifier",
64 "start":26,"end":29,"loc":{"start":{"line":3,"column":4,"index":26},"end":{"line":3,"column":7,"index":29},"identifierName":"foo"},
65 "name": "foo"
66 },
67 "init": {
68 "type": "NumericLiteral",
69 "start":32,"end":33,"loc":{"start":{"line":3,"column":10,"index":32},"end":{"line":3,"column":11,"index":33}},
70 "extra": {
71 "rawValue": 1,
72 "raw": "1"
73 },
74 "value": 1
75 }
76 }
77 ],
78 "kind": "let"
79 }
80 ],
81 "directives": []
82 }
83 }