struct Savi::Compiler::TInfer::Span::ErrorPropagate

Overview

This kind of Span::Inner "poisons" a Span with an error, such that any further span operations only propagate that error.

Defined in:

savi/compiler/t_infer/span.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Savi::Compiler::TInfer::Span::Inner

all_terminal_meta_types : Array(MetaType) all_terminal_meta_types, any_error? : Bool any_error?, any_mt?(&block : MetaType -> Bool) : Bool any_mt?, combine_mt_to_span(other : Inner, &block : MetaType, MetaType -> Span) : Inner combine_mt_to_span, each_mt(&block : MetaType -> Nil) : Nil each_mt, final_mt_simplify(ctx : Context) : Inner final_mt_simplify, initialize initialize, maybe_fallback_based_on_mt_simplify(options : Array(Tuple(Symbol, Inner))) : Inner maybe_fallback_based_on_mt_simplify, total_error : Error | Nil total_error, transform_mt(&block : MetaType -> MetaType) : Inner transform_mt, transform_mt_to_span(&block : MetaType -> Span) : Inner transform_mt_to_span

Constructor methods inherited from struct Savi::Compiler::TInfer::Span::Inner

new new

Constructor Detail

def self.new(error : Savi::Error) #

[View source]

Instance Method Detail

def all_terminal_meta_types : Array(MetaType) #

[View source]
def any_error? : Bool #

[View source]
def any_mt?(&block : MetaType -> Bool) : Bool #

[View source]
def combine_mt_to_span(other : Inner, &block : MetaType, MetaType -> Span) : Inner #

[View source]
def each_mt(&block : MetaType -> Nil) : Nil #

[View source]
def error : Error #

[View source]
def final_mt_simplify(ctx : Context) : Inner #

[View source]
def maybe_fallback_based_on_mt_simplify(options : Array(Tuple(Symbol, Inner))) : Inner #

[View source]
def total_error : Error | Nil #

[View source]
def transform_mt(&block : MetaType -> MetaType) : Inner #

[View source]
def transform_mt_to_span(&block : MetaType -> Span) : Inner #

[View source]