getThisSkipNestedFuncs

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

getThisSkipNestedFuncs

Parameters

loc
Type: Loc

location to use for error messages

sc
Type: Scope*

context

s
Type: Dsymbol

the parent symbol of the existing this

ad

struct or class we need the correct this for

e1

existing this

t
Type: Type

type of the existing this

var
Type: Dsymbol

the specific member of ad we're accessing

flag
Type: bool

if true, return null instead of throwing an error

Return Value

Expression representing the this for the var

Meta