26 instantiations of MetadataModifications
Microsoft.Build (2)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
307var metadataToSet = new Lookup.MetadataModifications(keepMetadata != null);
BackEnd\Components\RequestBuilder\Lookup.cs (1)
1066return new MetadataModifications(this);
Microsoft.Build.Engine.UnitTests (24)
BackEnd\Lookup_Tests.cs (24)
415Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: true); 429Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: false); 479Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 495Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: true); 539Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: true); 557Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: true); 610Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: true); 628Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: true); 677Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: true); 732Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: true); 779Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 833Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 843newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 874Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 881newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 918Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 933newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 980Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 1037Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 1049Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: false); 1088Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 1100Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: false); 1141Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 1178Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false);
47 references to MetadataModifications
Microsoft.Build (26)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
307var metadataToSet = new Lookup.MetadataModifications(keepMetadata != null);
BackEnd\Components\RequestBuilder\Lookup.cs (25)
19using ItemsMetadataUpdateDictionary = System.Collections.Generic.Dictionary<Microsoft.Build.Execution.ProjectItemInstance, Microsoft.Build.BackEnd.Lookup.MetadataModifications>; 20using ItemTypeToItemsMetadataUpdateDictionary = System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<Microsoft.Build.Execution.ProjectItemInstance, Microsoft.Build.BackEnd.Lookup.MetadataModifications>>; 340foreach (KeyValuePair<string, Dictionary<ProjectItemInstance, MetadataModifications>> entry in PrimaryModifyTable) 342Dictionary<ProjectItemInstance, MetadataModifications> modifiesOfType; 346foreach (KeyValuePair<ProjectItemInstance, MetadataModifications> modify in entry.Value) 395foreach (KeyValuePair<string, Dictionary<ProjectItemInstance, MetadataModifications>> entry in PrimaryModifyTable) 473Dictionary<ProjectItemInstance, MetadataModifications> allModifies = null; 503Dictionary<ProjectItemInstance, MetadataModifications> modifies; 508allModifies ??= new Dictionary<ProjectItemInstance, MetadataModifications>(modifies.Count); 511foreach (KeyValuePair<ProjectItemInstance, MetadataModifications> modify in modifies) 747internal void ModifyItems(string itemType, ICollection<ProjectItemInstance> group, MetadataModifications metadataChanges) 779Dictionary<ProjectItemInstance, MetadataModifications> modifiesOfType; 782modifiesOfType = new Dictionary<ProjectItemInstance, MetadataModifications>(); 790var metadataChangeCopy = metadataChanges.Clone(); 795var modify = new KeyValuePair<ProjectItemInstance, MetadataModifications>(actualItem, metadataChangeCopy); 808private void ApplyModifies(ItemDictionary<ProjectItemInstance> result, Dictionary<ProjectItemInstance, MetadataModifications> allModifies) 823var modificationsToApply = modify.Value; 842private static void ApplyMetadataModificationsToItem(MetadataModifications modificationsToApply, ProjectItemInstance itemToModify) 902var modificationsToApply = kvPair.Value; 915private void MergeModificationsIntoModificationTable(Dictionary<ProjectItemInstance, MetadataModifications> modifiesOfType, 916KeyValuePair<ProjectItemInstance, MetadataModifications> modify, 919MetadataModifications existingMetadataChanges; 1054private MetadataModifications(MetadataModifications other) 1064public MetadataModifications Clone() 1089public void ApplyModifications(MetadataModifications other)
Microsoft.Build.Engine.UnitTests (21)
BackEnd\Lookup_Tests.cs (21)
415Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: true); 429Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: false); 479Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 495Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: true); 539Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: true); 557Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: true); 610Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: true); 628Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: true); 677Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: true); 732Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: true); 779Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 833Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 874Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 918Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 980Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 1037Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 1049Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: false); 1088Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 1100Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: false); 1141Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 1178Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false);