use of com.google.template.soy.passes.ClearSoyDocStringsVisitor in project closure-templates by google.
the class SoyFileSet method compileForServerRendering.
/**
* Runs common compiler logic shared by tofu and jbcsrc backends.
*/
private ServerCompilationPrimitives compileForServerRendering() {
ParseResult result = parse(SyntaxVersion.V2_0);
throwIfErrorsPresent();
SoyFileSetNode soyTree = result.fileSet();
TemplateRegistry registry = result.registry();
// which case it is pointless.
if (cache == null) {
new ClearSoyDocStringsVisitor().exec(soyTree);
}
throwIfErrorsPresent();
return new ServerCompilationPrimitives(registry, soyTree);
}
Aggregations