class SyntaxTree::VoidStmt
VoidStmt
represents an empty lexical block of code.
;;
Attributes
Public Class Methods
new(location:)
click to toggle source
# File lib/syntax_tree/node.rb, line 11779 def initialize(location:) @location = location @comments = [] end
Public Instance Methods
===(other)
click to toggle source
# File lib/syntax_tree/node.rb, line 11808 def ===(other) other.is_a?(VoidStmt) end
accept(visitor)
click to toggle source
# File lib/syntax_tree/node.rb, line 11784 def accept(visitor) visitor.visit_void_stmt(self) end
child_nodes()
click to toggle source
# File lib/syntax_tree/node.rb, line 11788 def child_nodes [] end
Also aliased as: deconstruct
copy(location: nil)
click to toggle source
# File lib/syntax_tree/node.rb, line 11792 def copy(location: nil) node = VoidStmt.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 11801 def deconstruct_keys(_keys) { location: location, comments: comments } end
format(q)
click to toggle source
# File lib/syntax_tree/node.rb, line 11805 def format(q) end