Allow function pointer builtins in constant initializers
[hiphop-php.git] / hphp / hack / src / parser / parser_env.rs
blobb1568023a691288e44bcfbe13598f517bd5e3943
1 // Copyright (c) 2019, Facebook, Inc.
2 // All rights reserved.
3 //
4 // This source code is licensed under the MIT license found in the
5 // LICENSE file in the "hack" directory of this source tree.
7 #[derive(Clone, Debug, Default)]
8 pub struct ParserEnv {
9     pub codegen: bool,
10     pub is_experimental_mode: bool,
11     pub hhvm_compat_mode: bool,
12     pub php5_compat_mode: bool,
13     pub allow_new_attribute_syntax: bool,
14     pub disallow_func_ptrs_in_constants: bool,