Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/for-of/right-regex/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":26,"index":50}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":26,"index":50}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ForOfStatement",
12 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
13 "await": false,
14 "left": {
15 "type": "VariableDeclaration",
16 "start":5,"end":10,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":10,"index":10}},
17 "declarations": [
18 {
19 "type": "VariableDeclarator",
20 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10}},
21 "id": {
22 "type": "Identifier",
23 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"x"},
24 "name": "x"
25 },
26 "init": null
27 }
28 ],
29 "kind": "var"
30 },
31 "right": {
32 "type": "RegExpLiteral",
33 "start":14,"end":20,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":20,"index":20}},
34 "extra": {
35 "raw": "/foo/g"
36 },
37 "pattern": "foo",
38 "flags": "g"
39 },
40 "body": {
41 "type": "EmptyStatement",
42 "start":21,"end":22,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":22,"index":22}}
43 }
44 },
45 {
46 "type": "ForStatement",
47 "start":24,"end":50,"loc":{"start":{"line":3,"column":0,"index":24},"end":{"line":3,"column":26,"index":50}},
48 "init": {
49 "type": "VariableDeclaration",
50 "start":29,"end":46,"loc":{"start":{"line":3,"column":5,"index":29},"end":{"line":3,"column":22,"index":46}},
51 "declarations": [
52 {
53 "type": "VariableDeclarator",
54 "start":33,"end":46,"loc":{"start":{"line":3,"column":9,"index":33},"end":{"line":3,"column":22,"index":46}},
55 "id": {
56 "type": "Identifier",
57 "start":33,"end":34,"loc":{"start":{"line":3,"column":9,"index":33},"end":{"line":3,"column":10,"index":34},"identifierName":"x"},
58 "name": "x"
59 },
60 "init": {
61 "type": "BinaryExpression",
62 "start":37,"end":46,"loc":{"start":{"line":3,"column":13,"index":37},"end":{"line":3,"column":22,"index":46}},
63 "left": {
64 "type": "BinaryExpression",
65 "start":37,"end":44,"loc":{"start":{"line":3,"column":13,"index":37},"end":{"line":3,"column":20,"index":44}},
66 "left": {
67 "type": "Identifier",
68 "start":37,"end":39,"loc":{"start":{"line":3,"column":13,"index":37},"end":{"line":3,"column":15,"index":39},"identifierName":"of"},
69 "name": "of"
70 },
71 "operator": "/",
72 "right": {
73 "type": "Identifier",
74 "start":41,"end":44,"loc":{"start":{"line":3,"column":17,"index":41},"end":{"line":3,"column":20,"index":44},"identifierName":"foo"},
75 "name": "foo"
76 }
77 },
78 "operator": "/",
79 "right": {
80 "type": "Identifier",
81 "start":45,"end":46,"loc":{"start":{"line":3,"column":21,"index":45},"end":{"line":3,"column":22,"index":46},"identifierName":"g"},
82 "name": "g"
83 }
84 }
85 }
86 ],
87 "kind": "var"
88 },
89 "test": null,
90 "update": null,
91 "body": {
92 "type": "EmptyStatement",
93 "start":49,"end":50,"loc":{"start":{"line":3,"column":25,"index":49},"end":{"line":3,"column":26,"index":50}}
94 }
95 }
96 ],
97 "directives": []
98 }
99 }