Declaration.checkDisabled

Issue an error if an attempt to call a disabled method is made

If the declaration is disabled but inside a disabled function, returns true but do not issue an error message.

class Declaration
extern (D) final
bool
checkDisabled
(,,
bool isAliasedDeclaration = false
)

Parameters

loc Loc

Location information of the call

sc Scope*

Scope in which the call occurs

isAliasedDeclaration bool

if true searches overload set

Return Value

Type: bool

true if this Declaration is @disabled, false otherwise.

Meta