mirror of
https://github.com/github/codeql.git
synced 2026-05-30 11:01:24 +02:00
Ruby: Minor cleanup, Callable is a StmtSequence.
This commit is contained in:
@@ -342,7 +342,7 @@ class Lambda extends Callable, BodyStmt, TLambda {
|
||||
}
|
||||
|
||||
/** A block. */
|
||||
class Block extends Callable, StmtSequence, Scope, TBlock {
|
||||
class Block extends Callable, Scope, TBlock {
|
||||
/**
|
||||
* Gets a local variable declared by this block.
|
||||
* For example `local` in `{ | param; local| puts param }`.
|
||||
@@ -358,8 +358,6 @@ class Block extends Callable, StmtSequence, Scope, TBlock {
|
||||
override AstNode getAChild(string pred) {
|
||||
result = Callable.super.getAChild(pred)
|
||||
or
|
||||
result = StmtSequence.super.getAChild(pred)
|
||||
or
|
||||
pred = "getLocalVariable" and result = this.getLocalVariable(_)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user