class YARP::SourceFileNode
^^^^^^^^
__FILE__
Represents the use of the ‘__FILE__` keyword.
def accept(visitor)
def accept(visitor) visitor.visit_source_file_node(self) end
def child_nodes
def child_nodes [] end
def comment_targets
def comment_targets [] end
def copy(**params)
def copy(**params) SourceFileNode.new( params.fetch(:filepath) { filepath }, params.fetch(:location) { location }, ) end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { filepath: filepath, location: location } end
def initialize(filepath, location)
def initialize(filepath, location) @filepath = filepath @location = location end
def inspect(inspector = NodeInspector.new)
def inspect(inspector = NodeInspector.new) inspector << inspector.header(self) inspector << "└── filepath: #{filepath.inspect}\n" inspector.to_str end