sourcegraph / lsif-go

Language Server Indexing Format (LSIF) generator for Go
https://lsif.dev/
MIT License
116 stars 20 forks source link

fix: Don't emit duplicate `next` edges #214

Closed tjdevries closed 3 years ago

tjdevries commented 3 years ago

Before:

2) vertex 453 has multiple result sets
        on line #457: {457 edge next {453 454 [] 0}}
        on line #455: {455 edge next {453 454 [] 0}}

In between (I have updated lsif-validate to make a better message for this case):

2) duplicate edges deteced from 453 -> 454
        on line #455: {455 edge next {453 454 [] 0}}
        on line #457: {457 edge next {453 454 [] 0}}

After:

<sweet sweet nothingness>
tjdevries commented 3 years ago

Related: https://github.com/sourcegraph/sourcegraph/pull/27261