File tree Expand file tree Collapse file tree 2 files changed +2
-20
lines changed
build_runner_core/lib/src/generate Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -29,22 +29,14 @@ class BuildDefinition {
2929 final AssetGraph assetGraph;
3030 final BuildScriptUpdates ? buildScriptUpdates;
3131
32- /// Whether this is a build starting from no previous state or outputs.
33- final bool cleanBuild;
34-
3532 /// When reusing serialized state from a previous build: the file updates
3633 /// since that build.
3734 ///
3835 /// Or, `null` if there was no serialized state or it was discared due to
3936 /// the current build having an incompatible change.
4037 final Map <AssetId , ChangeType >? updates;
4138
42- BuildDefinition ._(
43- this .assetGraph,
44- this .buildScriptUpdates,
45- this .cleanBuild,
46- this .updates,
47- );
39+ BuildDefinition ._(this .assetGraph, this .buildScriptUpdates, this .updates);
4840
4941 static Future <BuildDefinition > prepareWorkspace ({
5042 required PackageGraph packageGraph,
@@ -192,12 +184,7 @@ class _Loader {
192184 await _initialBuildCleanup (conflictingOutputs, writer);
193185 }
194186
195- return BuildDefinition ._(
196- assetGraph,
197- buildScriptUpdates,
198- cleanBuild,
199- updates,
200- );
187+ return BuildDefinition ._(assetGraph, buildScriptUpdates, updates);
201188 }
202189
203190 /// Deletes the generated output directory.
Original file line number Diff line number Diff line change @@ -51,9 +51,6 @@ class BuildSeries {
5151 /// if the serialized build state was discarded.
5252 Map <AssetId , ChangeType >? updatesFromLoad;
5353
54- /// Whether this is or was a build starting from no previous state or outputs.
55- final bool cleanBuild;
56-
5754 /// Whether the next build is the first build.
5855 bool firstBuild = true ;
5956
@@ -64,7 +61,6 @@ class BuildSeries {
6461 this .assetGraph,
6562 this .buildScriptUpdates,
6663 this .finalizedReader,
67- this .cleanBuild,
6864 this .updatesFromLoad,
6965 ) : readerWriter = buildPlan.reader.copyWith (
7066 generatedAssetHider: assetGraph,
@@ -149,7 +145,6 @@ class BuildSeries {
149145 buildDefinition.assetGraph,
150146 buildDefinition.buildScriptUpdates,
151147 finalizedReader,
152- buildDefinition.cleanBuild,
153148 buildDefinition.updates,
154149 );
155150 return build;
You can’t perform that action at this time.
0 commit comments