Debian Codegraph @

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

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