Revert visibility of class/type constants.
[hiphop-php.git] / hphp / hack / src / oxidized / manual / global_options_impl.rs
blob30b58fe4d72f032c347a53738288798989ab2f5c
1 // Copyright (c) Facebook, Inc. and its affiliates.
2 //
3 // This source code is licensed under the MIT license found in the
4 // LICENSE file in the "hack" directory of this source tree.
6 use crate::{gen::global_options::GlobalOptions, i_set, infer_missing, s_map, s_set};
8 impl Default for GlobalOptions {
9     fn default() -> Self {
10         Self {
11             tco_safe_array: false,
12             tco_safe_vector_array: false,
13             tco_experimental_features: s_set::SSet::new(),
14             tco_migration_flags: s_set::SSet::new(),
15             tco_dynamic_view: false,
16             tco_defer_class_declaration_threshold: None,
17             tco_max_times_to_defer_type_checking: None,
18             tco_prefetch_deferred_files: false,
19             tco_remote_type_check_threshold: None,
20             tco_remote_type_check: false,
21             tco_remote_worker_key: None,
22             tco_remote_check_id: None,
23             tco_num_remote_workers: 0,
24             so_remote_version_specifier: None,
25             so_remote_worker_eden_checkout_threshold: 0,
26             so_naming_sqlite_path: None,
27             tco_disallow_array_as_tuple: false,
28             po_auto_namespace_map: vec![],
29             po_codegen: false,
30             po_deregister_php_stdlib: false,
31             po_disallow_execution_operator: false,
32             po_disallow_toplevel_requires: false,
33             po_disable_nontoplevel_declarations: false,
34             po_disable_static_closures: false,
35             po_disable_halt_compiler: false,
36             po_allow_goto: false,
37             tco_log_inference_constraints: false,
38             tco_disallow_ambiguous_lambda: false,
39             tco_disallow_array_typehint: false,
40             tco_disallow_array_literal: false,
41             tco_language_feature_logging: false,
42             tco_unsafe_rx: false,
43             tco_disallow_unset_on_varray: false,
44             tco_disallow_scrutinee_case_value_type_mismatch: false,
45             tco_new_inference_lambda: false,
46             tco_timeout: 0,
47             tco_disallow_invalid_arraykey: false,
48             tco_disallow_byref_dynamic_calls: false,
49             tco_disallow_byref_calls: false,
50             ignored_fixme_codes: i_set::ISet::new(),
51             ignored_fixme_regex: None,
52             log_levels: s_map::SMap::new(),
53             po_disable_lval_as_an_expression: false,
54             tco_typecheck_xhp_cvars: false,
55             tco_ignore_collection_expr_type_arguments: false,
56             tco_shallow_class_decl: false,
57             po_rust_parser_errors: false,
58             po_rust_lowerer: false,
59             profile_type_check_duration_threshold: 0.0,
60             tco_like_type_hints: false,
61             tco_like_casts: false,
62             tco_pessimize_types: false,
63             tco_simple_pessimize: 0.0,
64             tco_coercion_from_dynamic: false,
65             tco_coercion_from_union: false,
66             tco_complex_coercion: false,
67             tco_disable_partially_abstract_typeconsts: false,
68             error_codes_treated_strictly: i_set::ISet::new(),
69             tco_check_xhp_attribute: false,
70             tco_disallow_unresolved_type_variables: false,
71             tco_disallow_invalid_arraykey_constraint: false,
72             po_enable_class_level_where_clauses: false,
73             po_disable_legacy_soft_typehints: false,
74             tco_use_lru_workers: false,
75             po_disallowed_decl_fixmes: i_set::ISet::new(),
76             po_allow_new_attribute_syntax: false,
77             tco_infer_missing: infer_missing::InferMissing::Deactivated,
78             tco_const_static_props: false,
79             po_disable_legacy_attribute_syntax: false,
80             tco_const_attribute: false,
81             po_const_default_func_args: false,
82             po_disallow_silence: false,
83             po_abstract_static_props: false,
84             po_disable_unset_class_const: false,
85             po_parser_errors_only: false,
86             tco_check_attribute_locations: false,
87             po_disallow_func_ptrs_in_constants: false,
88             glean_service: String::new(),
89             glean_hostname: String::new(),
90             glean_port: 0,
91             glean_reponame: String::new(),
92         }
93     }