Updating submodules
[hiphop-php.git] / hphp / hack / test / nast / expression_tree_assign.php.exp
blobe702bcb8fe48a678f519da59975b30dee9f5bea2
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-14], "\\test");
7 fd_fun =
8 { f_span = [3:1-5:2]; f_readonly_this = None; f_annotation = ();
9 f_readonly_ret = None; f_ret = ((), (Some ([3:18-22], (Hprim Tvoid))));
10 f_params = []; f_ctxs = None; f_unsafe_ctxs = None;
11 f_body =
12 { fb_ast =
13 [([4:3-34],
14 (Expr
15 ((), [4:3-33],
16 (ExpressionTree
17 { et_class = ([4:3-13], "\\ExampleDsl");
18 et_runtime_expr =
19 ((), [4:3-13],
20 (Call
21 { func = ((), [4:3-13], (Class_const (((), [4:3-13], (CI ([4:3-13], "\\ExampleDsl"))), ([4:3-13], "makeTree"))));
22 targs = [];
23 args =
24 [(Pnormal,
25 ((), [4:14-32],
26 (Shape
27 [((SFlit_str ([4:14-32], "path")), ((), [4:14-32], (Id ([4:14-32], "\\__FILE__")))); (
28 (SFlit_str ([4:14-32], "start_line")), ((), [4:14-32], (Int "4"))); (
29 (SFlit_str ([4:14-32], "end_line")), ((), [4:14-32], (Int "4"))); (
30 (SFlit_str ([4:14-32], "start_column")), ((), [4:14-32], (Int "13"))); (
31 (SFlit_str ([4:14-32], "end_column")), ((), [4:14-32], (Int "31")))])));
32 (Pnormal,
33 ((), [4:3-13],
34 (Shape
35 [((SFlit_str ([4:3-13], "splices")), ((), [4:3-13], (KeyValCollection (([4:3-13], Dict), None, []))));
36 ((SFlit_str ([4:3-13], "functions")), ((), [4:3-13], (ValCollection (([4:3-13], Vec), None, []))));
37 ((SFlit_str ([4:3-13], "static_methods")), ((), [4:3-13], (ValCollection (([4:3-13], Vec), None, []))));
38 ((SFlit_str ([4:3-13], "type")),
39 ((), [4:14-32],
40 (Efun
41 { ef_fun =
42 { f_span = [4:14-32]; f_readonly_this = None;
43 f_annotation = (); f_readonly_ret = None;
44 f_ret = ((), None); f_params = [];
45 f_ctxs = (Some ([4:14-32], [([4:14-32], (Happly (([4:14-32], "\\HH\\Contexts\\defaults"), [])))]));
46 f_unsafe_ctxs = None;
47 f_body =
48 { fb_ast =
49 [([4:14-32],
50 (Return
51 (Some ((), [4:14-32],
52 (Call
53 { func = ((), [4:14-32], (Class_const (((), [4:14-32], (CI ([4:14-32], "\\ExampleDsl"))), ([4:14-32], "lambdaType"))));
54 targs = [];
55 args =
56 [(Pnormal,
57 ((), [4:14-32],
58 (Lfun (
59 { f_span = [4:14-32];
60 f_readonly_this = None;
61 f_annotation = ();
62 f_readonly_ret = None;
63 f_ret = ((), None);
64 f_params = [];
65 f_ctxs = None;
66 f_unsafe_ctxs = None;
67 f_body =
68 { fb_ast =
69 [([4:23-30],
70 (Expr
71 ((), [4:23-29],
72 (Binop
73 { bop = (Eq None);
74 lhs = ((), [4:23-25], (Lvar ([4:23-25], $x)));
75 rhs =
77 (), [4:28-29],
79 Call
80 { func = ((), [4:28-29], (Class_const (((), [4:28-29], (CI ([4:28-29], "\\ExampleDsl"))), ([4:28-29], "intType"))));
81 targs = [];
82 args = [];
83 unpacked_arg = None })) }))));
84 ([4:14-32],
85 (Return
86 (Some (
87 (), [4:14-32],
89 Call
90 { func = ((), [4:14-32], (Class_const (((), [4:14-32], (CI ([4:14-32], "\\ExampleDsl"))), ([4:14-32], "voidType"))));
91 targs = [];
92 args = [];
93 unpacked_arg = None })))))] };
94 f_fun_kind = FSync;
95 f_user_attributes = [];
96 f_external = false;
97 f_doc_comment = None },
98 []))))
100 unpacked_arg = None })))))
103 f_fun_kind = FSync; f_user_attributes = [];
104 f_external = false; f_doc_comment = None };
105 ef_use = []; ef_closure_class_name = None })))
106 ])));
107 (Pnormal,
108 ((), [4:14-32],
109 (Lfun (
110 { f_span = [4:14-32]; f_readonly_this = None;
111 f_annotation = (); f_readonly_ret = None;
112 f_ret = ((), None);
113 f_params =
114 [{ param_annotation = (); param_type_hint = ((), (Some ([4:3-13], (Happly (([4:3-13], "\\ExampleDsl"), [])))));
115 param_pos = [4:3-13]; param_name = "$0v";
116 param_info = Param_required; param_readonly = None;
117 param_callconv = Pnormal; param_user_attributes = [];
118 param_visibility = None }
120 f_ctxs = None; f_unsafe_ctxs = None;
121 f_body =
122 { fb_ast =
123 [([4:14-32],
124 (Return
125 (Some ((), [4:14-32],
126 (Call
127 { func =
128 ((), [4:14-32], (Obj_get (((), [4:14-32], (Lvar ([4:14-32], $0v))), ((), [4:14-32], (Id ([4:14-32], "visitLambda"))), OG_nullthrows, Is_method)));
129 targs = [];
130 args =
131 [(Pnormal,
132 ((), [4:14-32],
133 (Shape
134 [((SFlit_str ([4:14-32], "path")), ((), [4:14-32], (Id ([4:14-32], "\\__FILE__"))));
135 ((SFlit_str ([4:14-32], "start_line")), ((), [4:14-32], (Int "4"))); (
136 (SFlit_str ([4:14-32], "end_line")), ((), [4:14-32], (Int "4")));
137 ((SFlit_str ([4:14-32], "start_column")), ((), [4:14-32], (Int "13")));
138 ((SFlit_str ([4:14-32], "end_column")), ((), [4:14-32], (Int "31")))])));
139 (Pnormal, ((), [Pos.none], (ValCollection (([Pos.none], Vec), None, []))));
140 (Pnormal,
141 ((), [4:23-29],
142 (ValCollection ((
143 [4:23-29], Vec), None,
144 [((), [4:23-29],
145 (Call
146 { func =
147 ((), [4:23-29],
148 (Obj_get (((), [4:23-29], (Lvar ([4:23-29], $0v))), ((), [4:23-29], (Id ([4:23-29], "visitAssign"))), OG_nullthrows, Is_method)));
149 targs = [];
150 args =
151 [(Pnormal,
152 ((), [4:23-29],
153 (Shape
154 [((SFlit_str ([4:23-29], "path")), ((), [4:23-29], (Id ([4:23-29], "\\__FILE__"))));
155 ((SFlit_str ([4:23-29], "start_line")), ((), [4:23-29], (Int "4")));
156 ((SFlit_str ([4:23-29], "end_line")), ((), [4:23-29], (Int "4")));
157 ((SFlit_str ([4:23-29], "start_column")), ((), [4:23-29], (Int "22")));
158 ((SFlit_str ([4:23-29], "end_column")), ((), [4:23-29], (Int "28")))])));
159 (Pnormal,
160 ((), [4:23-25],
161 (Call
162 { func =
163 ((), [4:23-25],
164 (Obj_get (((), [4:23-25], (Lvar ([4:23-25], $0v))), ((), [4:23-25], (Id ([4:23-25], "visitLocal"))), OG_nullthrows, Is_method)));
165 targs = [];
166 args =
167 [(Pnormal,
168 ((), [4:23-25],
169 (Shape
170 [((SFlit_str ([4:23-25], "path")), ((), [4:23-25], (Id ([4:23-25], "\\__FILE__"))));
171 ((SFlit_str ([4:23-25], "start_line")), ((), [4:23-25], (Int "4")));
172 ((SFlit_str ([4:23-25], "end_line")), ((), [4:23-25], (Int "4")));
173 ((SFlit_str ([4:23-25], "start_column")), ((), [4:23-25], (Int "22")));
174 ((SFlit_str ([4:23-25], "end_column")), ((), [4:23-25], (Int "24")))]))); (
175 Pnormal, ((), [4:23-25], (String "$x")))];
176 unpacked_arg = None })));
177 (Pnormal,
178 ((), [4:28-29],
179 (Call
180 { func =
181 ((), [4:28-29],
182 (Obj_get (((), [4:28-29], (Lvar ([4:28-29], $0v))), ((), [4:28-29], (Id ([4:28-29], "visitInt"))), OG_nullthrows, Is_method)));
183 targs = [];
184 args =
185 [(Pnormal,
186 ((), [4:28-29],
187 (Shape
188 [((SFlit_str ([4:28-29], "path")), ((), [4:28-29], (Id ([4:28-29], "\\__FILE__"))));
189 ((SFlit_str ([4:28-29], "start_line")), ((), [4:28-29], (Int "4")));
190 ((SFlit_str ([4:28-29], "end_line")), ((), [4:28-29], (Int "4")));
191 ((SFlit_str ([4:28-29], "start_column")), ((), [4:28-29], (Int "27")));
192 ((SFlit_str ([4:28-29], "end_column")), ((), [4:28-29], (Int "28")))]))); (
193 Pnormal, ((), [4:28-29], (Int "1")))];
194 unpacked_arg = None })))];
195 unpacked_arg = None }))
197 ))))
199 unpacked_arg = None })))))
202 f_fun_kind = FSync; f_user_attributes = [];
203 f_external = false; f_doc_comment = None },
204 []))))
206 unpacked_arg = None }))
207 }))))
210 f_fun_kind = FSync; f_user_attributes = [{ ua_name = ([3:10-14], "__SupportDynamicType"); ua_params = [] }];
211 f_external = false; f_doc_comment = None };
212 fd_internal = false; fd_module = None; fd_tparams = []; fd_where_constraints = [] })