public override IEnumerable <object> ConvertTokens(IEnumerable <object> sequence) { var enumerator = sequence.GetEnumerator(); while (enumerator.MoveNext()) { var item = enumerator.Current; if (item is HashParameterToken) { var parameters = AccumulateParameters(enumerator); if (parameters.Any()) { yield return(HandlebarsExpression.HashParametersExpression(parameters)); } yield return(enumerator.Current); } else { yield return(item); } } }