github / github/codeql

Java Get Assignment Node In Dataflow Path

未关闭
#17,745 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
CodeQL
星标
10.1k
派生
2.1k
平均合并
2 天 15 小时
30 天内合并 PR
141

描述

Hello,

I am analyzing the dataflow paths for some of my queries and noticing some steps are being left out—specifically, the steps related to assignments. For example,

```
String value1 = "Hello";

String value2 = value1;

print(value2)
```

The dataflow path for this would be

value1 - from `String value1 = "Hello";`
value1 - from `String value2 = value1;`
value2 from `print(value2)`

Is there a way to also have value2 from `value1 - from `String value2 = value1;` inserted as step 3? So that it is

value1 - from `String value1 = "Hello";`
value1 - from `String value2 = value1;`
value2 - from `String value2 = value1;`
value2 from `print(value2)`

So that it is easier to follow the assignments? It's simple in this example, however, it can become confusing in more complex situations.

Thank you

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。