Shorten to def/ref

This commit is contained in:
Timothy Clem 2020-06-17 10:34:55 -07:00
parent 80f5c52259
commit 929bb40adc

View file

@ -45,7 +45,7 @@ pub fn generate_tags(loader: &Loader, scope: Option<&str>, paths: &[String]) ->
" {:<8} {:<40}\t [{}] {:>9}-{:<9}",
tag.syntax_type,
str::from_utf8(&source[tag.name_range]).unwrap_or(""),
if tag.is_definition { "definition" } else { "reference" },
if tag.is_definition { "def" } else { "ref" },
tag.span.start,
tag.span.end,
)?;