class YARP::MissingNode
Represents a node that is missing from the source and results in a syntax error.
Public Class Methods
new(location)
click to toggle source
def initialize: (location: Location
) -> void
# File yarp/node.rb, line 7409 def initialize(location) @location = location end
Public Instance Methods
accept(visitor)
click to toggle source
def accept: (visitor: Visitor
) -> void
# File yarp/node.rb, line 7414 def accept(visitor) visitor.visit_missing_node(self) end
child_nodes()
click to toggle source
def child_nodes
: () -> Array[nil | Node]
# File yarp/node.rb, line 7419 def child_nodes [] end
Also aliased as: deconstruct
comment_targets()
click to toggle source
def comment_targets
: () -> Array[Node | Location]
# File yarp/node.rb, line 7424 def comment_targets [] end
copy(**params)
click to toggle source
def copy: (**params) -> MissingNode
# File yarp/node.rb, line 7429 def copy(**params) MissingNode.new( params.fetch(:location) { location }, ) end
deconstruct_keys(keys)
click to toggle source
inspect(inspector = NodeInspector.new)
click to toggle source
# File yarp/node.rb, line 7443 def inspect(inspector = NodeInspector.new) inspector << inspector.header(self) inspector.to_str end