class RedParse::ListInNode::ParenedNode

Attributes

after_comma[RW]
after_equals[RW]
lvalue[W]

Public Class Methods

new(lparen=nil,body=nil,rparen=nil) click to toggle source
# File lib/redparse/node.rb, line 2034
def initialize(lparen=nil,body=nil,rparen=nil)
  return unless body
  @offset=lparen.offset
  self[0]=body
end

Public Instance Methods

begin_parsetree(o)
Alias for: parsetree
image() click to toggle source
# File lib/redparse/node.rb, line 2042
def image; "(#{body.image})" end
lvalue() click to toggle source
# File lib/redparse/node.rb, line 2068
def lvalue
  return @lvalue if defined? @lvalue
  @lvalue=true
end
op?() click to toggle source
# File lib/redparse/node.rb, line 2054
def op?; false end
parsetree(o) click to toggle source
# File lib/redparse/node.rb, line 2056
def parsetree(o)
  body ? body.parsetree(o) : [:nil]
end
Also aliased as: begin_parsetree
rescue_parsetree(o) click to toggle source
# File lib/redparse/node.rb, line 2060
      def rescue_parsetree o
        body ? body.rescue_parsetree(o) : [:nil]
#        result.first==:begin and result=result.last unless o[:ruby187]
#        result
      end
special_conditions!() click to toggle source
# File lib/redparse/node.rb, line 2044
def special_conditions!
    node=body
    node.special_conditions! if node.respond_to? :special_conditions!
end
to_lisp() click to toggle source
# File lib/redparse/node.rb, line 2049
def to_lisp
  huh #what about rescues, else, ensure?
  body.to_lisp
end
unparse(o=default_unparse_options) click to toggle source
# File lib/redparse/node.rb, line 2076
def unparse(o=default_unparse_options)
    "(#{body&&body.unparse(o)})"
end