Declaration.checkModify

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

class Declaration
extern (D) final
Modifiable
checkModify

Parameters

loc
Type: Loc

location for error messages

e1

null or this expression when this declaration is a field

sc
Type: Scope*

context

flag
Type: int

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

Return Value

Modifiable.yes or Modifiable.initialization

Meta