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.getThisSkipNestedFuncs

Helper function for getRightThis(). Gets this of the next outer aggregate.

Expression getThisSkipNestedFuncs (
  ref const(Loc) loc,
  dmd.dscope.Scope* sc,
  Dsymbol s,
  AggregateDeclaration ad,
  Expression e1,
  Type t,
  Dsymbol var,
  bool flag = false
);

Parameters

NameDescription
loc location to use for error messages
sc context
s the parent symbol of the existing this
struct or class we need the correct this for
e1 existing this
t type of the existing this
var the specific member of ad we're accessing
flag if true, return null instead of throwing an error

Returns

Expression representing the this for the var

Authors

Walter Bright

License

Boost License 1.0