Add declarations for internal keyword in direct decl and legacy parsers
[hiphop-php.git] / hphp / hack / test / decl / nested_namespaces.php.exp
blob306a6533061dc5dbc4f0d39748cb95a1b0a71759
1 [("\\MyNamespace\\MyString",
2 (Shallow_decl_defs.Typedef
3 { Typing_defs.td_module = None; td_pos = [5:8-16]; td_vis = Transparent;
4 td_tparams = []; td_constraint = None;
5 td_type = (Rhint ([5:19-25]), (Tprim Tstring)); td_is_ctx = false;
6 td_attributes = [] }));
7 ("\\MyNamespace\\MyInt",
8 (Shallow_decl_defs.Typedef
9 { Typing_defs.td_module = None; td_pos = [6:8-13];
10 td_vis = Transparent; td_tparams = []; td_constraint = None;
11 td_type = (Rhint ([6:16-19]), (Tprim Tint)); td_is_ctx = false;
12 td_attributes = [] }));
13 ("\\MyNamespace\\MyFloat",
14 (Shallow_decl_defs.Typedef
15 { Typing_defs.td_module = None; td_pos = [7:8-15];
16 td_vis = Transparent; td_tparams = []; td_constraint = None;
17 td_type = (Rhint ([7:18-23]), (Tprim Tfloat)); td_is_ctx = false;
18 td_attributes = [] }));
19 ("\\MyNamespace\\MyNum",
20 (Shallow_decl_defs.Typedef
21 { Typing_defs.td_module = None; td_pos = [8:8-13];
22 td_vis = Transparent; td_tparams = []; td_constraint = None;
23 td_type = (Rhint ([8:16-19]), (Tprim Tnum)); td_is_ctx = false;
24 td_attributes = [] }));
25 ("\\MyNamespace\\MyBool",
26 (Shallow_decl_defs.Typedef
27 { Typing_defs.td_module = None; td_pos = [9:8-14];
28 td_vis = Transparent; td_tparams = []; td_constraint = None;
29 td_type = (Rhint ([9:17-21]), (Tprim Tbool)); td_is_ctx = false;
30 td_attributes = [] }));
31 ("\\MyNamespace\\MyNamespacedType",
32 (Shallow_decl_defs.Typedef
33 { Typing_defs.td_module = None; td_pos = [11:8-24];
34 td_vis = Transparent; td_tparams = []; td_constraint = None;
35 td_type =
36 (Rhint ([11:27-48]),
37 (Tapply (([11:27-48], "\\MyNamespace\\MyString"), [])));
38 td_is_ctx = false; td_attributes = [] }));
39 ("\\MyNamespace\\InnerNamespace\\MyInnerType",
40 (Shallow_decl_defs.Typedef
41 { Typing_defs.td_module = None; td_pos = [14:10-21];
42 td_vis = Transparent; td_tparams = []; td_constraint = None;
43 td_type = (Rhint ([14:24-30]), (Tprim Tstring)); td_is_ctx = false;
44 td_attributes = [] }));
45 ("\\MyNamespace\\InnerNamespace\\MyDoubleNamespacedType",
46 (Shallow_decl_defs.Typedef
47 { Typing_defs.td_module = None; td_pos = [15:10-32];
48 td_vis = Transparent; td_tparams = []; td_constraint = None;
49 td_type =
50 (Rhint ([15:35-64]),
51 (Tapply (([15:35-64], "\\MyNamespace\\MyNamespacedType"), [])));
52 td_is_ctx = false; td_attributes = [] }));
53 ("\\MyNamespace\\Very\\Inner\\Namespace\\MyVeryInnerNamespaceType",
54 (Shallow_decl_defs.Typedef
55 { Typing_defs.td_module = None; td_pos = [19:10-34];
56 td_vis = Transparent; td_tparams = []; td_constraint = None;
57 td_type = (Rhint ([19:37-43]), (Tprim Tstring)); td_is_ctx = false;
58 td_attributes = [] }));
59 ("\\MyNamespace\\Very\\Inner\\Namespace\\MyClass",
60 (Shallow_decl_defs.Class
61 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = false;
62 sc_abstract = false; sc_is_xhp = false; sc_internal = false;
63 sc_has_xhp_keyword = false; sc_kind = (Cclass Concrete);
64 sc_module = None;
65 sc_name =
66 ([20:11-18], "\\MyNamespace\\Very\\Inner\\Namespace\\MyClass");
67 sc_tparams = []; sc_where_constraints = []; sc_extends = [];
68 sc_uses = []; sc_xhp_attr_uses = []; sc_xhp_enum_values = {};
69 sc_req_extends = []; sc_req_implements = []; sc_req_class = [];
70 sc_implements = []; sc_support_dynamic_type = false; sc_consts = [];
71 sc_typeconsts = []; sc_props = []; sc_sprops = [];
72 sc_constructor = None; sc_static_methods = []; sc_methods = [];
73 sc_user_attributes = []; sc_enum_type = None }));
74 ("\\MyNamespace\\MyVeryInnerNamespaceType",
75 (Shallow_decl_defs.Typedef
76 { Typing_defs.td_module = None; td_pos = [23:8-32];
77 td_vis = Transparent; td_tparams = []; td_constraint = None;
78 td_type =
79 (Rhint ([23:35-80]),
80 (Tapply (
81 ([23:35-80],
82 "\\MyNamespace\\Very\\Inner\\Namespace\\MyVeryInnerNamespaceType"),
83 [])));
84 td_is_ctx = false; td_attributes = [] }));
85 ("\\MyNamespace\\hello",
86 (Shallow_decl_defs.Const
87 { Typing_defs.cd_pos = [24:3-50];
88 cd_type =
89 (Rhint ([24:9-33]),
90 (Tapply (([24:9-33], "\\MyNamespace\\MyVeryInnerNamespaceType"),
91 [])))
92 }))
95 They matched!