Class: TypeNotFoundError

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) ⇒ TypeNotFoundError

Returns a new instance of TypeNotFoundError.



84
85
86
87
# File 'lib/compiler_error.rb', line 84

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

Instance Method Details

#infoObject



89
90
91
# File 'lib/compiler_error.rb', line 89

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