Backout D24132229
[hiphop-php.git] / hphp / hack / test / decl / hhi.hhi.exp
blob3078a8345f452118f825ebd25e4b15d1231588b2
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:11-12];
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_rx_annotation = None;
29 fp_flags =
30 (make_fp_flags ~mutability:None ~accept_disposable:false
31 ~has_default:false ~mode:Typing_defs_core.FPnormal
32 ~ifc_external:false ~ifc_can_call:false ~is_atom:false);
35 ft_implicit_params =
36 { capability =
37 (Rhint (root|hhi.hhi line 7, characters 10-10), (Tunion []))
39 ft_ret =
40 { et_enforced = false;
41 et_type =
42 (Rhint (root|hhi.hhi line 7, characters 24-26), (Tprim Tint))
44 ft_flags =
45 (make_ft_flags FSync None ~return_disposable:false
46 ~returns_mutable:false ~returns_void_to_rx:false);
47 ft_reactive = Nonreactive; ft_ifc_decl = FDPolicied {PUBLIC} }));
48 fe_pos = [7:10-11]; fe_php_std_lib = false }));
49 ("\\C",
50 (Shallow_decl_defs.Class
51 { Shallow_decl_defs.sc_mode = Mdecl; sc_final = false;
52 sc_is_xhp = false; sc_has_xhp_keyword = false; sc_kind = Cnormal;
53 sc_name = ([9:7-8], "\\C"); sc_tparams = [];
54 sc_where_constraints = []; sc_extends = []; sc_uses = [];
55 sc_xhp_attr_uses = []; sc_req_extends = []; sc_req_implements = [];
56 sc_implements = []; sc_implements_dynamic = false; sc_consts = [];
57 sc_typeconsts = []; sc_props = []; sc_sprops = [];
58 sc_constructor = None; sc_static_methods = [];
59 sc_methods =
60 [{ Shallow_decl_defs.sm_abstract = false; sm_final = false;
61 sm_name = ([10:19-20], "g"); sm_override = false;
62 sm_dynamicallycallable = false; sm_reactivity = None;
63 sm_type =
64 (Rwitness (root|hhi.hhi line 10, characters 19-19),
65 (Tfun
66 { ft_arity = (Fstandard ()); ft_tparams = [];
67 ft_where_constraints = [];
68 ft_params =
69 [{ fp_pos = [10:23-25]; fp_name = (Some "$x");
70 fp_type =
71 { et_enforced = false;
72 et_type =
73 (Rhint (root|hhi.hhi line 10, characters 21-21),
74 (Tapply (([10:21-22], "\\X"), [])))
76 fp_rx_annotation = None;
77 fp_flags =
78 (make_fp_flags ~mutability:None ~accept_disposable:false
79 ~has_default:false ~mode:Typing_defs_core.FPnormal
80 ~ifc_external:false ~ifc_can_call:false ~is_atom:false);
83 ft_implicit_params =
84 { capability =
85 (Rhint (root|hhi.hhi line 10, characters 19-19),
86 (Tunion []))
88 ft_ret =
89 { et_enforced = false;
90 et_type =
91 (Rhint (root|hhi.hhi line 10, characters 28-30),
92 (Tprim Tint))
94 ft_flags =
95 (make_ft_flags FSync None ~return_disposable:false
96 ~returns_mutable:false ~returns_void_to_rx:false);
97 ft_reactive = Nonreactive; ft_ifc_decl = FDPolicied {PUBLIC}
98 }));
99 sm_visibility = Public; sm_deprecated = None }
101 sc_user_attributes = []; sc_enum_type = None }))
104 They matched!