View source code
Display the source code in dmd/expressionsem.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.expressionsem.trySemanticAliasThis

Try expression semantic on exp, gagging semantic errors, but don't resolve alias this on a BinExp when the lhs or rhs has the corresponding type in aliasThisStop (See isRecursiveAliasThis).

Expression trySemanticAliasThis (
  Expression exp,
  dmd.dscope.Scope* sc,
  Type[2] aliasThisStop
);

Parameters

NameDescription
exp expression to try semantic on
sc scope
aliasThisStop pair of recursive alias this types to stop endless recursion

Returns

exp after expression semantic, or null on error

Authors

Walter Bright

License

Boost License 1.0