Class: Jade::Frontend::SemanticAnalysis::Error::CircularExtends
- Defined in:
- lib/jade/frontend/semantic_analysis/error/circular_extends.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(entry, span, interface:, type:) ⇒ CircularExtends
constructor
A new instance of CircularExtends.
- #message ⇒ Object
Methods inherited from Error
#candidates, #label, #notes, #queried_name, #to_diagnostic
Constructor Details
#initialize(entry, span, interface:, type:) ⇒ CircularExtends
Returns a new instance of CircularExtends.
6 7 8 9 10 |
# File 'lib/jade/frontend/semantic_analysis/error/circular_extends.rb', line 6 def initialize(entry, span, interface:, type:) super(entry:, span:) @interface = interface @type = type end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/jade/frontend/semantic_analysis/error/circular_extends.rb', line 12 def "circular extends detected: #{@interface} for #{@type} is part of a cycle" end |