Debian Codegraph @

tests/fixtures/ecma-version/6/destructuring-and-defaultParams/param-object-wrapped.result.js

raw
1 export default {
2 "type": "Program",
3 "body": [
4 {
5 type: 'ExpressionStatement',
6 expression: {
7 type: 'ObjectExpression',
8 properties: [{
9 type: 'Property',
10 key: {
11 type: 'Identifier',
12 name: 'f',
13 range: [2, 3],
14 loc: {
15 start: { line: 1, column: 2 },
16 end: { line: 1, column: 3 }
17 }
18 },
19 value: {
20 type: 'FunctionExpression',
21 id: null,
22 params: [{
23 type: 'ObjectPattern',
24 properties: [{
25 type: 'Property',
26 key: {
27 type: 'Identifier',
28 name: 'x',
29 range: [15, 16],
30 loc: {
31 start: { line: 1, column: 15 },
32 end: { line: 1, column: 16 }
33 }
34 },
35 value: {
36 type: 'Identifier',
37 name: 'x',
38 range: [15, 16],
39 loc: {
40 start: { line: 1, column: 15 },
41 end: { line: 1, column: 16 }
42 }
43 },
44 kind: 'init',
45 method: false,
46 shorthand: true,
47 computed: false,
48 range: [15, 16],
49 loc: {
50 start: { line: 1, column: 15 },
51 end: { line: 1, column: 16 }
52 }
53 }],
54 range: [14, 17],
55 loc: {
56 start: { line: 1, column: 14 },
57 end: { line: 1, column: 17 }
58 }
59 }],
60 defaults: [{
61 type: 'ObjectExpression',
62 properties: [{
63 type: 'Property',
64 key: {
65 type: 'Identifier',
66 name: 'x',
67 range: [21, 22],
68 loc: {
69 start: { line: 1, column: 21 },
70 end: { line: 1, column: 22 }
71 }
72 },
73 value: {
74 type: 'Literal',
75 value: 10,
76 raw: '10',
77 range: [24, 26],
78 loc: {
79 start: { line: 1, column: 24 },
80 end: { line: 1, column: 26 }
81 }
82 },
83 kind: 'init',
84 method: false,
85 shorthand: false,
86 computed: false,
87 range: [21, 26],
88 loc: {
89 start: { line: 1, column: 21 },
90 end: { line: 1, column: 26 }
91 }
92 }],
93 range: [20, 27],
94 loc: {
95 start: { line: 1, column: 20 },
96 end: { line: 1, column: 27 }
97 }
98 }],
99 body: {
100 type: 'BlockStatement',
101 body: [],
102 range: [29, 31],
103 loc: {
104 start: { line: 1, column: 29 },
105 end: { line: 1, column: 31 }
106 }
107 },
108 rest: null,
109 generator: false,
110 expression: false,
111 range: [5, 31],
112 loc: {
113 start: { line: 1, column: 5 },
114 end: { line: 1, column: 31 }
115 }
116 },
117 kind: 'init',
118 method: false,
119 shorthand: false,
120 computed: false,
121 range: [2, 31],
122 loc: {
123 start: { line: 1, column: 2 },
124 end: { line: 1, column: 31 }
125 }
126 }],
127 range: [1, 32],
128 loc: {
129 start: { line: 1, column: 1 },
130 end: { line: 1, column: 32 }
131 }
132 },
133 range: [0, 33],
134 loc: {
135 start: { line: 1, column: 0 },
136 end: { line: 1, column: 33 }
137 }
138 }
139 ]
140 }