use crate::records::symbol::Symbol;
use core::hash::{Hash, Hasher};
impl Symbol {
pub fn hash_luau_symbol_operator_call(&self) -> usize {
let mut hasher = std::collections::hash_map::DefaultHasher::new();
self.local.hash(&mut hasher);
let mut h = hasher.finish() as usize;
if !self.global.value.is_null() {
let mut name_hasher = std::collections::hash_map::DefaultHasher::new();
let s = unsafe { core::ffi::CStr::from_ptr(self.global.value).to_bytes() };
s.hash(&mut name_hasher);
h ^= name_hasher.finish() as usize;
}
h
}
}