You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
khemrajrathore
changed the title
Kotlin2Cpg : Missing parameter and parameterAssingn for Annotation Node
Kotlin2Cpg : Missing parameter and parameterAssign for Annotation Node
Apr 9, 2024
Is your feature request related to a problem? Please describe.
Annotation nodes in Kotlin, don't have
parameter
andparameterAssign
nodesDescribe the solution you'd like
Just like Java, Annotation nodes in Kotlin, should have
parameter
andparameterAssign
nodesSteps in Joern
Import the following kotlin code
The following query should return parameter
value
as in Javacpg.annotation.name("Path").parameter.l
The following query should return parameterAssign
/myPath
as in Javacpg.annotation.name("Path").parameterAssign.l
The text was updated successfully, but these errors were encountered: