class Magiika::Scope::Standalone
- Magiika::Scope::Standalone
- Magiika::Scope
- Reference
- Object
Direct Known Subclasses
Defined in:
scope/standalone_scope.crConstructors
Instance Method Summary
-
#assign(name : String, meta : Node::Meta) : Nil
assign (define or replace) a value
- #cleanup : Nil
-
#define(name : String, meta : Node::Meta) : Nil
define a new value
- #exist?(name : String) : Bool
- #exist_here?(name : String) : Bool
- #find_base_scope : Scope::Standalone
-
#replace(name : String, meta : Node::Meta) : Nil
replace an existing value
- #retrieve?(name : String) : Node::Meta | Nil
Instance methods inherited from class Magiika::Scope
assign(name : String, meta : Node::Meta) : Nilassign(name : String, value : TypeNode) : Nil
assign(pairs : Hash(String, TypeNode | Node::Meta)) assign, cleanup : Nil cleanup, define(name : String, meta : Node::Meta) : Nil
define(name : String, value : TypeNode) : Nil
define(pairs : Hash(String, TypeNode | Node::Meta)) define, exist?(name : String) : Bool exist?, exist_here?(name : String) : Bool exist_here?, find_base_scope : Scope find_base_scope, name : String name, name=(name : String) name=, position : Position position, position? : Position | Nil position?, replace(name : String, meta : Node::Meta) : Nil
replace(name : String, value : TypeNode) : Nil
replace(pairs : Hash(String, TypeNode | Node::Meta)) replace, retrieve(name : String) : Node::Meta retrieve, retrieve?(name : String) : Node::Meta | Nil retrieve?, retrieve_fn(name : String, args : FnArgs, deep_analysis : Bool = false) : Tuple(MatchResult, Tuple(Node::Fn, Hash(String, Node)) | Nil) retrieve_fn, retrieve_fn?(name : String, args : FnArgs, deep_analysis : Bool = false) : Tuple(MatchResult, Tuple(Node::Fn, Hash(String, Node)) | Nil) | Nil retrieve_fn?, seek(&block : Scope -> R) : R | Nil forall R seek
Constructor methods inherited from class Magiika::Scope
new(name : String, position : Position | Nil = nil)
new
Class methods inherited from class Magiika::Scope
use(*args, **kwargs, & : self -> R) : R forall R
use
Constructor Detail
def self.new(name : String, position : Position | Nil = nil, variables : Hash(String, Node::Meta) = Hash(String, Node::Meta).new)
#
Instance Method Detail
def assign(name : String, meta : Node::Meta) : Nil
#
Description copied from class Magiika::Scope
assign (define or replace) a value
def define(name : String, meta : Node::Meta) : Nil
#
Description copied from class Magiika::Scope
define a new value
def replace(name : String, meta : Node::Meta) : Nil
#
Description copied from class Magiika::Scope
replace an existing value