Class: CorrespondingNodeNotFoundError

Inherits:
CompilerError show all
Defined in:
lib/compiler_error.rb

Instance Method Summary collapse

Methods inherited from CompilerError

#to_s

Constructor Details

#initialize(member_type_def, node_name) ⇒ CorrespondingNodeNotFoundError

Returns a new instance of CorrespondingNodeNotFoundError.



108
109
110
111
112
# File 'lib/compiler_error.rb', line 108

def initialize member_type_def, node_name
  super member_type_def.ast.position
  @type = member_type_def.type
  @node_name = node_name
end

Instance Method Details

#infoObject



114
115
116
# File 'lib/compiler_error.rb', line 114

def info
  "'#{@type.name}' : cannot find corresponding node '#{@node_name}'\n        #{@type.ast.position} : see type definition of '#{@type.name}'"
end