luaur_analysis/methods/
constraint_constraint_constraint_alt_b.rs1use crate::records::constraint::Constraint;
2use crate::records::scope::Scope;
3use crate::type_aliases::constraint_v::ConstraintV;
4use alloc::vec::Vec;
5use core::ptr::NonNull;
6use luaur_ast::records::location::Location;
7
8impl Constraint {
9 pub fn constraint_not_null_scope_location_constraint_v(
12 scope: NonNull<Scope>,
13 location: &Location,
14 c: ConstraintV,
15 ) -> Self {
16 Constraint {
17 scope: scope.as_ptr(),
18 location: location.clone(),
19 c,
20 deprecated_dependencies: Vec::new(),
21 }
22 }
23}