dmd.mustuse

Compile-time checks associated with the @mustuse attribute.

Members

Functions

checkMustUse
bool checkMustUse(Expression e, Scope* sc)

Check whether discarding an expression would violate the requirements of @mustuse. If so, emit an error.

checkMustUseReserved
void checkMustUseReserved(Dsymbol sym)

Called from a symbol's semantic to check for reserved usage of @mustuse.

Meta