class Bpl::AST::AssertStatement
Public Instance Methods
abstract() { |{ description: "strengthening assertion", weight: 10e3, action: proc do replace_children(:expression, bpl("false")) end }| ... }
click to toggle source
# File lib/bpl/passes/transformation/abstraction.rb, line 157 def abstract unless expression.is_a?(BooleanLiteral) yield({ description: "strengthening assertion", weight: 10e3, action: Proc.new do replace_children(:expression, bpl("false")) end }) end end
show(&blk)
click to toggle source
# File lib/bpl/ast/statement.rb, line 18 def show(&blk) "#{yield :assert} #{show_attrs(&blk)} #{yield @expression};".fmt end