Skip to main content

luaur_analysis/methods/
lint_deprecated_api_push_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 push_scope(&mut self, fty: *const FunctionType) {
7        LUAU_ASSERT!(!fty.is_null());
8        self.function_type_scope_stack.push(fty);
9    }
10}