Debian Codegraph @

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

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