Ruby: Minor cleanup, Callable is a StmtSequence.

This commit is contained in:
Anders Schack-Mulligen
2026-05-18 13:05:14 +02:00
parent 8a199f963d
commit cb0fc786c7

View File

@@ -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(_)
}
}