class SyntaxTree::Redo
Redo
represents the use of the redo
keyword.
redo
Attributes
Public Class Methods
new(location:)
click to toggle source
# File lib/syntax_tree/node.rb, line 9024 def initialize(location:) @location = location @comments = [] end
Public Instance Methods
===(other)
click to toggle source
# File lib/syntax_tree/node.rb, line 9054 def ===(other) other.is_a?(Redo) end
accept(visitor)
click to toggle source
# File lib/syntax_tree/node.rb, line 9029 def accept(visitor) visitor.visit_redo(self) end
child_nodes()
click to toggle source
# File lib/syntax_tree/node.rb, line 9033 def child_nodes [] end
Also aliased as: deconstruct
copy(location: nil)
click to toggle source
# File lib/syntax_tree/node.rb, line 9037 def copy(location: nil) node = Redo.new(location: location || self.location) node.comments.concat(comments.map(&:copy)) node end
deconstruct_keys(_keys)
click to toggle source
# File lib/syntax_tree/node.rb, line 9046 def deconstruct_keys(_keys) { location: location, comments: comments } end
format(q)
click to toggle source
# File lib/syntax_tree/node.rb, line 9050 def format(q) q.text("redo") end