16 instantiations of Lookup
Microsoft.Build (2)
BackEnd\Components\RequestBuilder\Lookup.cs (1)
240return new Lookup(this);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
594_baseLookup = new Lookup(Project.ItemsToBuildWith, Project.PropertiesToBuildWith);
Microsoft.Build.Engine.UnitTests (14)
BackEnd\BatchingEngine_Tests.cs (1)
532return new Lookup(itemsByType, properties);
BackEnd\IntrinsicTask_Tests.cs (1)
4001var lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(), new PropertyDictionary<ProjectPropertyInstance>());
BackEnd\Lookup_Tests.cs (4)
1292Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(), new PropertyDictionary<ProjectPropertyInstance>()); 1298Lookup lookup = new Lookup(items, new PropertyDictionary<ProjectPropertyInstance>()); 1304Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(), properties); 1310Lookup lookup = new Lookup(items, properties);
BackEnd\TargetBuilder_Tests.cs (1)
1572Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties));
BackEnd\TargetEntry_Tests.cs (3)
85Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties)); 115Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties)); 1030Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties));
BackEnd\TargetUpToDateChecker_Tests.cs (1)
612ItemBucket itemBucket = new ItemBucket(null, null, new Lookup(itemsByName, new PropertyDictionary<ProjectPropertyInstance>()), 0);
BackEnd\TaskExecutionHost_Tests.cs (1)
1286_bucket = new ItemBucket(Array.Empty<string>(), new Dictionary<string, string>(), new Lookup(itemsByName, new PropertyDictionary<ProjectPropertyInstance>()), 0);
Evaluation\Expander_Tests.cs (2)
1400Lookup lookup = new Lookup(secondaryItemsByName, pg); 1587var lookup = new Lookup(projectItemGroups, pg);
256 references to Lookup
Microsoft.Build (56)
BackEnd\Components\RequestBuilder\BatchingEngine.cs (4)
83Lookup lookup, 103Lookup lookup, 210Lookup lookup, 301Lookup lookup,
BackEnd\Components\RequestBuilder\IntrinsicTask.cs (1)
89internal abstract void ExecuteTask(Lookup lookup);
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (5)
52internal override void ExecuteTask(Lookup lookup) 307var metadataToSet = new Lookup.MetadataModifications(keepMetadata != null); 314metadataToSet[metadataName] = Lookup.MetadataModification.CreateFromNoChange(); 321metadataToSet[metadataName] = Lookup.MetadataModification.CreateFromRemove(); 340metadataToSet[metadataInstance.Name] = Lookup.MetadataModification.CreateFromNewValue(evaluatedValue);
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
45internal override void ExecuteTask(Lookup lookup)
BackEnd\Components\RequestBuilder\ITargetBuilder.cs (1)
29Task<BuildResult> BuildTargets(ProjectLoggingContext projectLoggingContext, BuildRequestEntry entry, IRequestBuilderCallback callback, (string name, TargetBuiltReason reason)[] targets, Lookup baseLookup, CancellationToken cancellationToken);
BackEnd\Components\RequestBuilder\ITaskBuilder.cs (2)
54Task<WorkUnitResult> ExecuteTask(TargetLoggingContext targetLoggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild task, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution, CancellationToken cancellationToken);
BackEnd\Components\RequestBuilder\ItemBucket.cs (4)
41private readonly Lookup _lookup; 55private readonly Lookup.Scope _lookupEntry; 80Lookup lookup, 185internal Lookup Lookup
BackEnd\Components\RequestBuilder\Lookup.cs (13)
19using ItemsMetadataUpdateDictionary = System.Collections.Generic.Dictionary<Microsoft.Build.Execution.ProjectItemInstance, Microsoft.Build.BackEnd.Lookup.MetadataModifications>; 20using ItemTypeToItemsMetadataUpdateDictionary = System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<Microsoft.Build.Execution.ProjectItemInstance, Microsoft.Build.BackEnd.Lookup.MetadataModifications>>; 74private LinkedList<Lookup.Scope> _lookupScopes = new LinkedList<Lookup.Scope>(); 97Lookup.Scope scope = new Lookup.Scope(this, "Lookup()", projectItems, properties); 104private Lookup(Lookup that) 107foreach (Lookup.Scope scope in that._lookupScopes) 238internal Lookup Clone() 247internal Lookup.Scope EnterScope(string description) 261private void LeaveScope(Lookup.Scope scopeToLeave) 1358private Lookup _owningLookup; 1366internal Scope(Lookup lookup, string description, IItemDictionary<ProjectItemInstance> items, PropertyDictionary<ProjectPropertyInstance> properties)
BackEnd\Components\RequestBuilder\TargetBuilder.cs (4)
66private Lookup _baseLookup; 103public async Task<BuildResult> BuildTargets(ProjectLoggingContext loggingContext, BuildRequestEntry entry, IRequestBuilderCallback callback, (string name, TargetBuiltReason reason)[] targetNames, Lookup baseLookup, CancellationToken cancellationToken) 253Lookup callTargetLookup = _baseLookup; 655private async Task<bool> PushTargets(IList<TargetSpecification> targets, TargetEntry parentTargetEntry, Lookup baseLookup, bool addAsErrorTarget, bool stopProcessingOnCompletion, TargetBuiltReason buildReason)
BackEnd\Components\RequestBuilder\TargetEntry.cs (13)
124private Lookup _baseLookup; 139private Stack<Lookup.Scope> _legacyCallTargetScopes; 172Lookup baseLookup, TargetEntry parentTarget, 261internal Lookup Lookup 467Lookup.Scope entryForInference = null; 468Lookup.Scope entryForExecution = null; 476Lookup lookupForInference; 477Lookup lookupForExecution; 757internal void EnterLegacyCallTargetScope(Lookup lookup) 761_legacyCallTargetScopes = new Stack<Lookup.Scope>(); 799Lookup.Scope entry = _legacyCallTargetScopes.Pop(); 813private async Task<WorkUnitResult> ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (5)
152public async Task<WorkUnitResult> ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken) 294private async Task<WorkUnitResult> ExecuteTask(TaskExecutionMode mode, Lookup lookup) 564Lookup.Scope scope = bucket.Lookup.EnterScope("STA Thread for Task"); 1174Lookup lookup,
BackEnd\Shared\BuildRequestConfiguration.cs (2)
118private Lookup _baseLookup; 586public Lookup BaseLookup
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1215private void EnsureParameterInitialized(TaskPropertyInfo parameter, Lookup lookup)
Microsoft.Build.Engine.UnitTests (200)
BackEnd\BatchingEngine_Tests.cs (1)
530private static Lookup CreateLookup(ItemDictionary<ProjectItemInstance> itemsByType, PropertyDictionary<ProjectPropertyInstance> properties)
BackEnd\BuildRequestConfiguration_Tests.cs (1)
383Lookup lookup = configuration.BaseLookup;
BackEnd\IntrinsicTask_Tests.cs (65)
247Lookup lookup = LookupHelpers.CreateEmptyLookup(); 290Lookup lookup = LookupHelpers.CreateEmptyLookup(); 310Lookup lookup = LookupHelpers.CreateEmptyLookup(); 331Lookup lookup = LookupHelpers.CreateEmptyLookup(); 351Lookup lookup = LookupHelpers.CreateEmptyLookup(); 372Lookup lookup = LookupHelpers.CreateEmptyLookup(); 393Lookup lookup = LookupHelpers.CreateEmptyLookup(); 421Lookup lookup = LookupHelpers.CreateEmptyLookup(); 443Lookup lookup = LookupHelpers.CreateEmptyLookup(); 467Lookup lookup = LookupHelpers.CreateEmptyLookup(); 494Lookup lookup = LookupHelpers.CreateEmptyLookup(); 520Lookup lookup = LookupHelpers.CreateEmptyLookup(); 546Lookup lookup = LookupHelpers.CreateEmptyLookup(); 573Lookup lookup = LookupHelpers.CreateEmptyLookup(); 597Lookup lookup = LookupHelpers.CreateEmptyLookup(); 623Lookup lookup = LookupHelpers.CreateEmptyLookup(); 649Lookup lookup = LookupHelpers.CreateEmptyLookup(); 680Lookup lookup = LookupHelpers.CreateEmptyLookup(); 699Lookup lookup = LookupHelpers.CreateEmptyLookup(); 722Lookup lookup = LookupHelpers.CreateEmptyLookup(); 748Lookup lookup = LookupHelpers.CreateLookup(properties); 819Lookup lookup = LookupHelpers.CreateEmptyLookup(); 843Lookup lookup = LookupHelpers.CreateEmptyLookup(); 864Lookup lookup = LookupHelpers.CreateEmptyLookup(); 888Lookup lookup = LookupHelpers.CreateEmptyLookup(); 999Lookup lookup = LookupHelpers.CreateLookup(properties); 1026Lookup lookup = LookupHelpers.CreateEmptyLookup(); 1060Lookup lookup = LookupHelpers.CreateEmptyLookup(); 1117Lookup lookup = GenerateLookup(task.Project); 1201Lookup lookup = GenerateLookup(task.Project); 1628Lookup lookup = LookupHelpers.CreateEmptyLookup(); 1646Lookup lookup = LookupHelpers.CreateEmptyLookup(); 1709Lookup lookup = LookupHelpers.CreateEmptyLookup(); 1728Lookup lookup = LookupHelpers.CreateEmptyLookup(); 1747Lookup lookup = LookupHelpers.CreateEmptyLookup(); 1774Lookup lookup = LookupHelpers.CreateEmptyLookup(); 1808Lookup lookup = LookupHelpers.CreateEmptyLookup(); 1850Lookup lookup = LookupHelpers.CreateEmptyLookup(); 1905Lookup lookup = LookupHelpers.CreateLookup(properties); 1939Lookup lookup = LookupHelpers.CreateLookup(properties); 1977Lookup lookup = LookupHelpers.CreateLookup(properties); 2013Lookup lookup = LookupHelpers.CreateEmptyLookup(); 2051Lookup lookup = LookupHelpers.CreateEmptyLookup(); 2086Lookup lookup = LookupHelpers.CreateEmptyLookup(); 2113Lookup lookup = LookupHelpers.CreateEmptyLookup(); 2143Lookup lookup = GenerateLookup(task.Project); 2185Lookup lookup = GenerateLookupWithItemsAndProperties(task.Project); 2224Lookup lookup = GenerateLookupWithItemsAndProperties(task.Project); 2267Lookup lookup = GenerateLookup(task.Project); 2541Lookup lookup = LookupHelpers.CreateLookup(properties); 2831Lookup lookup = LookupHelpers.CreateEmptyLookup(); 2853Lookup lookup = LookupHelpers.CreateEmptyLookup(); 2911Lookup lookup = LookupHelpers.CreateEmptyLookup(); 2962Lookup lookup = LookupHelpers.CreateEmptyLookup(); 2992Lookup lookup = LookupHelpers.CreateEmptyLookup(); 3041Lookup lookup = LookupHelpers.CreateEmptyLookup(); 3072Lookup lookup = LookupHelpers.CreateEmptyLookup(); 3111Lookup lookup = GenerateLookup(task.Project); 3909private static Lookup GenerateLookupWithItemsAndProperties(ProjectInstance project) 3914Lookup lookup = GenerateLookup(project, pg); 3918private static Lookup GenerateLookup(ProjectInstance project) 3923private static Lookup GenerateLookup(ProjectInstance project, PropertyDictionary<ProjectPropertyInstance> properties) 3945Lookup lookup = LookupHelpers.CreateLookup(properties, itemsByName); 3974private void ExecuteTask(IntrinsicTask task, Lookup lookup) 4001var lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(), new PropertyDictionary<ProjectPropertyInstance>());
BackEnd\Lookup_Tests.cs (114)
31Lookup lookup = LookupHelpers.CreateLookup(table1); 53Lookup lookup = LookupHelpers.CreateLookup(table1); 68Lookup lookup = LookupHelpers.CreateEmptyLookup(); 85Lookup lookup = LookupHelpers.CreateLookup(table1); 96Lookup.Scope enteredScope = lookup.EnterScope("x"); 107Lookup.Scope enteredScope2 = lookup.EnterScope("x"); 158Lookup lookup = LookupHelpers.CreateLookup(table1); 208Lookup lookup = LookupHelpers.CreateLookup(table1); 257Lookup lookup = LookupHelpers.CreateLookup(table1); 260Lookup.Scope enteredScope = lookup.EnterScope("x"); 263Lookup.Scope enteredScope2 = lookup.EnterScope("x"); 305Lookup lookup = LookupHelpers.CreateLookup(table1); 309Lookup.Scope enteredScope = lookup.EnterScope("x"); 318Lookup lookup2 = lookup.Clone(); 324Lookup.Scope enteredScope2 = lookup.EnterScope("x"); 360Lookup lookup = LookupHelpers.CreateLookup(table1); 363Lookup.Scope enteredScope = lookup.EnterScope("x"); 370Lookup.Scope enteredScope2 = lookup.EnterScope("x"); 402Lookup lookup = LookupHelpers.CreateLookup(table1); 404Lookup.Scope enteredScope = lookup.EnterScope("x"); 412Lookup.Scope enteredScope2 = lookup.EnterScope("x"); 415Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: true); 429Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: false); 466Lookup lookup = LookupHelpers.CreateLookup(table1); 468Lookup.Scope enteredScope = lookup.EnterScope("x"); 476Lookup.Scope enteredScope2 = lookup.EnterScope("x"); 479Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 495Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: true); 526Lookup lookup = LookupHelpers.CreateLookup(table1); 528Lookup.Scope enteredScope = lookup.EnterScope("x"); 536Lookup.Scope enteredScope2 = lookup.EnterScope("x"); 539Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: true); 557Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: true); 597Lookup lookup = LookupHelpers.CreateLookup(table1); 599Lookup.Scope enteredScope = lookup.EnterScope("x"); 607Lookup.Scope enteredScope2 = lookup.EnterScope("x"); 610Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: true); 628Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: true); 629newMetadata2["m3"] = Lookup.MetadataModification.CreateFromNoChange(); 664Lookup lookup = LookupHelpers.CreateLookup(table1); 666Lookup.Scope enteredScope = lookup.EnterScope("x"); 674Lookup.Scope enteredScope2 = lookup.EnterScope("x"); 677Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: true); 678newMetadata["m1"] = Lookup.MetadataModification.CreateFromNoChange(); 719Lookup lookup = LookupHelpers.CreateLookup(table1); 721Lookup.Scope enteredScope = lookup.EnterScope("x"); 729Lookup.Scope enteredScope2 = lookup.EnterScope("x"); 732Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: true); 767Lookup lookup = LookupHelpers.CreateLookup(table1); 769Lookup.Scope enteredScope = lookup.EnterScope("x"); 776Lookup.Scope enteredScope2 = lookup.EnterScope("x"); 779Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 823Lookup lookup = LookupHelpers.CreateLookup(table1); 833Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 843newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 864Lookup lookup = LookupHelpers.CreateLookup(table1); 874Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 881newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 899Lookup lookup = LookupHelpers.CreateLookup(table1); 908Lookup.Scope enteredScope = lookup.EnterScope("x"); 918Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 933newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 970Lookup lookup = LookupHelpers.CreateLookup(table1); 972Lookup.Scope enteredScope = lookup.EnterScope("x"); 980Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 1015Lookup lookup = LookupHelpers.CreateLookup(new ItemDictionary<ProjectItemInstance>()); 1027Lookup lookup = LookupHelpers.CreateLookup(table1); 1034Lookup.Scope enteredScope = lookup.EnterScope("x"); 1037Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 1049Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: false); 1083Lookup lookup = LookupHelpers.CreateLookup(table1); 1085Lookup.Scope enteredScope = lookup.EnterScope("x"); 1088Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 1100Lookup.MetadataModifications newMetadata2 = new Lookup.MetadataModifications(keepOnlySpecified: false); 1131Lookup lookup = LookupHelpers.CreateLookup(table1); 1141Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 1173Lookup lookup = LookupHelpers.CreateLookup(table1); 1175Lookup.Scope enteredScope = lookup.EnterScope("x"); 1178Lookup.MetadataModifications newMetadata = new Lookup.MetadataModifications(keepOnlySpecified: false); 1213Lookup lookup = LookupHelpers.CreateLookup(group); 1229Lookup lookup = LookupHelpers.CreateLookup(group); 1247Lookup lookup = LookupHelpers.CreateLookup(group); 1249Lookup.Scope enteredScope = lookup.EnterScope("x"); 1258Lookup.Scope enteredScope2 = lookup.EnterScope("x"); 1267Lookup.Scope enteredScope3 = lookup.EnterScope("x"); 1290internal static Lookup CreateEmptyLookup() 1292Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(), new PropertyDictionary<ProjectPropertyInstance>()); 1296internal static Lookup CreateLookup(ItemDictionary<ProjectItemInstance> items) 1298Lookup lookup = new Lookup(items, new PropertyDictionary<ProjectPropertyInstance>()); 1302internal static Lookup CreateLookup(PropertyDictionary<ProjectPropertyInstance> properties) 1304Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(), properties); 1308internal static Lookup CreateLookup(PropertyDictionary<ProjectPropertyInstance> properties, ItemDictionary<ProjectItemInstance> items) 1310Lookup lookup = new Lookup(items, properties);
BackEnd\MockTaskBuilder.cs (2)
83public Task<WorkUnitResult> ExecuteTask(TargetLoggingContext targetLoggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild task, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution, CancellationToken cancellationToken)
BackEnd\RequestBuilder_Tests.cs (1)
359public Task<BuildResult> BuildTargets(ProjectLoggingContext loggingContext, BuildRequestEntry entry, IRequestBuilderCallback callback, (string name, TargetBuiltReason reason)[] targets, Lookup baseLookup, CancellationToken cancellationToken)
BackEnd\TargetBuilder_Tests.cs (2)
1570private Lookup CreateStandardLookup(ProjectInstance project) 1572Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties));
BackEnd\TargetEntry_Tests.cs (3)
85Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties)); 115Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties)); 1030Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties));
Evaluation\Expander_Tests.cs (11)
1354out Lookup readOnlyLookup, 1400Lookup lookup = new Lookup(secondaryItemsByName, pg); 1416Lookup lookup; 1448Lookup lookup; 1501Lookup lookup; 1527Lookup lookup; 1549Lookup lookup; 1587var lookup = new Lookup(projectItemGroups, pg); 1630Lookup lookup; 1659Lookup lookup; 1682Lookup lookup;