mirror of
https://github.com/github/codeql.git
synced 2026-06-19 03:41:07 +02:00
Ruby: improve return type
This commit is contained in:
@@ -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 ..." }
|
||||
|
||||
|
||||
@@ -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) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user