Rip out legacy reactivity from the typechecker and HackC
[hiphop-php.git] / hphp / hack / test / decl / traits.php.exp
blob707122e5df835ab682a7694152b05c28b25934b6
1 [("\\TMyTrait",
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; sc_kind = Ctrait;
5 sc_name = ([3:7-15], "\\TMyTrait"); 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 = []; sc_props = []; sc_sprops = [];
10 sc_constructor = None; sc_static_methods = [];
11 sc_methods =
12 [{ Shallow_decl_defs.sm_name = ([4:19-28], "doNothing");
13 sm_type =
14 (Rwitness (root|traits.php line 4, characters 19-27),
15 (Tfun
16 { ft_arity = (Fstandard ()); ft_tparams = [];
17 ft_where_constraints = []; ft_params = [];
18 ft_implicit_params = { capability = (CapDefaults [4:19-28]) };
19 ft_ret =
20 { et_enforced = false;
21 et_type =
22 (Rhint (root|traits.php line 4, characters 32-35),
23 (Tprim Tvoid))
25 ft_flags =
26 (make_ft_flags FSync ~return_disposable:false
27 ~returns_readonly:false ~readonly_this:false
28 ~is_const:false);
29 ft_ifc_decl = FDPolicied {PUBLIC} }));
30 sm_visibility = Public; sm_deprecated = None; sm_flags = (empty) }
32 sc_user_attributes = []; sc_enum_type = None }));
33 ("\\TMyTrait2",
34 (Shallow_decl_defs.Class
35 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = false;
36 sc_is_xhp = false; sc_has_xhp_keyword = false; sc_kind = Ctrait;
37 sc_name = ([7:7-16], "\\TMyTrait2"); sc_tparams = [];
38 sc_where_constraints = []; sc_extends = [];
39 sc_uses =
40 [(Rhint (root|traits.php line 8, characters 7-14),
41 (Tapply (([8:7-15], "\\TMyTrait"), [])))];
42 sc_xhp_attr_uses = []; sc_req_extends = []; sc_req_implements = [];
43 sc_implements = []; sc_implements_dynamic = false; sc_consts = [];
44 sc_typeconsts = []; sc_props = []; sc_sprops = [];
45 sc_constructor = None; sc_static_methods = [];
46 sc_methods =
47 [{ Shallow_decl_defs.sm_name = ([10:19-32], "doMoreNothing");
48 sm_type =
49 (Rwitness (root|traits.php line 10, characters 19-31),
50 (Tfun
51 { ft_arity = (Fstandard ()); ft_tparams = [];
52 ft_where_constraints = []; ft_params = [];
53 ft_implicit_params =
54 { capability = (CapDefaults [10:19-32]) };
55 ft_ret =
56 { et_enforced = false;
57 et_type =
58 (Rhint (root|traits.php line 10, characters 36-39),
59 (Tprim Tvoid))
61 ft_flags =
62 (make_ft_flags FSync ~return_disposable:false
63 ~returns_readonly:false ~readonly_this:false
64 ~is_const:false);
65 ft_ifc_decl = FDPolicied {PUBLIC} }));
66 sm_visibility = Public; sm_deprecated = None; sm_flags = (empty) }
68 sc_user_attributes = []; sc_enum_type = None }));
69 ("\\TMyTrait3",
70 (Shallow_decl_defs.Class
71 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = false;
72 sc_is_xhp = false; sc_has_xhp_keyword = false; sc_kind = Ctrait;
73 sc_name = ([13:7-16], "\\TMyTrait3"); sc_tparams = [];
74 sc_where_constraints = []; sc_extends = []; sc_uses = [];
75 sc_xhp_attr_uses = []; sc_req_extends = []; sc_req_implements = [];
76 sc_implements = []; sc_implements_dynamic = false; sc_consts = [];
77 sc_typeconsts = []; sc_props = []; sc_sprops = [];
78 sc_constructor = None; sc_static_methods = [];
79 sc_methods =
80 [{ Shallow_decl_defs.sm_name = ([14:19-35], "doYetMoreNothing");
81 sm_type =
82 (Rwitness (root|traits.php line 14, characters 19-34),
83 (Tfun
84 { ft_arity = (Fstandard ()); ft_tparams = [];
85 ft_where_constraints = []; ft_params = [];
86 ft_implicit_params =
87 { capability = (CapDefaults [14:19-35]) };
88 ft_ret =
89 { et_enforced = false;
90 et_type =
91 (Rhint (root|traits.php line 14, characters 39-42),
92 (Tprim Tvoid))
94 ft_flags =
95 (make_ft_flags FSync ~return_disposable:false
96 ~returns_readonly:false ~readonly_this:false
97 ~is_const:false);
98 ft_ifc_decl = FDPolicied {PUBLIC} }));
99 sm_visibility = Public; sm_deprecated = None; sm_flags = (empty) }
101 sc_user_attributes = []; sc_enum_type = None }));
102 ("\\MyTraitUsingClass",
103 (Shallow_decl_defs.Class
104 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = false;
105 sc_is_xhp = false; sc_has_xhp_keyword = false; sc_kind = Cnormal;
106 sc_name = ([17:7-24], "\\MyTraitUsingClass"); sc_tparams = [];
107 sc_where_constraints = []; sc_extends = [];
108 sc_uses =
109 [(Rhint (root|traits.php line 18, characters 7-15),
110 (Tapply (([18:7-16], "\\TMyTrait2"), [])));
111 (Rhint (root|traits.php line 19, characters 7-15),
112 (Tapply (([19:7-16], "\\TMyTrait3"), [])))
114 sc_xhp_attr_uses = []; sc_req_extends = []; sc_req_implements = [];
115 sc_implements = []; sc_implements_dynamic = false; sc_consts = [];
116 sc_typeconsts = []; sc_props = []; sc_sprops = [];
117 sc_constructor = None; sc_static_methods = []; sc_methods = [];
118 sc_user_attributes = []; sc_enum_type = None }))
121 They matched!