Debian Codegraph @

packages/babel-parser/test/fixtures/core/categorized/labeled-block-statement-regex/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "LabeledStatement",
12 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
13 "body": {
14 "type": "BlockStatement",
15 "start":4,"end":13,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":13,"index":13}},
16 "body": [
17 {
18 "type": "LabeledStatement",
19 "start":6,"end":11,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":11,"index":11}},
20 "body": {
21 "type": "ExpressionStatement",
22 "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11}},
23 "expression": {
24 "type": "NumericLiteral",
25 "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11}},
26 "extra": {
27 "rawValue": 1,
28 "raw": "1"
29 },
30 "value": 1
31 }
32 },
33 "label": {
34 "type": "Identifier",
35 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"b"},
36 "name": "b"
37 }
38 }
39 ],
40 "directives": []
41 },
42 "label": {
43 "type": "Identifier",
44 "start":0,"end":1,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":1,"index":1},"identifierName":"a"},
45 "name": "a"
46 }
47 },
48 {
49 "type": "ExpressionStatement",
50 "start":13,"end":17,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":17,"index":17}},
51 "expression": {
52 "type": "RegExpLiteral",
53 "start":13,"end":16,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":16,"index":16}},
54 "extra": {
55 "raw": "/2/"
56 },
57 "pattern": "2",
58 "flags": ""
59 }
60 }
61 ],
62 "directives": []
63 }
64 }