Sha256: 66028e8845533ac067e1ea368858bae3cc36262fb339c8278f2ba52c89f5c5b5
Contents?: true
Size: 674 Bytes
Versions: 1
Compression:
Stored size: 674 Bytes
Contents
# encoding: utf-8 # frozen_string_literal: true module Carbon module Compiler module Node module Expression module Call # 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. # # @example # # let a: Some::Enum; # a = Some::Enum.Red(); class Enum < Base attributes module: 0, name: 1, parameters: 2, generics: 3 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/enum.rb |