Class: Mirah::AST::ClassAppendSelf
- Defined in:
- lib/mirah/ast/structure.rb
Overview
class << self
Instance Attribute Summary
Attributes included from Scope
Attributes inherited from Node
#children, #inferred_type, #newline, #parent, #position
Instance Method Summary collapse
- #infer(typer, expression) ⇒ Object
-
#initialize(parent, line_number, &block) ⇒ ClassAppendSelf
constructor
A new instance of ClassAppendSelf.
Methods included from Scoped
Methods inherited from Body
#<<, #add_node, #compile, #expr?, #string_value
Methods inherited from Node
#<<, ===, #[], #[]=, #_dump, _load, #_set_parent, child, child_name, #child_nodes, #each, #empty?, #expr?, #inferred_type!, #initialize_copy, #insert, #inspect, #inspect_children, #line_number, #log, #precompile, #resolve_if, #resolved!, #resolved?, #simple_name, #string_value, #temp, #to_s, #top_level?, #validate_child, #validate_children
Constructor Details
#initialize(parent, line_number, &block) ⇒ ClassAppendSelf
Returns a new instance of ClassAppendSelf.
79 80 81 |
# File 'lib/mirah/ast/structure.rb', line 79 def initialize(parent, line_number, &block) super(parent, line_number, &block) end |
Instance Method Details
#infer(typer, expression) ⇒ Object
83 84 85 86 |
# File 'lib/mirah/ast/structure.rb', line 83 def infer(typer, expression) static_scope.self_type = scope.static_scope.self_type. super end |