Skip to main content

luaur_analysis/records/
iterable_constraint.rs

1use crate::type_aliases::type_id::TypeId;
2use crate::type_aliases::type_pack_id::TypePackId;
3use alloc::vec::Vec;
4use luaur_ast::records::ast_node::AstNode;
5use luaur_common::records::dense_hash_map::DenseHashMap;
6
7#[derive(Debug, Clone)]
8pub struct IterableConstraint {
9    pub(crate) iterator: TypePackId,
10    pub(crate) variables: Vec<TypeId>,
11    pub(crate) next_ast_fragment: *const AstNode,
12    pub(crate) ast_for_in_next_types: *mut DenseHashMap<*const AstNode, TypeId>,
13}