Porting decl tests from partial to strict
[hiphop-php.git] / hphp / hack / test / decl / file_mode.php.exp
blobc40e87e4579d2f9eb24f6c8196d552766121bfc9
1 [("\\MyPartialClass",
2 (Shallow_decl_defs.Class
3 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = false;
4 sc_is_xhp = false; sc_has_xhp_keyword = false;
5 sc_kind = (Cclass Concrete); sc_module = None;
6 sc_name = ([3:7-21], "\\MyPartialClass"); 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_implements = [];
10 sc_support_dynamic_type = false; sc_consts = []; sc_typeconsts = [];
11 sc_props = []; sc_sprops = []; sc_constructor = None;
12 sc_static_methods = []; sc_methods = []; sc_user_attributes = [];
13 sc_enum_type = None }));
14 ("\\my_partial_function",
15 (Shallow_decl_defs.Fun
16 { Typing_defs.fe_deprecated = None; fe_module = None;
17 fe_internal = false;
18 fe_type =
19 (Rwitness_from_decl ([5:10-29]),
20 (Tfun
21 { ft_arity = (Fstandard ()); ft_tparams = [];
22 ft_where_constraints = []; ft_params = [];
23 ft_implicit_params = { capability = (CapDefaults [5:10-29]) };
24 ft_ret =
25 { et_enforced = Typing_defs_core.Unenforced;
26 et_type = (Rhint ([5:33-37]), (Tprim Tvoid)) };
27 ft_flags =
28 (make_ft_flags FSync ~return_disposable:false
29 ~returns_readonly:false ~support_dynamic_type:false
30 ~readonly_this:false);
31 ft_ifc_decl = FDPolicied {PUBLIC} }));
32 fe_pos = [5:10-29]; fe_php_std_lib = false;
33 fe_support_dynamic_type = false }));
34 ("\\MyPartialType",
35 (Shallow_decl_defs.Typedef
36 { Typing_defs.td_module = None; td_pos = [7:6-19];
37 td_vis = Transparent; td_tparams = []; td_constraint = None;
38 td_type = (Rhint ([7:22-28]), (Tprim Tstring)); td_is_ctx = false }));
39 ("\\MY_PARTIAL_CONST",
40 (Shallow_decl_defs.Const
41 { Typing_defs.cd_pos = [9:1-10:53];
42 cd_type =
43 (Rhint ([9:7-20]), (Tapply (([9:7-20], "\\MyPartialType"), []))) }))
46 They matched!