5 instantiations of ProjectItemDefinitionInstance
Microsoft.Build (4)
Instance\ProjectInstance.cs (3)
983new ProjectItemDefinitionInstance(projectItemDefinition.ItemType, metadata)); 1727ProjectItemDefinitionInstance itemDefinitionInstance = new ProjectItemDefinitionInstance(itemType); 3438_itemDefinitions.Add(new ProjectItemDefinitionInstance(definition));
Instance\ProjectItemDefinitionInstance.cs (1)
231var instance = new ProjectItemDefinitionInstance();
Microsoft.Build.Engine.UnitTests (1)
Instance\TaskItem_Tests.cs (1)
219ProjectItemDefinitionInstance itemDefinition = new(projectItemDefinition);
105 references to ProjectItemDefinitionInstance
Microsoft.Build (92)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
158ProjectItemDefinitionInstance itemDefinition;
Instance\ProjectInstance.cs (66)
77public class ProjectInstance : IPropertyProvider<ProjectPropertyInstance>, IItemProvider<ProjectItemInstance>, IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>, ITranslatable 158private IRetrievableEntryHashSet<ProjectItemDefinitionInstance> _itemDefinitions; 544_itemDefinitions = new RetrievableEntryHashSet<ProjectItemDefinitionInstance>(projectToInheritFrom._itemDefinitions, MSBuildNameIgnoreCaseComparer.Default); 560IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance> thisAsIEvaluatorData = this; 743ProjectItemDefinitionInstance>)this).BeforeTargets = CreateCloneDictionary( 745ProjectItemDefinitionInstance>)that).BeforeTargets, StringComparer.OrdinalIgnoreCase); 747ProjectItemDefinitionInstance>)this).AfterTargets = CreateCloneDictionary( 749ProjectItemDefinitionInstance>)that).AfterTargets, StringComparer.OrdinalIgnoreCase); 903private static IRetrievableEntryHashSet<ProjectItemDefinitionInstance> GetImmutableItemDefinitionsHashSetFromImmutableProject(Project linkedProject) 911var hashSet = new ImmutableElementCollectionConverter<ProjectItemDefinition, ProjectItemDefinitionInstance>( 964private static ProjectItemDefinitionInstance ConvertCachedItemDefinitionToInstance(ProjectItemDefinition projectItemDefinition) 966ProjectItemDefinitionInstance result = null; 968if (projectItemDefinition is IImmutableInstanceProvider<ProjectItemDefinitionInstance> instanceProvider) 1114bool IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.CanEvaluateElementsWithFalseConditions => false; 1205public IDictionary<string, ProjectItemDefinitionInstance> ItemDefinitions 1281TaskRegistry IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.TaskRegistry 1298Toolset IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Toolset 1309string IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SubToolsetVersion 1323string IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ExplicitToolsVersion 1333PropertyDictionary<ProjectPropertyInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GlobalPropertiesDictionary 1340PropertyDictionary<ProjectPropertyInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.EnvironmentVariablePropertiesDictionary 1348ISet<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GlobalPropertiesToTreatAsLocal 1364PropertyDictionary<ProjectPropertyInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Properties 1374IEnumerable<ProjectItemDefinitionInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ItemDefinitionsEnumerable 1384IItemDictionary<ProjectItemInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Items 1395List<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.InitialTargets 1413List<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.DefaultTargets 1431IDictionary<string, List<TargetSpecification>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.BeforeTargets 1441IDictionary<string, List<TargetSpecification>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AfterTargets 1454Dictionary<string, List<string>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ConditionedProperties 1468bool IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ShouldEvaluateForDesignTime 1620public static string GetEvaluatedItemIncludeEscaped(ProjectItemDefinitionInstance item) 1651public static string GetMetadataValueEscaped(ProjectItemDefinitionInstance item, string name) 1685void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>. 1695void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.FinishEvaluation() 1705void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddItem(ProjectItemInstance item) 1716void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddItemIgnoringCondition(ProjectItemInstance item) 1725IItemDefinition<ProjectMetadataInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddItemDefinition(string itemType) 1727ProjectItemDefinitionInstance itemDefinitionInstance = new ProjectItemDefinitionInstance(itemType); 1743void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddToAllEvaluatedPropertiesList(ProjectPropertyInstance property) 1757void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddToAllEvaluatedItemDefinitionMetadataList(ProjectMetadataInstance itemDefinitionMetadatum) 1771void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddToAllEvaluatedItemsList(ProjectItemInstance item) 1779IItemDefinition<ProjectMetadataInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GetItemDefinition(string itemType) 1781ProjectItemDefinitionInstance itemDefinitionInstance; 1794ProjectPropertyInstance IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext, bool isEnvironmentVariable) 1807ProjectPropertyInstance IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, LoggingContext loggingContext) 1818ProjectTargetInstance IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GetTarget(string targetName) 1831void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddTarget(ProjectTargetInstance target) 1839void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.RecordImport( 1846((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).RecordImportWithDuplicates(importElement, import, versionEvaluated); 1852void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.RecordImportWithDuplicates(ProjectImportElement importElement, ProjectRootElement import, int versionEvaluated) 2285foreach (ProjectItemDefinitionInstance itemDefinitionInstance in _itemDefinitions.Values) 2426ProjectItemDefinitionInstance.FactoryForDeserialization, 2427capacity => new RetrievableEntryHashSet<ProjectItemDefinitionInstance>(capacity, MSBuildNameIgnoreCaseComparer.Default)); 2743if (((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).BeforeTargets.TryGetValue(target, out beforeTargetsForTarget)) 2760if (((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).AfterTargets.TryGetValue(target, out afterTargetsForTarget)) 3100_itemDefinitions = new RetrievableEntryHashSet<ProjectItemDefinitionInstance>(MSBuildNameIgnoreCaseComparer.Default); 3171Evaluator<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Evaluate( 3224((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).BeforeTargets = CreateCloneDictionary(beforeTargets, StringComparer.OrdinalIgnoreCase); 3225((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).AfterTargets = CreateCloneDictionary(afterTargets, StringComparer.OrdinalIgnoreCase); 3326List<ProjectItemDefinitionInstance> inheritedItemDefinitions = null; 3329inheritedItemDefinitions = new List<ProjectItemDefinitionInstance>(item.InheritedItemDefinitions.Count); 3385IList<ProjectItemDefinitionInstance> inheritedItemDefinitions = 3386new ImmutableItemDefinitionsListConverter<ProjectItemDefinition, ProjectItemDefinitionInstance>( 3434_itemDefinitions = new RetrievableEntryHashSet<ProjectItemDefinitionInstance>(itemDefinitions.Count, MSBuildNameIgnoreCaseComparer.Default);
Instance\ProjectItemDefinitionInstance.cs (3)
70/// Initializes a new instance of the <see cref="ProjectItemDefinitionInstance"/> class. 229internal static ProjectItemDefinitionInstance FactoryForDeserialization(ITranslator translator) 231var instance = new ProjectItemDefinitionInstance();
Instance\ProjectItemInstance.cs (17)
104IList<ProjectItemDefinitionInstance> itemDefinitions, 704IList<ProjectItemDefinitionInstance> itemDefinitions, 713IList<ProjectItemDefinitionInstance> inheritedItemDefinitions; 717inheritedItemDefinitions = (itemDefinitions == null) ? null : new List<ProjectItemDefinitionInstance>(itemDefinitions); 719ProjectItemDefinitionInstance itemDefinition; 722inheritedItemDefinitions ??= new List<ProjectItemDefinitionInstance>(); 801private IList<ProjectItemDefinitionInstance> _itemDefinitions; 831IList<ProjectItemDefinitionInstance> itemDefinitions, 1436destinationAsTaskItem._itemDefinitions = (_itemDefinitions == null) ? null : new List<ProjectItemDefinitionInstance>(_itemDefinitions); 1543ProjectItemDefinitionInstance.FactoryForDeserialization, 1544(capacity) => new List<ProjectItemDefinitionInstance>(capacity)); 1754ProjectItemDefinitionInstance.FactoryForDeserialization, 1755(capacity) => new List<ProjectItemDefinitionInstance>(capacity)); 2089List<ProjectItemDefinitionInstance> itemDefinitionsClone = null; 2092itemDefinitionsClone ??= new List<ProjectItemDefinitionInstance>(source._taskItem._itemDefinitions.Count + 1); 2096ProjectItemDefinitionInstance sourceItemDefinition; 2099itemDefinitionsClone ??= new List<ProjectItemDefinitionInstance>();
ObjectModelRemoting\LinkedObjectFactory.cs (5)
265private class LinkedProjectItemDefinition : ProjectItemDefinition, ILinkableObject, IImmutableInstanceProvider<ProjectItemDefinitionInstance> 267private ProjectItemDefinitionInstance _immutableInstance; 275public ProjectItemDefinitionInstance ImmutableInstance => _immutableInstance; 277public ProjectItemDefinitionInstance GetOrSetImmutableInstance(ProjectItemDefinitionInstance instance)
Microsoft.Build.Engine.UnitTests (13)
Definition\ItemDefinitionGroup_Tests.cs (6)
599List<ProjectItemDefinitionInstance> itemdefs = new List<ProjectItemDefinitionInstance>(); 635List<ProjectItemDefinitionInstance> itemdefs = new List<ProjectItemDefinitionInstance>(); 677List<ProjectItemDefinitionInstance> itemdefs = new List<ProjectItemDefinitionInstance>();
Instance\TaskItem_Tests.cs (2)
210List<ProjectItemDefinitionInstance> itemDefinitions = new(); 219ProjectItemDefinitionInstance itemDefinition = new(projectItemDefinition);
TestComparers\ProjectInstanceModelTestComparers.cs (5)
14Microsoft.Build.Execution.ProjectMetadataInstance, Microsoft.Build.Execution.ProjectItemDefinitionInstance>; 244public class ItemDefinitionComparer : IEqualityComparer<ProjectItemDefinitionInstance> 246public bool Equals(ProjectItemDefinitionInstance x, ProjectItemDefinitionInstance y) 254public int GetHashCode(ProjectItemDefinitionInstance obj)