Rip out legacy reactivity from the typechecker and HackC
[hiphop-php.git] / hphp / hack / test / decl / xhp.php.exp
blob9342504ad8aa25f9f0770f6a1abaf96e5277cbd4
1 [("\\xhp",
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 = ([3:7-10], "\\xhp"); 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 = []; sc_methods = [];
11 sc_user_attributes = []; sc_enum_type = None }));
12 ("\\:foo",
13 (Shallow_decl_defs.Class
14 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = false;
15 sc_is_xhp = true; sc_has_xhp_keyword = false; sc_kind = Cnormal;
16 sc_name = ([4:7-11], "\\:foo"); sc_tparams = [];
17 sc_where_constraints = []; sc_extends = []; sc_uses = [];
18 sc_xhp_attr_uses = []; sc_req_extends = []; sc_req_implements = [];
19 sc_implements = []; sc_implements_dynamic = false; sc_consts = [];
20 sc_typeconsts = []; sc_props = []; sc_sprops = [];
21 sc_constructor = None; sc_static_methods = []; sc_methods = [];
22 sc_user_attributes = []; sc_enum_type = None }));
23 ("\\:foo:bar",
24 (Shallow_decl_defs.Class
25 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = false;
26 sc_is_xhp = true; sc_has_xhp_keyword = false; sc_kind = Cnormal;
27 sc_name = ([5:7-15], "\\:foo:bar"); sc_tparams = [];
28 sc_where_constraints = []; sc_extends = []; sc_uses = [];
29 sc_xhp_attr_uses = []; sc_req_extends = []; sc_req_implements = [];
30 sc_implements = []; sc_implements_dynamic = false; sc_consts = [];
31 sc_typeconsts = []; sc_props = []; sc_sprops = [];
32 sc_constructor = None; sc_static_methods = []; sc_methods = [];
33 sc_user_attributes = []; sc_enum_type = None }));
34 ("\\:foo-baz",
35 (Shallow_decl_defs.Class
36 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = false;
37 sc_is_xhp = true; sc_has_xhp_keyword = false; sc_kind = Cnormal;
38 sc_name = ([6:7-15], "\\:foo-baz"); sc_tparams = [];
39 sc_where_constraints = []; sc_extends = []; sc_uses = [];
40 sc_xhp_attr_uses = []; sc_req_extends = []; sc_req_implements = [];
41 sc_implements = []; sc_implements_dynamic = false; sc_consts = [];
42 sc_typeconsts = []; sc_props = []; sc_sprops = [];
43 sc_constructor = None; sc_static_methods = []; sc_methods = [];
44 sc_user_attributes = []; sc_enum_type = None }));
45 ("\\xhp_is_valid_class_name",
46 (Shallow_decl_defs.Fun
47 { Typing_defs.fe_deprecated = None;
48 fe_type =
49 (Rwitness (root|xhp.php line 7, characters 10-32),
50 (Tfun
51 { ft_arity = (Fstandard ()); ft_tparams = [];
52 ft_where_constraints = [];
53 ft_params =
54 [{ fp_pos = [7:38-40]; fp_name = (Some "$x");
55 fp_type =
56 { et_enforced = false;
57 et_type =
58 (Rhint (root|xhp.php line 7, characters 34-36),
59 (Tapply (([7:34-37], "\\xhp"), [])))
61 fp_flags =
62 (make_fp_flags ~accept_disposable:false ~has_default:false
63 ~mode:Typing_defs_core.FPnormal ~ifc_external:false
64 ~ifc_can_call:false ~is_atom:false ~readonly:false
65 ~const_function:false);
68 ft_implicit_params = { capability = (CapDefaults [7:10-33]) };
69 ft_ret =
70 { et_enforced = false;
71 et_type =
72 (Rhint (root|xhp.php line 7, characters 43-46), (Tprim Tvoid))
74 ft_flags =
75 (make_ft_flags FSync ~return_disposable:false
76 ~returns_readonly:false ~readonly_this:false ~is_const:false);
77 ft_ifc_decl = FDPolicied {PUBLIC} }));
78 fe_pos = [7:10-33]; fe_php_std_lib = false }))
81 They matched!