Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Issue 26413003: Make PhaseOutput emit a new AssetNode whenever it changes outputs. (Closed)

Created:
7 years, 2 months ago by nweiz
Modified:
7 years, 2 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make PhaseOutput emit a new AssetNode whenever it changes outputs. Previously, PhaseOutput produced a single AssetNode whose value it would update whenever the forwarded output changed. This worked well for a while, but once Phase started caring about the AssetNode's origin, it became problematic. PhaseOutput would change the origin, but Phase would have no way of knowing this, and the AssetNode would end up sorted into the wrong place (treated as a forwarded node when it shouldn't be, or vice versa). This CL fixes that issue by removing the possibility of modifying an AssetNode's origin. PhaseOutput now just creates a new AssetNode instead. This has the additional benefit of cleaning up some duplicated code in Phase. R=rnystrom@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=28386

Patch Set 1 #

Total comments: 2

Patch Set 2 : Code review change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -69 lines) Patch
M pkg/barback/lib/src/asset_node.dart View 1 chunk +0 lines, -7 lines 0 comments Download
M pkg/barback/lib/src/phase.dart View 2 chunks +3 lines, -9 lines 0 comments Download
M pkg/barback/lib/src/phase_output.dart View 4 chunks +38 lines, -53 lines 0 comments Download
M pkg/barback/test/package_graph/group_test.dart View 1 2 chunks +27 lines, -0 lines 0 comments Download
A pkg/barback/test/transformer/check_content_and_rename.dart View 1 1 chunk +35 lines, -0 lines 0 comments Download
M pkg/barback/test/utils.dart View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
nweiz
7 years, 2 months ago (2013-10-08 00:35:12 UTC) #1
Bob Nystrom
One request then LGTM. https://codereview.chromium.org/26413003/diff/1/pkg/barback/test/package_graph/group_test.dart File pkg/barback/test/package_graph/group_test.dart (right): https://codereview.chromium.org/26413003/diff/1/pkg/barback/test/package_graph/group_test.dart#newcode432 pkg/barback/test/package_graph/group_test.dart:432: class CheckContentAndRenameTransformer extends MockTransformer { ...
7 years, 2 months ago (2013-10-08 21:07:36 UTC) #2
nweiz
https://codereview.chromium.org/26413003/diff/1/pkg/barback/test/package_graph/group_test.dart File pkg/barback/test/package_graph/group_test.dart (right): https://codereview.chromium.org/26413003/diff/1/pkg/barback/test/package_graph/group_test.dart#newcode432 pkg/barback/test/package_graph/group_test.dart:432: class CheckContentAndRenameTransformer extends MockTransformer { On 2013/10/08 21:07:36, Bob ...
7 years, 2 months ago (2013-10-08 22:20:12 UTC) #3
nweiz
7 years, 2 months ago (2013-10-08 22:20:44 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r28386 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698