Class: Jade::Frontend::SemanticAnalysis::Error::OrphanImplementation
- Defined in:
- lib/jade/frontend/semantic_analysis/error/orphan_implementation.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(entry, span, interface:, type:) ⇒ OrphanImplementation
constructor
A new instance of OrphanImplementation.
- #message ⇒ Object
Methods inherited from Error
#candidates, #label, #notes, #queried_name, #to_diagnostic
Constructor Details
#initialize(entry, span, interface:, type:) ⇒ OrphanImplementation
Returns a new instance of OrphanImplementation.
6 7 8 9 10 |
# File 'lib/jade/frontend/semantic_analysis/error/orphan_implementation.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 15 |
# File 'lib/jade/frontend/semantic_analysis/error/orphan_implementation.rb', line 12 def "Cannot implement #{@interface} for #{@type} here: " \ "only the owner of the interface or the type can add implementations" end |