Giter Site home page Giter Site logo

Comments (7)

zurk avatar zurk commented on August 19, 2024 1

@dennwc I use Python client.
I need this field in some complex traversing scenarios. For example, if I need to find the shortest path between two leaves. So it is not about XPath queries, more about class property like node.parent

from sdk.

juanjux avatar juanjux commented on August 19, 2024

It's an interesting request. We approved adding an "structural parent" to some nodes, that would link them with the "high level structure" (function, class, etc) where they belong, even if they're several levels below. Anyway we're in the middle of a complete rewrite of the SDK and the annotations but after that is completed we could evaluate this and how to do it.

from sdk.

zurk avatar zurk commented on August 19, 2024

ok, it can wait, I have workarounds.

from sdk.

dennwc avatar dennwc commented on August 19, 2024

@zurk As a retrospective, have you used the SDK or Go/Python client?

from sdk.

juanjux avatar juanjux commented on August 19, 2024

I definitely used the "@internalRole" selector in the implementation of many SonarSource checks, which is not exactly the same, but I can imagine getting the parent node could be useful. But just as a side note, with XPath you can get the parent of the node with the query "/parent::*"

from sdk.

dennwc avatar dennwc commented on August 19, 2024

Yes, this is why I'm trying to figure where exactly the parent field can be helpful. Probably the native client data structures.

from sdk.

zurk avatar zurk commented on August 19, 2024

@dennwc any updates? Maybe this issue should be moved to python client?

from sdk.

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.