Class: NodeNotFoundError

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

Instance Method Summary collapse

Methods inherited from CompilerError

#to_s

Constructor Details

#initialize(ast, name) ⇒ NodeNotFoundError

Returns a new instance of NodeNotFoundError.



96
97
98
99
# File 'lib/compiler_error.rb', line 96

def initialize ast, name
	super ast.position
	@name = name
end

Instance Method Details

#infoObject



101
102
103
# File 'lib/compiler_error.rb', line 101

def info
	"'#{@name}' : undefined node"
end