Add readonly to decl and function types
commit2cbea9c18bf51f97846358bb70e2385dbe2fd71d
authorJames Wu <jjwu@fb.com>
Thu, 11 Feb 2021 04:59:25 +0000 (10 20:59 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 11 Feb 2021 05:01:35 +0000 (10 21:01 -0800)
tree22f174fdf7471bcc433cb9d251ae980a40a98e8e
parent00f98e1cca3ff34405874229e6a53e15b7503cc8
Add readonly to decl and function types

Summary: Add readonlyness to decl and function types, so we can consume it in the typechecker.

Reviewed By: zilberstein

Differential Revision: D26318430

fbshipit-source-id: ee2619b16a3e81a2bc206dc6e1a2cacae4839389
103 files changed:
hphp/hack/src/decl/decl_folded_class.ml
hphp/hack/src/decl/decl_fun_utils.ml
hphp/hack/src/decl/decl_hint.ml
hphp/hack/src/decl/decl_nast.ml
hphp/hack/src/decl/decl_to_typing.ml
hphp/hack/src/decl/direct_decl_smart_constructors.rs
hphp/hack/src/decl/shallow_decl.ml
hphp/hack/src/decl/shallow_decl_defs.ml
hphp/hack/src/decl/shallow_decl_defs.mli
hphp/hack/src/oxidized_by_ref/manual/prop_flags.rs
hphp/hack/src/oxidized_by_ref/manual/typing_defs_flags.rs
hphp/hack/src/typing/tast_check/type_serialization_identity_check.ml
hphp/hack/src/typing/typing.ml
hphp/hack/src/typing/typing_defs.ml
hphp/hack/src/typing/typing_defs_core.ml
hphp/hack/src/typing/typing_defs_core.mli
hphp/hack/src/typing/typing_defs_flags.ml
hphp/hack/src/typing/typing_extends.ml
hphp/hack/src/typing/typing_print.ml
hphp/hack/src/typing/typing_utils.ml
hphp/hack/test/decl/abstract_method.php.exp
hphp/hack/test/decl/accept_disposable.php.exp
hphp/hack/test/decl/array_typehints.php.exp
hphp/hack/test/decl/async_and_generator_functions.php.exp
hphp/hack/test/decl/at_most_rx_as_func.php.exp
hphp/hack/test/decl/at_most_rx_as_func_with_optional_func.php.exp
hphp/hack/test/decl/atom.php.exp
hphp/hack/test/decl/auto_ns_use.php.exp
hphp/hack/test/decl/cipp.php.exp
hphp/hack/test/decl/class_in_namespace.php.exp
hphp/hack/test/decl/classes.php.exp
hphp/hack/test/decl/classes_consistent_construct.php.exp
hphp/hack/test/decl/classes_inferred_constant_types.php.exp
hphp/hack/test/decl/classes_inheritance.php.exp
hphp/hack/test/decl/classes_require.php.exp
hphp/hack/test/decl/classes_typeconst.php.exp
hphp/hack/test/decl/const_attribute.php.exp
hphp/hack/test/decl/constraints_mentioning_tparams_in_same_list.php.exp
hphp/hack/test/decl/denotable_unions.php.exp
hphp/hack/test/decl/deprecated.php.exp
hphp/hack/test/decl/deprecated_string_concat.php.exp
hphp/hack/test/decl/deprecated_string_escaping.php.exp
hphp/hack/test/decl/duplicate_fun_attributes.php.exp
hphp/hack/test/decl/dynamically_callable.php.exp
hphp/hack/test/decl/empty_method_name.php.exp
hphp/hack/test/decl/explicit_type_collection.php.exp
hphp/hack/test/decl/file_mode.php.exp
hphp/hack/test/decl/final_method.php.exp
hphp/hack/test/decl/function_where_constraints.php.exp
hphp/hack/test/decl/functions.php.exp
hphp/hack/test/decl/generic_classes.php.exp
hphp/hack/test/decl/generic_method_tparam_scope.php.exp
hphp/hack/test/decl/hhi.hhi.exp
hphp/hack/test/decl/higher_kinded.php.exp
hphp/hack/test/decl/ifc_policied.php.exp
hphp/hack/test/decl/inout.php.exp
hphp/hack/test/decl/interface.php.exp
hphp/hack/test/decl/interfaces.php.exp
hphp/hack/test/decl/like_types.php.exp
hphp/hack/test/decl/memoize_lsb.php.exp
hphp/hack/test/decl/missing_function_typehints.php.exp
hphp/hack/test/decl/mutable.php.exp
hphp/hack/test/decl/mutable_as_hint1.php.exp
hphp/hack/test/decl/namespace_body_plus_declarations_outside_body.php.exp
hphp/hack/test/decl/namespace_elaboration.php.exp
hphp/hack/test/decl/namespace_global_body_plus_declarations_outside_body.php.exp
hphp/hack/test/decl/namespace_import.php.exp
hphp/hack/test/decl/namespace_self.php.exp
hphp/hack/test/decl/namespace_unscoped.php.exp
hphp/hack/test/decl/only_rx_if_impl_method.php.exp
hphp/hack/test/decl/override_attribute.php.exp
hphp/hack/test/decl/php_std_lib.hhi.exp
hphp/hack/test/decl/property_declarations.php.exp
hphp/hack/test/decl/property_needs_init.hhi.exp
hphp/hack/test/decl/pure.php.exp
hphp/hack/test/decl/qualified_name_in_attribute_arg.php.exp
hphp/hack/test/decl/readonly.php [new file with mode: 0644]
hphp/hack/test/decl/readonly.php.exp [new file with mode: 0644]
hphp/hack/test/decl/readonly.php.typecheck.exp [new file with mode: 0644]
hphp/hack/test/decl/ret_from_kind.php.exp
hphp/hack/test/decl/return_disposable.php.exp
hphp/hack/test/decl/returns_void_to_rx.php.exp
hphp/hack/test/decl/rewritten_tparams.php.exp
hphp/hack/test/decl/rx.php.exp
hphp/hack/test/decl/self_in_type_constant.php.exp
hphp/hack/test/decl/self_param_mutability.php.exp
hphp/hack/test/decl/shapes.php.exp
hphp/hack/test/decl/soft_reified.php.exp
hphp/hack/test/decl/soft_type_hint.php.exp
hphp/hack/test/decl/static_method_call_with_explicit_targ.php.exp
hphp/hack/test/decl/tparams_on_class_and_method.php.exp
hphp/hack/test/decl/traits.php.exp
hphp/hack/test/decl/tuples.php.exp
hphp/hack/test/decl/type_param_attrs.php.exp
hphp/hack/test/decl/typeconst_property_promotion.php.exp
hphp/hack/test/decl/unnamed_variadic_method_parameter.php.exp
hphp/hack/test/decl/use_type.php.exp
hphp/hack/test/decl/variadic_parameter.php.exp
hphp/hack/test/decl/wildcard_invalid.php.exp
hphp/hack/test/decl/wildcard_invalid_targ.php.exp
hphp/hack/test/decl/xhp.php.exp
hphp/hack/test/decl/xhp_self.php.exp
hphp/hack/test/decl/yield_deeper.php.exp