56 references to EvaluationPass
Microsoft.Build (13)
Evaluation\Evaluator.cs (8)
617using (_evaluationProfiler.TrackPass(EvaluationPass.TotalEvaluation)) 631using (_evaluationProfiler.TrackPass(EvaluationPass.InitialProperties)) 653using (_evaluationProfiler.TrackPass(EvaluationPass.Properties)) 671using (_evaluationProfiler.TrackPass(EvaluationPass.ItemDefinitionGroups)) 683using (_evaluationProfiler.TrackPass(EvaluationPass.Items)) 699using (_evaluationProfiler.TrackPass(EvaluationPass.LazyItems)) 728using (_evaluationProfiler.TrackPass(EvaluationPass.UsingTasks)) 760using (_evaluationProfiler.TrackPass(EvaluationPass.Targets))
Evaluation\Profiler\EvaluationProfiler.cs (1)
42public IDisposable TrackPass(EvaluationPass evaluationPass, string passDescription = null)
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
1766var evaluationPass = (EvaluationPass)ReadInt32();
Logging\EvaluationLocationIdAgnosticComparer.cs (1)
41hashCode = (hashCode * -1521134295) + EqualityComparer<EvaluationPass>.Default.GetHashCode(obj.EvaluationPass);
LogMessagePacketBase.cs (1)
1548(EvaluationPass)evaluationPass,
Microsoft.Build.Engine.UnitTests (20)
BuildEventArgsSerialization_Tests.cs (3)
795new EvaluationLocation(1, 0, EvaluationPass.InitialProperties, "desc1", "file1", 7, "element1", "description", EvaluationLocationKind.Condition), 799new EvaluationLocation(0, null, EvaluationPass.LazyItems, "desc2", "file1", null, "element2", "description2", EvaluationLocationKind.Glob), 803new EvaluationLocation(2, 0, EvaluationPass.Properties, "desc2", "file1", null, "element2", "description2", EvaluationLocationKind.Element),
EvaluationProfiler_Tests.cs (17)
152Assert.Single(profiledElements.Where(location => location.EvaluationPass == EvaluationPass.InitialProperties)); 160Assert.Single(profiledElements.Where(location => location.ElementName == "CSFile" & location.EvaluationPass == EvaluationPass.ItemDefinitionGroups)); 164Assert.Equal(2, profiledElements.Count(location => location.ElementName == "CSFile" & location.EvaluationPass == EvaluationPass.Items)); 165Assert.Single(profiledElements.Where(location => location.ElementName == "Condition" & location.EvaluationPass == EvaluationPass.Items)); 166Assert.Equal(2, profiledElements.Count(location => location.ElementName == "CSFile" & location.EvaluationPass == EvaluationPass.LazyItems)); 170Assert.Single(profiledElements.Where(location => location.EvaluationPass == EvaluationPass.UsingTasks)); 195Assert.Equal(2, profiledElements.Count(location => location.ElementName == "TestGlob" & location.EvaluationPass == EvaluationPass.Items)); 196Assert.Equal(2, profiledElements.Count(location => location.ElementName == "TestGlob" & location.EvaluationPass == EvaluationPass.LazyItems)); 199Assert.Single(profiledElements.Where(location => location.EvaluationPass == EvaluationPass.TotalGlobbing)); 201evaluationLocation.EvaluationPass == EvaluationPass.TotalGlobbing); 223var totalEvaluation = profiledElements.Find(e => e.IsEvaluationPass && e.EvaluationPass == EvaluationPass.TotalEvaluation); 224Assert.True(profiledElements.Where(e => e.IsEvaluationPass && e.EvaluationPass != EvaluationPass.TotalGlobbing && !e.Equals(totalEvaluation)) 228var itemPass = profiledElements.Find(e => e.IsEvaluationPass && e.EvaluationPass == EvaluationPass.Items); 230var testItem = profiledElements.Find(e => e.ElementName == "Test" && e.EvaluationPass == EvaluationPass.Items); 235var lazyItemPass = profiledElements.Find(e => e.IsEvaluationPass && e.EvaluationPass == EvaluationPass.LazyItems); 236var lazyTestItem = profiledElements.Find(e => e.ElementName == "Test" && e.EvaluationPass == EvaluationPass.LazyItems); 240var targetPass = profiledElements.Find(e => e.IsEvaluationPass && e.EvaluationPass == EvaluationPass.Targets);
Microsoft.Build.Framework (23)
Profiler\EvaluationLocation.cs (23)
62private static readonly Dictionary<EvaluationPass, string> PassDefaultDescription = 63new Dictionary<EvaluationPass, string> 65{EvaluationPass.TotalEvaluation, "Total evaluation"}, 66{EvaluationPass.TotalGlobbing, "Total evaluation for globbing"}, 67{EvaluationPass.InitialProperties, "Initial properties (pass 0)"}, 68{EvaluationPass.Properties, "Properties (pass 1)"}, 69{EvaluationPass.ItemDefinitionGroups, "Item definition groups (pass 2)"}, 70{EvaluationPass.Items, "Items (pass 3)"}, 71{EvaluationPass.LazyItems, "Lazy items (pass 3.1)"}, 72{EvaluationPass.UsingTasks, "Using tasks (pass 4)"}, 73{EvaluationPass.Targets, "Targets (pass 5)"}, 83public EvaluationPass EvaluationPass { get; } 107public static EvaluationLocation CreateLocationForCondition(long? parentId, EvaluationPass evaluationPass, string evaluationDescription, string file, 114public static EvaluationLocation CreateLocationForProject(long? parentId, EvaluationPass evaluationPass, string evaluationDescription, string file, 122public static EvaluationLocation CreateLocationForGlob(long? parentId, EvaluationPass evaluationPass, 131return new EvaluationLocation(EvaluationPass.TotalGlobbing, 132PassDefaultDescription[EvaluationPass.TotalGlobbing], file: null, kind: EvaluationLocationKind.Glob, 142public EvaluationLocation(long id, long? parentId, EvaluationPass evaluationPass, string evaluationPassDescription, string file, 163public EvaluationLocation(long? parentId, EvaluationPass evaluationPass, string evaluationPassDescription, string file, int? line, string elementName, string elementDescription, EvaluationLocationKind kind) 175public EvaluationLocation(EvaluationPass evaluationPass, string evaluationPassDescription, string file, int? line, string elementName, string elementDescription, EvaluationLocationKind kind) 186public readonly EvaluationLocation WithEvaluationPass(EvaluationPass evaluationPass, string passDescription = null) 261hashCode = (hashCode * -1521134295) + EqualityComparer<EvaluationPass>.Default.GetHashCode(EvaluationPass); 273return new EvaluationLocation(EvaluationIdProvider.GetNextId(), null, default(EvaluationPass), null, null, null,