class Unparser::Emitter
Public Instance Methods
fix_newlines()
click to toggle source
# File lib/tweezer/unparser/emitter.rb, line 12 def fix_newlines (node.loc.line - buffer.current_line).times { buffer.nl } if node.loc end
write_to_buffer()
click to toggle source
# File lib/tweezer/unparser/emitter.rb, line 3 def write_to_buffer emit_comments_before if buffer.fresh_line? fix_newlines dispatch comments.consume(node) emit_eof_comments if parent.is_a?(Root) self end