CodeQL library for Java/Kotlin
codeql/java-all 1.1.2-dev (changelog, source)
Search

Member predicate VarWrite::getASource

Gets a source of the assignment that executes this variable write.

For assignments using the = operator, the source expression is simply the RHS of the assignment.

Note that for writes occurring on the LHS of compound assignment operators (such as (+=), both the RHS and the LHS of the compound assignment are source expressions of the assignment.

Expr getASource()