sync the repo
[hiphop-php.git] / hphp / hack / test / nast / pipe_exprs.php.exp
blob9c18493b62f341a9a5d62d7f76448aee5824e1ea
1 [(Fun
2 { fd_namespace =
3 { Namespace_env.ns_ns_uses = <opaque>; ns_class_uses = <opaque>;
4 ns_fun_uses = <opaque>; ns_const_uses = <opaque>; ns_name = None;
5 ns_mode = Namespace_env.ForTypecheck; ns_disable_xhp_element_mangling = false };
6 fd_file_attributes = []; fd_mode = Mstrict; fd_name = ([3:10-22], "\\takes_an_int");
7 fd_fun =
8 { f_span = [3:1-41]; f_readonly_this = None; f_annotation = ();
9 f_readonly_ret = None; f_ret = ((), (Some ([3:34-38], (Hprim Tvoid))));
10 f_params =
11 [{ param_annotation = (); param_type_hint = ((), (Some ([3:23-26], (Hprim Tint))));
12 param_pos = [3:27-31]; param_name = "$int"; param_info = Param_required;
13 param_readonly = None; param_callconv = Pnormal; param_user_attributes = [];
14 param_visibility = None }
16 f_ctxs = None; f_unsafe_ctxs = None; f_body = { fb_ast = [([Pos.none], Noop)] };
17 f_fun_kind = FSync; f_user_attributes = [{ ua_name = ([3:10-22], "__SupportDynamicType"); ua_params = [] }];
18 f_external = false; f_doc_comment = None };
19 fd_internal = false; fd_module = None; fd_tparams = []; fd_where_constraints = [] });
20 (Fun
21 { fd_namespace =
22 { Namespace_env.ns_ns_uses = <opaque>; ns_class_uses = <opaque>;
23 ns_fun_uses = <opaque>; ns_const_uses = <opaque>; ns_name = None;
24 ns_mode = Namespace_env.ForTypecheck; ns_disable_xhp_element_mangling = false };
25 fd_file_attributes = []; fd_mode = Mstrict; fd_name = ([5:10-25], "\\pipe_param_call");
26 fd_fun =
27 { f_span = [5:1-7:2]; f_readonly_this = None; f_annotation = ();
28 f_readonly_ret = None; f_ret = ((), (Some ([5:35-39], (Hprim Tvoid))));
29 f_params =
30 [{ param_annotation = (); param_type_hint = ((), (Some ([5:26-29], (Hprim Tint))));
31 param_pos = [5:30-32]; param_name = "$x"; param_info = Param_required;
32 param_readonly = None; param_callconv = Pnormal; param_user_attributes = [];
33 param_visibility = None }
35 f_ctxs = None; f_unsafe_ctxs = None;
36 f_body =
37 { fb_ast =
38 [([6:3-26],
39 (Expr
40 ((), [6:3-25],
41 (Pipe (([6:3-25], $$), ((), [6:3-5], (Lvar ([6:3-5], $x))),
42 ((), [6:9-25],
43 (Call { func = ((), [6:9-21], (Id ([6:9-21], "\\takes_an_int"))); targs = []; args = [(Pnormal, ((), [6:22-24], (Dollardollar ([6:22-24], $$))))]; unpacked_arg = None }))
44 )))))
47 f_fun_kind = FSync; f_user_attributes = [{ ua_name = ([5:10-25], "__SupportDynamicType"); ua_params = [] }];
48 f_external = false; f_doc_comment = None };
49 fd_internal = false; fd_module = None; fd_tparams = []; fd_where_constraints = [] });
50 (Fun
51 { fd_namespace =
52 { Namespace_env.ns_ns_uses = <opaque>; ns_class_uses = <opaque>;
53 ns_fun_uses = <opaque>; ns_const_uses = <opaque>; ns_name = None;
54 ns_mode = Namespace_env.ForTypecheck; ns_disable_xhp_element_mangling = false };
55 fd_file_attributes = []; fd_mode = Mstrict; fd_name = ([9:10-25], "\\pipe_local_call");
56 fd_fun =
57 { f_span = [9:1-12:2]; f_readonly_this = None; f_annotation = ();
58 f_readonly_ret = None; f_ret = ((), (Some ([9:29-33], (Hprim Tvoid))));
59 f_params = []; f_ctxs = None; f_unsafe_ctxs = None;
60 f_body =
61 { fb_ast =
62 [([10:3-10], (Expr ((), [10:3-9], (Binop { bop = (Eq None); lhs = ((), [10:3-5], (Lvar ([10:3-5], $x))); rhs = ((), [10:8-9], (Int "1")) }))));
63 ([11:3-26],
64 (Expr
65 ((), [11:3-25],
66 (Pipe (([11:3-25], $$), ((), [11:3-5], (Lvar ([11:3-5], $x))),
67 ((), [11:9-25],
68 (Call { func = ((), [11:9-21], (Id ([11:9-21], "\\takes_an_int"))); targs = []; args = [(Pnormal, ((), [11:22-24], (Dollardollar ([11:22-24], $$))))]; unpacked_arg = None }))
69 )))))
72 f_fun_kind = FSync; f_user_attributes = [{ ua_name = ([9:10-25], "__SupportDynamicType"); ua_params = [] }];
73 f_external = false; f_doc_comment = None };
74 fd_internal = false; fd_module = None; fd_tparams = []; fd_where_constraints = [] });
75 (Class
76 { c_span = [14:1-16:2]; c_annotation = (); c_mode = Mstrict; c_final = false;
77 c_is_xhp = false; c_has_xhp_keyword = false; c_kind = (Cclass Concrete);
78 c_name = ([14:7-10], "\\Foo"); c_tparams = []; c_extends = [];
79 c_uses = []; c_xhp_attr_uses = []; c_xhp_category = None; c_reqs = [];
80 c_implements = []; c_consts = []; c_typeconsts = [];
81 c_vars =
82 [{ cv_final = false; cv_xhp_attr = None; cv_abstract = false;
83 cv_readonly = false; cv_visibility = Public; cv_type = ((), (Some ([15:17-20], (Hprim Tint))));
84 cv_id = ([15:21-27], "myInt"); cv_expr = (Some ((), [15:30-31], (Int "0")));
85 cv_user_attributes = []; cv_doc_comment = None; cv_is_static = true;
86 cv_span = [15:21-31] }
88 c_methods = []; c_xhp_children = []; c_xhp_attrs = [];
89 c_namespace =
90 { Namespace_env.ns_ns_uses = <opaque>; ns_class_uses = <opaque>;
91 ns_fun_uses = <opaque>; ns_const_uses = <opaque>; ns_name = None;
92 ns_mode = Namespace_env.ForTypecheck; ns_disable_xhp_element_mangling = false };
93 c_user_attributes = [{ ua_name = ([14:7-10], "__SupportDynamicType"); ua_params = [] }];
94 c_file_attributes = []; c_docs_url = None; c_enum = None; c_doc_comment = None;
95 c_emit_id = None; c_internal = false; c_module = None });
96 (Fun
97 { fd_namespace =
98 { Namespace_env.ns_ns_uses = <opaque>; ns_class_uses = <opaque>;
99 ns_fun_uses = <opaque>; ns_const_uses = <opaque>; ns_name = None;
100 ns_mode = Namespace_env.ForTypecheck; ns_disable_xhp_element_mangling = false };
101 fd_file_attributes = []; fd_mode = Mstrict; fd_name = ([18:10-22], "\\pipe_taccess");
102 fd_fun =
103 { f_span = [18:1-21:2]; f_readonly_this = None; f_annotation = ();
104 f_readonly_ret = None; f_ret = ((), (Some ([18:26-30], (Hprim Tvoid))));
105 f_params = []; f_ctxs = None; f_unsafe_ctxs = None;
106 f_body =
107 { fb_ast =
108 [([19:3-21],
109 (Expr
110 ((), [19:3-20],
111 (Binop { bop = (Eq None); lhs = ((), [19:3-7], (Lvar ([19:3-7], $foo))); rhs = ((), [19:10-20], (Class_const (((), [19:10-13], (CI ([19:10-13], "\\Foo"))), ([19:15-20], "class")))) }))));
112 ([20:3-22],
113 (Expr
114 ((), [20:3-21],
115 (Pipe (([20:3-21], $$), ((), [20:3-7], (Lvar ([20:3-7], $foo))),
116 ((), [20:11-21], (Class_get (((), [20:11-13], (CIexpr ((), [20:11-13], (Dollardollar ([20:11-13], $$))))), (CGstring ([20:15-21], "$myInt")), Is_prop))))))))
119 f_fun_kind = FSync; f_user_attributes = [{ ua_name = ([18:10-22], "__SupportDynamicType"); ua_params = [] }];
120 f_external = false; f_doc_comment = None };
121 fd_internal = false; fd_module = None; fd_tparams = []; fd_where_constraints = [] });
122 (Fun
123 { fd_namespace =
124 { Namespace_env.ns_ns_uses = <opaque>; ns_class_uses = <opaque>;
125 ns_fun_uses = <opaque>; ns_const_uses = <opaque>; ns_name = None;
126 ns_mode = Namespace_env.ForTypecheck; ns_disable_xhp_element_mangling = false };
127 fd_file_attributes = []; fd_mode = Mstrict; fd_name = ([23:10-27], "\\pipe_taccess_call");
128 fd_fun =
129 { f_span = [23:1-25:2]; f_readonly_this = None; f_annotation = ();
130 f_readonly_ret = None; f_ret = ((), (Some ([23:31-35], (Hprim Tvoid))));
131 f_params = []; f_ctxs = None; f_unsafe_ctxs = None;
132 f_body =
133 { fb_ast =
134 [([24:3-36],
135 (Expr
136 ((), [24:3-35],
137 (Pipe (([24:3-35], $$), ((), [24:3-7], (Lvar ([24:3-7], $foo))),
138 ((), [24:11-35],
139 (Call
140 { func = ((), [24:11-23], (Id ([24:11-23], "\\takes_an_int")));
141 targs = [];
142 args = [(Pnormal, ((), [24:24-34], (Class_get (((), [24:24-26], (CIexpr ((), [24:24-26], (Dollardollar ([24:24-26], $$))))), (CGstring ([24:28-34], "$myInt")), Is_prop))))];
143 unpacked_arg = None }))
144 )))))
147 f_fun_kind = FSync; f_user_attributes = [{ ua_name = ([23:10-27], "__SupportDynamicType"); ua_params = [] }];
148 f_external = false; f_doc_comment = None };
149 fd_internal = false; fd_module = None; fd_tparams = []; fd_where_constraints = [] })