1 write to ParentId
Microsoft.Build.Framework (1)
Profiler\EvaluationLocation.cs (1)
146
ParentId
= 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)
89
evaluationLocation.
ParentId
?.ToString() ?? string.Empty,
Logging\BinaryLogger\BuildEventArgsWriter.cs (3)
1304
Write(item.
ParentId
.HasValue);
1305
if (item.
ParentId
.HasValue)
1307
Write(item.
ParentId
.Value);
Logging\EvaluationLocationIdAgnosticComparer.cs (1)
14
/// both <see cref="EvaluationLocation.Id"/> and <see cref="EvaluationLocation.
ParentId
"/>
Logging\ProfilerLogger.cs (5)
196
if (pairToMerge.Key.
ParentId
.HasValue && mergeMap.TryGetValue(pairToMerge.Key.
ParentId
.Value, out mergedParent))
230
var parentId = FindBigEnoughParentId(idTable, key.
ParentId
);
254
Debug.Assert(pair.Key.
ParentId
.HasValue,
256
pair = idTable[pair.Key.
ParentId
.Value];
LogMessagePacketBase.cs (2)
1054
bool parentIdHasValue = evaluationLocation.
ParentId
.HasValue;
1055
long parentId = parentIdHasValue ? evaluationLocation.
ParentId
.Value : 0;
Microsoft.Build.Engine.UnitTests (8)
EvaluationProfiler_Tests.cs (8)
225
.All(e => e.
ParentId
== totalEvaluation.Id));
231
Assert.Equal(itemPass.Id, itemGroup.
ParentId
);
232
Assert.Equal(itemGroup.Id, testItem.
ParentId
);
237
Assert.Equal(lazyItemPass.Id, lazyTestItem.
ParentId
);
243
Assert.Equal(targetPass.Id, target.
ParentId
);
244
Assert.Equal(target.Id, messageTarget.
ParentId
);
259
Assert.True(profiledElements.All(e => e.
ParentId
== null || allUniqueIds.Contains(e.
ParentId
.Value)));
Microsoft.Build.Framework (5)
Profiler\EvaluationLocation.cs (5)
196
if (parentId == this.
ParentId
)
236
ParentId
== 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}";
260
hashCode = (hashCode * -1521134295) + EqualityComparer<long?>.Default.GetHashCode(
ParentId
);