use crate::records::iterative_type_visitor::IterativeTypeVisitor;
use crate::type_aliases::type_id::TypeId;

impl IterativeTypeVisitor {
    pub fn iterative_type_visitor_work_item_as_type(&mut self) -> Option<*const TypeId> {
        if let Some(work_item) = self.work_queue.last() {
            if work_item.is_type {
                return Some(work_item.as_type());
            }
        }
        None
    }
}
