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