class SyntaxTree::ReturnNode
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/syntax_tree/node.rbs class SyntaxTree::ReturnNode < SyntaxTree::Node def accept: (Visitor visitor) -> untyped def initialize: (arguments: SyntaxTree::Args, location: SyntaxTree::Location) -> void end
return value
Return represents using the return
keyword with arguments.
def ===(other)
def ===(other) other.is_a?(ReturnNode) && arguments === other.arguments end
def accept(visitor)
Experimental RBS support (using type sampling data from the type_fusion
project).
def accept: (Visitor visitor) -> untyped
This signature was generated using 3 samples from 1 application.
def accept(visitor) visitor.visit_return(self) end
def child_nodes
def child_nodes [arguments] end
def copy(arguments: nil, location: nil)
def copy(arguments: nil, location: nil) node = ReturnNode.new( arguments: arguments || self.arguments, location: location || self.location ) node.comments.concat(comments.map(&:copy)) node end
def deconstruct_keys(_keys)
def deconstruct_keys(_keys) { arguments: arguments, location: location, comments: comments } end
def format(q)
def format(q) FlowControlFormatter.new("return", self).format(q) end
def initialize(arguments:, location:)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (arguments: SyntaxTree::Args, location: SyntaxTree::Location) -> void
This signature was generated using 1 sample from 1 application.
def initialize(arguments:, location:) @arguments = arguments @location = location @comments = [] end