From eeda2882f313fd7e19a969e68544944041e44cae Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 14 Oct 2019 00:50:22 -0700 Subject: [PATCH] Set SymbolKind::File --- src/indexer.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/indexer.cc b/src/indexer.cc index b2822415..e6ab044b 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -784,6 +784,7 @@ public: SourceRange sr = origD->getSourceRange(); entity->def.spell = {use, fromTokenRangeDefaulted(sm, lang, sr, fid, loc)}; + entity->def.parent_kind = SymbolKind::File; getKind(cast(sem_dc), entity->def.parent_kind); } else if (is_decl) { SourceRange sr = origD->getSourceRange();