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

Issue 2402713002: Replace BazelWorkspace factory with the static 'find' method. (Closed)

Created:
4 years, 2 months ago by scheglov
Modified:
4 years, 2 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Replace BazelWorkspace factory with the static 'find' method. This is a breaking change: 1. The factory constructor was removed. 2. The method find() may return null. R=brianwilkerson@google.com, paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/84b1a981734d4cb3b44df00e5f07e24aa8d1bde2

Patch Set 1 #

Total comments: 4

Patch Set 2 : tweaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -79 lines) Patch
M pkg/analyzer/lib/src/generated/bazel.dart View 1 2 chunks +58 lines, -55 lines 0 comments Download
M pkg/analyzer/test/generated/bazel_test.dart View 6 chunks +32 lines, -24 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
scheglov
4 years, 2 months ago (2016-10-07 17:05:29 UTC) #1
Paul Berry
lgtm with minor nits. Thanks! https://codereview.chromium.org/2402713002/diff/1/pkg/analyzer/lib/src/generated/bazel.dart File pkg/analyzer/lib/src/generated/bazel.dart (right): https://codereview.chromium.org/2402713002/diff/1/pkg/analyzer/lib/src/generated/bazel.dart#newcode179 pkg/analyzer/lib/src/generated/bazel.dart:179: */ Can you add ...
4 years, 2 months ago (2016-10-07 17:08:37 UTC) #2
Brian Wilkerson
lgtm, thanks!
4 years, 2 months ago (2016-10-07 17:09:34 UTC) #3
scheglov
Committed patchset #2 (id:20001) manually as 84b1a981734d4cb3b44df00e5f07e24aa8d1bde2 (presubmit successful).
4 years, 2 months ago (2016-10-07 17:15:39 UTC) #5
scheglov
4 years, 2 months ago (2016-10-07 17:15:56 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/2402713002/diff/1/pkg/analyzer/lib/src/genera...
File pkg/analyzer/lib/src/generated/bazel.dart (right):

https://codereview.chromium.org/2402713002/diff/1/pkg/analyzer/lib/src/genera...
pkg/analyzer/lib/src/generated/bazel.dart:179: */
On 2016/10/07 17:08:36, Paul Berry wrote:
> Can you add a line to the doc comment explaining when find() is expected to
> return null?

Done.

https://codereview.chromium.org/2402713002/diff/1/pkg/analyzer/lib/src/genera...
pkg/analyzer/lib/src/generated/bazel.dart:198: if (readonlySuffix != null &&
parent != null) {
On 2016/10/07 17:08:36, Paul Berry wrote:
> You can drop `&& parent != null` from this line because of the null check
above.

Done.

Powered by Google App Engine
This is Rietveld 408576698