Skip to main content

luaur_analysis/methods/
lint_global_local_function_info_function_info.rs

1use crate::records::function_info::FunctionInfo;
2use luaur_ast::records::ast_expr_function::AstExprFunction;
3
4impl FunctionInfo {
5    pub fn function_info_ast(ast: *mut AstExprFunction) -> Self {
6        Self {
7            ast,
8            dominated_globals: luaur_common::records::dense_hash_set::DenseHashSet::new(
9                luaur_ast::records::ast_name::AstName::default(),
10            ),
11            conditional_execution: false,
12        }
13    }
14}