mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Python: Apply suggestions from code review
Co-authored-by: yoff <lerchedahl@gmail.com>
This commit is contained in:
committed by
GitHub
parent
b3f29b0a53
commit
a04c78ab94
@@ -19,7 +19,7 @@ class UseTest extends InlineExpectationsTest {
|
||||
)
|
||||
or
|
||||
exists(EssaVariable var | AdjacentUses::firstUse(var, nodeTo) |
|
||||
prevLoc = var.getDefinition().getLocation() and
|
||||
prevLoc = var.getLocation() and
|
||||
name = var.getName() and
|
||||
tag = "def-use"
|
||||
)
|
||||
@@ -31,7 +31,7 @@ class UseTest extends InlineExpectationsTest {
|
||||
or
|
||||
exists(EssaVariable var | AdjacentUses::firstUse(var, _) |
|
||||
value = var.getName() and
|
||||
location = var.getDefinition().getLocation() and
|
||||
location = var.getLocation() and
|
||||
element = var.getName() and
|
||||
name = var.getName() and
|
||||
tag = "def"
|
||||
|
||||
Reference in New Issue
Block a user