class SyntaxTree::VCall
Experimental RBS support (using type sampling data from the type_fusion project).
# sig/syntax_tree/node.rbs class SyntaxTree::VCall < SyntaxTree::Node def accept: (Visitor visitor) -> untyped def child_nodes: () -> untyped def initialize: (value: SyntaxTree::Ident, location: SyntaxTree::Location) -> void end
variable
local variable or a method call.
VCall represent any plain named object with Ruby that could be either a
def ===(other)
def ===(other) other.is_a?(VCall) && value === other.value 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_vcall(self) end
def access_control?
def access_control? @access_control ||= %w[private protected public].include?(value.value) end
def arity
def arity 0 end
def child_nodes
Experimental RBS support (using type sampling data from the type_fusion project).
def child_nodes: () -> untyped
This signature was generated using 1 sample from 1 application.
def child_nodes [value] end
def copy(value: nil, location: nil)
def copy(value: nil, location: nil) node = VCall.new( value: value || self.value, location: location || self.location ) node.comments.concat(comments.map(&:copy)) node end
def deconstruct_keys(_keys)
def deconstruct_keys(_keys) { value: value, location: location, comments: comments } end
def format(q)
def format(q) q.format(value) end
def initialize(value:, location:)
Experimental RBS support (using type sampling data from the type_fusion project).
def initialize: (value: SyntaxTree::Ident, location: SyntaxTree::Location) -> void
This signature was generated using 6 samples from 1 application.
def initialize(value:, location:) @value = value @location = location @comments = [] end