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