public IEnumerable <Expression> ConvertTokensToExpressions(IEnumerable <object> tokens) { tokens = WhitespaceRemover.Remove(tokens); tokens = StaticConverter.Convert(tokens); tokens = LayoutRemover.Remove(tokens); tokens = CommentRemover.Remove(tokens); tokens = LiteralConverter.Convert(tokens); tokens = HelperConverter.Convert(tokens, _configuration); tokens = PathConverter.Convert(tokens); tokens = PartialConverter.Convert(tokens); tokens = SubExpressionConverter.Convert(tokens); tokens = HelperArgumentAccumulator.Accumulate(tokens); tokens = ExpressionScopeConverter.Convert(tokens); tokens = BlockAccumulator.Accumulate(tokens, _configuration); return(tokens.Cast <Expression>()); }
public static IEnumerable <Expression> ConvertTokensToExpressions(IEnumerable <object> tokens, ICompiledHandlebarsConfiguration configuration) { tokens = HelperConverter.Convert(tokens, configuration); tokens = RawHelperAccumulator.Accumulate(tokens); tokens = CommentAndLayoutConverter.Convert(tokens); tokens = LiteralConverter.Convert(tokens); tokens = HashParameterConverter.Convert(tokens); tokens = PathConverter.Convert(tokens); tokens = BlockParamsConverter.Convert(tokens); tokens = SubExpressionConverter.Convert(tokens); tokens = HashParametersAccumulator.Accumulate(tokens); tokens = PartialConverter.Convert(tokens); tokens = HelperArgumentAccumulator.Accumulate(tokens); tokens = ExpressionScopeConverter.Convert(tokens); tokens = WhitespaceRemover.Remove(tokens); tokens = StaticConverter.Convert(tokens); tokens = BlockAccumulator.Accumulate(tokens, configuration); return(tokens.Cast <Expression>()); }