class SyntaxTree::VoidStmt
VoidStmt
represents an empty lexical block of code.
;;
Attributes
Public Class Methods
Source
# File lib/syntax_tree/node.rb, line 11798 def initialize(location:) @location = location @comments = [] end
Public Instance Methods
Source
# File lib/syntax_tree/node.rb, line 11827 def ===(other) other.is_a?(VoidStmt) end
Source
# File lib/syntax_tree/node.rb, line 11803 def accept(visitor) visitor.visit_void_stmt(self) end
Source
# File lib/syntax_tree/node.rb, line 11807 def child_nodes [] end
Also aliased as: deconstruct
Source
# File lib/syntax_tree/node.rb, line 11811 def copy(location: nil) node = VoidStmt.new(location: location || self.location) node.comments.concat(comments.map(&:copy)) node end
Source
# File lib/syntax_tree/node.rb, line 11820 def deconstruct_keys(_keys) { location: location, comments: comments } end