use phf::{Set, phf_set};
#[inline]
pub fn is_reserved_keyword_or_global_object(s: &str) -> bool {
is_reserved_keyword(s) || is_global_object(s)
}
#[inline]
pub fn is_reserved_keyword(s: &str) -> bool {
RESERVED_KEYWORDS.contains(s)
}
#[inline]
pub fn is_global_object(s: &str) -> bool {
GLOBAL_OBJECTS.contains(s)
}
pub const GLOBAL_OBJECTS: Set<&'static str> = phf_set! {
"Infinity",
"NaN",
"globalThis",
"undefined",
};
pub const RESERVED_KEYWORDS: Set<&'static str> = phf_set! {
"let",
"static",
"implements",
"interface",
"package",
"private",
"protected",
"public",
"await",
"break",
"case",
"catch",
"class",
"const",
"continue",
"debugger",
"default",
"delete",
"do",
"else",
"enum",
"export",
"extends",
"false",
"finally",
"for",
"function",
"if",
"import",
"in",
"instanceof",
"new",
"null",
"return",
"super",
"switch",
"this",
"throw",
"true",
"try",
"typeof",
"var",
"void",
"while",
"with",
"yield",
};