class RKelly::Nodes::Node
Public Instance Methods
accept(visitor, &block)
click to toggle source
Calls superclass method
# File lib/opal/optimizer/helpers.rb, line 22 def accept (visitor, &block) if @destroyed_by if RKelly::Visitors::ECMAVisitor === visitor "/* destroyed: #{@destroyed_by} */0" end else super end end
destroy!(by)
click to toggle source
# File lib/opal/optimizer/helpers.rb, line 32 def destroy! by @destroyed_by = by end
value_path?(*patterns)
click to toggle source
# File lib/opal/optimizer/helpers.rb, line 14 def value_path?(*patterns) current = self patterns.all? do |pattern| current = current.value pattern === current end end