Readonly in emitter flag
[hiphop-php.git] / hphp / hack / src / oxidized / manual / global_options_impl.rs
blob0a45aa670134a0bed1ee426dc7e2db3b8bbc5027
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, s_map, s_set};
8 impl Default for GlobalOptions {
9     fn default() -> Self {
10         Self {
11             tco_experimental_features: s_set::SSet::new(),
12             tco_migration_flags: s_set::SSet::new(),
13             tco_dynamic_view: false,
14             tco_num_local_workers: None,
15             tco_parallel_type_checking_threshold: 10,
16             tco_max_typechecker_worker_memory_mb: None,
17             tco_defer_class_declaration_threshold: None,
18             tco_defer_class_memory_mb_threshold: None,
19             tco_max_times_to_defer_type_checking: None,
20             tco_prefetch_deferred_files: false,
21             tco_remote_type_check_threshold: None,
22             tco_remote_type_check: true,
23             tco_remote_worker_key: None,
24             tco_remote_check_id: None,
25             tco_remote_max_batch_size: 8000,
26             tco_remote_min_batch_size: 5000,
27             tco_num_remote_workers: 0,
28             tco_stream_errors: false,
29             so_remote_version_specifier: None,
30             so_remote_worker_vfs_checkout_threshold: 0,
31             so_naming_sqlite_path: None,
32             po_auto_namespace_map: vec![],
33             po_codegen: false,
34             po_deregister_php_stdlib: false,
35             po_disallow_toplevel_requires: false,
36             po_disable_nontoplevel_declarations: false,
37             po_allow_unstable_features: false,
38             tco_log_inference_constraints: false,
39             tco_disallow_array_typehint: false,
40             tco_disallow_array_literal: false,
41             tco_language_feature_logging: false,
42             tco_disallow_scrutinee_case_value_type_mismatch: false,
43             tco_timeout: 0,
44             tco_disallow_invalid_arraykey: false,
45             tco_disallow_byref_dynamic_calls: false,
46             tco_disallow_byref_calls: true,
47             allowed_fixme_codes_strict: i_set::ISet::new(),
48             allowed_fixme_codes_partial: i_set::ISet::new(),
49             codes_not_raised_partial: i_set::ISet::new(),
50             log_levels: s_map::SMap::new(),
51             po_disable_lval_as_an_expression: false,
52             tco_shallow_class_decl: false,
53             tco_skip_hierarchy_checks: false,
54             po_rust_parser_errors: false,
55             tco_like_type_hints: false,
56             tco_union_intersection_type_hints: false,
57             tco_coeffects: true,
58             tco_coeffects_local: true,
59             tco_strict_contexts: true,
60             tco_like_casts: false,
61             tco_simple_pessimize: 0.0,
62             tco_complex_coercion: false,
63             tco_disable_partially_abstract_typeconsts: false,
64             tco_disallow_partially_abstract_typeconst_definitions: false,
65             error_codes_treated_strictly: i_set::ISet::new(),
66             tco_check_xhp_attribute: false,
67             tco_check_redundant_generics: false,
68             tco_disallow_unresolved_type_variables: false,
69             tco_disallow_trait_reuse: false,
70             tco_disallow_invalid_arraykey_constraint: false,
71             po_enable_class_level_where_clauses: false,
72             po_disable_legacy_soft_typehints: true,
73             po_allowed_decl_fixme_codes: i_set::ISet::new(),
74             po_allow_new_attribute_syntax: false,
75             tco_global_inference: false,
76             tco_gi_reinfer_types: vec![],
77             tco_ordered_solving: false,
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_const_default_lambda_args: false,
83             po_disallow_silence: false,
84             po_abstract_static_props: false,
85             po_disable_unset_class_const: false,
86             po_parser_errors_only: false,
87             tco_check_attribute_locations: true,
88             po_disallow_func_ptrs_in_constants: false,
89             tco_error_php_lambdas: false,
90             tco_disallow_discarded_nullable_awaitables: false,
91             po_enable_xhp_class_modifier: false,
92             po_disable_xhp_element_mangling: false,
93             po_disable_xhp_children_declarations: false,
94             glean_service: String::new(),
95             glean_hostname: String::new(),
96             glean_port: 0,
97             glean_reponame: String::new(),
98             symbol_write_root_path: String::new(),
99             symbol_write_hhi_path: String::new(),
100             symbol_write_ignore_paths: vec![],
101             symbol_write_index_paths: vec![],
102             symbol_write_index_paths_file: None,
103             symbol_write_include_hhi: true,
104             symbol_write_index_paths_file_output: None,
105             po_enable_enum_classes: true,
106             po_disable_modes: false,
107             po_disable_hh_ignore_error: false,
108             po_disable_array: false,
109             po_disable_array_typehint: false,
110             tco_enable_systemlib_annotations: false,
111             tco_higher_kinded_types: false,
112             tco_method_call_inference: false,
113             tco_report_pos_from_reason: false,
114             tco_typecheck_sample_rate: 1.0,
115             tco_enable_sound_dynamic: false,
116             po_disallow_hash_comments: false,
117             po_disallow_fun_and_cls_meth_pseudo_funcs: false,
118             po_disallow_inst_meth: false,
119             po_enable_readonly_in_emitter: false,
120             po_escape_brace: false,
121             tco_use_direct_decl_parser: false,
122             tco_ifc_enabled: vec![],
123             po_enable_enum_supertyping: false,
124             po_interpret_soft_types_as_like_types: false,
125             tco_enable_strict_string_concat_interp: false,
126             tco_ignore_unsafe_cast: false,
127             tco_readonly: false,
128             tco_enable_modules: false,
129             tco_enable_expression_trees: false,
130             tco_allowed_expression_tree_visitors: vec![],
131             tco_math_new_code: false,
132             tco_typeconst_concrete_concrete_error: false,
133             tco_meth_caller_only_public_visibility: true,
134             tco_require_extends_implements_ancestors: false,
135             tco_strict_value_equality: false,
136             tco_enforce_sealed_subclasses: false,
137         }
138     }
141 impl Eq for GlobalOptions {}
143 impl std::hash::Hash for GlobalOptions {
144     fn hash<H>(&self, _: &mut H) {
145         unimplemented!()
146     }
149 impl Ord for GlobalOptions {
150     fn cmp(&self, _: &Self) -> std::cmp::Ordering {
151         unimplemented!()
152     }