2 * Copyright (c) 2017, Facebook, Inc.
5 * This source code is licensed under the MIT license found in the
6 * LICENSE file in the "hack" directory of this source tree.
13 * This is used in computing all possible attributes for XHP spreads.
15 * Given a type `cty` that should represent an XHP instance, gather all the
16 * XHP attributes and their localized types to verify compatibility with the
17 * XHP onto which we are spreading.
19 val get_spread_attributes
:
22 Decl_provider.class_decl
->
23 Typing_defs.locl_ty
->
24 env
* (Aast.pstring
* (Pos.t
* Typing_defs.locl_ty
)) list
27 * Verify that an XHP body expression is legal.
29 val is_xhp_child
: env
-> Pos.t
-> Typing_defs.locl_ty
-> bool