Class: Carbon::Compiler::Node::Expression::Call::Access

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

Overview

An “Access” call. An access call takes the form of ‘<Expression>`. This is used to index arrays. An access call has two children: an expression and the arguments for the access. In the example below, there is only one argument.

Examples:

# let a: Carbon::Pointer<Carbon::Integer>;
a[0]; # => Carbon::Integer

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