Backout D24132229
[hiphop-php.git] / hphp / hack / test / tast / async_lambda.php.exp
bloba2fff4de55b425db1c321480847819c4ef5f6c4c
1 [(Fun
2 { f_span = [3:1-70]; f_annotation = (); f_mode = Mstrict;
3 f_ret =
4 ((Awaitable<string>),
5 (Some ([3:38-55],
6 (Happly (([3:38-47], "\\HH\\Awaitable"),
7 [([3:48-54], (Hprim Tstring))])))));
8 f_name = ([3:16-25], "\\genString"); f_tparams = [];
9 f_where_constraints = []; f_variadic = FVnonVariadic;
10 f_params =
11 [{ param_annotation = ([3:33-35], string);
12 param_type_hint = ((string), (Some ([3:26-32], (Hprim Tstring))));
13 param_is_variadic = false; param_pos = [3:33-35]; param_name = "$s";
14 param_expr = None; param_callconv = None;
15 param_user_attributes = []; param_visibility = None }
17 f_cap = ((nothing), None); f_unsafe_cap = ((mixed), None);
18 f_body =
19 { fb_ast =
20 [([3:58-68],
21 (Return (Some (([3:65-67], string), (Lvar ([3:65-67], $s))))))];
22 fb_annotation = () };
23 f_fun_kind = FAsync; f_user_attributes = []; f_file_attributes = [];
24 f_external = false;
25 f_namespace =
26 { Namespace_env.ns_ns_uses = <opaque>; ns_class_uses = <opaque>;
27 ns_record_def_uses = <opaque>; ns_fun_uses = <opaque>;
28 ns_const_uses = <opaque>; ns_name = None; ns_auto_ns_map = [];
29 ns_is_codegen = false; ns_disable_xhp_element_mangling = false };
30 f_doc_comment = None; f_static = false });
31 (Fun
32 { f_span = [5:1-12:2]; f_annotation = (); f_mode = Mstrict;
33 f_ret = ((void), (Some ([5:18-22], (Hprim Tvoid))));
34 f_name = ([5:10-14], "\\test"); f_tparams = [];
35 f_where_constraints = []; f_variadic = FVnonVariadic; f_params = [];
36 f_cap = ((nothing), None); f_unsafe_cap = ((mixed), None);
37 f_body =
38 { fb_ast =
39 [([6:3-8:5],
40 (Expr
41 (([6:3-8:4], (function(): Awaitable<void>)),
42 (Binop ((Eq None),
43 (([6:3-6], (function(): Awaitable<void>)),
44 (Lvar ([6:3-6], $f0))),
45 (([6:9-8:4], (function(): Awaitable<_>)),
46 (Lfun (
47 { f_span = [6:9-8:4]; f_annotation = ();
48 f_mode = Mstrict; f_ret = ((Awaitable<void>), None);
49 f_name = ([6:9-8:4], ";anonymous"); f_tparams = [];
50 f_where_constraints = []; f_variadic = FVnonVariadic;
51 f_params = []; f_cap = ((nothing), None);
52 f_unsafe_cap = ((mixed), None);
53 f_body =
54 { fb_ast =
55 [([7:5-35],
56 (Expr
57 (([7:5-34], string),
58 (Binop ((Eq None),
59 (([7:5-9], string), (Lvar ([7:5-9], $str))),
60 (([7:12-34], string),
61 (Await
62 (([7:18-34], Awaitable<string>),
63 (Call (
64 (([7:18-27], (function(string $s): Awaitable<string>)),
65 (Id ([7:18-27], "\\genString"))),
66 [],
67 [(([7:28-33], string),
68 (String "foo"))],
69 None)))))
70 )))))
72 fb_annotation = () };
73 f_fun_kind = FAsync; f_user_attributes = [];
74 f_file_attributes = []; f_external = false;
75 f_namespace =
76 { Namespace_env.ns_ns_uses = <opaque>;
77 ns_class_uses = <opaque>;
78 ns_record_def_uses = <opaque>;
79 ns_fun_uses = <opaque>; ns_const_uses = <opaque>;
80 ns_name = None; ns_auto_ns_map = [];
81 ns_is_codegen = false;
82 ns_disable_xhp_element_mangling = false };
83 f_doc_comment = None; f_static = false },
84 [])))
85 )))));
86 ([9:3-11:5],
87 (Expr
88 (([9:3-11:4], (function(string $x): Awaitable<void>)),
89 (Binop ((Eq None),
90 (([9:3-6], (function(string $x): Awaitable<void>)),
91 (Lvar ([9:3-6], $f1))),
92 (([9:9-11:4], (function(string $x): Awaitable<void>)),
93 (Lfun (
94 { f_span = [9:9-11:4]; f_annotation = ();
95 f_mode = Mstrict; f_ret = ((Awaitable<void>), None);
96 f_name = ([9:9-11:4], ";anonymous"); f_tparams = [];
97 f_where_constraints = [];
98 f_variadic = FVnonVariadic;
99 f_params =
100 [{ param_annotation = ([9:15-17], string);
101 param_type_hint = ((string), None);
102 param_is_variadic = false; param_pos = [9:15-17];
103 param_name = "$x"; param_expr = None;
104 param_callconv = None;
105 param_user_attributes = [];
106 param_visibility = None }
108 f_cap = ((nothing), None);
109 f_unsafe_cap = ((mixed), None);
110 f_body =
111 { fb_ast =
112 [([10:5-32],
113 (Expr
114 (([10:5-31], string),
115 (Binop ((Eq None),
116 (([10:5-9], string),
117 (Lvar ([10:5-9], $str))),
118 (([10:12-31], string),
119 (Await
120 (([10:18-31], Awaitable<string>),
121 (Call (
122 (([10:18-27], (function(string $s): Awaitable<string>)),
123 (Id ([10:18-27], "\\genString"))),
125 [(([10:28-30], string),
126 (Lvar ([10:28-30], $x)))],
127 None)))))
128 )))))
130 fb_annotation = () };
131 f_fun_kind = FAsync; f_user_attributes = [];
132 f_file_attributes = []; f_external = false;
133 f_namespace =
134 { Namespace_env.ns_ns_uses = <opaque>;
135 ns_class_uses = <opaque>;
136 ns_record_def_uses = <opaque>;
137 ns_fun_uses = <opaque>; ns_const_uses = <opaque>;
138 ns_name = None; ns_auto_ns_map = [];
139 ns_is_codegen = false;
140 ns_disable_xhp_element_mangling = false };
141 f_doc_comment = None; f_static = false },
142 [])))
143 )))))
145 fb_annotation = () };
146 f_fun_kind = FSync; f_user_attributes = []; f_file_attributes = [];
147 f_external = false;
148 f_namespace =
149 { Namespace_env.ns_ns_uses = <opaque>; ns_class_uses = <opaque>;
150 ns_record_def_uses = <opaque>; ns_fun_uses = <opaque>;
151 ns_const_uses = <opaque>; ns_name = None; ns_auto_ns_map = [];
152 ns_is_codegen = false; ns_disable_xhp_element_mangling = false };
153 f_doc_comment = None; f_static = false })