inferForeachAggregate

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

bool
inferForeachAggregate

Parameters

sc
Type: Scope*

context

isForeach
Type: bool

true for foreach, false for foreach_reverse

feaggr

ForeachAggregate

sapply
Type: 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