Declaration.checkModify

Check to see if declaration can be modified in this context (sc). Issue error if not.

class Declaration
extern (D) final
checkModify

Parameters

loc Loc

location for error messages

e1 Expression

null or this expression when this declaration is a field

sc Scope*

context

flag ModifyFlags

if the first bit is set it means do not issue error message for invalid modification; if the second bit is set, it means that this declaration is a field and a subfield of it is modified.

Return Value

Modifiable.yes or Modifiable.initialization

Meta