Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/destructuring/binding-arguments-strict/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":28,"index":42}},
4 "errors": [
5 "SyntaxError: Binding 'arguments' in strict mode. (2:8)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":28,"index":42}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":14,"end":42,"loc":{"start":{"line":2,"column":0,"index":14},"end":{"line":2,"column":28,"index":42}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":20,"end":41,"loc":{"start":{"line":2,"column":6,"index":20},"end":{"line":2,"column":27,"index":41}},
20 "id": {
21 "type": "ObjectPattern",
22 "start":20,"end":33,"loc":{"start":{"line":2,"column":6,"index":20},"end":{"line":2,"column":19,"index":33}},
23 "properties": [
24 {
25 "type": "ObjectProperty",
26 "start":22,"end":31,"loc":{"start":{"line":2,"column":8,"index":22},"end":{"line":2,"column":17,"index":31}},
27 "key": {
28 "type": "Identifier",
29 "start":22,"end":31,"loc":{"start":{"line":2,"column":8,"index":22},"end":{"line":2,"column":17,"index":31},"identifierName":"arguments"},
30 "name": "arguments"
31 },
32 "computed": false,
33 "method": false,
34 "shorthand": true,
35 "value": {
36 "type": "Identifier",
37 "start":22,"end":31,"loc":{"start":{"line":2,"column":8,"index":22},"end":{"line":2,"column":17,"index":31},"identifierName":"arguments"},
38 "name": "arguments"
39 },
40 "extra": {
41 "shorthand": true
42 }
43 }
44 ]
45 },
46 "init": {
47 "type": "CallExpression",
48 "start":36,"end":41,"loc":{"start":{"line":2,"column":22,"index":36},"end":{"line":2,"column":27,"index":41}},
49 "callee": {
50 "type": "Identifier",
51 "start":36,"end":39,"loc":{"start":{"line":2,"column":22,"index":36},"end":{"line":2,"column":25,"index":39},"identifierName":"foo"},
52 "name": "foo"
53 },
54 "arguments": []
55 }
56 }
57 ],
58 "kind": "const"
59 }
60 ],
61 "directives": [
62 {
63 "type": "Directive",
64 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
65 "value": {
66 "type": "DirectiveLiteral",
67 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
68 "extra": {
69 "rawValue": "use strict",
70 "raw": "\"use strict\"",
71 "expressionValue": "use strict"
72 },
73 "value": "use strict"
74 }
75 }
76 ]
77 }
78 }