mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Ruby: Fix bad name of lambda in test
This isn't the identity function, so it's confusing for it to be named so.
This commit is contained in:
@@ -710,7 +710,7 @@ calls/calls.rb:
|
||||
# 350| getAnOperand/getLeftOperand: [LocalVariableAccess] y
|
||||
# 350| getAnOperand/getRightOperand: [IntegerLiteral] 1
|
||||
# 351| getStmt: [AssignExpr] ... = ...
|
||||
# 351| getAnOperand/getLeftOperand: [LocalVariableAccess] id
|
||||
# 351| getAnOperand/getLeftOperand: [LocalVariableAccess] one
|
||||
# 351| getAnOperand/getRightOperand: [Lambda] -> { ... }
|
||||
# 351| getParameter: [SimpleParameter] x
|
||||
# 351| getDefiningAccess: [LocalVariableAccess] x
|
||||
|
||||
@@ -348,7 +348,7 @@ foo(X:)
|
||||
|
||||
# calls inside lambdas
|
||||
y = 1
|
||||
id = ->(x) { y }
|
||||
one = ->(x) { y }
|
||||
f = ->(x) { foo x }
|
||||
g = ->(x) { unknown_call }
|
||||
h = -> (x) do
|
||||
|
||||
Reference in New Issue
Block a user