private static NavigationBarItem CreateNavigationBarItem(SymbolInformation symbolInformation, SourceText text, ImmutableArray <NavigationBarItem> children) { try { var name = symbolInformation.Name; var glyph = ProtocolConversions.SymbolKindToGlyph(symbolInformation.Kind); var textSpan = ProtocolConversions.RangeToTextSpan(symbolInformation.Location.Range, text); return(new RemoteNavigationBarItem(name, glyph, ImmutableArray.Create(textSpan), children)); } catch (ArgumentOutOfRangeException ex) when(FatalError.ReportWithoutCrash(ex)) { return(null); } }