mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Cleanups
This commit is contained in:
@@ -3,11 +3,11 @@ import Variables.LoopVariableCapture.LoopVariableCaptureQuery
|
||||
import utils.test.InlineExpectationsTest
|
||||
|
||||
module MethodArgTest implements TestSig {
|
||||
string getARelevantTag() { result = ["capturedVar"] }
|
||||
string getARelevantTag() { result = "capturedVar" }
|
||||
|
||||
predicate hasActualResult(Location location, string element, string tag, string value) {
|
||||
exists(CallableExpr capturing, AstNode loop, Variable var |
|
||||
escapingCapture(capturing, loop, var, _, _) and
|
||||
exists(CallableExpr capturing, Variable var |
|
||||
escapingCapture(capturing, _, var, _, _) and
|
||||
element = capturing.toString() and
|
||||
location = capturing.getLocation() and
|
||||
tag = "capturedVar" and
|
||||
|
||||
Reference in New Issue
Block a user