luaur_analysis/methods/symbol_operator_eq.rs
1use crate::records::symbol::Symbol;
2
3impl Symbol {
4 #[inline]
5 pub fn operator_eq_symbol(&self, rhs: &Self) -> bool {
6 if !self.local.is_null() {
7 return self.local == rhs.local;
8 } else if !self.global.value.is_null() {
9 return !rhs.global.value.is_null() && self.global.operator_eq_c_char(rhs.global.value);
10 } else {
11 return rhs.local.is_null() && rhs.global.value.is_null();
12 }
13 }
14}