Debian Codegraph @

packages/babel-parser/test/fixtures/es2016/simple-parameter-list/object-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": "ObjectPattern",
26 "start":11,"end":31,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":31,"index":31}},
27 "properties": [
28 {
29 "type": "ObjectProperty",
30 "start":13,"end":20,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":20,"index":20}},
31 "key": {
32 "type": "Identifier",
33 "start":13,"end":20,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":20,"index":20},"identifierName":"option1"},
34 "name": "option1"
35 },
36 "computed": false,
37 "method": false,
38 "shorthand": true,
39 "value": {
40 "type": "Identifier",
41 "start":13,"end":20,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":20,"index":20},"identifierName":"option1"},
42 "name": "option1"
43 },
44 "extra": {
45 "shorthand": true
46 }
47 },
48 {
49 "type": "ObjectProperty",
50 "start":22,"end":29,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":29,"index":29}},
51 "key": {
52 "type": "Identifier",
53 "start":22,"end":29,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":29,"index":29},"identifierName":"option2"},
54 "name": "option2"
55 },
56 "computed": false,
57 "method": false,
58 "shorthand": true,
59 "value": {
60 "type": "Identifier",
61 "start":22,"end":29,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":29,"index":29},"identifierName":"option2"},
62 "name": "option2"
63 },
64 "extra": {
65 "shorthand": true
66 }
67 }
68 ]
69 }
70 ],
71 "body": {
72 "type": "BlockStatement",
73 "start":33,"end":52,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":3,"column":1,"index":52}},
74 "body": [],
75 "directives": [
76 {
77 "type": "Directive",
78 "start":37,"end":50,"loc":{"start":{"line":2,"column":2,"index":37},"end":{"line":2,"column":15,"index":50}},
79 "value": {
80 "type": "DirectiveLiteral",
81 "start":37,"end":49,"loc":{"start":{"line":2,"column":2,"index":37},"end":{"line":2,"column":14,"index":49}},
82 "extra": {
83 "rawValue": "use strict",
84 "raw": "\"use strict\"",
85 "expressionValue": "use strict"
86 },
87 "value": "use strict"
88 }
89 }
90 ]
91 }
92 }
93 ],
94 "directives": []
95 }
96 }