blues-lsp 0.1.0

LSP language server for the Bluespec SystemVerilog language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use arcstr::Substr;

#[derive(Debug, PartialEq, Eq, Hash, Clone)]
pub enum SymName {
    Value(Substr),
    Type(Substr),
    Pkg(Substr),
}

impl SymName {
    pub fn str(&self) -> Substr {
        match self {
            SymName::Value(substr) | SymName::Type(substr) | SymName::Pkg(substr) => substr.clone(),
        }
    }
}