Omit AnnotatedAST module name when pretty-printing NAST/TAST
[hiphop-php.git] / hphp / hack / test / tast / xhp.php.exp
blob99237baffb772065a4c63c9d5d8d4dca489246ae
1 [(Fun
2 { AnnotatedAST.f_annotation = (); f_mode = <opaque>;
3 f_ret = (Some ([7:18-7:22], (Hprim Tvoid)));
4 f_name = ([7:10-7:14], "\\main"); f_tparams = [];
5 f_where_constraints = []; f_variadic = FVnonVariadic; f_params = [];
6 f_body =
7 (NamedBody
8 { AnnotatedAST.fnb_nast =
9 [(Expr
10 (([9:4-9:21], \:foo),
11 (Xml (([9:4-9:7], "\\:foo"),
12 [(Xhp_simple (([9:8-9:11], "bar"),
13 (([9:12-9:18], string), (String ([9:12-9:18], "herp")))
16 []))));
17 (Expr
18 (([10:3-10:17], string),
19 (Binop ((Eq None),
20 (([10:3-10:8], string), (Lvar ([10:3-10:8], $derp))),
21 (([10:11-10:17], string),
22 (String ([10:11-10:17], "derp")))
23 ))));
24 (Expr
25 (([11:4-11:22], \:foo),
26 (Xml (([11:4-11:7], "\\:foo"),
27 [(Xhp_simple (([11:8-11:11], "bar"),
28 (([11:13-11:18], string),
29 (Lvar ([11:13-11:18], $derp)))
32 []))));
33 (Expr
34 (([14:4-18:9], \:foo),
35 (Xml (([14:4-14:7], "\\:foo"),
36 [(Xhp_simple (([14:8-14:11], "bar"),
37 (([14:12-14:18], string),
38 (String ([14:12-14:18], "herp")))
41 [(([15:6-17:11], \:foo),
42 (Xml (([15:6-15:9], "\\:foo"),
43 [(Xhp_simple (([15:10-15:13], "bar"),
44 (([15:14-15:20], string),
45 (String ([15:14-15:20], "derp")))
48 [(([16:8-16:25], \:foo),
49 (Xml (([16:8-16:11], "\\:foo"),
50 [(Xhp_simple (([16:12-16:15], "bar"),
51 (([16:16-16:22], string),
52 (String ([16:16-16:22], "herp")))
55 [])))
57 )))
59 ))))
61 fnb_unsafe = false });
62 f_fun_kind = FSync; f_user_attributes = []; f_ret_by_ref = false });
63 (Class
64 { AnnotatedAST.c_annotation = (); c_mode = <opaque>; c_final = false;
65 c_is_xhp = true; c_kind = Cnormal; c_name = ([3:7-3:11], "\\:foo");
66 c_tparams = <opaque>; c_extends = []; c_uses = [];
67 c_xhp_attr_uses = []; c_xhp_category = []; c_req_extends = [];
68 c_req_implements = [];
69 c_implements =
70 [([3:23-3:31], (Happly (([3:23-3:31], "\\XHPChild"), [])))];
71 c_consts = []; c_typeconsts = []; c_static_vars = [];
72 c_vars =
73 [{ AnnotatedAST.cv_final = false; cv_is_xhp = true;
74 cv_visibility = Public;
75 cv_type =
76 (Some ([4:13-4:17], (Hoption ([4:13-4:17], (Hprim Tstring)))));
77 cv_id = ([4:35-4:38], ":bar"); cv_expr = None;
78 cv_user_attributes = [] }
80 c_constructor = None; c_static_methods = []; c_methods = [];
81 c_user_attributes = []; c_enum = None })