checkMustUse

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

bool
checkMustUse

Parameters

e Expression

the expression to check

sc Scope*

scope in which e was semantically analyzed

Return Value

Type: bool

true on error, false on success.

Meta