use of com.google.template.soy.jbcsrc.ExpressionCompiler.BasicExpressionCompiler in project closure-templates by google.
the class SoyNodeCompiler method compilePrintNodeAsExpression.
private SoyExpression compilePrintNodeAsExpression(PrintNode node, Label reattachPoint) {
BasicExpressionCompiler basic = exprCompiler.asBasicCompiler(reattachPoint);
SoyExpression value = basic.compile(node.getExpr());
// because instead of wrapping the soy value, we would just wrap the appendable.
for (PrintDirectiveNode printDirective : node.getChildren()) {
value = parameterLookup.getRenderContext().applyPrintDirective(printDirective.getPrintDirective(), value, basic.compileToList(printDirective.getArgs()));
}
return value;
}
Aggregations