Do not pessimise top level functions under NAD
[hiphop-php.git] / hphp / hack / test / decl / return_disposable.php.exp
blob026ab874980e53dfb16b465ca0ef0b1651b3b436
1 [("\\Bar",
2 (Shallow_decl_defs.Class
3 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = true;
4 sc_abstract = false; sc_is_xhp = false; sc_internal = false;
5 sc_has_xhp_keyword = false; sc_kind = (Cclass Concrete);
6 sc_module = None; sc_name = ([3:13-16], "\\Bar"); sc_tparams = [];
7 sc_where_constraints = []; sc_extends = []; sc_uses = [];
8 sc_xhp_attr_uses = []; sc_xhp_enum_values = {}; sc_req_extends = [];
9 sc_req_implements = []; sc_req_class = [];
10 sc_implements =
11 [(Rhint ([3:28-39]), (Tapply (([3:28-39], "\\IDisposable"), [])))];
12 sc_support_dynamic_type = false; sc_consts = []; sc_typeconsts = [];
13 sc_props = []; sc_sprops = []; sc_constructor = None;
14 sc_static_methods = [];
15 sc_methods =
16 [{ Shallow_decl_defs.sm_name = ([4:19-28], "__dispose");
17 sm_type =
18 (Rwitness_from_decl ([4:19-28]),
19 (Tfun
20 { ft_tparams = []; ft_where_constraints = []; ft_params = [];
21 ft_implicit_params = { capability = (CapDefaults [4:19-28]) };
22 ft_ret =
23 { et_enforced = Typing_defs_core.Unenforced;
24 et_type = (Rhint ([4:32-36]), (Tprim Tvoid)) };
25 ft_flags =
26 (make_ft_flags FSync ~return_disposable:false
27 ~returns_readonly:false ~support_dynamic_type:false
28 ~readonly_this:false ~is_memoized:false ~variadic:false);
29 ft_ifc_decl = FDPolicied {PUBLIC} }));
30 sm_visibility = Public; sm_deprecated = None; sm_flags = (empty);
31 sm_attributes = [] }
33 sc_user_attributes = []; sc_enum_type = None; sc_docs_url = None }));
34 ("\\gen",
35 (Shallow_decl_defs.Fun
36 { Typing_defs.fe_deprecated = None; fe_module = None;
37 fe_internal = false;
38 fe_type =
39 (Rwitness_from_decl ([8:16-19]),
40 (Tfun
41 { ft_tparams = []; ft_where_constraints = []; ft_params = [];
42 ft_implicit_params = { capability = (CapDefaults [8:16-19]) };
43 ft_ret =
44 { et_enforced = Typing_defs_core.Unenforced;
45 et_type =
46 (Rhint ([8:23-37]),
47 (Tapply (([8:23-32], "\\HH\\Awaitable"),
48 [(Rhint ([8:33-36]), (Tapply (([8:33-36], "\\Bar"), [])))
50 )))
52 ft_flags =
53 (make_ft_flags FAsync ~return_disposable:true
54 ~returns_readonly:false ~support_dynamic_type:false
55 ~readonly_this:false ~is_memoized:false ~variadic:false);
56 ft_ifc_decl = FDPolicied {PUBLIC} }));
57 fe_pos = [8:16-19]; fe_php_std_lib = false;
58 fe_support_dynamic_type = false; fe_no_auto_dynamic = false }))