ArrayLengthExp

extern (C++) final
class ArrayLengthExp : UnaExp {}

Members

Static functions

rewriteOpAssign
Expression rewriteOpAssign(BinExp exp)

Rewrite: array.length op= e2 as: array.length = array.length op e2 or: auto tmp = &array; (*tmp).length = (*tmp).length op e2

Inherited Members

From UnaExp

unaSemantic
Expression unaSemantic(Scope* sc)

Helper function for easy error propagation. If error occurs, returns ErrorExp. Otherwise returns NULL.

setNoderefOperand
void setNoderefOperand()

Mark the operand as will never be dereferenced, which is useful info for @safe checks. Do before semantic() on operands rewrites them.

Meta