Skip to content

Commit

Permalink
Merge pull request #1099 from giabao/fix/1098
Browse files Browse the repository at this point in the history
  • Loading branch information
olafurpg authored Apr 19, 2020
2 parents f9fba37 + 9012095 commit e38d4a7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ final class SymtabFromProtobuf(symtab: Symtab) {
def sscope(scope: Option[s.Scope]): List[SymbolInformation] = scope match {
case None => Nil
case Some(sc) =>
if (sc.hardlinks.isEmpty) sc.symlinks.iterator.map(info).toList
else {
if (sc.hardlinks.isEmpty) {
sc.symlinks.flatMap(sym => symtab.info(Symbol(sym))).toList
} else {
sc.infos.iterator.map(i => new SymbolInformation(i)(symtab)).toList
}
}
Expand Down

0 comments on commit e38d4a7

Please sign in to comment.