CodeQL library for Ruby
codeql/ruby-all 0.8.15-dev (changelog, source)
Search

Member predicate UnlessExpr::getThen

Gets the ‘then’ branch of this unless expression. In the following example, the result is the StmtSequence containing foo.

unless a == b then
  foo
else
  bar
end
Stmt getThen()