GithubHelp home page GithubHelp logo

Comments (5)

jinwoo avatar jinwoo commented on June 11, 2024

It looks like one of the anchors is for the declaration and the other is for the xref. @robinp , is there a reason to have a xref here?

from haskell-indexer.

jinwoo avatar jinwoo commented on June 11, 2024

To make it clearer, the xref points to itself.

from haskell-indexer.

jinwoo avatar jinwoo commented on June 11, 2024

Noting what I found so far. The decl in this case is an "implicit" decl because type vars don't have explicit definition sites. So it's correct to have both the decl node and the xref node. The problem is that currently both have the same span.

I saw this comment: https://github.com/google/haskell-indexer/blob/master/haskell-indexer-backend-ghc/src/Language/Haskell/Indexer/Backend/Ghc.hs#L254

As noted there, we can make those implicit decls have no spans. When I do that, this problem goes away.

from haskell-indexer.

jinwoo avatar jinwoo commented on June 11, 2024

Hm. Then we have problems in unit tests. They use declAt to find decl nodes at the given location and then verify that there are xrefs to that decl. I'll have to find a different way to test those.

from haskell-indexer.

jinwoo avatar jinwoo commented on June 11, 2024

Maybe this is not worth fixing. Kythe verifier has a flag --ignore_dups, which can bypass this failing check. We can probably enable it in our test script and be done with this.

from haskell-indexer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.