Rip out legacy reactivity from the typechecker and HackC
[hiphop-php.git] / hphp / hack / test / decl / hhi.hhi.exp
blobcbcd40c720b3c1c2b146e2d97a014e0dd0170184
1 [("\\X",
2 (Shallow_decl_defs.Typedef
3 { Typing_defs.td_pos = [3:6-7]; td_vis = Transparent; td_tparams = [];
4 td_constraint = None;
5 td_type =
6 (Rhint (root|hhi.hhi line 3, characters 10-12), (Tprim Tint)) }));
7 ("\\Y",
8 (Shallow_decl_defs.Const
9 { Typing_defs.cd_pos = [5:1-17];
10 cd_type = (Rhint (root|hhi.hhi line 5, characters 7-9), (Tprim Tint))
11 }));
12 ("\\f",
13 (Shallow_decl_defs.Fun
14 { Typing_defs.fe_deprecated = None;
15 fe_type =
16 (Rwitness (root|hhi.hhi line 7, characters 10-10),
17 (Tfun
18 { ft_arity = (Fstandard ()); ft_tparams = [];
19 ft_where_constraints = [];
20 ft_params =
21 [{ fp_pos = [7:19-21]; fp_name = (Some "$s");
22 fp_type =
23 { et_enforced = false;
24 et_type =
25 (Rhint (root|hhi.hhi line 7, characters 12-17),
26 (Tprim Tstring))
28 fp_flags =
29 (make_fp_flags ~accept_disposable:false ~has_default:false
30 ~mode:Typing_defs_core.FPnormal ~ifc_external:false
31 ~ifc_can_call:false ~is_atom:false ~readonly:false
32 ~const_function:false);
35 ft_implicit_params = { capability = (CapDefaults [7:10-11]) };
36 ft_ret =
37 { et_enforced = false;
38 et_type =
39 (Rhint (root|hhi.hhi line 7, characters 24-26), (Tprim Tint))
41 ft_flags =
42 (make_ft_flags FSync ~return_disposable:false
43 ~returns_readonly:false ~readonly_this:false ~is_const:false);
44 ft_ifc_decl = FDPolicied {PUBLIC} }));
45 fe_pos = [7:10-11]; fe_php_std_lib = false }));
46 ("\\C",
47 (Shallow_decl_defs.Class
48 { Shallow_decl_defs.sc_mode = Mhhi; sc_final = false;
49 sc_is_xhp = false; sc_has_xhp_keyword = false; sc_kind = Cnormal;
50 sc_name = ([9:7-8], "\\C"); sc_tparams = [];
51 sc_where_constraints = []; sc_extends = []; sc_uses = [];
52 sc_xhp_attr_uses = []; sc_req_extends = []; sc_req_implements = [];
53 sc_implements = []; sc_implements_dynamic = false; sc_consts = [];
54 sc_typeconsts = []; sc_props = []; sc_sprops = [];
55 sc_constructor = None; sc_static_methods = [];
56 sc_methods =
57 [{ Shallow_decl_defs.sm_name = ([10:19-20], "g");
58 sm_type =
59 (Rwitness (root|hhi.hhi line 10, characters 19-19),
60 (Tfun
61 { ft_arity = (Fstandard ()); ft_tparams = [];
62 ft_where_constraints = [];
63 ft_params =
64 [{ fp_pos = [10:23-25]; fp_name = (Some "$x");
65 fp_type =
66 { et_enforced = false;
67 et_type =
68 (Rhint (root|hhi.hhi line 10, characters 21-21),
69 (Tapply (([10:21-22], "\\X"), [])))
71 fp_flags =
72 (make_fp_flags ~accept_disposable:false
73 ~has_default:false ~mode:Typing_defs_core.FPnormal
74 ~ifc_external:false ~ifc_can_call:false ~is_atom:false
75 ~readonly:false ~const_function:false);
78 ft_implicit_params =
79 { capability = (CapDefaults [10:19-20]) };
80 ft_ret =
81 { et_enforced = false;
82 et_type =
83 (Rhint (root|hhi.hhi line 10, characters 28-30),
84 (Tprim Tint))
86 ft_flags =
87 (make_ft_flags FSync ~return_disposable:false
88 ~returns_readonly:false ~readonly_this:false
89 ~is_const:false);
90 ft_ifc_decl = FDPolicied {PUBLIC} }));
91 sm_visibility = Public; sm_deprecated = None; sm_flags = (empty) }
93 sc_user_attributes = []; sc_enum_type = None }))
96 They matched!