4 "script_declarations":{
8 "kind":"markup_section",
24 "kind":"markup_suffix",
25 "markup_suffix_less_than_question":{
39 "markup_suffix_name":{
49 "trailing":[{"kind":"end_of_line","text":"\n","offset":4,"width":1}],
56 "kind":"classish_declaration",
57 "classish_attribute":{"kind":"missing"},
58 "classish_modifiers":{"kind":"missing"},
59 "classish_xhp":{"kind":"missing"},
69 "leading":[{"kind":"end_of_line","text":"\n","offset":5,"width":1}],
70 "trailing":[{"kind":"whitespace","text":" ","offset":11,"width":1}],
84 "trailing":[{"kind":"whitespace","text":" ","offset":13,"width":1}],
88 "classish_type_parameters":{"kind":"missing"},
89 "classish_extends_keyword":{"kind":"missing"},
90 "classish_extends_list":{"kind":"missing"},
91 "classish_implements_keyword":{"kind":"missing"},
92 "classish_implements_list":{"kind":"missing"},
93 "classish_where_clause":{"kind":"missing"},
95 "kind":"classish_body",
96 "classish_body_left_brace":{
106 "trailing":[{"kind":"end_of_line","text":"\n","offset":15,"width":1}],
110 "classish_body_elements":{
114 "kind":"methodish_declaration",
115 "methodish_attribute":{"kind":"missing"},
116 "methodish_function_decl_header":{
117 "kind":"function_declaration_header",
118 "function_modifiers":{
131 {"kind":"end_of_line","text":"\n","offset":16,"width":1},
132 {"kind":"whitespace","text":" ","offset":17,"width":2},
134 "kind":"single_line_comment",
135 "text":"// 'sta' becomes error trivia",
139 {"kind":"end_of_line","text":"\n","offset":48,"width":1},
140 {"kind":"whitespace","text":" ","offset":49,"width":2}
142 "trailing":[{"kind":"whitespace","text":" ","offset":57,"width":1}],
158 {"kind":"extra_token_error","text":"f()","offset":71,"width":3},
159 {"kind":"whitespace","text":" ","offset":61,"width":1}
161 "trailing":[{"kind":"whitespace","text":" ","offset":70,"width":1}],
179 "function_type_parameter_list":{"kind":"missing"},
180 "function_left_paren":{
194 "function_parameter_list":{"kind":"missing"},
195 "function_right_paren":{
205 "trailing":[{"kind":"whitespace","text":" ","offset":74,"width":1}],
209 "function_colon":{"kind":"missing"},
210 "function_type":{"kind":"missing"},
211 "function_where_clause":{"kind":"missing"}
213 "methodish_function_body":{
214 "kind":"compound_statement",
215 "compound_left_brace":{
225 "trailing":[{"kind":"end_of_line","text":"\n","offset":76,"width":1}],
229 "compound_statements":{"kind":"missing"},
230 "compound_right_brace":{
239 "leading":[{"kind":"whitespace","text":" ","offset":77,"width":2}],
240 "trailing":[{"kind":"end_of_line","text":"\n","offset":80,"width":1}],
245 "methodish_semicolon":{"kind":"missing"}
248 "kind":"methodish_declaration",
249 "methodish_attribute":{"kind":"missing"},
250 "methodish_function_decl_header":{
251 "kind":"function_declaration_header",
252 "function_modifiers":{
265 {"kind":"end_of_line","text":"\n","offset":81,"width":1},
266 {"kind":"whitespace","text":" ","offset":82,"width":2},
268 "kind":"single_line_comment",
269 "text":"// 'meaninglessword' becomes error trivia",
273 {"kind":"end_of_line","text":"\n","offset":125,"width":1},
274 {"kind":"whitespace","text":" ","offset":126,"width":2}
276 "trailing":[{"kind":"whitespace","text":" ","offset":134,"width":1}],
290 "trailing":[{"kind":"whitespace","text":" ","offset":141,"width":1}],
307 "kind":"extra_token_error",
308 "text":"f() {\n }\n\n //",
312 {"kind":"whitespace","text":" ","offset":157,"width":1}
314 "trailing":[{"kind":"whitespace","text":" ","offset":166,"width":1}],
332 "function_type_parameter_list":{"kind":"missing"},
333 "function_left_paren":{
347 "function_parameter_list":{"kind":"missing"},
348 "function_right_paren":{
358 "trailing":[{"kind":"whitespace","text":" ","offset":170,"width":1}],
362 "function_colon":{"kind":"missing"},
363 "function_type":{"kind":"missing"},
364 "function_where_clause":{"kind":"missing"}
366 "methodish_function_body":{
367 "kind":"compound_statement",
368 "compound_left_brace":{
378 "trailing":[{"kind":"end_of_line","text":"\n","offset":172,"width":1}],
382 "compound_statements":{"kind":"missing"},
383 "compound_right_brace":{
392 "leading":[{"kind":"whitespace","text":" ","offset":173,"width":2}],
393 "trailing":[{"kind":"end_of_line","text":"\n","offset":176,"width":1}],
398 "methodish_semicolon":{"kind":"missing"}
401 "kind":"property_declaration",
402 "property_attribute_spec":{"kind":"missing"},
403 "property_modifiers":{
416 {"kind":"end_of_line","text":"\n","offset":177,"width":1},
417 {"kind":"whitespace","text":" ","offset":178,"width":2},
419 "kind":"single_line_comment",
420 "text":"// no change in parsing",
424 {"kind":"end_of_line","text":"\n","offset":203,"width":1},
425 {"kind":"whitespace","text":" ","offset":204,"width":2}
427 "trailing":[{"kind":"whitespace","text":" ","offset":212,"width":1}],
434 "kind":"simple_type_specifier",
435 "simple_type_specifier":{
439 "text":"meaninglessword",
445 "trailing":[{"kind":"whitespace","text":" ","offset":228,"width":1}],
450 "property_declarators":{
456 "kind":"property_declarator",
457 "property_name":{"kind":"missing"},
458 "property_initializer":{"kind":"missing"}
460 "list_separator":{"kind":"missing"}
464 "property_semicolon":{"kind":"missing"}
467 "kind":"methodish_declaration",
468 "methodish_attribute":{"kind":"missing"},
469 "methodish_function_decl_header":{
470 "kind":"function_declaration_header",
471 "function_modifiers":{
484 "trailing":[{"kind":"whitespace","text":" ","offset":235,"width":1}],
500 "trailing":[{"kind":"whitespace","text":" ","offset":244,"width":1}],
518 "function_type_parameter_list":{"kind":"missing"},
519 "function_left_paren":{
533 "function_parameter_list":{"kind":"missing"},
534 "function_right_paren":{
544 "trailing":[{"kind":"whitespace","text":" ","offset":248,"width":1}],
548 "function_colon":{"kind":"missing"},
549 "function_type":{"kind":"missing"},
550 "function_where_clause":{"kind":"missing"}
552 "methodish_function_body":{
553 "kind":"compound_statement",
554 "compound_left_brace":{
564 "trailing":[{"kind":"end_of_line","text":"\n","offset":250,"width":1}],
568 "compound_statements":{"kind":"missing"},
569 "compound_right_brace":{
578 "leading":[{"kind":"whitespace","text":" ","offset":251,"width":2}],
579 "trailing":[{"kind":"end_of_line","text":"\n","offset":254,"width":1}],
584 "methodish_semicolon":{"kind":"missing"}
587 "kind":"property_declaration",
588 "property_attribute_spec":{"kind":"missing"},
589 "property_modifiers":{
602 {"kind":"end_of_line","text":"\n","offset":255,"width":1},
603 {"kind":"whitespace","text":" ","offset":256,"width":2},
605 "kind":"single_line_comment",
606 "text":"// no change in parsing",
610 {"kind":"end_of_line","text":"\n","offset":281,"width":1},
611 {"kind":"whitespace","text":" ","offset":282,"width":2}
613 "trailing":[{"kind":"whitespace","text":" ","offset":290,"width":1}],
620 "kind":"simple_type_specifier",
621 "simple_type_specifier":{
625 "text":"meaninglessword1",
631 "trailing":[{"kind":"whitespace","text":" ","offset":307,"width":1}],
636 "property_declarators":{
642 "kind":"property_declarator",
643 "property_name":{"kind":"missing"},
644 "property_initializer":{"kind":"missing"}
646 "list_separator":{"kind":"missing"}
650 "property_semicolon":{"kind":"missing"}
658 "text":"meaninglessword2",
664 "trailing":[{"kind":"whitespace","text":" ","offset":324,"width":1}],
670 "kind":"methodish_declaration",
671 "methodish_attribute":{"kind":"missing"},
672 "methodish_function_decl_header":{
673 "kind":"function_declaration_header",
674 "function_modifiers":{"kind":"missing"},
685 "trailing":[{"kind":"whitespace","text":" ","offset":333,"width":1}],
703 "function_type_parameter_list":{"kind":"missing"},
704 "function_left_paren":{
718 "function_parameter_list":{"kind":"missing"},
719 "function_right_paren":{
729 "trailing":[{"kind":"whitespace","text":" ","offset":337,"width":1}],
733 "function_colon":{"kind":"missing"},
734 "function_type":{"kind":"missing"},
735 "function_where_clause":{"kind":"missing"}
737 "methodish_function_body":{
738 "kind":"compound_statement",
739 "compound_left_brace":{
749 "trailing":[{"kind":"end_of_line","text":"\n","offset":339,"width":1}],
753 "compound_statements":{"kind":"missing"},
754 "compound_right_brace":{
763 "leading":[{"kind":"whitespace","text":" ","offset":340,"width":2}],
764 "trailing":[{"kind":"end_of_line","text":"\n","offset":343,"width":1}],
769 "methodish_semicolon":{"kind":"missing"}
773 "classish_body_right_brace":{
782 "leading":[{"kind":"end_of_line","text":"\n","offset":344,"width":1}],
783 "trailing":[{"kind":"end_of_line","text":"\n","offset":346,"width":1}],
790 "kind":"end_of_file",
791 "end_of_file_token":{
794 "kind":"end_of_file",
809 "program_text":"<?hh\n\nclass C {\n\n // 'sta' becomes error trivia\n public sta function f() {\n }\n\n // 'meaninglessword' becomes error trivia\n public static meaninglessword function f() {\n }\n\n // no change in parsing\n public meaninglessword static function f() {\n }\n\n // no change in parsing\n public meaninglessword1 meaninglessword2 function f() {\n }\n\n}\n",
810 "version":"2020-04-14-0002"