class Macro::OneLineParenedNode

Public Instance Methods

reducer_ident() click to toggle source
# File lib/macro/ReduceWithsFor_RedParse_RedParse__MacroMixin_RedParse__WithMacros_1_8.rb, line 18877
def reducer_ident
  :OneLineParenedNode
end
unparse(o=default_unparse_options) click to toggle source

hacky way to get unparser to not emit newlines in most cases I think this isn’t necessary now that forms (and subnodes) have their linenums zeroed on creation

Calls superclass method
# File lib/macro.rb, line 810
def unparse(o=default_unparse_options)
  old_linenum=o[:linenum]
  o[:linenum]=2**128
  result=super(o)
  diff=o[:linenum]-2**128
  o[:linenum]=old_linenum+diff
  return result
end