Hi,I started working on sonar custom-rule recently so i am new to it. While programming was not able to access the "value" of a "variable".
e.g. Consider this simple example
// Input program filepublic void myMethod(){String a = "Name";String b ="Address"myMethod2(b);}How do i get the value and name of variable "a" and "b" for above example.
I have tried using LiteralTree but i am only able to get the value and using Identifier Tree i am only able to get the name of the identifier.
How do i get the name and the value of a variable/identifier?
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/fa8b0850-d0bb-43f0-96f7-9df8d3a285ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tibor Blenessy | SonarSource
Language Analyzer Developer