Sha256: be199025aabf0d0ebfaa4b9ce1aa7ac67f02a39921b1bca00f075cf26fc374e7

Contents?: true

Size: 713 Bytes

Versions: 1

Compression:

Stored size: 713 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

module Carbon
  module Compiler
    module Node
      module Expression
        module Call
          # An "Access" call.  An access call takes the form of
          # `<Expression>[<Arguments>]`.  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.
          #
          # @example
          #   # let a: Carbon::Pointer<Carbon::Integer>;
          #   a[0]; # => Carbon::Integer
          class Access < Base
            attributes expression: 0, parameters: 1, generics: 2
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
carbon-compiler-0.2.0 lib/carbon/compiler/node/expression/call/access.rb