Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":52}},
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":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":52}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":52}},
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": "ArrayPattern",
26 "start":11,"end":31,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":31,"index":31}},
27 "elements": [
28 {
29 "type": "Identifier",
30 "start":13,"end":20,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":20,"index":20},"identifierName":"option1"},
31 "name": "option1"
32 },
33 {
34 "type": "Identifier",
35 "start":22,"end":29,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":29,"index":29},"identifierName":"option2"},
36 "name": "option2"
37 }
38 ]
39 }
40 ],
41 "body": {
42 "type": "BlockStatement",
43 "start":33,"end":52,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":3,"column":1,"index":52}},
44 "body": [],
45 "directives": [
46 {
47 "type": "Directive",
48 "start":37,"end":50,"loc":{"start":{"line":2,"column":2,"index":37},"end":{"line":2,"column":15,"index":50}},
49 "value": {
50 "type": "DirectiveLiteral",
51 "start":37,"end":49,"loc":{"start":{"line":2,"column":2,"index":37},"end":{"line":2,"column":14,"index":49}},
52 "extra": {
53 "rawValue": "use strict",
54 "raw": "\"use strict\"",
55 "expressionValue": "use strict"
56 },
57 "value": "use strict"
58 }
59 }
60 ]
61 }
62 }
63 ],
64 "directives": []
65 }
66 }