Skip to content

Commit cb0fc78

Browse files
committed
Ruby: Minor cleanup, Callable is a StmtSequence.
1 parent 8a199f9 commit cb0fc78

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ruby/ql/lib/codeql/ruby/ast/Method.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ class Lambda extends Callable, BodyStmt, TLambda {
342342
}
343343

344344
/** A block. */
345-
class Block extends Callable, StmtSequence, Scope, TBlock {
345+
class Block extends Callable, Scope, TBlock {
346346
/**
347347
* Gets a local variable declared by this block.
348348
* For example `local` in `{ | param; local| puts param }`.
@@ -358,8 +358,6 @@ class Block extends Callable, StmtSequence, Scope, TBlock {
358358
override AstNode getAChild(string pred) {
359359
result = Callable.super.getAChild(pred)
360360
or
361-
result = StmtSequence.super.getAChild(pred)
362-
or
363361
pred = "getLocalVariable" and result = this.getLocalVariable(_)
364362
}
365363
}

0 commit comments

Comments
 (0)