123456789_123456789_123456789_123456789_123456789_

Exception: RBS::CyclicClassAliasDefinitionError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, BaseError, StandardError
Instance Chain:
self, DetailedMessageable, BaseError, StandardError
Inherits: RBS::BaseError
Defined in: lib/rbs/errors.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(entry) ⇒ CyclicClassAliasDefinitionError

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 550

def initialize(entry)
  @alias_entry = entry

  super "#{Location.to_string(entry.decl.location&.[](:old_name))}: A #{alias_entry.decl.new_name} is a cyclic definition"
end

Instance Attribute Details

#alias_entry (readonly)

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 548

attr_reader :alias_entry

Instance Method Details

#location

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 556

def location
  @alias_entry.decl.location
end