95 references to Translate
Microsoft.Build (71)
BackEnd\BuildManager\BuildParameters.cs (1)
907translator.Translate(ref _toolsetProvider, Evaluation.ToolsetProvider.FactoryForDeserialization);
BackEnd\Components\Caching\ConfigCache.cs (1)
381(ITranslator aTranslator, ref ConfigurationMetadata configMetadata) => aTranslator.Translate(ref configMetadata, ConfigurationMetadata.FactoryForDeserialization),
BackEnd\Components\Communications\TranslatorExtensions.cs (2)
46translator.Translate(ref instance, ProjectPropertyInstance.FactoryForDeserialization); 58translator.Translate(ref instanceForSerialization, ProjectPropertyInstance.FactoryForDeserialization);
BackEnd\Components\RequestBuilder\TargetSpecification.cs (1)
59translator.Translate(ref _referenceLocation, ElementLocation.FactoryForDeserialization);
BackEnd\Components\SdkResolution\SdkResolverRequest.cs (1)
84translator.Translate(ref _elementLocation, ElementLocation.FactoryForDeserialization);
BackEnd\Node\NodeConfiguration.cs (1)
162translator.Translate(ref _buildParameters, BuildParameters.FactoryForDeserialization);
BackEnd\Node\ServerNodeBuildCommand.cs (2)
115translator.Translate(ref _consoleConfiguration, TargetConsoleConfiguration.FactoryForDeserialization); 116translator.Translate(ref _partialBuildTelemetry, PartialBuildTelemetry.FactoryForDeserialization);
BackEnd\Shared\BuildRequest.cs (1)
434translator.Translate(ref _proxyTargets, ProxyTargets.FactoryForDeserialization);
BackEnd\Shared\BuildRequestBlocker.cs (1)
236translator.Translate(ref _partialBuildResult, packetTranslator => BuildResult.FactoryForDeserialization(packetTranslator));
BackEnd\Shared\BuildRequestConfiguration.cs (1)
928translator.Translate(ref _transferredState, ProjectInstance.FactoryForDeserialization);
BackEnd\Shared\BuildResult.cs (1)
623translator.Translate(ref _projectStateAfterBuild, ProjectInstance.FactoryForDeserialization);
BackEnd\Shared\TargetResult.cs (1)
274translator.Translate(ref _result, WorkUnitResult.FactoryForDeserialization);
Instance\ProjectInstance.cs (5)
2419translator.Translate(ref _projectFileLocation, ElementLocation.FactoryForDeserialization); 2420translator.Translate(ref _taskRegistry, TaskRegistry.FactoryForDeserialization); 2435translator.Translate(ref _toolset, Toolset.FactoryForDeserialization); 2499translator.Translate(ref item, delegate { return ProjectItemInstance.FactoryForDeserialization(translator, this); }); 2517translator.Translate(ref temp, delegate { return ProjectItemInstance.FactoryForDeserialization(translator, this); });
Instance\ProjectItemGroupTaskInstance.cs (2)
136translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 137translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectItemGroupTaskItemInstance.cs (10)
453translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 454translator.Translate(ref _includeLocation, ElementLocation.FactoryForDeserialization); 455translator.Translate(ref _excludeLocation, ElementLocation.FactoryForDeserialization); 456translator.Translate(ref _removeLocation, ElementLocation.FactoryForDeserialization); 457translator.Translate(ref _keepMetadataLocation, ElementLocation.FactoryForDeserialization); 458translator.Translate(ref _removeMetadataLocation, ElementLocation.FactoryForDeserialization); 459translator.Translate(ref _keepDuplicatesLocation, ElementLocation.FactoryForDeserialization); 460translator.Translate(ref _matchOnMetadataLocation, ElementLocation.FactoryForDeserialization); 461translator.Translate(ref _matchOnMetadataOptionsLocation, ElementLocation.FactoryForDeserialization); 462translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectItemGroupTaskMetadataInstance.cs (2)
140translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 141translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectItemInstance.cs (1)
595translator.Translate(ref _taskItem, TaskItem.FactoryForDeserialization);
Instance\ProjectOnErrorInstance.cs (3)
125translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 126translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization); 127translator.Translate(ref _executeTargetsLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectPropertyGroupTaskInstance.cs (2)
135translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 136translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectPropertyGroupTaskPropertyInstance.cs (2)
138translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 139translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectTargetInstance.cs (9)
561translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 562translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization); 563translator.Translate(ref _inputsLocation, ElementLocation.FactoryForDeserialization); 564translator.Translate(ref _outputsLocation, ElementLocation.FactoryForDeserialization); 565translator.Translate(ref _returnsLocation, ElementLocation.FactoryForDeserialization); 566translator.Translate(ref _keepDuplicateOutputsLocation, ElementLocation.FactoryForDeserialization); 567translator.Translate(ref _dependsOnTargetsLocation, ElementLocation.FactoryForDeserialization); 568translator.Translate(ref _beforeTargetsLocation, ElementLocation.FactoryForDeserialization); 569translator.Translate(ref _afterTargetsLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectTaskInstance.cs (7)
372translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 373translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization); 374translator.Translate(ref _continueOnErrorLocation, ElementLocation.FactoryForDeserialization); 375translator.Translate(ref _msbuildRuntimeLocation, ElementLocation.FactoryForDeserialization); 376translator.Translate(ref _msbuildArchitectureLocation, ElementLocation.FactoryForDeserialization); 404translator.Translate(ref item2, ElementLocation.FactoryForDeserialization); 412translator.Translate(ref item2, ElementLocation.FactoryForDeserialization);
Instance\ProjectTaskOutputItemInstance.cs (4)
147translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 148translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization); 149translator.Translate(ref _itemTypeLocation, ElementLocation.FactoryForDeserialization); 150translator.Translate(ref _taskParameterLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectTaskOutputPropertyInstance.cs (4)
147translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 148translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization); 149translator.Translate(ref _propertyNameLocation, ElementLocation.FactoryForDeserialization); 150translator.Translate(ref _taskParameterLocation, ElementLocation.FactoryForDeserialization);
Instance\TaskRegistry.cs (2)
1814translator.Translate(ref _taskFactoryAssemblyLoadInfo, AssemblyLoadInfo.FactoryForTranslation); 1839translator.Translate(ref _toolset, Toolset.FactoryForDeserialization);
Logging\LoggerDescription.cs (1)
349translator.Translate(ref _loggerAssembly, AssemblyLoadInfo.FactoryForTranslation);
TranslatorHelpers.cs (3)
52translator.Translate(ref objectToTranslate, valueFactory); 137translator.Translate(ref value, valueFactory); 147translator.Translate(ref value, valueFactory);
Microsoft.Build.Engine.UnitTests (24)
AssemblyNameEx_Tests.cs (4)
688writeTranslator.Translate(ref assemblyNameOriginal, (ITranslator t) => new AssemblyNameExtension(t)); 693readTranslator.Translate(ref assemblyNameDeserialized, (ITranslator t) => new AssemblyNameExtension(t)); 712writeTranslator.Translate(ref assemblyNameOriginal, (ITranslator t) => new AssemblyNameExtension(t)); 717readTranslator.Translate(ref assemblyNameDeserialized, (ITranslator t) => new AssemblyNameExtension(t));
BackEnd\BinaryTranslator_Tests.cs (4)
345TranslationHelpers.GetWriteTranslator().Translate(ref value, BaseClass.FactoryForDeserialization); 348TranslationHelpers.GetReadTranslator().Translate(ref deserializedValue, BaseClass.FactoryForDeserialization); 360TranslationHelpers.GetWriteTranslator().Translate(ref value, BaseClass.FactoryForDeserialization); 363TranslationHelpers.GetReadTranslator().Translate(ref deserializedValue, BaseClass.FactoryForDeserialization);
Construction\ElementLocation_Tests.cs (6)
165TranslationHelpers.GetWriteTranslator().Translate(ref location, ElementLocation.FactoryForDeserialization); 167TranslationHelpers.GetReadTranslator().Translate(ref deserializedLocation, ElementLocation.FactoryForDeserialization); 183TranslationHelpers.GetWriteTranslator().Translate(ref location, ElementLocation.FactoryForDeserialization); 185TranslationHelpers.GetReadTranslator().Translate(ref deserializedLocation, ElementLocation.FactoryForDeserialization); 285TranslationHelpers.GetWriteTranslator().Translate(ref location, ElementLocation.FactoryForDeserialization); 287TranslationHelpers.GetReadTranslator().Translate(ref deserializedLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectMetadataInstance_Internal_Tests.cs (2)
43TranslationHelpers.GetWriteTranslator().Translate(ref metadata, ProjectMetadataInstance.FactoryForDeserialization); 45TranslationHelpers.GetReadTranslator().Translate(ref deserializedMetadata, ProjectMetadataInstance.FactoryForDeserialization);
Instance\ProjectPropertyInstance_Internal_Tests.cs (6)
43TranslationHelpers.GetWriteTranslator().Translate(ref property, ProjectPropertyInstance.FactoryForDeserialization); 45TranslationHelpers.GetReadTranslator().Translate(ref deserializedProperty, ProjectPropertyInstance.FactoryForDeserialization); 60TranslationHelpers.GetWriteTranslator().Translate(ref property, ProjectPropertyInstance.FactoryForDeserialization); 62TranslationHelpers.GetReadTranslator().Translate(ref deserializedProperty, ProjectPropertyInstance.FactoryForDeserialization); 79TranslationHelpers.GetWriteTranslator().Translate(ref property, ProjectPropertyInstance.FactoryForDeserialization); 81TranslationHelpers.GetReadTranslator().Translate(ref deserializedProperty, ProjectPropertyInstance.FactoryForDeserialization);
Instance\TaskItem_Tests.cs (2)
57TranslationHelpers.GetWriteTranslator().Translate(ref item, TaskItem.FactoryForDeserialization); 59TranslationHelpers.GetReadTranslator().Translate(ref deserializedItem, TaskItem.FactoryForDeserialization);