Class: CompilerError
- Inherits:
-
Object
- Object
- CompilerError
- Defined in:
- lib/compiler_error.rb
Direct Known Subclasses
BuiltinNameConflictError, ClientServerSameError, CorrespondingNodeNotFoundError, DirectionNotFoundError, DuplicateDefError, IncludeFileNotFoundError, InitialCaseError, MessageNotFoundError, NodeLanguageMismatchError, NodeNotFoundError, TypeNotFoundError, TypeParamCountMismatchError, UnexpectedTokenError
Instance Method Summary collapse
-
#initialize(position) ⇒ CompilerError
constructor
A new instance of CompilerError.
- #to_s ⇒ Object
Constructor Details
#initialize(position) ⇒ CompilerError
Returns a new instance of CompilerError.
3 4 5 |
# File 'lib/compiler_error.rb', line 3 def initialize position @position = position end |
Instance Method Details
#to_s ⇒ Object
7 8 9 |
# File 'lib/compiler_error.rb', line 7 def to_s "#{@position}: #{info}" end |