declareEnum function

EnumInfo declareEnum(
  1. String name,
  2. Iterable<String> elements
)

Declares an enum with the given name and elements.

Implementation

EnumInfo declareEnum(String name, Iterable<String> elements) =>
    currentContext.declareEnum(Sym(name), elements.map((e) => Sym(e)).toList());