Backout D24132229
[hiphop-php.git] / hphp / hack / test / decl / traits.php.exp
blob7d3c8ae0b4e65311e326e828b055a28cdd692755
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_abstract = false; sm_final = false;
13 sm_name = ([4:19-28], "doNothing"); sm_override = false;
14 sm_dynamicallycallable = false; sm_reactivity = None;
15 sm_type =
16 (Rwitness (root|traits.php line 4, characters 19-27),
17 (Tfun
18 { ft_arity = (Fstandard ()); ft_tparams = [];
19 ft_where_constraints = []; ft_params = [];
20 ft_implicit_params =
21 { capability =
22 (Rhint (root|traits.php line 4, characters 19-27),
23 (Tunion []))
25 ft_ret =
26 { et_enforced = false;
27 et_type =
28 (Rhint (root|traits.php line 4, characters 32-35),
29 (Tprim Tvoid))
31 ft_flags =
32 (make_ft_flags FSync None ~return_disposable:false
33 ~returns_mutable:false ~returns_void_to_rx:false);
34 ft_reactive = Nonreactive; ft_ifc_decl = FDPolicied {PUBLIC}
35 }));
36 sm_visibility = Public; sm_deprecated = None }
38 sc_user_attributes = []; sc_enum_type = None }));
39 ("\\TMyTrait2",
40 (Shallow_decl_defs.Class
41 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = false;
42 sc_is_xhp = false; sc_has_xhp_keyword = false; sc_kind = Ctrait;
43 sc_name = ([7:7-16], "\\TMyTrait2"); sc_tparams = [];
44 sc_where_constraints = []; sc_extends = [];
45 sc_uses =
46 [(Rhint (root|traits.php line 8, characters 7-14),
47 (Tapply (([8:7-15], "\\TMyTrait"), [])))];
48 sc_xhp_attr_uses = []; sc_req_extends = []; sc_req_implements = [];
49 sc_implements = []; sc_implements_dynamic = false; sc_consts = [];
50 sc_typeconsts = []; sc_props = []; sc_sprops = [];
51 sc_constructor = None; sc_static_methods = [];
52 sc_methods =
53 [{ Shallow_decl_defs.sm_abstract = false; sm_final = false;
54 sm_name = ([10:19-32], "doMoreNothing"); sm_override = false;
55 sm_dynamicallycallable = false; sm_reactivity = None;
56 sm_type =
57 (Rwitness (root|traits.php line 10, characters 19-31),
58 (Tfun
59 { ft_arity = (Fstandard ()); ft_tparams = [];
60 ft_where_constraints = []; ft_params = [];
61 ft_implicit_params =
62 { capability =
63 (Rhint (root|traits.php line 10, characters 19-31),
64 (Tunion []))
66 ft_ret =
67 { et_enforced = false;
68 et_type =
69 (Rhint (root|traits.php line 10, characters 36-39),
70 (Tprim Tvoid))
72 ft_flags =
73 (make_ft_flags FSync None ~return_disposable:false
74 ~returns_mutable:false ~returns_void_to_rx:false);
75 ft_reactive = Nonreactive; ft_ifc_decl = FDPolicied {PUBLIC}
76 }));
77 sm_visibility = Public; sm_deprecated = None }
79 sc_user_attributes = []; sc_enum_type = None }));
80 ("\\TMyTrait3",
81 (Shallow_decl_defs.Class
82 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = false;
83 sc_is_xhp = false; sc_has_xhp_keyword = false; sc_kind = Ctrait;
84 sc_name = ([13:7-16], "\\TMyTrait3"); sc_tparams = [];
85 sc_where_constraints = []; sc_extends = []; sc_uses = [];
86 sc_xhp_attr_uses = []; sc_req_extends = []; sc_req_implements = [];
87 sc_implements = []; sc_implements_dynamic = false; sc_consts = [];
88 sc_typeconsts = []; sc_props = []; sc_sprops = [];
89 sc_constructor = None; sc_static_methods = [];
90 sc_methods =
91 [{ Shallow_decl_defs.sm_abstract = false; sm_final = false;
92 sm_name = ([14:19-35], "doYetMoreNothing"); sm_override = false;
93 sm_dynamicallycallable = false; sm_reactivity = None;
94 sm_type =
95 (Rwitness (root|traits.php line 14, characters 19-34),
96 (Tfun
97 { ft_arity = (Fstandard ()); ft_tparams = [];
98 ft_where_constraints = []; ft_params = [];
99 ft_implicit_params =
100 { capability =
101 (Rhint (root|traits.php line 14, characters 19-34),
102 (Tunion []))
104 ft_ret =
105 { et_enforced = false;
106 et_type =
107 (Rhint (root|traits.php line 14, characters 39-42),
108 (Tprim Tvoid))
110 ft_flags =
111 (make_ft_flags FSync None ~return_disposable:false
112 ~returns_mutable:false ~returns_void_to_rx:false);
113 ft_reactive = Nonreactive; ft_ifc_decl = FDPolicied {PUBLIC}
114 }));
115 sm_visibility = Public; sm_deprecated = None }
117 sc_user_attributes = []; sc_enum_type = None }));
118 ("\\MyTraitUsingClass",
119 (Shallow_decl_defs.Class
120 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = false;
121 sc_is_xhp = false; sc_has_xhp_keyword = false; sc_kind = Cnormal;
122 sc_name = ([17:7-24], "\\MyTraitUsingClass"); sc_tparams = [];
123 sc_where_constraints = []; sc_extends = [];
124 sc_uses =
125 [(Rhint (root|traits.php line 18, characters 7-15),
126 (Tapply (([18:7-16], "\\TMyTrait2"), [])));
127 (Rhint (root|traits.php line 19, characters 7-15),
128 (Tapply (([19:7-16], "\\TMyTrait3"), [])))
130 sc_xhp_attr_uses = []; sc_req_extends = []; sc_req_implements = [];
131 sc_implements = []; sc_implements_dynamic = false; sc_consts = [];
132 sc_typeconsts = []; sc_props = []; sc_sprops = [];
133 sc_constructor = None; sc_static_methods = []; sc_methods = [];
134 sc_user_attributes = []; sc_enum_type = None }))
137 They matched!