class SyntaxTree::Super

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/syntax_tree/node.rbs

class SyntaxTree::Super < SyntaxTree::Node
  def initialize: (arguments: SyntaxTree::ArgParen, location: SyntaxTree::Location) -> void
end


super(value)
use parentheses.
Super represents using the super keyword with arguments. It can optionally

def ===(other)

def ===(other)
  other.is_a?(Super) && arguments === other.arguments
end

def accept(visitor)

def accept(visitor)
  visitor.visit_super(self)
end

def child_nodes

def child_nodes
  [arguments]
end

def copy(arguments: nil, location: nil)

def copy(arguments: nil, location: nil)
  node =
    Super.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)
  q.group do
    q.text("super")
    if arguments.is_a?(ArgParen)
      q.format(arguments)
    else
      q.text(" ")
      q.nest("super ".length) { q.format(arguments) }
    end
  end
end

def initialize(arguments:, location:)

Experimental RBS support (using type sampling data from the type_fusion project).

def initialize: (arguments: SyntaxTree::ArgParen, location: SyntaxTree::Location) -> void

This signature was generated using 1 sample from 1 application.

def initialize(arguments:, location:)
  @arguments = arguments
  @location = location
  @comments = []
end