luaur_analysis/records/
magic_format.rs1use crate::records::magic_function::MagicFunction;
2use crate::records::magic_function_call_context::MagicFunctionCallContext;
3use crate::records::magic_function_type_check_context::MagicFunctionTypeCheckContext;
4use crate::records::scope::Scope;
5use crate::records::type_checker::TypeChecker;
6use crate::records::with_predicate::WithPredicate;
7use crate::type_aliases::type_pack_id::TypePackId;
8use luaur_ast::records::ast_expr_call::AstExprCall;
9use std::sync::Arc;
10
11#[derive(Debug, Clone)]
12pub struct MagicFormat {
13 pub base: MagicFunction,
14}
15
16impl MagicFormat {
17 pub(crate) fn handle_old_solver(
18 _checker: &mut TypeChecker,
19 _scope: &Arc<Scope>,
20 _call_site: &AstExprCall,
21 _old_result: WithPredicate<TypePackId>,
22 ) -> Option<WithPredicate<TypePackId>> {
23 None
24 }
25
26 pub(crate) fn infer(_ctx: &MagicFunctionCallContext) -> bool {
27 false
28 }
29
30 pub(crate) fn type_check(_ctx: &MagicFunctionTypeCheckContext) -> bool {
31 false
32 }
33}