In Files

  • rbs-1.0.4/lib/rbs/errors.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

RBS::RecursiveAliasDefinitionError

Attributes

defs[R]
type[R]

Public Class Methods

new(type:, defs:) click to toggle source
 
               # File rbs-1.0.4/lib/rbs/errors.rb, line 325
def initialize(type,, defs))
  @type = type
  @defs = defs

  super "#{Location.to_string location}: Recursive aliases in #{type}: #{defs.map(&:name).join(", ")}"
end
            

Public Instance Methods

location() click to toggle source
 
               # File rbs-1.0.4/lib/rbs/errors.rb, line 332
def location
  first_def = defs.first or raise
  original = first_def.original or raise
  original.location
end