luaur_analysis/methods/lint_deprecated_api_pop_scope.rs
1use crate::records::function_type::FunctionType;
2use crate::records::lint_deprecated_api::LintDeprecatedApi;
3use luaur_common::LUAU_ASSERT;
4
5impl LintDeprecatedApi {
6 pub fn pop_scope(&mut self, fty: *const FunctionType) {
7 LUAU_ASSERT!(!fty.is_null());
8 LUAU_ASSERT!(!self.function_type_scope_stack.is_empty());
9 LUAU_ASSERT!(self.function_type_scope_stack.last() == Some(&fty));
10 self.function_type_scope_stack.pop();
11 }
12}