Skip to content

Commit

Permalink
Set SymbolKind::File
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Oct 14, 2019
1 parent 6a488bf commit eeda288
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/indexer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,7 @@ class IndexDataConsumer : public index::IndexDataConsumer {
SourceRange sr = origD->getSourceRange();
entity->def.spell = {use,
fromTokenRangeDefaulted(sm, lang, sr, fid, loc)};
entity->def.parent_kind = SymbolKind::File;
getKind(cast<Decl>(sem_dc), entity->def.parent_kind);
} else if (is_decl) {
SourceRange sr = origD->getSourceRange();
Expand Down

0 comments on commit eeda288

Please sign in to comment.