EnumDeclaration

Constructors

this
this(Loc loc, Identifier ident, Type memtype)
Undocumented in source.

Members

Functions

accept
void accept(Visitor v)
Undocumented in source. Be warned that the author may not have intended to support it.
addMember
void addMember(Scope* sc, ScopeDsymbol sds)
Undocumented in source. Be warned that the author may not have intended to support it.
getDefaultValue
Expression getDefaultValue(Loc loc)
Undocumented in source. Be warned that the author may not have intended to support it.
getMaxMinValue
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.

getMemtype
Type getMemtype(Loc loc)
Undocumented in source. Be warned that the author may not have intended to support it.
getType
Type getType()
Undocumented in source. Be warned that the author may not have intended to support it.
isDeprecated
bool isDeprecated()
Undocumented in source. Be warned that the author may not have intended to support it.
isEnumDeclaration
inout(EnumDeclaration) isEnumDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isSpecial
bool isSpecial()

Determine if enum is a special one.

kind
const(char)* kind()
Undocumented in source. Be warned that the author may not have intended to support it.
oneMember
bool oneMember(Dsymbol* ps, Identifier ident)
Undocumented in source. Be warned that the author may not have intended to support it.
search
Dsymbol search(Loc loc, Identifier ident, int flags)
Undocumented in source. Be warned that the author may not have intended to support it.
setScope
void setScope(Scope* sc)
Undocumented in source. Be warned that the author may not have intended to support it.
syntaxCopy
EnumDeclaration syntaxCopy(Dsymbol s)
Undocumented in source. Be warned that the author may not have intended to support it.
visible
Visibility visible()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

added
bool added;
Undocumented in source.
defaultval
Expression defaultval;
Undocumented in source.
inuse
int inuse;
Undocumented in source.
isdeprecated
bool isdeprecated;
Undocumented in source.
maxval
Expression maxval;
Undocumented in source.
memtype
Type memtype;
Undocumented in source.
minval
Expression minval;
Undocumented in source.
sinit
Symbol* sinit;
Undocumented in source.
type
Type type;
Undocumented in source.
visibility
Visibility visibility;
Undocumented in source.

Inherited Members

From ScopeDsymbol

members
Dsymbols* members;
Undocumented in source.
symtab
DsymbolTable symtab;
Undocumented in source.
endlinnum
uint endlinnum;
Undocumented in source.
syntaxCopy
ScopeDsymbol syntaxCopy(Dsymbol s)
Undocumented in source. Be warned that the author may not have intended to support it.
search
Dsymbol search(Loc loc, Identifier ident, int flags)

This function is #1 on the list of functions that eat cpu time. Be very, very careful about slowing it down.

importScope
void importScope(Dsymbol s, Visibility visibility)
Undocumented in source. Be warned that the author may not have intended to support it.
addAccessiblePackage
void addAccessiblePackage(Package p, Visibility visibility)
Undocumented in source. Be warned that the author may not have intended to support it.
isPackageAccessible
bool isPackageAccessible(Package p, Visibility visibility, int flags)
Undocumented in source. Be warned that the author may not have intended to support it.
isforwardRef
bool isforwardRef()
Undocumented in source. Be warned that the author may not have intended to support it.
multiplyDefined
void multiplyDefined(Loc loc, Dsymbol s1, Dsymbol s2)
Undocumented in source. Be warned that the author may not have intended to support it.
kind
const(char)* kind()
Undocumented in source. Be warned that the author may not have intended to support it.
findGetMembers
FuncDeclaration findGetMembers()

Look for member of the form: const(MemberInfo)[] getMembers(string); Returns NULL if not found

symtabInsert
Dsymbol symtabInsert(Dsymbol s)
Undocumented in source. Be warned that the author may not have intended to support it.
symtabLookup
Dsymbol symtabLookup(Dsymbol s, Identifier id)

Look up identifier in symbol table.

hasStaticCtorOrDtor
bool hasStaticCtorOrDtor()

Return true if any of the members are static ctors or static dtors, or if any members have members that are.

ForeachDg
alias ForeachDg = int delegate(size_t idx, Dsymbol s)
Undocumented in source.
_foreach
int _foreach(Scope* sc, Dsymbols* members, ForeachDg dg, size_t* pn)

Expands attribute declarations in members in depth first order. Calls dg(size_t symidx, Dsymbol *sym) for each member. If dg returns !=0, stops and returns that value else returns 0. Use this function to avoid the O(N + N^2/2) complexity of calculating dim and calling N times getNth.

isScopeDsymbol
inout(ScopeDsymbol) isScopeDsymbol()
Undocumented in source. Be warned that the author may not have intended to support it.
accept
void accept(Visitor v)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta