class RBS::AST::Declarations::Global
def ==(other)
def ==(other) other.is_a?(Global) && other.name == name && other.type == type end
def hash
def hash self.class.hash ^ name.hash ^ type.hash end
def initialize(name:, type:, location:, comment:)
def initialize(name:, type:, location:, comment:) @name = name @type = type @location = location @comment = comment end
def to_json(state = _ = nil)
def to_json(state = _ = nil) { declaration: :global, name: name, type: type, location: location, comment: comment }.to_json(state) end