pub struct LuaInferCache {
pub expr_cache: HashMap<LuaSyntaxId, CacheEntry<LuaType>>,
pub call_cache: HashMap<(LuaSyntaxId, Option<usize>, LuaType), CacheEntry<Arc<LuaFunctionType>>>,
pub flow_node_cache: HashMap<(VarRefId, FlowId), CacheEntry<LuaType>>,
pub index_ref_origin_type_cache: HashMap<VarRefId, CacheEntry<LuaType>>,
pub expr_var_ref_id_cache: HashMap<LuaSyntaxId, VarRefId>,
pub narrow_by_literal_stop_position_cache: HashSet<LuaSyntaxId>,
/* private fields */
}Fields§
§expr_cache: HashMap<LuaSyntaxId, CacheEntry<LuaType>>§call_cache: HashMap<(LuaSyntaxId, Option<usize>, LuaType), CacheEntry<Arc<LuaFunctionType>>>§flow_node_cache: HashMap<(VarRefId, FlowId), CacheEntry<LuaType>>§index_ref_origin_type_cache: HashMap<VarRefId, CacheEntry<LuaType>>§expr_var_ref_id_cache: HashMap<LuaSyntaxId, VarRefId>§narrow_by_literal_stop_position_cache: HashSet<LuaSyntaxId>Implementations§
Source§impl LuaInferCache
impl LuaInferCache
pub fn new(file_id: FileId, config: CacheOptions) -> Self
pub fn get_config(&self) -> &CacheOptions
pub fn get_file_id(&self) -> FileId
pub fn set_phase(&mut self, phase: LuaAnalysisPhase)
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LuaInferCache
impl RefUnwindSafe for LuaInferCache
impl Send for LuaInferCache
impl Sync for LuaInferCache
impl Unpin for LuaInferCache
impl UnwindSafe for LuaInferCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more