Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/statements/label-invalid-let/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
4 "errors": [
5 "SyntaxError: Lexical declaration cannot appear in a single-statement context. (1:5)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "LabeledStatement",
15 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
16 "body": {
17 "type": "VariableDeclaration",
18 "start":5,"end":13,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":13,"index":13}},
19 "declarations": [
20 {
21 "type": "VariableDeclarator",
22 "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12}},
23 "id": {
24 "type": "Identifier",
25 "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"bar"},
26 "name": "bar"
27 },
28 "init": null
29 }
30 ],
31 "kind": "let"
32 },
33 "label": {
34 "type": "Identifier",
35 "start":0,"end":3,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":3,"index":3},"identifierName":"foo"},
36 "name": "foo"
37 }
38 }
39 ],
40 "directives": []
41 }
42 }