Class: CorrespondingNodeNotFoundError
- Inherits:
-
CompilerError
- Object
- CompilerError
- CorrespondingNodeNotFoundError
- Defined in:
- lib/compiler_error.rb
Instance Method Summary collapse
- #info ⇒ Object
-
#initialize(member_type_def, node_name) ⇒ CorrespondingNodeNotFoundError
constructor
A new instance of CorrespondingNodeNotFoundError.
Methods inherited from CompilerError
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
#info ⇒ Object
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 |