Delete provisional syntax for capabilities
[hiphop-php.git] / hphp / hack / test / full_fidelity / cases / test_incomplete_file.php.json.exp
blob9233b1f1339a21a9a0b80850eba937e2f28e98ab
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":11,
48 "leading":[],
49 "trailing":[
50 {"kind":"whitespace","text":" ","offset":4,"width":1},
51 {"kind":"single_line_comment","text":"// strict","offset":5,"width":9},
52 {"kind":"end_of_line","text":"\n","offset":14,"width":1}
54 "line_number":1
60 "kind":"classish_declaration",
61 "classish_attribute":{"kind":"missing"},
62 "classish_modifiers":{"kind":"missing"},
63 "classish_xhp":{"kind":"missing"},
64 "classish_keyword":{
65 "kind":"token",
66 "token":{
67 "kind":"interface",
68 "text":"interface",
69 "offset":15,
70 "leading_width":58,
71 "width":9,
72 "trailing_width":1,
73 "leading":[
75 "kind":"single_line_comment",
76 "text":"// Copyright 2004-present Facebook. All Rights Reserved.",
77 "offset":15,
78 "width":56
80 {"kind":"end_of_line","text":"\n","offset":71,"width":1},
81 {"kind":"end_of_line","text":"\n","offset":72,"width":1}
83 "trailing":[{"kind":"whitespace","text":" ","offset":82,"width":1}],
84 "line_number":4
87 "classish_name":{
88 "kind":"token",
89 "token":{
90 "kind":"name",
91 "text":"A",
92 "offset":83,
93 "leading_width":0,
94 "width":1,
95 "trailing_width":1,
96 "leading":[],
97 "trailing":[{"kind":"whitespace","text":" ","offset":84,"width":1}],
98 "line_number":4
101 "classish_type_parameters":{"kind":"missing"},
102 "classish_extends_keyword":{"kind":"missing"},
103 "classish_extends_list":{"kind":"missing"},
104 "classish_implements_keyword":{"kind":"missing"},
105 "classish_implements_list":{"kind":"missing"},
106 "classish_where_clause":{"kind":"missing"},
107 "classish_body":{
108 "kind":"classish_body",
109 "classish_body_left_brace":{
110 "kind":"token",
111 "token":{
112 "kind":"{",
113 "text":"{",
114 "offset":85,
115 "leading_width":0,
116 "width":1,
117 "trailing_width":1,
118 "leading":[],
119 "trailing":[{"kind":"end_of_line","text":"\n","offset":86,"width":1}],
120 "line_number":4
123 "classish_body_elements":{
124 "kind":"list",
125 "elements":[
127 "kind":"methodish_declaration",
128 "methodish_attribute":{"kind":"missing"},
129 "methodish_function_decl_header":{
130 "kind":"function_declaration_header",
131 "function_modifiers":{"kind":"missing"},
132 "function_keyword":{
133 "kind":"token",
134 "token":{
135 "kind":"function",
136 "text":"function",
137 "offset":87,
138 "leading_width":4,
139 "width":8,
140 "trailing_width":1,
141 "leading":[{"kind":"whitespace","text":" ","offset":87,"width":4}],
142 "trailing":[{"kind":"whitespace","text":" ","offset":99,"width":1}],
143 "line_number":5
146 "function_name":{
147 "kind":"token",
148 "token":{
149 "kind":"name",
150 "text":"f",
151 "offset":100,
152 "leading_width":0,
153 "width":1,
154 "trailing_width":0,
155 "leading":[],
156 "trailing":[],
157 "line_number":5
160 "function_type_parameter_list":{
161 "kind":"type_parameters",
162 "type_parameters_left_angle":{
163 "kind":"token",
164 "token":{
165 "kind":"<",
166 "text":"<",
167 "offset":101,
168 "leading_width":0,
169 "width":1,
170 "trailing_width":0,
171 "leading":[],
172 "trailing":[],
173 "line_number":5
176 "type_parameters_parameters":{
177 "kind":"list",
178 "elements":[
180 "kind":"list_item",
181 "list_item":{
182 "kind":"type_parameter",
183 "type_attribute_spec":{"kind":"missing"},
184 "type_reified":{"kind":"missing"},
185 "type_variance":{"kind":"missing"},
186 "type_name":{
187 "kind":"token",
188 "token":{
189 "kind":"name",
190 "text":"T",
191 "offset":102,
192 "leading_width":0,
193 "width":1,
194 "trailing_width":0,
195 "leading":[],
196 "trailing":[],
197 "line_number":5
200 "type_param_params":{"kind":"missing"},
201 "type_constraints":{"kind":"missing"}
203 "list_separator":{"kind":"missing"}
207 "type_parameters_right_angle":{
208 "kind":"token",
209 "token":{
210 "kind":">",
211 "text":">",
212 "offset":103,
213 "leading_width":0,
214 "width":1,
215 "trailing_width":0,
216 "leading":[],
217 "trailing":[],
218 "line_number":5
222 "function_left_paren":{
223 "kind":"token",
224 "token":{
225 "kind":"(",
226 "text":"(",
227 "offset":104,
228 "leading_width":0,
229 "width":1,
230 "trailing_width":0,
231 "leading":[],
232 "trailing":[],
233 "line_number":5
236 "function_parameter_list":{"kind":"missing"},
237 "function_right_paren":{
238 "kind":"token",
239 "token":{
240 "kind":")",
241 "text":")",
242 "offset":105,
243 "leading_width":0,
244 "width":1,
245 "trailing_width":1,
246 "leading":[],
247 "trailing":[{"kind":"whitespace","text":" ","offset":106,"width":1}],
248 "line_number":5
251 "function_capability":{"kind":"missing"},
252 "function_colon":{"kind":"missing"},
253 "function_type":{"kind":"missing"},
254 "function_where_clause":{
255 "kind":"where_clause",
256 "where_clause_keyword":{
257 "kind":"token",
258 "token":{
259 "kind":"where",
260 "text":"where",
261 "offset":107,
262 "leading_width":0,
263 "width":5,
264 "trailing_width":1,
265 "leading":[],
266 "trailing":[{"kind":"whitespace","text":" ","offset":112,"width":1}],
267 "line_number":5
270 "where_clause_constraints":{
271 "kind":"list",
272 "elements":[
274 "kind":"list_item",
275 "list_item":{
276 "kind":"where_constraint",
277 "where_constraint_left_type":{
278 "kind":"simple_type_specifier",
279 "simple_type_specifier":{
280 "kind":"token",
281 "token":{
282 "kind":"name",
283 "text":"T",
284 "offset":113,
285 "leading_width":0,
286 "width":1,
287 "trailing_width":1,
288 "leading":[],
289 "trailing":[{"kind":"end_of_line","text":"\n","offset":114,"width":1}],
290 "line_number":5
294 "where_constraint_operator":{"kind":"missing"},
295 "where_constraint_right_type":{
296 "kind":"error",
297 "error_error":{
298 "kind":"token",
299 "token":{
300 "kind":"end_of_file",
301 "text":"",
302 "offset":115,
303 "leading_width":0,
304 "width":0,
305 "trailing_width":0,
306 "leading":[],
307 "trailing":[],
308 "line_number":6
313 "list_separator":{"kind":"missing"}
319 "methodish_function_body":{
320 "kind":"error",
321 "error_error":{
322 "kind":"token",
323 "token":{
324 "kind":"end_of_file",
325 "text":"",
326 "offset":115,
327 "leading_width":0,
328 "width":0,
329 "trailing_width":0,
330 "leading":[],
331 "trailing":[],
332 "line_number":6
336 "methodish_semicolon":{"kind":"missing"}
340 "classish_body_right_brace":{"kind":"missing"}
344 "kind":"end_of_file",
345 "end_of_file_token":{
346 "kind":"token",
347 "token":{
348 "kind":"end_of_file",
349 "text":"",
350 "offset":115,
351 "leading_width":0,
352 "width":0,
353 "trailing_width":0,
354 "leading":[],
355 "trailing":[],
356 "line_number":6
363 "program_text":"<?hh // strict\n// Copyright 2004-present Facebook. All Rights Reserved.\n\ninterface A {\n function f<T>() where T\n",
364 "version":"2020-12-09-0001"