Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/for-of/invalid-let-as-identifier/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":66,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":22,"index":66}},
4 "errors": [
5 "SyntaxError: The left-hand side of a for-of loop may not start with 'let'. (1:5)",
6 "SyntaxError: The left-hand side of a for-of loop may not start with 'let'. (2:5)",
7 "SyntaxError: The left-hand side of a for-of loop may not start with 'let'. (3:5)"
8 ],
9 "program": {
10 "type": "Program",
11 "start":0,"end":66,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":22,"index":66}},
12 "sourceType": "script",
13 "interpreter": null,
14 "body": [
15 {
16 "type": "ForOfStatement",
17 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
18 "await": false,
19 "left": {
20 "type": "MemberExpression",
21 "start":5,"end":12,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":12,"index":12}},
22 "object": {
23 "type": "Identifier",
24 "start":5,"end":8,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":8,"index":8},"identifierName":"let"},
25 "name": "let"
26 },
27 "computed": false,
28 "property": {
29 "type": "Identifier",
30 "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"foo"},
31 "name": "foo"
32 }
33 },
34 "right": {
35 "type": "ArrayExpression",
36 "start":16,"end":18,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":18,"index":18}},
37 "elements": []
38 },
39 "body": {
40 "type": "EmptyStatement",
41 "start":19,"end":20,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":20,"index":20}}
42 }
43 },
44 {
45 "type": "ForOfStatement",
46 "start":21,"end":43,"loc":{"start":{"line":2,"column":0,"index":21},"end":{"line":2,"column":22,"index":43}},
47 "await": false,
48 "left": {
49 "type": "MemberExpression",
50 "start":26,"end":35,"loc":{"start":{"line":2,"column":5,"index":26},"end":{"line":2,"column":14,"index":35}},
51 "object": {
52 "type": "CallExpression",
53 "start":26,"end":31,"loc":{"start":{"line":2,"column":5,"index":26},"end":{"line":2,"column":10,"index":31}},
54 "callee": {
55 "type": "Identifier",
56 "start":26,"end":29,"loc":{"start":{"line":2,"column":5,"index":26},"end":{"line":2,"column":8,"index":29},"identifierName":"let"},
57 "name": "let"
58 },
59 "arguments": []
60 },
61 "computed": false,
62 "property": {
63 "type": "Identifier",
64 "start":32,"end":35,"loc":{"start":{"line":2,"column":11,"index":32},"end":{"line":2,"column":14,"index":35},"identifierName":"bar"},
65 "name": "bar"
66 }
67 },
68 "right": {
69 "type": "ArrayExpression",
70 "start":39,"end":41,"loc":{"start":{"line":2,"column":18,"index":39},"end":{"line":2,"column":20,"index":41}},
71 "elements": []
72 },
73 "body": {
74 "type": "EmptyStatement",
75 "start":42,"end":43,"loc":{"start":{"line":2,"column":21,"index":42},"end":{"line":2,"column":22,"index":43}}
76 }
77 },
78 {
79 "type": "ForOfStatement",
80 "start":44,"end":66,"loc":{"start":{"line":3,"column":0,"index":44},"end":{"line":3,"column":22,"index":66}},
81 "await": false,
82 "left": {
83 "type": "MemberExpression",
84 "start":49,"end":58,"loc":{"start":{"line":3,"column":5,"index":49},"end":{"line":3,"column":14,"index":58}},
85 "object": {
86 "type": "TaggedTemplateExpression",
87 "start":49,"end":54,"loc":{"start":{"line":3,"column":5,"index":49},"end":{"line":3,"column":10,"index":54}},
88 "tag": {
89 "type": "Identifier",
90 "start":49,"end":52,"loc":{"start":{"line":3,"column":5,"index":49},"end":{"line":3,"column":8,"index":52},"identifierName":"let"},
91 "name": "let"
92 },
93 "quasi": {
94 "type": "TemplateLiteral",
95 "start":52,"end":54,"loc":{"start":{"line":3,"column":8,"index":52},"end":{"line":3,"column":10,"index":54}},
96 "expressions": [],
97 "quasis": [
98 {
99 "type": "TemplateElement",
100 "start":53,"end":53,"loc":{"start":{"line":3,"column":9,"index":53},"end":{"line":3,"column":9,"index":53}},
101 "value": {
102 "raw": "",
103 "cooked": ""
104 },
105 "tail": true
106 }
107 ]
108 }
109 },
110 "computed": false,
111 "property": {
112 "type": "Identifier",
113 "start":55,"end":58,"loc":{"start":{"line":3,"column":11,"index":55},"end":{"line":3,"column":14,"index":58},"identifierName":"bar"},
114 "name": "bar"
115 }
116 },
117 "right": {
118 "type": "ArrayExpression",
119 "start":62,"end":64,"loc":{"start":{"line":3,"column":18,"index":62},"end":{"line":3,"column":20,"index":64}},
120 "elements": []
121 },
122 "body": {
123 "type": "EmptyStatement",
124 "start":65,"end":66,"loc":{"start":{"line":3,"column":21,"index":65},"end":{"line":3,"column":22,"index":66}}
125 }
126 }
127 ],
128 "directives": []
129 }
130 }