ScopeDsymbol._foreach

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.

class ScopeDsymbol
extern (D) static
int
_foreach
(,
Dsymbols* members
,
scope ForeachDg dg
,
size_t* pn = null
)

Return Value

Type: int

last value returned by dg()

Suggestion Box / Bug Report