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

Issue 757613002: new onPriorityChanged event stream (Closed)

Created:
6 years ago by danrubel
Modified:
6 years ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Visibility:
Public.

Description

new onPriorityChanged event stream BUG= R=brianwilkerson@google.com Committed: https://code.google.com/p/dart/source/detail?r=41935

Patch Set 1 #

Patch Set 2 : fix test #

Total comments: 5

Patch Set 3 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -41 lines) Patch
M pkg/analysis_server/lib/src/analysis_server.dart View 10 chunks +62 lines, -37 lines 0 comments Download
M pkg/analysis_server/lib/src/domain_analysis.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/lib/src/protocol.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/analysis_server/test/analysis_server_test.dart View 1 chunk +35 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/protocol_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
danrubel
6 years ago (2014-11-24 15:36:27 UTC) #2
Brian Wilkerson
LGTM https://codereview.chromium.org/757613002/diff/20001/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/757613002/diff/20001/pkg/analysis_server/lib/src/analysis_server.dart#newcode945 pkg/analysis_server/lib/src/analysis_server.dart:945: * A [PriorityChangeEvent] indicates which sources are currently ...
6 years ago (2014-11-24 16:17:12 UTC) #3
danrubel
https://codereview.chromium.org/757613002/diff/20001/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/757613002/diff/20001/pkg/analysis_server/lib/src/analysis_server.dart#newcode945 pkg/analysis_server/lib/src/analysis_server.dart:945: * A [PriorityChangeEvent] indicates which sources are currently prioritized ...
6 years ago (2014-11-24 17:54:06 UTC) #4
danrubel
Committed patchset #3 (id:40001) manually as 41935 (presubmit successful).
6 years ago (2014-11-24 17:56:26 UTC) #5
Brian Wilkerson
6 years ago (2014-11-24 18:14:38 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/757613002/diff/20001/pkg/analysis_server/lib/...
File pkg/analysis_server/lib/src/analysis_server.dart (right):

https://codereview.chromium.org/757613002/diff/20001/pkg/analysis_server/lib/...
pkg/analysis_server/lib/src/analysis_server.dart:949: final Source firstSource;
> I only need the first source if there is one and I was keeping the event
> minimal. If we find listeners need more information, we can enhance the API.

Understood, and in general I agree with only doing what we need now (I
considered suggesting that we also include the old priority list but decided we
didn't need it yet and could cleanly add it later).

However, defining 'firstSource' means that we will always have to support it for
backward compatibility. In this case I think it would be better to support a
more general API and not have that constraint. (I suppose it won't be too
terrible to always need to have an accessor for the first element in the list,
but still...)

Powered by Google App Engine
This is Rietveld 408576698