Add declarations for internal keyword in direct decl and legacy parsers
[hiphop-php.git] / hphp / hack / test / decl / enums.php.exp
blobfef8d4ccf9aa721a4fee5d9edec65d76ea98db2c
1 [("\\Foo",
2 (Shallow_decl_defs.Class
3 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = false;
4 sc_abstract = false; sc_is_xhp = false; sc_internal = false;
5 sc_has_xhp_keyword = false; sc_kind = Cenum; sc_module = None;
6 sc_name = ([3:6-9], "\\Foo"); sc_tparams = [];
7 sc_where_constraints = [];
8 sc_extends =
9 [(Rhint ([3:6-9]),
10 (Tapply (([3:6-9], "\\HH\\BuiltinEnum"),
11 [(Rhint ([3:6-9]), (Tapply (([3:6-9], "\\Foo"), [])))])))
13 sc_uses = []; sc_xhp_attr_uses = []; sc_xhp_enum_values = {};
14 sc_req_extends = []; sc_req_implements = []; sc_req_class = [];
15 sc_implements = []; sc_support_dynamic_type = false;
16 sc_consts =
17 [{ Shallow_decl_defs.scc_abstract = Typing_defs.CCConcrete;
18 scc_name = ([4:3-6], "FOO");
19 scc_type = (Rwitness_from_decl ([4:9-10]), (Tprim Tint));
20 scc_refs = [] };
21 { Shallow_decl_defs.scc_abstract = Typing_defs.CCConcrete;
22 scc_name = ([5:3-6], "BAR");
23 scc_type = (Rwitness_from_decl ([5:9-11]), (Tprim Tint));
24 scc_refs = [] };
25 { Shallow_decl_defs.scc_abstract = Typing_defs.CCConcrete;
26 scc_name = ([6:3-6], "BAZ");
27 scc_type = (Rwitness_from_decl ([6:3-6]), Tany);
28 scc_refs = [((Typing_defs.From "\\Foo"), "FOO")] };
29 { Shallow_decl_defs.scc_abstract = Typing_defs.CCConcrete;
30 scc_name = ([7:3-6], "QUX");
31 scc_type = (Rwitness_from_decl ([7:3-6]), Tany);
32 scc_refs = [((Typing_defs.From "\\Foo"), "BAR")] }
34 sc_typeconsts = []; sc_props = []; sc_sprops = [];
35 sc_constructor = None; sc_static_methods = []; sc_methods = [];
36 sc_user_attributes = [];
37 sc_enum_type =
38 (Some { Typing_defs.te_base = (Rhint ([3:11-14]), (Tprim Tint));
39 te_constraint = (Some (Rhint ([3:18-21]), (Tprim Tint)));
40 te_includes = [] })
41 }))
44 They matched!