Module: MilkTea::PrettyPrinter

Defined in:
lib/milk_tea/core/pretty_printer.rb,
lib/milk_tea/core/pretty_printer/ir_formatter.rb,
lib/milk_tea/core/pretty_printer/ast_formatter.rb,
lib/milk_tea/core/pretty_printer/base_formatter.rb

Defined Under Namespace

Classes: ASTFormatter, BaseFormatter, IRFormatter

Class Method Summary collapse

Class Method Details

.format_ast(node, trivia: []) ⇒ Object



9
10
11
# File 'lib/milk_tea/core/pretty_printer.rb', line 9

def self.format_ast(node, trivia: [])
  ASTFormatter.new.format(node, trivia:)
end

.format_ir(node) ⇒ Object



13
14
15
# File 'lib/milk_tea/core/pretty_printer.rb', line 13

def self.format_ir(node)
  IRFormatter.new.format(node)
end