EnumDeclaration.getMaxMinValue

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

class EnumDeclaration
getMaxMinValue
(
const ref Loc loc
,)

Parameters

loc Loc

location to use for error messages

id Identifier

Id::max or Id::min

Return Value

corresponding value of .max/.min

Suggestion Box / Bug Report