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

Issue 702343002: Fix analyzer warnings in pub. (Closed)

Created:
6 years, 1 month ago by nweiz
Modified:
6 years, 1 month ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M sdk/lib/_internal/pub/lib/src/validator/dependency.dart View 2 chunks +2 lines, -2 lines 2 comments Download
M sdk/lib/_internal/pub_generated/lib/src/validator/dependency.dart View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
nweiz
6 years, 1 month ago (2014-11-06 02:38:04 UTC) #1
nweiz
Committed patchset #1 (id:1) manually as 41542 (presubmit successful).
6 years, 1 month ago (2014-11-06 02:38:18 UTC) #2
Bob Nystrom
https://codereview.chromium.org/702343002/diff/1/sdk/lib/_internal/pub/lib/src/validator/dependency.dart File sdk/lib/_internal/pub/lib/src/validator/dependency.dart (right): https://codereview.chromium.org/702343002/diff/1/sdk/lib/_internal/pub/lib/src/validator/dependency.dart#newcode157 sdk/lib/_internal/pub/lib/src/validator/dependency.dart:157: if ((dep.constraint as VersionRange).includeMin) { What if it isn't ...
6 years, 1 month ago (2014-11-06 17:14:20 UTC) #3
nweiz
6 years, 1 month ago (2014-11-06 21:11:39 UTC) #4
Message was sent while issue was closed.
https://codereview.chromium.org/702343002/diff/1/sdk/lib/_internal/pub/lib/sr...
File sdk/lib/_internal/pub/lib/src/validator/dependency.dart (right):

https://codereview.chromium.org/702343002/diff/1/sdk/lib/_internal/pub/lib/sr...
sdk/lib/_internal/pub/lib/src/validator/dependency.dart:157: if ((dep.constraint
as VersionRange).includeMin) {
On 2014/11/06 17:14:20, Bob Nystrom wrote:
> What if it isn't a range? What if it's just a Version?

We can only get to this method if the constraint doesn't have an upper bound,
which implies that it's always a range.

Powered by Google App Engine
This is Rietveld 408576698