checkDeprecatedAliasThis

Check if an alias this is deprecated

Usually one would use expression.checkDeprecated(scope, aliasthis) to check if expression uses a deprecated aliasthis, but this calls toPrettyChars which lead to the following message: "Deprecation: alias this fullyqualified.aggregate.__anonymous is deprecated"

bool
checkDeprecatedAliasThis
(,
const ref Loc loc
,)

Parameters

at AliasThis

The AliasThis object to check

loc Loc

Loc of the expression triggering the access to at

sc Scope*

Scope of the expression (deprecations do not trigger in deprecated scopes)

Return Value

Type: bool

Whether the alias this was reported as deprecated.

Suggestion Box / Bug Report