use crate::records::type_function_cloner::TypeFunctionCloner;
use luaur_common::DFInt;

impl TypeFunctionCloner {
    pub fn has_exceeded_iteration_limit(&self) -> bool {
        self.steps + self.queue.len() as i32 >= DFInt::LuauTypeFunctionSerdeIterationLimit.get()
    }
}
