5 writes to _itemDefinitions
Microsoft.Build (5)
Instance\ProjectItemInstance.cs (5)
842
_itemDefinitions
= itemDefinitions;
1436
destinationAsTaskItem.
_itemDefinitions
= (_itemDefinitions == null) ? null : new List<ProjectItemDefinitionInstance>(_itemDefinitions);
1542
ref
_itemDefinitions
,
1555
_itemDefinitions
= null;
1753
ref
_itemDefinitions
,
23 references to _itemDefinitions
Microsoft.Build (23)
Instance\ProjectItemInstance.cs (23)
1054
var list =
_itemDefinitions
!= null ? MetadataCollection : _directMetadata;
1140
if (
_itemDefinitions
== null)
1155
for (int i =
_itemDefinitions
.Count - 1; i >= 0; i--)
1157
foreach (ProjectMetadataInstance metadatum in
_itemDefinitions
[i].Metadata)
1165
Debug.Fail($"metadatum from {
_itemDefinitions
[i]} is null, see https://github.com/dotnet/msbuild/issues/5267");
1434
if (destinationAsTaskItem.
_itemDefinitions
== null)
1436
destinationAsTaskItem._itemDefinitions = (
_itemDefinitions
== null) ? null : new List<ProjectItemDefinitionInstance>(
_itemDefinitions
);
1438
else if (
_itemDefinitions
!= null)
1440
for (int i = 0; i <
_itemDefinitions
.Count; i++)
1442
destinationAsTaskItem.
_itemDefinitions
.Add(
_itemDefinitions
[i]);
1552
if (
_itemDefinitions
?.Count == 0)
1628
int capacity =
_itemDefinitions
?.Count ?? 0 + _directMetadata?.Count ?? 0;
1631
if (
_itemDefinitions
is not null)
1633
for (int i = 0; i <
_itemDefinitions
.Count; i++)
1635
thisNames.UnionWith(
_itemDefinitions
[i].MetadataNames);
1946
if (
_itemDefinitions
!= null)
1948
for (int i = 0; i <
_itemDefinitions
.Count; i++)
1950
ProjectMetadataInstance metadataFromDefinition =
_itemDefinitions
[i].GetMetadata(metadataName);
2090
if (source._taskItem.
_itemDefinitions
!= null)
2092
itemDefinitionsClone ??= new List<ProjectItemDefinitionInstance>(source._taskItem.
_itemDefinitions
.Count + 1);
2093
itemDefinitionsClone.AddRange(source._taskItem.
_itemDefinitions
);