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