2 writes to PreviousEntry
dotnet (2)
Commands\Run\FileBasedAppRunPlan.cs (1)
445
cache.
PreviousEntry
= previousCacheEntry;
Commands\Run\VirtualProjectBuildingCommand.cs (1)
645
cache.
PreviousEntry
= GetPreviousCacheEntry();
29 references to PreviousEntry
dotnet (29)
Commands\Run\FileBasedAppCacheInfo.cs (4)
17
/// If <see cref="
PreviousEntry
"/> is <see langword="null"/> and this is
52
if (
PreviousEntry
?.CscArguments.IsDefaultOrEmpty == false)
63
if (
PreviousEntry
?.BuildLevel != BuildLevel.Csc)
66
$"(it was {
PreviousEntry
?.BuildLevel.ToString() ?? "N/A"}).");
Commands\Run\FileBasedAppRunPlan.cs (14)
162
if (analyzedPlan is not { Tier: RunTier.CachedLaunch, Cache.
PreviousEntry
: { } validatedEntry } ||
227
Debug.Assert(cache.
PreviousEntry
!= null);
228
cache.CurrentEntry.CscArguments = cache.
PreviousEntry
.CscArguments;
229
cache.CurrentEntry.BuildResultFile = cache.
PreviousEntry
.BuildResultFile;
230
cache.CurrentEntry.Run = cache.
PreviousEntry
.Run;
269
if (cache.
PreviousEntry
!= null)
273
if (!cache.
PreviousEntry
.CscArguments.IsDefaultOrEmpty)
278
cache.
PreviousEntry
.CscArguments = [];
279
cache.
PreviousEntry
.BuildResultFile = null;
280
cache.
PreviousEntry
.Run = null;
563
if (cache.
PreviousEntry
?.CscArguments.IsDefaultOrEmpty != false)
567
else if (cache.
PreviousEntry
.Run == null)
571
else if (cache.
PreviousEntry
.BuildResultFile == null)
575
else if (!cache.
PreviousEntry
.Directives.SequenceEqual(cache.CurrentEntry.Directives))
Commands\Run\RunCommand.cs (3)
199
projectFactory = CanUseRunPropertiesForCscBuiltProgram(BuildLevel.None, cache?.
PreviousEntry
) ? null : projectBuilder.CreateProjectInstance;
200
cachedRunProperties = buildLevel != BuildLevel.All ? cache?.
PreviousEntry
?.Run : null;
431
projectFactory = CanUseRunPropertiesForCscBuiltProgram(projectBuilder.LastBuild.Level, projectBuilder.LastBuild.Cache?.
PreviousEntry
) ? null : projectBuilder.CreateProjectInstance;
Commands\Run\VirtualProjectBuildingCommand.cs (8)
152
cache?.CurrentEntry.Run = cache.
PreviousEntry
?.Run;
170
CscArguments = cache.
PreviousEntry
?.CscArguments ?? [],
171
BuildResultFile = cache.
PreviousEntry
?.BuildResultFile,
395
cache.CurrentEntry.CscArguments = cache.
PreviousEntry
?.CscArguments ?? [];
396
cache.CurrentEntry.BuildResultFile = cache.
PreviousEntry
?.BuildResultFile;
432
if (cache.
PreviousEntry
!= null)
434
foreach (var file in cache.
PreviousEntry
.AdditionalSources)
643
if (cache.
PreviousEntry
is null && !cache.TriedDeserializingPreviousEntry)