Bring back a SyntaxType enum

This commit is contained in:
Timothy Clem 2020-06-16 17:09:34 -07:00
parent 9bf4939b9a
commit d802b37791
3 changed files with 105 additions and 23 deletions

View file

@ -43,7 +43,7 @@ pub fn generate_tags(loader: &Loader, scope: Option<&str>, paths: &[String]) ->
write!(
&mut stdout,
" {:<8} {:<40}\t [{}] {:>9}-{:<9}",
tag.kind,
tag.syntax_type,
str::from_utf8(&source[tag.name_range]).unwrap_or(""),
if tag.is_definition { "definition" } else { "reference" },
tag.span.start,