10 writes to _resultsByTarget
Microsoft.Build (10)
BackEnd\Shared\BuildResult.cs (10)
154_resultsByTarget = CreateTargetResultDictionary(1); 200_resultsByTarget = CreateTargetResultDictionaryWithContents(existingResults, targetNames); 240_resultsByTarget = CreateTargetResultDictionary(0); 245_resultsByTarget = targetNames == null ? existingResults._resultsByTarget : CreateTargetResultDictionaryWithContents(existingResults, targetNames); 263_resultsByTarget = result._resultsByTarget; 280_resultsByTarget = result._resultsByTarget; 294_resultsByTarget ??= CreateTargetResultDictionary(1); 531_resultsByTarget ??= CreateTargetResultDictionary(1); 621translator.TranslateDictionary(ref _resultsByTarget, TargetResult.FactoryForDeserialization, CreateTargetResultDictionary); 730_resultsByTarget = new ConcurrentDictionary<string, TargetResult>(_resultsByTarget, StringComparer.OrdinalIgnoreCase),
17 references to _resultsByTarget
Microsoft.Build (17)
BackEnd\Shared\BuildResult.cs (17)
245_resultsByTarget = targetNames == null ? existingResults._resultsByTarget : CreateTargetResultDictionaryWithContents(existingResults, targetNames); 263_resultsByTarget = result._resultsByTarget; 280_resultsByTarget = result._resultsByTarget; 383foreach (KeyValuePair<string, TargetResult> result in _resultsByTarget ?? []) 403{ return _resultsByTarget; } 516{ return _resultsByTarget![target]; } 534if (_resultsByTarget.TryGetValue(target, out TargetResult? targetResult)) 539_resultsByTarget[target] = result; 552foreach (string target in _resultsByTarget?.Keys ?? []) 556_ = _resultsByTarget!.TryRemove(target, out _); 571if (ReferenceEquals(this, results) || ReferenceEquals(_resultsByTarget, results._resultsByTarget)) 577foreach (KeyValuePair<string, TargetResult> targetResult in results._resultsByTarget ?? []) 587_resultsByTarget![targetResult.Key] = targetResult.Value; 601return _resultsByTarget?.ContainsKey(target) ?? false; 699foreach (KeyValuePair<string, TargetResult> targetResultPair in _resultsByTarget ?? []) 730_resultsByTarget = new ConcurrentDictionary<string, TargetResult>(_resultsByTarget, StringComparer.OrdinalIgnoreCase),