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 int

!=0 means do not issue error message for invalid modification

Return Value

Modifiable.yes or Modifiable.initialization

Meta