module Mint::Errorable

Overview

This module is used in all of the stages of the compiler which can error out (parser, type checker, scope builder, etc...).

It defines an interface (method) for creating descriptive errors and it can either gather them or raise them depending on the raise errors flag, which the including entity must define (unusally in the initialize method).

Direct including types

Defined in:

errorable.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.error(name : Symbol, &) #

[View source]

Instance Method Detail

def error(name : Symbol, &) #

[View source]
def error!(name : Symbol, &) #

[View source]
def errors : Array(Error) #

The errors found during parsing.


[View source]