/** Visits a {@link SoyFileNode}, making sure it has strict autoescape. */ @Override protected void visitSoyFileNode(SoyFileNode node) { if (node.getDefaultAutoescapeMode() != AutoescapeMode.STRICT) { errorReporter.report(node.getSourceLocation(), NON_STRICT_FILE); } visitChildren(node); }
@Override protected void visitSoyFileNode(SoyFileNode node) { if (node.getDefaultAutoescapeMode() != AutoescapeMode.STRICT) { errorReporter.report(node.getSourceLocation(), INVALID_AUTOESCAPING); // If the file isn't strict, skip children to avoid spamming errors. return; } visitChildren(node); }