Rip out legacy reactivity from the typechecker and HackC
[hiphop-php.git] / hphp / hack / test / decl / const_attribute.php.exp
blob79c94ac9abd798bb9ec1e01662c02b6d08b6f00c
1 [("\\A",
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 = Cnormal;
5 sc_name = ([4:7-8], "\\A"); 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 = ([5:14-16], "x"); sp_xhp_attr = None;
12 sp_type =
13 (Some (Rhint (root|const_attribute.php line 5, characters 10-12),
14 (Tprim Tint)));
15 sp_visibility = Public; sp_flags = const | needs_init };
16 { Shallow_decl_defs.sp_name = ([8:14-16], "y"); sp_xhp_attr = None;
17 sp_type =
18 (Some (Rhint (root|const_attribute.php line 8, characters 10-12),
19 (Tprim Tint)));
20 sp_visibility = Public; sp_flags = const | needs_init }
22 sc_sprops = [];
23 sc_constructor =
24 (Some { Shallow_decl_defs.sm_name = ([10:19-30], "__construct");
25 sm_type =
26 (Rwitness (root|const_attribute.php line 10, characters 19-29),
27 (Tfun
28 { ft_arity = (Fstandard ()); ft_tparams = [];
29 ft_where_constraints = []; ft_params = [];
30 ft_implicit_params =
31 { capability = (CapDefaults [10:19-30]) };
32 ft_ret =
33 { et_enforced = false;
34 et_type =
35 (Rwitness (root|const_attribute.php line 10, characters 19-29),
36 (Tprim Tvoid))
38 ft_flags =
39 (make_ft_flags FSync ~return_disposable:false
40 ~returns_readonly:false ~readonly_this:false
41 ~is_const:false);
42 ft_ifc_decl = FDPolicied {PUBLIC} }));
43 sm_visibility = Public; sm_deprecated = None;
44 sm_flags = (empty) });
45 sc_static_methods = []; sc_methods = [];
46 sc_user_attributes =
47 [{ Typing_defs_core.ua_name = ([3:3-10], "__Const");
48 ua_classname_params = [] }
50 sc_enum_type = None }));
51 ("\\B",
52 (Shallow_decl_defs.Class
53 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = false;
54 sc_is_xhp = false; sc_has_xhp_keyword = false; sc_kind = Cnormal;
55 sc_name = ([16:7-8], "\\B"); sc_tparams = [];
56 sc_where_constraints = []; sc_extends = []; sc_uses = [];
57 sc_xhp_attr_uses = []; sc_req_extends = []; sc_req_implements = [];
58 sc_implements = []; sc_implements_dynamic = false; sc_consts = [];
59 sc_typeconsts = [];
60 sc_props =
61 [{ Shallow_decl_defs.sp_name = ([18:14-16], "x"); sp_xhp_attr = None;
62 sp_type =
63 (Some (Rhint (root|const_attribute.php line 18, characters 10-12),
64 (Tprim Tint)));
65 sp_visibility = Public; sp_flags = const | needs_init }
67 sc_sprops = [];
68 sc_constructor =
69 (Some { Shallow_decl_defs.sm_name = ([20:19-30], "__construct");
70 sm_type =
71 (Rwitness (root|const_attribute.php line 20, characters 19-29),
72 (Tfun
73 { ft_arity = (Fstandard ()); ft_tparams = [];
74 ft_where_constraints = []; ft_params = [];
75 ft_implicit_params =
76 { capability = (CapDefaults [20:19-30]) };
77 ft_ret =
78 { et_enforced = false;
79 et_type =
80 (Rwitness (root|const_attribute.php line 20, characters 19-29),
81 (Tprim Tvoid))
83 ft_flags =
84 (make_ft_flags FSync ~return_disposable:false
85 ~returns_readonly:false ~readonly_this:false
86 ~is_const:false);
87 ft_ifc_decl = FDPolicied {PUBLIC} }));
88 sm_visibility = Public; sm_deprecated = None;
89 sm_flags = (empty) });
90 sc_static_methods = []; sc_methods = []; sc_user_attributes = [];
91 sc_enum_type = None }));
92 ("\\C",
93 (Shallow_decl_defs.Class
94 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = false;
95 sc_is_xhp = false; sc_has_xhp_keyword = false; sc_kind = Cnormal;
96 sc_name = ([25:7-8], "\\C"); sc_tparams = [];
97 sc_where_constraints = []; sc_extends = []; sc_uses = [];
98 sc_xhp_attr_uses = []; sc_req_extends = []; sc_req_implements = [];
99 sc_implements = []; sc_implements_dynamic = false; sc_consts = [];
100 sc_typeconsts = [];
101 sc_props =
102 [{ Shallow_decl_defs.sp_name = ([26:55-57], "x"); sp_xhp_attr = None;
103 sp_type =
104 (Some (Rhint (root|const_attribute.php line 26, characters 51-53),
105 (Tprim Tint)));
106 sp_visibility = Private; sp_flags = const | needs_init }
108 sc_sprops = [];
109 sc_constructor =
110 (Some { Shallow_decl_defs.sm_name = ([26:19-30], "__construct");
111 sm_type =
112 (Rwitness (root|const_attribute.php line 26, characters 19-29),
113 (Tfun
114 { ft_arity = (Fstandard ()); ft_tparams = [];
115 ft_where_constraints = [];
116 ft_params =
117 [{ fp_pos = [26:55-57]; fp_name = (Some "$x");
118 fp_type =
119 { et_enforced = false;
120 et_type =
121 (Rhint (root|const_attribute.php line 26, characters 51-53),
122 (Tprim Tint))
124 fp_flags =
125 (make_fp_flags ~accept_disposable:false
126 ~has_default:false ~mode:Typing_defs_core.FPnormal
127 ~ifc_external:false ~ifc_can_call:false
128 ~is_atom:false ~readonly:false
129 ~const_function:false);
132 ft_implicit_params =
133 { capability = (CapDefaults [26:19-30]) };
134 ft_ret =
135 { et_enforced = false;
136 et_type =
137 (Rwitness (root|const_attribute.php line 26, characters 19-29),
138 (Tprim Tvoid))
140 ft_flags =
141 (make_ft_flags FSync ~return_disposable:false
142 ~returns_readonly:false ~readonly_this:false
143 ~is_const:false);
144 ft_ifc_decl = FDPolicied {PUBLIC} }));
145 sm_visibility = Public; sm_deprecated = None;
146 sm_flags = (empty) });
147 sc_static_methods = []; sc_methods = []; sc_user_attributes = [];
148 sc_enum_type = None }))
151 They matched!