Skip to content

Symbols indexing for Scala misses symbols preceeded with an annotation

Created by: Strum355

While searching for a symbol in maven/org.scala-lang/scala-library called curried (https://sourcegraph.com/search?q=context:global+repo:%5Emaven/org%5C.scala-lang/scala-library%24+curried+type:symbol), I only got results for uncurried. A plain text search (https://sourcegraph.com/search?q=context:global+repo:%5Emaven/org%5C.scala-lang/scala-library%24+%5Cbcurried&patternType=regexp) surfaced the symbols I was actually looking for, with the lines looking like @annotation.unspecialized def curried: T1 => T2 => T3 => R = {. I'm imagining what happened here is that the annotation is throwing it off, with it being on the same line as the symbol. Annotations on the preceding line do not affect it (https://sourcegraph.com/search?q=context:global+repo:%5Emaven/org%5C.scala-lang/scala-library%24+f:scala/collection/Iterator.scala+type:symbol+next&patternType=regexp)