deimos-lang/dmc-lib/src/ast/fqn.rs
2026-02-27 16:26:56 -06:00

16 lines
271 B
Rust

pub struct Fqn {
parts: Vec<String>,
}
impl Fqn {
pub fn new(parts: &[&str]) -> Self {
Self {
parts: parts.iter().map(|s| s.to_string()).collect(),
}
}
pub fn parts(&self) -> &[String] {
self.parts.as_slice()
}
}