struct

Heucristic::Resolve::Scope

Inherits Struct < Value < Object

Constants

TOP = new(Index::TopLevel.new, Array(String).new, Array(Binding).new)

Constructors

new(namespace : Index::Owner, type_vars : Array(String), bindings : Array(Binding), path : String | Nil = nil)
Source
new(namespace : Index::Owner, type_vars : Array(String)) : Scope
Source
of(namespace : Index::Owner, path : String | Nil = nil) : Scope
Source
of(context : Syntax::Context) : Scope
Source

Instance methods

at(path : String | Nil) : Scope
Source
bindings
bound(name : String) : Resolution | Nil
Source
chain
Source
clone
Source
copy_with(namespace _namespace = @namespace, type_vars _type_vars = @type_vars, bindings _bindings = @bindings, path _path = @path)
Source
namespace
path
type_vars