BidiGlobalDir bidiGlobalDir = SoyBidiUtils.decodeBidiGlobalDirFromJsOptions(
jsSrcOptions.getBidiGlobalDir(),
jsSrcOptions.getUseGoogIsRtlForBidiGlobalDir());
ApiCallScopeUtils.seedSharedParams(apiCallScope, null /* msgBundle */, bidiGlobalDir);
optimizeBidiCodeGenVisitorProvider.get().exec(soyTree);
<BUG>simplifyVisitor.exec(soyTree);
new HtmlTransformVisitor(errorReporter).exec(soyTree);</BUG>
IncrementalDomOutputOptimizers.collapseOpenTags(soyTree);
IncrementalDomOutputOptimizers.collapseElements(soyTree);
<BUG>return genIncrementalDomCodeVisitorProvider.get().exec(soyTree);
</BUG>
}

BidiGlobalDir bidiGlobalDir = SoyBidiUtils.decodeBidiGlobalDirFromJsOptions(
jsSrcOptions.getBidiGlobalDir(),
jsSrcOptions.getUseGoogIsRtlForBidiGlobalDir());
ApiCallScopeUtils.seedSharedParams(apiCallScope, null /* msgBundle */, bidiGlobalDir);
optimizeBidiCodeGenVisitorProvider.get().exec(soyTree);
simplifyVisitor.simplify(soyTree, registry);
new HtmlTransformVisitor(errorReporter).exec(soyTree);
IncrementalDomOutputOptimizers.collapseOpenTags(soyTree);
IncrementalDomOutputOptimizers.collapseElements(soyTree);
return genIncrementalDomCodeVisitorProvider.get().gen(soyTree, registry, errorReporter);
