W3cubDocs

/Haxe

EnumField

package haxe.macro

import haxe.macro.Type

Available on all platforms

Represents an enum constructor.

Fields

type:Type

The type of the enum constructor.

pos:Position

The position of the enum constructor.

params:Array<TypeParameter>

The type parameters of the enum constructor.

name:String

The name of the enum constructor.

meta:MetaAccess

The metadata of the enum constructor.

index:Int

The index of the enum constructor, i.e. in which position it appears in the syntax.

doc:Null<String>

The associated documentation of the enum constructor.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/haxe/macro/EnumField.html