public void CaptureParameter (ResolveContext ec, ParameterReference param_ref)
{
ec.CurrentBlock.Explicit.HasCapturedVariable = true;
AddReferenceFromChildrenBlock (ec.CurrentBlock.Explicit);
if (param_ref.GetHoistedVariable (ec) != null)
return;
if (hoisted_params == null)
hoisted_params = new List<HoistedParameter> (2);
var expr = new HoistedParameter (this, param_ref);
param_ref.Parameter.HoistedVariant = expr;
hoisted_params.Add (expr);
}