Ruby: improve return type

This commit is contained in:
Anders Schack-Mulligen
2026-06-17 08:47:14 +02:00
parent 8778e881cb
commit 027f302932
2 changed files with 2 additions and 2 deletions

View File

@@ -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 ..." }

View File

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