2 * Copyright (c) 2018, 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 module SN
= Naming_special_names
16 inherit Tast_visitor.handler_base
18 method! at_expr env
((p
, _
), x
) =
19 if Env.is_strict env
then
21 | Id
(_
, pseudo_func
) when pseudo_func
= SN.PseudoFunctions.isset
->
22 Errors.isset_in_strict p
23 | Id
(_
, pseudo_func
) when pseudo_func
= SN.PseudoFunctions.empty
->
24 Errors.empty_in_strict p