class SyntaxTree::Redo
Redo
represents the use of the redo
keyword.
redo
Attributes
Public Class Methods
Source
# File lib/syntax_tree/node.rb, line 9039 def initialize(location:) @location = location @comments = [] end
Public Instance Methods
Source
# File lib/syntax_tree/node.rb, line 9044 def accept(visitor) visitor.visit_redo(self) end
Source
# File lib/syntax_tree/node.rb, line 9048 def child_nodes [] end
Also aliased as: deconstruct
Source
# File lib/syntax_tree/node.rb, line 9052 def copy(location: nil) node = Redo.new(location: location || self.location) node.comments.concat(comments.map(&:copy)) node end
Source
# File lib/syntax_tree/node.rb, line 9061 def deconstruct_keys(_keys) { location: location, comments: comments } end