diff --git a/ruby/ql/lib/codeql/ruby/ast/Control.qll b/ruby/ql/lib/codeql/ruby/ast/Control.qll index cf7920968c8..ea54d355469 100644 --- a/ruby/ql/lib/codeql/ruby/ast/Control.qll +++ b/ruby/ql/lib/codeql/ruby/ast/Control.qll @@ -546,7 +546,7 @@ class CaseElseBranch extends AstNode instanceof CaseElseBranchImpl { final override string getAPrimaryQlClass() { result = "CaseElseBranch" } /** Gets the body of this else branch. */ - final Stmt getBody() { result = super.getBody() } + final StmtSequence getBody() { result = super.getBody() } final override string toString() { result = "else ..." } diff --git a/ruby/ql/lib/codeql/ruby/ast/internal/Control.qll b/ruby/ql/lib/codeql/ruby/ast/internal/Control.qll index 095fb85de6f..00076ba996a 100644 --- a/ruby/ql/lib/codeql/ruby/ast/internal/Control.qll +++ b/ruby/ql/lib/codeql/ruby/ast/internal/Control.qll @@ -95,5 +95,5 @@ class InClauseSynth extends InClauseImpl, TInClauseSynth { class CaseElseBranchImpl extends AstNode, TCaseElseBranch { CaseElseBranchImpl() { this = TCaseElseBranchSynth(_, _) } - final Stmt getBody() { synthChild(this, 0, result) } + final StmtSequence getBody() { synthChild(this, 0, result) } }