1 write to ParentId
Microsoft.Build.Framework (1)
Profiler\EvaluationLocation.cs (1)
146ParentId = parentId == EmptyLocation.Id ? null : parentId; // The empty location doesn't count as a parent id, since it's just a dummy starting point
25 references to ParentId
Microsoft.Build (12)
Evaluation\Profiler\EvaluationLocationPrettyPrinterBase.cs (1)
89evaluationLocation.ParentId?.ToString() ?? string.Empty,
Logging\BinaryLogger\BuildEventArgsWriter.cs (3)
1326Write(item.ParentId.HasValue); 1327if (item.ParentId.HasValue) 1329Write(item.ParentId.Value);
Logging\EvaluationLocationIdAgnosticComparer.cs (1)
14/// both <see cref="EvaluationLocation.Id"/> and <see cref="EvaluationLocation.ParentId"/>
Logging\ProfilerLogger.cs (5)
196if (pairToMerge.Key.ParentId.HasValue && mergeMap.TryGetValue(pairToMerge.Key.ParentId.Value, out mergedParent)) 230var parentId = FindBigEnoughParentId(idTable, key.ParentId); 254Debug.Assert(pair.Key.ParentId.HasValue, 256pair = idTable[pair.Key.ParentId.Value];
LogMessagePacketBase.cs (2)
1054bool parentIdHasValue = evaluationLocation.ParentId.HasValue; 1055long parentId = parentIdHasValue ? evaluationLocation.ParentId.Value : 0;
Microsoft.Build.Engine.UnitTests (8)
EvaluationProfiler_Tests.cs (8)
225.All(e => e.ParentId == totalEvaluation.Id)); 231Assert.Equal(itemPass.Id, itemGroup.ParentId); 232Assert.Equal(itemGroup.Id, testItem.ParentId); 237Assert.Equal(lazyItemPass.Id, lazyTestItem.ParentId); 243Assert.Equal(targetPass.Id, target.ParentId); 244Assert.Equal(target.Id, messageTarget.ParentId); 259Assert.True(profiledElements.All(e => e.ParentId == null || allUniqueIds.Contains(e.ParentId.Value)));
Microsoft.Build.Framework (5)
Profiler\EvaluationLocation.cs (5)
196if (parentId == this.ParentId) 236ParentId == other.ParentId && 252$"{Id}\t{ParentId?.ToString() ?? string.Empty}\t{EvaluationPassDescription ?? string.Empty}\t{File ?? string.Empty}\t{Line?.ToString() ?? string.Empty}\t{ElementName ?? string.Empty}\tDescription:{ElementDescription}\t{this.EvaluationPassDescription}"; 260hashCode = (hashCode * -1521134295) + EqualityComparer<long?>.Default.GetHashCode(ParentId);