TranslationContext

class TranslationContext(val config: TranslationConfiguration, val scopeManager: ScopeManager, val typeManager: TypeManager, var currentComponent: Component? = null)

The translation context holds all necessary managers and configurations needed during the translation process.

Constructors

Link copied to clipboard
constructor(config: TranslationConfiguration, scopeManager: ScopeManager, typeManager: TypeManager, currentComponent: Component? = null)

Properties

Link copied to clipboard

The configuration for this translation.

Link copied to clipboard

Some frontends need access to the current Component we are currently processing. Note: for the TranslationResult.finalCtx this may either be null or the last component analyzed.

Link copied to clipboard

The scope manager which comprises the complete translation result. In case of sequential parsing, this scope manager is passed to the individual frontends one after another. In case of sequential parsing, individual scope managers will be passed to each language frontend (through individual contexts) and then finally merged into a final one.

Link copied to clipboard

The type manager is responsible for managing type information. Currently, we have one instance of a TypeManager for the overall TranslationResult.