public Statement Parse(ParseTreeNode node, ParserContext context) { var nodes = node.ChildNodes[0].ChildNodes; var arguments = new FilterArgument[nodes.Count]; for (var i = 0; i < nodes.Count; i++) { arguments[i] = DefaultFluidParser.BuildFilterArgument(nodes[i]); } return(new DelegateStatement((writer, encoder, ctx) => WriteToAsync(writer, encoder, ctx, arguments))); }
public override Statement Parse(ParseTreeNode node, ParserContext context) { var e = context.CurrentBlock.Tag.ChildNodes[0]; var arguments = new FilterArgument[e.ChildNodes.Count]; for (var i = 0; i < e.ChildNodes.Count; i++) { arguments[i] = DefaultFluidParser.BuildFilterArgument(e.ChildNodes[i]); } var statements = context.CurrentBlock.Statements; return(new DelegateStatement((writer, encoder, ctx) => WriteToAsync(writer, encoder, ctx, arguments, statements))); }