makeThis2Argument

Make a dual-context container for use as a this argument.

makeThis2Argument

Parameters

loc Loc

location to use for error messages

sc Scope*

current scope

fd FuncDeclaration

target function that will take the this argument

Return Value

Temporary closure variable. Note: The function fd is added to the nested references of the newly created variable such that a closure is made for the variable when the address of fd is taken.

Suggestion Box / Bug Report