Skip to main content

luaur_analysis/methods/
magic_pcall_handle_old_solver.rs

1use crate::records::type_checker::TypeChecker;
2use crate::records::with_predicate::WithPredicate;
3use crate::type_aliases::scope_ptr_type_infer::ScopePtr;
4use crate::type_aliases::type_pack_id::TypePackId;
5use luaur_ast::records::ast_expr_call::AstExprCall;
6
7pub fn magic_pcall_handle_old_solver(
8    _typechecker: &mut TypeChecker,
9    _scope: &ScopePtr,
10    _expr: &AstExprCall,
11    _with_predicate: WithPredicate<TypePackId>,
12) -> Option<WithPredicate<TypePackId>> {
13    // pcall() is only magic in the new solver.
14    None
15}