Class: Carbon::Compiler::Node::Expression::Call::Enum

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

Overview

An Enum call. This is a call used to create an “enum” value. This takes the form of ‘<ModuleName>.<ModuleNamePart>.(<Arguments>)`. This has three children: the module name, the enum element name, and the arguments.

Examples:

# let a: Some::Enum;
a = Some::Enum.Red();

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