private ServerCompilationPrimitives compileForServerRendering ( ) { ParseResult result = parse ( ) ; throwIfErrorsPresent ( ) ; SoyFileSetNode soyTree = result . fileSet ( ) ; TemplateRegistry registry = result . registry ( ) ; // Clear the SoyDoc strings because they use unnecessary memory, unless we have a cache, in // which case it is pointless. if ( cache == null ) { new ClearSoyDocStringsVisitor ( ) . exec ( soyTree ) ; } throwIfErrorsPresent ( ) ; return new ServerCompilationPrimitives ( registry , soyTree ) ; }
Runs common compiler logic shared by tofu and jbcsrc backends .