module Unparser::Writer
def round_trips?(source:)
def round_trips?(source:) parser = Unparser.parser local_variable_scope.local_variables_for_node(node).each do |local_variable| parser.declare_local_variable(local_variable) end buffer = Buffer.new buffer.write_encoding(explicit_encoding) if explicit_encoding buffer.write(source) node.eql?(parser.parse(Unparser.buffer(buffer.content))) rescue Parser::SyntaxError false end