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

Issue 812733004: Initial task support (Closed)

Created:
5 years, 11 months ago by Brian Wilkerson
Modified:
5 years, 11 months ago
Reviewers:
Paul Berry, scheglov
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 24
Unified diffs Side-by-side diffs Delta from patch set Stats (+1849 lines, -8 lines) Patch
A pkg/analyzer/lib/src/task/general.dart View 1 chunk +71 lines, -0 lines 0 comments Download
A pkg/analyzer/lib/src/task/inputs.dart View 1 chunk +376 lines, -0 lines 2 comments Download
A pkg/analyzer/lib/src/task/manager.dart View 1 chunk +106 lines, -0 lines 0 comments Download
A pkg/analyzer/lib/src/task/model.dart View 1 chunk +106 lines, -0 lines 0 comments Download
A pkg/analyzer/lib/src/task/targets.dart View 1 chunk +31 lines, -0 lines 0 comments Download
A pkg/analyzer/lib/task/dart.dart View 1 chunk +90 lines, -0 lines 0 comments Download
A pkg/analyzer/lib/task/general.dart View 1 chunk +47 lines, -0 lines 0 comments Download
A pkg/analyzer/lib/task/model.dart View 1 chunk +309 lines, -0 lines 10 comments Download
A pkg/analyzer/test/src/task/inputs_test.dart View 1 chunk +397 lines, -0 lines 0 comments Download
A pkg/analyzer/test/src/task/manager_test.dart View 1 chunk +135 lines, -0 lines 4 comments Download
A pkg/analyzer/test/src/task/model_test.dart View 1 chunk +119 lines, -0 lines 8 comments Download
A pkg/analyzer/test/src/task/targets_test.dart View 1 chunk +27 lines, -0 lines 0 comments Download
A + pkg/analyzer/test/src/task/test_all.dart View 1 chunk +10 lines, -4 lines 0 comments Download
A pkg/analyzer/test/src/task/test_support.dart View 1 chunk +19 lines, -0 lines 0 comments Download
A + pkg/analyzer/test/src/test_all.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/analyzer/test/test_all.dart View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Paul Berry
Lgtm! I have a number of minor nits below, but I don't consider any of ...
5 years, 11 months ago (2015-01-20 23:34:53 UTC) #2
scheglov
LGTM https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/lib/src/task/inputs.dart File pkg/analyzer/lib/src/task/inputs.dart (right): https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/lib/src/task/inputs.dart#newcode196 pkg/analyzer/lib/src/task/inputs.dart:196: * The state value indicating that the builder ...
5 years, 11 months ago (2015-01-21 14:50:48 UTC) #4
Brian Wilkerson
Committed patchset #1 (id:1) manually as 43120 (presubmit successful).
5 years, 11 months ago (2015-01-23 20:18:25 UTC) #5
Brian Wilkerson
5 years, 11 months ago (2015-01-26 04:54:52 UTC) #6
Message was sent while issue was closed.
Just realized that I didn't publish my responses before committing. Sorry about
that!

https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/lib/src/task/in...
File pkg/analyzer/lib/src/task/inputs.dart (right):

https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/lib/src/task/in...
pkg/analyzer/lib/src/task/inputs.dart:196: * The state value indicating that the
builder is positioned before the single result.
Done

https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/lib/task/model....
File pkg/analyzer/lib/task/model.dart (right):

https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/lib/task/model....
pkg/analyzer/lib/task/model.dart:84: CaughtException thrownException;
Done

https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/lib/task/model....
pkg/analyzer/lib/task/model.dart:101: Source get source => target.source;
Done

https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/lib/task/model....
pkg/analyzer/lib/task/model.dart:140: void safelyPerform() {
It also changes what is being measures by the stopwatch in the case where an
exception is being thrown. I've made the method private for now and we can
consider the other change in a future CL.

https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/lib/task/model....
pkg/analyzer/lib/task/model.dart:172: abstract class ContributionPoint<V>
extends ResultDescriptor<V> {
I like the idea, but it leads to a type warning that I don't want to take the
time to resolve at this point. Postponed for a future CL.

https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/test/src/task/m...
File pkg/analyzer/test/src/task/manager_test.dart (right):

https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/test/src/task/m...
pkg/analyzer/test/src/task/manager_test.dart:40: results.contains(result1);
Done

https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/test/src/task/m...
pkg/analyzer/test/src/task/manager_test.dart:94: void
test_removeGeneralResult_absent() {
Done

https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/test/src/task/m...
File pkg/analyzer/test/src/task/model_test.dart (right):

https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/test/src/task/m...
pkg/analyzer/test/src/task/model_test.dart:29: expect(contributors, isNotNull);
Done

https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/test/src/task/m...
pkg/analyzer/test/src/task/model_test.dart:41: expect(contributors.length, 2);
Done

https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/test/src/task/m...
pkg/analyzer/test/src/task/model_test.dart:43: (contributors[0] == result2 &&
contributors[1] == result1)) {
> Should negation be extracted to be applied to both ||-ed conditions?

I find it easier to read this way, but don't feel that strongly.

https://codereview.chromium.org/812733004/diff/1/pkg/analyzer/test/src/task/m...
pkg/analyzer/test/src/task/model_test.dart:69: expect(contributors[0], result);
Done

Powered by Google App Engine
This is Rietveld 408576698