Debian Codegraph @

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

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