Skip to main content

luaur_analysis/methods/
generic_counter_generic_counter.rs

1use crate::records::generic_counter::GenericCounter;
2use crate::type_aliases::type_id::TypeId;
3use luaur_common::records::dense_hash_set::DenseHashSet;
4
5impl GenericCounter {
6    pub fn generic_counter(_cached_types: *mut DenseHashSet<TypeId>) -> Self {
7        let cached_types_ptr = _cached_types;
8        // GenericCounter::generic_counter expects a NotNull<DenseHashSet<TypeId>> at the Rust level,
9        // but the method signature in this translation item is a raw pointer.
10        // Call the existing wrapper.
11        Self::generic_counter(cached_types_ptr)
12    }
13}