Git Product home page Git Product logo

Comments (4)

kraigher avatar kraigher commented on June 3, 2024

Yes this is probably a good first issue to work on if you want to contribute.

from rust_hdl.

SethGower avatar SethGower commented on June 3, 2024

I am going to look into implementing this. I am new to the source code, although have some limited experience with Rust. If you have any tips on ideas on how to implement this, feel free to let me know.

At first perusal of the project, my plan is to investigate using the document_symbols(...) function to see if that will give me a starting point for creating the LSIF dump.

from rust_hdl.

kraigher avatar kraigher commented on June 3, 2024

Document symbols is a good place to start. It will give you the location where every signal etc (named entity) is defined.

If you also need every place where a named entity is referenced you would use the Searcher trait to visit every reference in the AST.

I do not recommend using find all references for every named entity individually since it will traverse the entire AST every time. This is a lot more inefficient than doing it once for all references.

from rust_hdl.

SethGower avatar SethGower commented on June 3, 2024

Ok, thanks for the tip! I was planning on going the latter method, so thanks. I'll update this thread with progress/questions as I go along.

from rust_hdl.

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.