@@ -60,7 +60,7 @@ class BuildImpl {
6060 ///
6161 /// The returned [Future] is guaranteed to complete with a [BuildResult] . If
6262 /// an exception is thrown by any phase, [BuildResult#status] will be set to
63- /// [BuildStatus.Failure ] . The exception and stack trace that caused the failure
63+ /// [BuildStatus.failure ] . The exception and stack trace that caused the failure
6464 /// will be available as [BuildResult#exception] and [BuildResult#stackTrace]
6565 /// respectively.
6666 ///
@@ -74,7 +74,7 @@ class BuildImpl {
7474 var watch = new Stopwatch ()..start ();
7575
7676 /// Assume incremental, change if necessary.
77- var buildType = BuildType .Incremental ;
77+ var buildType = BuildType .incremental ;
7878 var done = new Completer <BuildResult >();
7979 Chain .capture (() async {
8080 if (_buildRunning) throw const ConcurrentBuildException ();
@@ -88,7 +88,7 @@ class BuildImpl {
8888 if (_assetGraph.allNodes.isEmpty &&
8989 ! (await _reader.hasInput (_assetGraphId))) {
9090 isNewAssetGraph = true ;
91- buildType = BuildType .Full ;
91+ buildType = BuildType .full ;
9292 } else {
9393 /// Collect updates since the asset graph was last created. This only
9494 /// handles updates and deletes, not adds. We list the file system for
@@ -109,7 +109,7 @@ class BuildImpl {
109109 await logWithTime (_logger, 'Checking build script for updates' ,
110110 () async {
111111 if (await _buildScriptUpdated ()) {
112- buildType = BuildType .Full ;
112+ buildType = BuildType .full ;
113113 if (_isFirstBuild) {
114114 _logger.warning (
115115 'Invalidating asset graph due to build script update' );
@@ -118,7 +118,7 @@ class BuildImpl {
118118 .forEach ((node) =>
119119 (node as GeneratedAssetNode ).needsUpdate = true );
120120 } else {
121- done.complete (new BuildResult (BuildStatus .Failure , buildType, [],
121+ done.complete (new BuildResult (BuildStatus .failure , buildType, [],
122122 exception: new BuildScriptUpdatedException ()));
123123 }
124124 }
@@ -157,13 +157,13 @@ class BuildImpl {
157157
158158 done.complete (result);
159159 }, onError: (e, Chain chain) {
160- done.complete (new BuildResult (BuildStatus .Failure , buildType, [],
160+ done.complete (new BuildResult (BuildStatus .failure , buildType, [],
161161 exception: e, stackTrace: chain.toTrace ()));
162162 });
163163 var result = await done.future;
164164 _buildRunning = false ;
165165 _isFirstBuild = false ;
166- if (result.status == BuildStatus .Success ) {
166+ if (result.status == BuildStatus .success ) {
167167 _logger.info ('Succeeded after ${watch .elapsedMilliseconds }ms with '
168168 '${result .outputs .length } outputs\n\n ' );
169169 } else {
@@ -455,7 +455,7 @@ class BuildImpl {
455455 _inputsByPackage[outputId.package].add (outputId);
456456 }
457457 }
458- return new BuildResult (BuildStatus .Success , BuildType .Full , outputs);
458+ return new BuildResult (BuildStatus .success , BuildType .full , outputs);
459459 }
460460
461461 /// Initializes the map of all the available inputs by package.
0 commit comments