if (doEnforceSyntaxVersionV2) {
(new AssertSyntaxVersionV2Visitor()).exec(soyTree);
} else {
(new RemoveHtmlCommentsVisitor()).exec(soyTree);
}
(new VerifyPhnameAttrOnlyOnPlaceholdersVisitor()).exec(soyTree);
(new CheckSoyDocVisitor(doEnforceSyntaxVersionV2)).exec(soyTree);
if (doCheckOverrides) {
(new CheckOverridesVisitor()).exec(soyTree);
}
(new CheckDelegatesVisitor()).exec(soyTree);