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