getThisSkipNestedFuncs

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

getThisSkipNestedFuncs

Parameters

loc Loc

location to use for error messages

sc Scope*

context

s Dsymbol

the parent symbol of the existing this

ad AggregateDeclaration

struct or class we need the correct this for

e1 Expression

existing this

t Type

type of the existing this

var Dsymbol

the specific member of ad we're accessing

flag bool

if true, return null instead of throwing an error

Return Value

Expression representing the this for the var

Suggestion Box / Bug Report