Files
codeql/ql/test/query-tests/RedundantCode/DeadStoreOfLocal/DeadStoreOfLocal.expected
Chris Smowton 3b927f3b6b CFG: fix lastNode relating to assignments with underscores on the LHS
For example, "x, _ := a, b" would produce an incorrect CSV that branched to the next statement after evaluating "b", skipping the assignment to 'x'. We already had test coverage for function returns, so I'm reasonably confident this only affects parallel assigns, not destructuring ones like "x, y := f()".
2020-11-03 12:00:54 +00:00

31 lines
2.5 KiB
Plaintext

| main.go:25:2:25:2 | assignment to x | This definition of x is never used. |
| testdata.go:32:2:32:2 | assignment to x | This definition of x is never used. |
| testdata.go:37:2:37:2 | assignment to x | This definition of x is never used. |
| testdata.go:61:2:61:2 | assignment to x | This definition of x is never used. |
| testdata.go:67:2:67:2 | assignment to x | This definition of x is never used. |
| testdata.go:99:2:99:2 | assignment to x | This definition of x is never used. |
| testdata.go:101:3:101:3 | assignment to x | This definition of x is never used. |
| testdata.go:108:2:108:2 | assignment to x | This definition of x is never used. |
| testdata.go:110:3:110:3 | assignment to x | This definition of x is never used. |
| testdata.go:128:2:128:2 | assignment to x | This definition of x is never used. |
| testdata.go:130:3:130:3 | assignment to x | This definition of x is never used. |
| testdata.go:131:3:131:3 | assignment to x | This definition of x is never used. |
| testdata.go:134:3:134:3 | assignment to x | This definition of x is never used. |
| testdata.go:143:3:143:3 | assignment to x | This definition of x is never used. |
| testdata.go:164:3:164:3 | assignment to x | This definition of x is never used. |
| testdata.go:172:3:172:3 | assignment to x | This definition of x is never used. |
| testdata.go:180:3:180:5 | increment statement | This definition of x is never used. |
| testdata.go:201:2:201:2 | assignment to x | This definition of x is never used. |
| testdata.go:262:2:262:2 | assignment to x | This definition of x is never used. |
| testdata.go:268:2:268:2 | assignment to x | This definition of x is never used. |
| testdata.go:309:2:309:2 | assignment to a | This definition of a is never used. |
| testdata.go:321:2:321:2 | assignment to a | This definition of a is never used. |
| testdata.go:387:3:387:3 | assignment to x | This definition of x is never used. |
| testdata.go:432:3:432:3 | assignment to x | This definition of x is never used. |
| testdata.go:434:3:434:3 | assignment to x | This definition of x is never used. |
| testdata.go:441:2:441:2 | assignment to x | This definition of x is never used. |
| testdata.go:488:3:488:3 | assignment to x | This definition of x is never used. |
| testdata.go:542:3:542:3 | assignment to x | This definition of x is never used. |
| testdata.go:580:4:580:4 | assignment to x | This definition of x is never used. |
| testdata.go:629:3:629:4 | assignment to v1 | This definition of v1 is never used. |