Skip to main content

luaur_analysis/methods/
lint_deprecated_api_in_scope.rs

1use crate::records::function_type::FunctionType;
2use crate::records::lint_deprecated_api::LintDeprecatedApi;
3
4impl LintDeprecatedApi {
5    pub fn in_scope(&self, fty: *const FunctionType) -> bool {
6        self.function_type_scope_stack.iter().any(|x| *x == fty)
7    }
8}