Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin2Cpg : Missing parameter and parameterAssign for Annotation Node #4435

Open
khemrajrathore opened this issue Apr 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@khemrajrathore
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Annotation nodes in Kotlin, don't have parameter and parameterAssign nodes

Describe the solution you'd like
Just like Java, Annotation nodes in Kotlin, should have parameter and parameterAssign nodes

Steps in Joern
Import the following kotlin code

import javax.ws.rs.Path

class MyClass {
    @Path("/myPath")
    fun myMethod() {
        println("Inside myMethod")
    }
}

The following query should return parameter value as in Java
cpg.annotation.name("Path").parameter.l

The following query should return parameterAssign /myPath as in Java
cpg.annotation.name("Path").parameterAssign.l

@khemrajrathore khemrajrathore changed the title Kotlin2Cpg : Missing parameter and parameterAssingn for Annotation Node Kotlin2Cpg : Missing parameter and parameterAssign for Annotation Node Apr 9, 2024
@pandurangpatil pandurangpatil added the enhancement New feature or request label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants