Class: Mirah::AST::Colon2

Inherits:
Call show all
Defined in:
lib/mirah/ast/call.rb,
lib/mirah/jvm/source_generator/precompile.rb

Instance Attribute Summary

Attributes inherited from Call

#cast, #inlined, #proxy

Attributes included from Named

#name

Attributes inherited from Node

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

Instance Method Summary collapse

Methods inherited from Call

#arguments, #compile, #initialize, #method, new, #precompile_target, #type_name, #type_reference, #validate_parameters

Methods included from Scoped

#containing_scope, #scope

Methods included from Named

#string_value, #to_s, #validate_name

Methods inherited from Node

#<<, ===, #[], #[]=, #_dump, _load, #_set_parent, child, child_name, #child_nodes, #each, #empty?, #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::Call

Instance Method Details

#expr?(compiler) ⇒ Boolean

Returns:



206
207
208
# File 'lib/mirah/jvm/source_generator/precompile.rb', line 206

def expr?(compiler)
  true
end

#infer(typer, expression) ⇒ Object



269
270
271
272
273
# File 'lib/mirah/ast/call.rb', line 269

def infer(typer, expression)
  resolve_if(typer) do
    type_reference(typer).meta
  end
end