Skip to main content

self_translate_decorated

Function self_translate_decorated 

Source
pub fn self_translate_decorated(
    source: &str,
    source_language: &str,
    target_language: &str,
    decorators: &DecoratorSet,
) -> Result<SelfTranslation, SelfTranslationError>
Expand description

self_translate with the emitter decorators applied.

They decorate the code each translated item writes before its provenance marker is hashed, so the decorated translation still translates back to source.

ยงErrors

As self_translate.