7 instantiations of ItemSpec
Microsoft.Build (6)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
621ItemSpec<ProjectPropertyInstance, ProjectItemInstance> itemSpec = new ItemSpec<ProjectPropertyInstance, ProjectItemInstance>(child.Remove, expander, child.RemoveLocation, Project.Directory, true);
Definition\Project.cs (4)
2619var includeItemspec = new EvaluationItemSpec(itemElement.Include, _data.Expander, itemElement.IncludeLocation, itemElement.ContainingProject.DirectoryPath); 2635var excludeItemspec = new EvaluationItemSpec(itemElement.Exclude, _data.Expander, itemElement.ExcludeLocation, itemElement.ContainingProject.DirectoryPath); 2675var removeSpec = new EvaluationItemSpec(itemElement.Remove, _data.Expander, itemElement.RemoveLocation, itemElement.ContainingProject.DirectoryPath); 2798EvaluationItemSpec expandedItemSpec = new EvaluationItemSpec(itemSpec, _data.Expander, elementLocation, itemElement.ContainingProject.DirectoryPath, expandProperties: true);
Evaluation\LazyItemEvaluator.cs (1)
617builder.ItemSpec = new ItemSpec<P, I>(itemSpec, _outerExpander, itemSpecLocation, rootDirectory);
Microsoft.Build.Engine.UnitTests (1)
Evaluation\ItemSpec_Tests.cs (1)
85return new ProjectInstanceItemSpec(itemSpec, expander, location, Path.GetDirectoryName(location.File));
34 references to ItemSpec
Microsoft.Build (28)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (2)
621ItemSpec<ProjectPropertyInstance, ProjectItemInstance> itemSpec = new ItemSpec<ProjectPropertyInstance, ProjectItemInstance>(child.Remove, expander, child.RemoveLocation, Project.Directory, true); 623itemSpec.Fragments.All(f => f is ItemSpec<ProjectPropertyInstance, ProjectItemInstance>.ItemExpressionFragment),
Definition\Project.cs (8)
27using EvaluationItemExpressionFragment = Microsoft.Build.Evaluation.ItemSpec<Microsoft.Build.Evaluation.ProjectProperty, Microsoft.Build.Evaluation.ProjectItem>.ItemExpressionFragment; 28using EvaluationItemSpec = Microsoft.Build.Evaluation.ItemSpec<Microsoft.Build.Evaluation.ProjectProperty, Microsoft.Build.Evaluation.ProjectItem>; 2549public readonly void AccumulateInformationFromRemoveItemSpec(EvaluationItemSpec removeSpec) 2619var includeItemspec = new EvaluationItemSpec(itemElement.Include, _data.Expander, itemElement.IncludeLocation, itemElement.ContainingProject.DirectoryPath); 2635var excludeItemspec = new EvaluationItemSpec(itemElement.Exclude, _data.Expander, itemElement.ExcludeLocation, itemElement.ContainingProject.DirectoryPath); 2675var removeSpec = new EvaluationItemSpec(itemElement.Remove, _data.Expander, itemElement.RemoveLocation, itemElement.ContainingProject.DirectoryPath); 2798EvaluationItemSpec expandedItemSpec = new EvaluationItemSpec(itemSpec, _data.Expander, elementLocation, itemElement.ContainingProject.DirectoryPath, expandProperties: true); 2819private static int ItemMatchesInItemSpec(string itemToMatch, EvaluationItemSpec itemSpec, out Provenance provenance)
Evaluation\ItemSpec.cs (5)
38private readonly ItemSpec<P, I> _containingItemSpec; 71ItemSpec<P, I> containingItemSpec, 579internal MetadataTrie(MatchOnMetadataOptions options, IEnumerable<string> metadata, ItemSpec<P, I> itemSpec) 586foreach (ItemSpec<P, I>.ItemExpressionFragment frag in itemSpec.Fragments) 588foreach (ItemSpec<P, I>.ReferencedItem referencedItem in frag.ReferencedItems)
Evaluation\LazyItemEvaluator.cs (2)
466public ItemSpec<P, I> ItemSpec { get; set; } 621if (fragment is ItemSpec<P, I>.ItemExpressionFragment itemExpression)
Evaluation\LazyItemEvaluator.IncludeOperation.cs (1)
64if (fragment is ItemSpec<P, I>.ItemExpressionFragment itemReferenceFragment)
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (4)
26protected readonly ItemSpec<P, I> _itemSpec; 34internal ItemSpec<P, I> Spec => _itemSpec; 318protected static bool ItemspecContainsASingleBareItemReference(ItemSpec<P, I> itemSpec, string referencedItemType) 325var itemExpressionFragment = itemSpec.Fragments[0] as ItemSpec<P, I>.ItemExpressionFragment;
Evaluation\LazyItemEvaluator.RemoveOperation.cs (1)
28_matchOnMetadata.IsEmpty || _itemSpec.Fragments.All(f => f is ItemSpec<P, I>.ItemExpressionFragment),
Evaluation\LazyItemEvaluator.UpdateOperation.cs (5)
42private delegate MatchResult ItemSpecMatchesItem(ItemSpec<P, I> itemSpec, I itemToMatch); 118var itemReferenceFragments = _itemSpec.Fragments.OfType<ItemSpec<P, I>.ItemExpressionFragment>().ToArray(); 119var nonItemReferenceFragments = _itemSpec.Fragments.Where(f => !(f is ItemSpec<P, I>.ItemExpressionFragment)).ToArray(); 170private static bool ItemSpecContainsItemReferences(ItemSpec<P, I> itemSpec) 172return itemSpec.Fragments.Any(f => f is ItemSpec<P, I>.ItemExpressionFragment);
Microsoft.Build.Engine.UnitTests (6)
Evaluation\ItemSpec_Tests.cs (6)
18Microsoft.Build.Evaluation.ItemSpec<Microsoft.Build.Execution.ProjectPropertyInstance, Microsoft.Build.Execution.ProjectItemInstance>; 30var itemSpec = CreateItemSpecFrom("a;b*;c*;@(foo)", CreateExpander(new Dictionary<string, string[]> { { "foo", new[] { "d", "e" } } })); 51var itemSpecFromAbsolute = CreateItemSpecFrom(absoluteSpec, CreateExpander(new Dictionary<string, string[]>()), new MockElementLocation(projectFile)); 52var itemSpecFromRelative = CreateItemSpecFrom("s.cs", CreateExpander(new Dictionary<string, string[]>()), new MockElementLocation(projectFile)); 64var itemSpec = CreateItemSpecFrom("a;b*;c*;@(foo)", CreateExpander(new Dictionary<string, string[]> { { "foo", new[] { "d", "e" } } })); 81private ProjectInstanceItemSpec CreateItemSpecFrom(string itemSpec, ProjectInstanceExpander expander, IElementLocation location = null)