Class: Mirah::AST::Builtin

Inherits:
Node
  • Object
show all
Defined in:
lib/mirah/ast/type.rb

Instance Attribute Summary

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!, #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

#infer(typer, expression) ⇒ Object



142
143
144
# File 'lib/mirah/ast/type.rb', line 142

def infer(typer, expression)
  resolve_if(typer) {Mirah::AST.type(nil, 'mirah.impl.Builtin')}
end