Add SetModule and fd_module defs
[hiphop-php.git] / hphp / hack / test / nast / expression_tree_invalid.php.exp
blob70659c6eb9a0448e5d5f0f68bed3646bb2172736
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_auto_ns_map = []; ns_is_codegen = false; ns_disable_xhp_element_mangling = false };
6 fd_file_attributes = []; fd_mode = Mstrict;
7 fd_fun =
8 { f_span = [3:1-6:2]; f_readonly_this = None; f_annotation = ();
9 f_readonly_ret = None; f_ret = ((), (Some ([3:18-22], (Hprim Tvoid))));
10 f_name = ([3:10-14], "\\test"); f_tparams = []; f_where_constraints = [];
11 f_params = []; f_ctxs = None; f_unsafe_ctxs = None;
12 f_body =
13 { fb_ast =
14 [([5:3-22],
15 (Expr
16 ((), [5:3-21],
17 (ExpressionTree
18 { et_hint = ([5:3-13], (Happly (([5:3-13], "\\ExampleDsl"), [])));
19 et_splices = []; et_function_pointers = [];
20 et_virtualized_expr =
21 ((), [5:14-20],
22 (Call (
23 ((), [5:14-20],
24 (Efun (
25 { f_span = [5:14-20]; f_readonly_this = None;
26 f_annotation = (); f_readonly_ret = None;
27 f_ret = ((), None); f_name = ([5:14-20], ";anonymous");
28 f_tparams = []; f_where_constraints = [];
29 f_params = []; f_ctxs = None; f_unsafe_ctxs = None;
30 f_body =
31 { fb_ast =
32 [([5:14-20],
33 (Return
34 (Some ((), [5:14-20],
35 (Call (
36 ((), [5:14-20],
37 (Obj_get (
38 ((), [5:14-15], (Call (((), [5:14-15], (Class_const (((), [5:14-15], (CI ([5:14-15], "\\ExampleDsl"))), ([5:14-15], "intType")))), [], [], None))),
39 ((), [5:14-20], (Id ([5:14-20], "__unsupported"))), OG_nullthrows, Is_method))),
40 [],
41 [(Pnormal,
42 ((), [5:19-20], (Call (((), [5:19-20], (Class_const (((), [5:19-20], (CI ([5:19-20], "\\ExampleDsl"))), ([5:19-20], "intType")))), [], [], None))))],
43 None))))))
46 f_fun_kind = FSync; f_user_attributes = [];
47 f_external = false; f_doc_comment = None },
48 []))),
49 [], [], None)));
50 et_runtime_expr =
51 ((), [5:3-13],
52 (Call (((), [5:3-13], (Class_const (((), [5:3-13], (CI ([5:3-13], "\\ExampleDsl"))), ([5:3-13], "makeTree")))),
53 [],
54 [(Pnormal,
55 ((), [5:14-20],
56 (Shape
57 [((SFlit_str ([5:14-20], "path")), ((), [5:14-20], (Id ([5:14-20], "\\__FILE__")))); (
58 (SFlit_str ([5:14-20], "start_line")), ((), [5:14-20], (Int "5"))); (
59 (SFlit_str ([5:14-20], "end_line")), ((), [5:14-20], (Int "5"))); (
60 (SFlit_str ([5:14-20], "start_column")), ((), [5:14-20], (Int "13"))); (
61 (SFlit_str ([5:14-20], "end_column")), ((), [5:14-20], (Int "19")))])));
62 (Pnormal,
63 ((), [5:3-13],
64 (Shape
65 [((SFlit_str ([5:3-13], "splices")), ((), [5:3-13], (KeyValCollection (Dict, None, []))));
66 ((SFlit_str ([5:3-13], "functions")), ((), [5:3-13], (ValCollection (Vec, None, []))));
67 ((SFlit_str ([5:3-13], "static_methods")), ((), [5:3-13], (ValCollection (Vec, None, []))))])));
68 (Pnormal,
69 ((), [5:14-20],
70 (Lfun (
71 { f_span = [5:14-20]; f_readonly_this = None;
72 f_annotation = (); f_readonly_ret = None;
73 f_ret = ((), None); f_name = ([5:14-20], ";anonymous");
74 f_tparams = []; f_where_constraints = [];
75 f_params =
76 [{ param_annotation = (); param_type_hint = ((), (Some ([5:3-13], (Happly (([5:3-13], "\\ExampleDsl"), [])))));
77 param_is_variadic = false; param_pos = [5:3-13];
78 param_name = "$0v"; param_expr = None;
79 param_readonly = None; param_callconv = Pnormal;
80 param_user_attributes = []; param_visibility = None }
82 f_ctxs = None; f_unsafe_ctxs = None;
83 f_body =
84 { fb_ast =
85 [([5:14-20],
86 (Return
87 (Some ((), [5:14-20],
88 (Call (
89 ((), [5:14-20], (Obj_get (((), [5:14-20], (Lvar ([5:14-20], $0v))), ((), [5:14-20], (Id ([5:14-20], "visitBinop"))), OG_nullthrows, Is_method))),
90 [],
91 [(Pnormal,
92 ((), [5:14-20],
93 (Shape
94 [((SFlit_str ([5:14-20], "path")), ((), [5:14-20], (Id ([5:14-20], "\\__FILE__"))));
95 ((SFlit_str ([5:14-20], "start_line")), ((), [5:14-20], (Int "5"))); (
96 (SFlit_str ([5:14-20], "end_line")), ((), [5:14-20], (Int "5"))); (
97 (SFlit_str ([5:14-20], "start_column")), ((), [5:14-20], (Int "13"))); (
98 (SFlit_str ([5:14-20], "end_column")), ((), [5:14-20], (Int "19")))])));
99 (Pnormal,
100 ((), [5:14-15],
101 (Call (
102 ((), [5:14-15], (Obj_get (((), [5:14-15], (Lvar ([5:14-15], $0v))), ((), [5:14-15], (Id ([5:14-15], "visitInt"))), OG_nullthrows, Is_method))),
104 [(Pnormal,
105 ((), [5:14-15],
106 (Shape
107 [((SFlit_str ([5:14-15], "path")), ((), [5:14-15], (Id ([5:14-15], "\\__FILE__"))));
108 ((SFlit_str ([5:14-15], "start_line")), ((), [5:14-15], (Int "5")));
109 ((SFlit_str ([5:14-15], "end_line")), ((), [5:14-15], (Int "5")));
110 ((SFlit_str ([5:14-15], "start_column")), ((), [5:14-15], (Int "13")));
111 ((SFlit_str ([5:14-15], "end_column")), ((), [5:14-15], (Int "14")))])));
112 (Pnormal, ((), [5:14-15], (Int "1")))],
113 None))));
114 (Pnormal, ((), [5:14-20], (String "__unsupported")));
115 (Pnormal,
116 ((), [5:19-20],
117 (Call (
118 ((), [5:19-20], (Obj_get (((), [5:19-20], (Lvar ([5:19-20], $0v))), ((), [5:19-20], (Id ([5:19-20], "visitInt"))), OG_nullthrows, Is_method))),
120 [(Pnormal,
121 ((), [5:19-20],
122 (Shape
123 [((SFlit_str ([5:19-20], "path")), ((), [5:19-20], (Id ([5:19-20], "\\__FILE__"))));
124 ((SFlit_str ([5:19-20], "start_line")), ((), [5:19-20], (Int "5")));
125 ((SFlit_str ([5:19-20], "end_line")), ((), [5:19-20], (Int "5")));
126 ((SFlit_str ([5:19-20], "start_column")), ((), [5:19-20], (Int "18")));
127 ((SFlit_str ([5:19-20], "end_column")), ((), [5:19-20], (Int "19")))])));
128 (Pnormal, ((), [5:19-20], (Int "2")))],
129 None))))
131 None))))))
134 f_fun_kind = FSync; f_user_attributes = [];
135 f_external = false; f_doc_comment = None },
136 []))))
138 None)));
139 et_dollardollar_pos = None }))))
142 f_fun_kind = FSync; f_user_attributes = []; f_external = false;
143 f_doc_comment = None };
144 fd_internal = false; fd_module = None })