29 lines
626 B
Rust
29 lines
626 B
Rust
// Standard Uses
|
|
use std::string::ToString;
|
|
|
|
// Local Uses
|
|
|
|
// External Uses
|
|
use once_cell::sync::Lazy;
|
|
use comline_rs::ir::unit::{Const, Unit};
|
|
use comline_rs::ir::primitive::TypeValue;
|
|
|
|
|
|
// 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![],
|
|
}
|
|
])
|
|
]
|
|
)
|
|
});
|
|
|