Class: Carbon::Compiler::Node::Expression::Call::Unified

Inherits:
Base
  • Object
show all
Defined in:
lib/carbon/compiler/node/expression/call/unified.rb

Overview

A “unified” call. This is the extended version of the module call. This can be turned into a module call by taking the module type of the expression and using that as the base, and passing the expression as the first parameter. This takes the form ‘<Expression>.<Name>(<Arguments>)`. This has three children: an expression, a name, and the arguments.

Examples:

# let a: Carbon::Pointer<Carbon::Integer>;
a.size(); # Same as the following:
Carbon::Pointer<Carbon::Integer>.size(a);

Instance Attribute Summary

Attributes inherited from Base

#children, #location

Method Summary

Methods inherited from Base

#[], #accept, #attributes!, #behavior?, #data, #data?, #each, #identity?, #initialize, #map!, mapping, #merge!, #type!, #update!

Constructor Details

This class inherits a constructor from Carbon::Compiler::Node::Base