Introduce the ConstFun attribute
[hiphop-php.git] / hphp / hack / test / decl / property_needs_init.hhi.exp
blob0a1ce72b4bd8f8de0e6f7c737458675995f66231
1 [("\\C",
2 (Shallow_decl_defs.Class
3 { Shallow_decl_defs.sc_mode = Mhhi; sc_final = false; sc_is_xhp = false;
4 sc_has_xhp_keyword = false; sc_kind = Cnormal;
5 sc_name = ([3:7-8], "\\C"); sc_tparams = [];
6 sc_where_constraints = []; sc_extends = []; sc_uses = [];
7 sc_xhp_attr_uses = []; sc_req_extends = []; sc_req_implements = [];
8 sc_implements = []; sc_implements_dynamic = false; sc_consts = [];
9 sc_typeconsts = [];
10 sc_props =
11 [{ Shallow_decl_defs.sp_name = ([4:15-17], "i"); sp_xhp_attr = None;
12 sp_type =
13 (Some (Rhint (root|property_needs_init.hhi line 4, characters 11-13),
14 (Tprim Tint)));
15 sp_visibility = Private; sp_flags = (empty) };
16 { Shallow_decl_defs.sp_name = ([5:46-48], "s"); sp_xhp_attr = None;
17 sp_type =
18 (Some (Rhint (root|property_needs_init.hhi line 5, characters 39-44),
19 (Tprim Tstring)));
20 sp_visibility = Private; sp_flags = (empty) }
22 sc_sprops = [];
23 sc_constructor =
24 (Some { Shallow_decl_defs.sm_name = ([5:19-30], "__construct");
25 sm_reactivity = None;
26 sm_type =
27 (Rwitness (root|property_needs_init.hhi line 5, characters 19-29),
28 (Tfun
29 { ft_arity = (Fstandard ()); ft_tparams = [];
30 ft_where_constraints = [];
31 ft_params =
32 [{ fp_pos = [5:46-48]; fp_name = (Some "$s");
33 fp_type =
34 { et_enforced = false;
35 et_type =
36 (Rhint (root|property_needs_init.hhi line 5, characters 39-44),
37 (Tprim Tstring))
39 fp_rx_annotation = None;
40 fp_flags =
41 (make_fp_flags ~mutability:None
42 ~accept_disposable:false ~has_default:false
43 ~mode:Typing_defs_core.FPnormal ~ifc_external:false
44 ~ifc_can_call:false ~is_atom:false ~readonly:false
45 ~const_function:false);
48 ft_implicit_params =
49 { capability = (CapDefaults [5:19-30]) };
50 ft_ret =
51 { et_enforced = false;
52 et_type =
53 (Rwitness (root|property_needs_init.hhi line 5, characters 19-29),
54 (Tprim Tvoid))
56 ft_flags =
57 (make_ft_flags FSync None ~return_disposable:false
58 ~returns_mutable:false ~returns_void_to_rx:false
59 ~returns_readonly:false ~readonly_this:false
60 ~is_const:false);
61 ft_reactive = Nonreactive;
62 ft_ifc_decl = FDPolicied {PUBLIC} }));
63 sm_visibility = Public; sm_deprecated = None;
64 sm_flags = (empty) });
65 sc_static_methods = []; sc_methods = []; sc_user_attributes = [];
66 sc_enum_type = None }))
69 They matched!