Attribute,
BoolLiteral,
- BuiltinAttr,
BuiltinType,
ByteLiteral,
CharLiteral,
fn as_str(self) -> &'static str {
match self {
HlTag::Symbol(symbol) => match symbol {
+ SymbolKind::BuiltinAttr => "builtin_attr",
SymbolKind::Const => "constant",
- SymbolKind::Static => "static",
+ SymbolKind::ConstParam => "const_param",
SymbolKind::Enum => "enum",
- SymbolKind::Variant => "enum_variant",
- SymbolKind::Struct => "struct",
- SymbolKind::Union => "union",
SymbolKind::Field => "field",
+ SymbolKind::Function => "function",
+ SymbolKind::Impl => "self_type",
+ SymbolKind::Label => "label",
+ SymbolKind::LifetimeParam => "lifetime",
+ SymbolKind::Local => "variable",
+ SymbolKind::Macro => "macro",
SymbolKind::Module => "module",
+ SymbolKind::SelfParam => "self_keyword",
+ SymbolKind::Static => "static",
+ SymbolKind::Struct => "struct",
+ SymbolKind::Tool => "tool",
SymbolKind::Trait => "trait",
- SymbolKind::Function => "function",
SymbolKind::TypeAlias => "type_alias",
SymbolKind::TypeParam => "type_param",
- SymbolKind::ConstParam => "const_param",
- SymbolKind::LifetimeParam => "lifetime",
- SymbolKind::Macro => "macro",
- SymbolKind::Local => "variable",
- SymbolKind::Label => "label",
+ SymbolKind::Union => "union",
SymbolKind::ValueParam => "value_param",
- SymbolKind::SelfParam => "self_keyword",
- SymbolKind::Impl => "self_type",
+ SymbolKind::Variant => "enum_variant",
},
HlTag::Attribute => "attribute",
HlTag::BoolLiteral => "bool_literal",
- HlTag::BuiltinAttr => "builtin_attr",
HlTag::BuiltinType => "builtin_type",
HlTag::ByteLiteral => "byte_literal",
HlTag::CharLiteral => "char_literal",