@@ -104,7 +104,6 @@ private ScipSymbol CreateScipSymbol(ISymbol? sym)
104104 return result ;
105105 }
106106
107-
108107 private ScipSymbol CreateLocalScipSymbol ( ISymbol sym )
109108 {
110109 var local = _locals . GetValueOrDefault ( sym , ScipSymbol . Empty ) ;
@@ -202,19 +201,17 @@ private static string MethodDisambiguator(ISymbol sym)
202201
203202 private readonly string [ ] _isIgnoredRelationshipSymbol =
204203 {
205- " System/Object#" ,
206- " System/Enum#" ,
207- " System/ValueType#" ,
208- } ;
204+ " System/Object#" ,
205+ " System/Enum#" ,
206+ " System/ValueType#" ,
207+ } ;
209208
210209 // Returns true if this symbol should not be emitted as a SymbolInformation relationship symbol.
211210 // The reason we ignore these symbols is because they appear automatically for a large number of
212211 // symbols putting pressure on our backend to index the inverted index. It's not particularly useful anyways
213212 // to query all the implementations of something like System/Object#.
214- private bool IsIgnoredRelationshipSymbol ( string symbol )
215- {
216- return _isIgnoredRelationshipSymbol . Any ( symbol . EndsWith ) ;
217- }
213+ private bool IsIgnoredRelationshipSymbol ( string symbol ) =>
214+ _isIgnoredRelationshipSymbol . Any ( symbol . EndsWith ) ;
218215
219216 public void VisitOccurrence ( ISymbol ? symbol , Location location , bool isDefinition )
220217 {
@@ -326,7 +323,6 @@ public void VisitOccurrence(ISymbol? symbol, Location location, bool isDefinitio
326323 }
327324 }
328325
329-
330326 // Returns explicitly and implicitly implemented interface methods by the given symbol method.
331327 // The Roslyn API has a `ExplicitInterfaceImplementations` that does not return implicitly implemented
332328 // methods.
@@ -345,22 +341,27 @@ private static IEnumerable<ISymbol> InterfaceImplementations(IMethodSymbol symbo
345341 }
346342 }
347343
348-
349344 // Converts a Roslyn location into a SCIP range.
350345 private static IEnumerable < int > LocationToRange ( Location location )
351346 {
352347 var span = location . GetMappedLineSpan ( ) ;
353348 if ( span . StartLinePosition . Line == span . EndLinePosition . Line )
354349 {
355350 return new [ ]
356- { span . StartLinePosition . Line , span . StartLinePosition . Character , span . EndLinePosition . Character } ;
351+ {
352+ span . StartLinePosition . Line ,
353+ span . StartLinePosition . Character ,
354+ span . EndLinePosition . Character
355+ } ;
357356 }
358357
359358 return new [ ]
360- {
361- span . StartLinePosition . Line , span . StartLinePosition . Character , span . EndLinePosition . Line ,
362- span . EndLinePosition . Character
363- } ;
359+ {
360+ span . StartLinePosition . Line ,
361+ span . StartLinePosition . Character ,
362+ span . EndLinePosition . Line ,
363+ span . EndLinePosition . Character
364+ } ;
364365 }
365366
366367 private static bool IsLocalSymbol ( ISymbol sym )
0 commit comments