2023-06-15 07:10:20 -05:00
|
|
|
// Standard Uses
|
|
|
|
use std::string::ToString;
|
|
|
|
|
|
|
|
// Local Uses
|
|
|
|
|
|
|
|
// External Uses
|
|
|
|
use once_cell::sync::Lazy;
|
2023-06-23 22:16:35 -05:00
|
|
|
use comline::ir::unit::{Const, Unit};
|
|
|
|
use comline::ir::primitive::TypeValue;
|
2023-06-15 07:10:20 -05:00
|
|
|
|
|
|
|
|
|
|
|
// Unit with a namespace and a constant
|
|
|
|
#[allow(unused)]
|
|
|
|
static UNIT_NAMESPACE_CONST_1: Lazy<Unit> = Lazy::new( || {
|
|
|
|
Unit::Items(
|
|
|
|
vec![
|
|
|
|
Unit::Namespace("units.test".to_string()),
|
|
|
|
Unit::Consts(vec![
|
|
|
|
Const {
|
|
|
|
id: "".to_string(),
|
|
|
|
type_: TypeValue::U8,
|
|
|
|
default_value: vec![],
|
|
|
|
}
|
|
|
|
])
|
|
|
|
]
|
|
|
|
)
|
|
|
|
});
|
|
|
|
|