inferForeachAggregate

Figure out what is being foreach'd over by looking at the ForeachAggregate.

bool
inferForeachAggregate

Parameters

sc Scope*

context

isForeach bool

true for foreach, false for foreach_reverse

feaggr Expression

ForeachAggregate

sapply Dsymbol

set to function opApply/opApplyReverse, or delegate, or null. Overload resolution is not done.

Return Value

Type: bool

true if successfully figured it out; feaggr updated with semantic analysis. false for failed, which is an error.

Meta