@Override public Void exec(SoyNode soyNode) { Preconditions.checkArgument( soyNode instanceof SoyFileSetNode || soyNode instanceof SoyFileNode); super.exec(soyNode); return null; }
/** * Transforms all the {@link RawTextNode}s corresponding to HTML to the corresponding Html*Node. * Additionally, PrintNodes that occur in HTML data or attributes declarations are wrapped with an * {@link HtmlPrintNode}. * * @see AbstractSoyNodeVisitor#exec(com.google.template.soy.basetree.Node) */ @Override public Void exec(SoyNode node) { super.exec(node); applyTransforms(); return null; }
@Override public Void exec(SoyNode soyNode) { Preconditions.checkArgument(soyNode instanceof SoyFileSetNode); templateRegistry = new TemplateRegistry((SoyFileSetNode) soyNode); // Perform checks that only involve templates (uses templateRegistry only, no traversal). checkTemplates(); // Perform checks that involve calls (uses traversal). super.exec(soyNode); return null; }