Class: Jade::Frontend::SemanticAnalysis::Error::UnknownImplementationFunction

Inherits:
Error
  • Object
show all
Defined in:
lib/jade/frontend/semantic_analysis/error/unknown_implementation_function.rb

Instance Attribute Summary

Attributes inherited from Error

#entry, #span

Instance Method Summary collapse

Methods inherited from Error

#candidates, #label, #notes, #queried_name, #to_diagnostic

Constructor Details

#initialize(entry, span, interface:, fn_name:) ⇒ UnknownImplementationFunction

Returns a new instance of UnknownImplementationFunction.



6
7
8
9
10
# File 'lib/jade/frontend/semantic_analysis/error/unknown_implementation_function.rb', line 6

def initialize(entry, span, interface:, fn_name:)
  super(entry:, span:)
  @interface = interface
  @fn_name   = fn_name
end

Instance Method Details

#messageObject



12
13
14
# File 'lib/jade/frontend/semantic_analysis/error/unknown_implementation_function.rb', line 12

def message
  "`#{@fn_name}` is not a function of interface #{@interface}"
end