W3cubDocs

/D

ddmd.denum

Compiler implementation of the D programming language.

Authors:
Walter Bright
License:
Boost License 1.0
Source:
denum.d
class EnumDeclaration: ddmd.dsymbol.ScopeDsymbol
Expression getMaxMinValue(Loc loc, Identifier id)

Get the value of the .max/.min property as an Expression. Lazily computes the value and caches it in maxval/minval. Reports any errors.

Parameters:
Loc loc location to use for error messages
Identifier id Id::max or Id::min
Returns:
corresponding value of .max/.min
class EnumMember: ddmd.declaration.VarDeclaration

© 1999–2017 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/ddmd_denum.html