private List < String > genPySrc ( SoyFileSetNode soyTree , SoyPySrcOptions pySrcOptions , ImmutableMap < String , String > currentManifest , ErrorReporter errorReporter ) { BidiGlobalDir bidiGlobalDir = SoyBidiUtils . decodeBidiGlobalDirFromPyOptions ( pySrcOptions . getBidiIsRtlFn ( ) ) ; try ( SoyScopedData . InScope inScope = apiCallScope . enter ( /* msgBundle= */ null , bidiGlobalDir ) ) { return createVisitor ( pySrcOptions , inScope . getBidiGlobalDir ( ) , errorReporter , currentManifest ) . gen ( soyTree , errorReporter ) ; } }
Generates Python source code given a Soy parse tree and an options object .