class

DoisC::Environment::VerificationContext

Inherits Reference < Object

Holds context as verifier traverses AST's concrete types

Constructors

new(globals : Global)
Source

Instance methods

bind_generic(name : String, param : Types::GenericTypeParameter)
Source
current_generic_scope
Source
current_module_scope
Source
current_return_type
Source
declare(name : String, type : Types::Type, symbol_ref : ASTData::SymbolRef | Nil = nil)
Source
enter_generic_scope
Source
enter_loop
Source
enter_scope
Source
exit_generic_scope
Source
exit_loop
Source
exit_scope
Source
globals
Source
inside_loop?
Source
lookup(name : String) : Types::Type | Nil
Source
lookup_binding(name : String) : LocalBinding | Nil
Source
lookup_generic(name : String) : Types::GenericTypeParameter | Nil
Source
pop_module
Source
push_module(name : String)
Source
with_return_type(type : Types::Type, &)
Source

Nested types