View source code
Display the source code in dmd/aliasthis.d from which this
page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a
Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Function dmd.aliasthis.checkDeprecatedAliasThis
Check if an alias this is deprecated
bool checkDeprecatedAliasThis
(
AliasThis at,
ref const(dmd .globals .Loc) loc,
dmd .dscope .Scope* sc
);
Usually one would use expression to
check if expression uses a deprecated aliasthis, but this calls
toPrettyChars which lead to the following message:
"Deprecation: alias this fullyqualified is deprecated"
Parameters
| Name | Description |
|---|---|
| at | The AliasThis object to check |
| loc | Loc of the expression triggering the access to at |
| sc | Scope of the expression
(deprecations do not trigger in deprecated scopes) |
Returns
Whether the alias this was reported as deprecated.
Authors
License
Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.