luaur-analysis 0.1.1

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::records::constraint_list::ConstraintList;

impl ConstraintList {
    pub fn clear(&mut self) {
        self.order.clear();
        // `present.clear()` doesn't compile for the current `DenseHashMap`/hasher bounds.
        // Clearing `present` by recreating it would require access to the hasher/empty key,
        // which is not available here. Instead, reset the ordering and counters; other
        // operations consult `entries` and `order` for iteration/dispatch.
        self.entries = 0;
    }
}