Class: Mirah::AST::Argument

Inherits:
Node
  • Object
show all
Includes:
Typed
Defined in:
lib/mirah/ast/method.rb

Instance Attribute Summary

Attributes included from Typed

#type

Attributes inherited from Node

#children, #inferred_type, #newline, #parent, #position

Instance Method Summary collapse

Methods inherited from Node

#<<, ===, #[], #[]=, #_dump, _load, #_set_parent, child, child_name, #child_nodes, #each, #empty?, #expr?, #inferred_type!, #initialize, #initialize_copy, #insert, #inspect, #inspect_children, #line_number, #log, #precompile, #resolve_if, #resolved?, #simple_name, #string_value, #temp, #to_s, #top_level?, #validate_child, #validate_children

Constructor Details

This class inherits a constructor from Mirah::AST::Node

Instance Method Details

#resolved!(typer) ⇒ Object



104
105
106
107
# File 'lib/mirah/ast/method.rb', line 104

def resolved!(typer)
  typer.learn_local_type(containing_scope, name, @inferred_type)
  super
end