sync the repo
[hiphop-php.git] / hphp / hack / test / decl / xhp_self.php.exp
blobeaa6c9ef12036e94debc77dd68dba1ca8f64fef5
1 [("\\REACT_XHP_FIX",
2 (Shallow_decl_defs.Typedef
3 { Typing_defs.td_module = None; td_pos = [3:6-19]; td_vis = Transparent;
4 td_tparams =
5 [{ Typing_defs_core.tp_variance = Covariant;
6 tp_name = ([3:21-22], "T"); tp_tparams = []; tp_constraints = [];
7 tp_reified = Erased; tp_user_attributes = [] }
8 ];
9 td_as_constraint = None; td_super_constraint = None;
10 td_type = (Rhint ([3:26-27]), (Tgeneric ("T", [])));
11 td_is_ctx = false; td_attributes = []; td_internal = false;
12 td_docs_url = None; td_package_override = None }));
13 ("\\:Foo",
14 (Shallow_decl_defs.Class
15 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = true;
16 sc_abstract = false; sc_is_xhp = true; sc_internal = false;
17 sc_has_xhp_keyword = false; sc_kind = (Cclass Concrete);
18 sc_module = None; sc_name = ([5:13-17], "\\:Foo"); sc_tparams = [];
19 sc_extends =
20 [(Rhint ([5:26-33]), (Tapply (([5:26-33], "\\XHPTest"), [])))];
21 sc_uses = []; sc_xhp_attr_uses = []; sc_xhp_enum_values = {};
22 sc_xhp_marked_empty = false; sc_req_extends = [];
23 sc_req_implements = []; sc_req_class = []; sc_implements = [];
24 sc_support_dynamic_type = false; sc_consts = [];
25 sc_typeconsts =
26 [{ Shallow_decl_defs.stc_name = ([6:14-20], "TProps");
27 stc_kind =
28 (Typing_defs.TCConcrete
29 { Typing_defs.tc_type =
30 (Rhint ([6:23-40]),
31 (Tshape
32 { s_origin = Typing_defs_core.Missing_origin;
33 s_fields =
34 { (Typing_defs_core.TSFlit_str ([6:29-32], "x")) ->
35 { sft_optional = false;
36 sft_ty = (Rhint ([6:36-39]), (Tprim Tint)) } };
37 s_unknown_value = (Rhint ([Pos.none]), (Tunion [])) }))
38 });
39 stc_enforceable = ([Pos.none], false); stc_reifiable = None;
40 stc_is_ctx = false }
42 sc_props =
43 [{ Shallow_decl_defs.sp_name = ([8:41-46], ":props");
44 sp_xhp_attr =
45 (Some { xa_tag = (Some Required); xa_has_default = false });
46 sp_type =
47 (Rhint ([8:13-40]),
48 (Tapply (([8:13-26], "\\REACT_XHP_FIX"),
49 [(Rhint ([8:27-39]),
50 (Taccess
51 ((Rhint ([8:27-39]), (Tapply (([5:13-17], "\\:Foo"), []))),
52 [([8:33-39], "TProps")])))
54 )));
55 sp_visibility = Public;
56 sp_flags =
57 { Shallow_decl_defs.PropFlags.abstract = false; const = false;
58 lateinit = false; lsb = false; needs_init = true;
59 php_std_lib = false; readonly = false;
60 safe_global_variable = false; no_auto_likes = false }
63 sc_sprops = []; sc_constructor = None; sc_static_methods = [];
64 sc_methods =
65 [{ Shallow_decl_defs.sm_name = ([10:22-30], "getProps");
66 sm_type =
67 (Rwitness_from_decl ([10:22-30]),
68 (Tfun
69 { ft_tparams = []; ft_where_constraints = []; ft_params = [];
70 ft_implicit_params =
71 { capability = (CapDefaults [10:22-30]) };
72 ft_ret =
73 (Rhint ([10:34-46]),
74 (Taccess
75 ((Rhint ([10:34-46]),
76 (Tapply (([5:13-17], "\\:Foo"), []))),
77 [([10:40-46], "TProps")])));
78 ft_flags =
79 { Typing_defs_flags.Fun.return_disposable = false;
80 async = false; generator = false; fun_kind = FSync;
81 is_function_pointer = false; returns_readonly = false;
82 readonly_this = false; support_dynamic_type = false;
83 is_memoized = false; variadic = false };
84 ft_cross_package = None }));
85 sm_visibility = Protected; sm_deprecated = None;
86 sm_flags =
87 { Shallow_decl_defs.MethodFlags.abstract = false; final = false;
88 override = false; dynamicallycallable = false;
89 php_std_lib = false; support_dynamic_type = false };
90 sm_attributes = []; sm_sort_text = None }
92 sc_user_attributes = []; sc_enum_type = None; sc_docs_url = None;
93 sc_package_override = None }))