Delete provisional syntax for capabilities
[hiphop-php.git] / hphp / hack / test / full_fidelity / cases / function_pointers / unnamed_function_with_targ.php.json.exp
blob4024350c203dc2c71f618a3dc22e0478280113f7
2 "parse_tree":{
3 "kind":"script",
4 "script_declarations":{
5 "kind":"list",
6 "elements":[
8 "kind":"markup_section",
9 "markup_hashbang":{
10 "kind":"token",
11 "token":{
12 "kind":"hashbang",
13 "text":"",
14 "offset":0,
15 "leading_width":0,
16 "width":0,
17 "trailing_width":0,
18 "leading":[],
19 "trailing":[],
20 "line_number":1
23 "markup_suffix":{
24 "kind":"markup_suffix",
25 "markup_suffix_less_than_question":{
26 "kind":"token",
27 "token":{
28 "kind":"<?",
29 "text":"<?",
30 "offset":0,
31 "leading_width":0,
32 "width":2,
33 "trailing_width":0,
34 "leading":[],
35 "trailing":[],
36 "line_number":1
39 "markup_suffix_name":{
40 "kind":"token",
41 "token":{
42 "kind":"name",
43 "text":"hh",
44 "offset":2,
45 "leading_width":0,
46 "width":2,
47 "trailing_width":1,
48 "leading":[],
49 "trailing":[{"kind":"end_of_line","text":"\n","offset":4,"width":1}],
50 "line_number":1
56 "kind":"function_declaration",
57 "function_attribute_spec":{"kind":"missing"},
58 "function_declaration_header":{
59 "kind":"function_declaration_header",
60 "function_modifiers":{"kind":"missing"},
61 "function_keyword":{
62 "kind":"token",
63 "token":{
64 "kind":"function",
65 "text":"function",
66 "offset":5,
67 "leading_width":1,
68 "width":8,
69 "trailing_width":1,
70 "leading":[{"kind":"end_of_line","text":"\n","offset":5,"width":1}],
71 "trailing":[{"kind":"whitespace","text":" ","offset":14,"width":1}],
72 "line_number":3
75 "function_name":{
76 "kind":"token",
77 "token":{
78 "kind":"name",
79 "text":"test",
80 "offset":15,
81 "leading_width":0,
82 "width":4,
83 "trailing_width":0,
84 "leading":[],
85 "trailing":[],
86 "line_number":3
89 "function_type_parameter_list":{"kind":"missing"},
90 "function_left_paren":{
91 "kind":"token",
92 "token":{
93 "kind":"(",
94 "text":"(",
95 "offset":19,
96 "leading_width":0,
97 "width":1,
98 "trailing_width":0,
99 "leading":[],
100 "trailing":[],
101 "line_number":3
104 "function_parameter_list":{"kind":"missing"},
105 "function_right_paren":{
106 "kind":"token",
107 "token":{
108 "kind":")",
109 "text":")",
110 "offset":20,
111 "leading_width":0,
112 "width":1,
113 "trailing_width":0,
114 "leading":[],
115 "trailing":[],
116 "line_number":3
119 "function_capability":{"kind":"missing"},
120 "function_colon":{
121 "kind":"token",
122 "token":{
123 "kind":":",
124 "text":":",
125 "offset":21,
126 "leading_width":0,
127 "width":1,
128 "trailing_width":1,
129 "leading":[],
130 "trailing":[{"kind":"whitespace","text":" ","offset":22,"width":1}],
131 "line_number":3
134 "function_type":{
135 "kind":"simple_type_specifier",
136 "simple_type_specifier":{
137 "kind":"token",
138 "token":{
139 "kind":"void",
140 "text":"void",
141 "offset":23,
142 "leading_width":0,
143 "width":4,
144 "trailing_width":1,
145 "leading":[],
146 "trailing":[{"kind":"whitespace","text":" ","offset":27,"width":1}],
147 "line_number":3
151 "function_where_clause":{"kind":"missing"}
153 "function_body":{
154 "kind":"compound_statement",
155 "compound_left_brace":{
156 "kind":"token",
157 "token":{
158 "kind":"{",
159 "text":"{",
160 "offset":28,
161 "leading_width":0,
162 "width":1,
163 "trailing_width":1,
164 "leading":[],
165 "trailing":[{"kind":"end_of_line","text":"\n","offset":29,"width":1}],
166 "line_number":3
169 "compound_statements":{
170 "kind":"list",
171 "elements":[
173 "kind":"expression_statement",
174 "expression_statement_expression":{
175 "kind":"binary_expression",
176 "binary_left_operand":{
177 "kind":"variable",
178 "variable_expression":{
179 "kind":"token",
180 "token":{
181 "kind":"variable",
182 "text":"$x",
183 "offset":30,
184 "leading_width":2,
185 "width":2,
186 "trailing_width":1,
187 "leading":[{"kind":"whitespace","text":" ","offset":30,"width":2}],
188 "trailing":[{"kind":"whitespace","text":" ","offset":34,"width":1}],
189 "line_number":4
193 "binary_operator":{
194 "kind":"token",
195 "token":{
196 "kind":"=",
197 "text":"=",
198 "offset":35,
199 "leading_width":0,
200 "width":1,
201 "trailing_width":1,
202 "leading":[],
203 "trailing":[{"kind":"whitespace","text":" ","offset":36,"width":1}],
204 "line_number":4
207 "binary_right_operand":{
208 "kind":"binary_expression",
209 "binary_left_operand":{
210 "kind":"binary_expression",
211 "binary_left_operand":{
212 "kind":"variable",
213 "variable_expression":{
214 "kind":"token",
215 "token":{
216 "kind":"variable",
217 "text":"$y",
218 "offset":37,
219 "leading_width":0,
220 "width":2,
221 "trailing_width":0,
222 "leading":[],
223 "trailing":[],
224 "line_number":4
228 "binary_operator":{
229 "kind":"token",
230 "token":{
231 "kind":"<",
232 "text":"<",
233 "offset":39,
234 "leading_width":0,
235 "width":1,
236 "trailing_width":0,
237 "leading":[],
238 "trailing":[],
239 "line_number":4
242 "binary_right_operand":{
243 "kind":"token",
244 "token":{
245 "kind":"name",
246 "text":"Qux",
247 "offset":40,
248 "leading_width":0,
249 "width":3,
250 "trailing_width":0,
251 "leading":[],
252 "trailing":[],
253 "line_number":4
257 "binary_operator":{
258 "kind":"token",
259 "token":{
260 "kind":">",
261 "text":">",
262 "offset":43,
263 "leading_width":0,
264 "width":1,
265 "trailing_width":0,
266 "leading":[],
267 "trailing":[],
268 "line_number":4
271 "binary_right_operand":{"kind":"missing"}
274 "expression_statement_semicolon":{
275 "kind":"token",
276 "token":{
277 "kind":";",
278 "text":";",
279 "offset":44,
280 "leading_width":0,
281 "width":1,
282 "trailing_width":1,
283 "leading":[],
284 "trailing":[{"kind":"end_of_line","text":"\n","offset":45,"width":1}],
285 "line_number":4
291 "compound_right_brace":{
292 "kind":"token",
293 "token":{
294 "kind":"}",
295 "text":"}",
296 "offset":46,
297 "leading_width":0,
298 "width":1,
299 "trailing_width":1,
300 "leading":[],
301 "trailing":[{"kind":"end_of_line","text":"\n","offset":47,"width":1}],
302 "line_number":5
308 "kind":"end_of_file",
309 "end_of_file_token":{
310 "kind":"token",
311 "token":{
312 "kind":"end_of_file",
313 "text":"",
314 "offset":48,
315 "leading_width":0,
316 "width":0,
317 "trailing_width":0,
318 "leading":[],
319 "trailing":[],
320 "line_number":6
327 "program_text":"<?hh\n\nfunction test(): void {\n $x = $y<Qux>;\n}\n",
328 "version":"2020-12-09-0001"