Debian Codegraph @

tests/fixtures/ecma-version/11/optional-chaining/qdot.result.js

raw
1 export default {
2 "type": "Program",
3 "loc": {
4 "start": {
5 "line": 1,
6 "column": 0
7 },
8 "end": {
9 "line": 1,
10 "column": 8
11 }
12 },
13 "range": [
14 0,
15 8
16 ],
17 "body": [
18 {
19 "type": "ExpressionStatement",
20 "loc": {
21 "start": {
22 "line": 1,
23 "column": 0
24 },
25 "end": {
26 "line": 1,
27 "column": 8
28 }
29 },
30 "range": [
31 0,
32 8
33 ],
34 "expression": {
35 "type": "ChainExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 0
40 },
41 "end": {
42 "line": 1,
43 "column": 8
44 }
45 },
46 "range": [
47 0,
48 8
49 ],
50 "expression": {
51 "type": "MemberExpression",
52 "loc": {
53 "start": {
54 "line": 1,
55 "column": 0
56 },
57 "end": {
58 "line": 1,
59 "column": 8
60 }
61 },
62 "range": [
63 0,
64 8
65 ],
66 "object": {
67 "type": "Identifier",
68 "loc": {
69 "start": {
70 "line": 1,
71 "column": 0
72 },
73 "end": {
74 "line": 1,
75 "column": 3
76 }
77 },
78 "range": [
79 0,
80 3
81 ],
82 "name": "obj"
83 },
84 "property": {
85 "type": "Identifier",
86 "loc": {
87 "start": {
88 "line": 1,
89 "column": 5
90 },
91 "end": {
92 "line": 1,
93 "column": 8
94 }
95 },
96 "range": [
97 5,
98 8
99 ],
100 "name": "foo"
101 },
102 "computed": false,
103 "optional": true
104 }
105 }
106 }
107 ],
108 "sourceType": "script",
109 "tokens": [
110 {
111 "type": "Identifier",
112 "value": "obj",
113 "loc": {
114 "start": {
115 "line": 1,
116 "column": 0
117 },
118 "end": {
119 "line": 1,
120 "column": 3
121 }
122 },
123 "range": [
124 0,
125 3
126 ]
127 },
128 {
129 "type": "Punctuator",
130 "value": "?.",
131 "loc": {
132 "start": {
133 "line": 1,
134 "column": 3
135 },
136 "end": {
137 "line": 1,
138 "column": 5
139 }
140 },
141 "range": [
142 3,
143 5
144 ]
145 },
146 {
147 "type": "Identifier",
148 "value": "foo",
149 "loc": {
150 "start": {
151 "line": 1,
152 "column": 5
153 },
154 "end": {
155 "line": 1,
156 "column": 8
157 }
158 },
159 "range": [
160 5,
161 8
162 ]
163 }
164 ]
165 };