Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Renaming of ir_instrs to pretty_ir

  • Loading branch information...
commit bf58ef7e21aaa77aa0aa6409e6996b18a2068f1e 1 parent 1cba32b
@komax authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/ast
View
4 bin/ast
@@ -209,7 +209,7 @@ end
module IRPrettyPrinter
- def self.ir_instrs(scope, indent="")
+ def self.pretty_ir(scope, indent="")
instrs = scope.instrs.map do |instr|
indent + instr.to_s
end
@@ -220,7 +220,7 @@ module IRPrettyPrinter
end
def self.print_ir(scope)
- instrs = ir_instrs(scope)
+ instrs = pretty_ir(scope)
instrs.each do |instr|
puts instr
end
Please sign in to comment.
Something went wrong with that request. Please try again.