Debian Codegraph @

packages/babel-parser/test/fixtures/es2016/simple-parameter-list/arrow-function/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":46}},
4 "errors": [
5 "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. (1:8)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":46}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":46}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":4,"end":45,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":3,"column":1,"index":45}},
20 "id": {
21 "type": "Identifier",
22 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"a"},
23 "name": "a"
24 },
25 "init": {
26 "type": "ArrowFunctionExpression",
27 "start":8,"end":45,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":3,"column":1,"index":45}},
28 "id": null,
29 "generator": false,
30 "async": false,
31 "params": [
32 {
33 "type": "AssignmentPattern",
34 "start":9,"end":21,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":21,"index":21}},
35 "left": {
36 "type": "Identifier",
37 "start":9,"end":16,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":16,"index":16},"identifierName":"options"},
38 "name": "options"
39 },
40 "right": {
41 "type": "ObjectExpression",
42 "start":19,"end":21,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":21,"index":21}},
43 "properties": []
44 }
45 }
46 ],
47 "body": {
48 "type": "BlockStatement",
49 "start":26,"end":45,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":3,"column":1,"index":45}},
50 "body": [],
51 "directives": [
52 {
53 "type": "Directive",
54 "start":30,"end":43,"loc":{"start":{"line":2,"column":2,"index":30},"end":{"line":2,"column":15,"index":43}},
55 "value": {
56 "type": "DirectiveLiteral",
57 "start":30,"end":42,"loc":{"start":{"line":2,"column":2,"index":30},"end":{"line":2,"column":14,"index":42}},
58 "extra": {
59 "rawValue": "use strict",
60 "raw": "\"use strict\"",
61 "expressionValue": "use strict"
62 },
63 "value": "use strict"
64 }
65 }
66 ]
67 }
68 }
69 }
70 ],
71 "kind": "var"
72 }
73 ],
74 "directives": []
75 }
76 }