Show if tag is a def/ref in the cli
This commit is contained in:
parent
8d7459ed57
commit
9bf4939b9a
1 changed files with 2 additions and 1 deletions
|
|
@ -42,9 +42,10 @@ pub fn generate_tags(loader: &Loader, scope: Option<&str>, paths: &[String]) ->
|
|||
let tag = tag?;
|
||||
write!(
|
||||
&mut stdout,
|
||||
" {:<8} {:<40}\t{:>9}-{:<9}",
|
||||
" {:<8} {:<40}\t [{}] {:>9}-{:<9}",
|
||||
tag.kind,
|
||||
str::from_utf8(&source[tag.name_range]).unwrap_or(""),
|
||||
if tag.is_definition { "definition" } else { "reference" },
|
||||
tag.span.start,
|
||||
tag.span.end,
|
||||
)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue