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

Issue 2751913006: Clean up documentation of Platform in dart:io. (Closed)

Created:
3 years, 9 months ago by Lasse Reichstein Nielsen
Modified:
3 years, 8 months ago
Reviewers:
jensj, floitsch
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Clean up documentation of Platform in dart:io. The class is just a static-only container, and should really be rewritten as either top-level getters instead of static getters, or as instance getters on an interface (in case we ever want to mock it). Also, the isOSName getters for each individual supported OS doesn't scale. We should consider removing them and only support the `operatingSystem` getter. R=floitsch@google.com Committed: https://github.com/dart-lang/sdk/commit/08beb9eadfcca8c916c77817da8dcdf7481639e6

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -50 lines) Patch
M sdk/lib/io/platform.dart View 1 3 chunks +59 lines, -50 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Lasse Reichstein Nielsen
3 years, 9 months ago (2017-03-17 09:43:24 UTC) #2
floitsch
LGTM. https://codereview.chromium.org/2751913006/diff/1/sdk/lib/io/platform.dart File sdk/lib/io/platform.dart (right): https://codereview.chromium.org/2751913006/diff/1/sdk/lib/io/platform.dart#newcode101 sdk/lib/io/platform.dart:101: * version of Linux that identifies itself by ...
3 years, 9 months ago (2017-03-17 15:52:37 UTC) #3
jensj
dbc. Missed a "T". https://codereview.chromium.org/2751913006/diff/1/sdk/lib/io/platform.dart File sdk/lib/io/platform.dart (right): https://codereview.chromium.org/2751913006/diff/1/sdk/lib/io/platform.dart#newcode82 sdk/lib/io/platform.dart:82: * Te path separator used ...
3 years, 9 months ago (2017-03-20 07:42:30 UTC) #5
Lasse Reichstein Nielsen
Committed patchset #2 (id:20001) manually as 08beb9eadfcca8c916c77817da8dcdf7481639e6 (presubmit successful).
3 years, 8 months ago (2017-04-04 07:24:47 UTC) #7
Lasse Reichstein Nielsen
3 years, 8 months ago (2017-04-04 07:25:15 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/2751913006/diff/1/sdk/lib/io/platform.dart
File sdk/lib/io/platform.dart (right):

https://codereview.chromium.org/2751913006/diff/1/sdk/lib/io/platform.dart#ne...
sdk/lib/io/platform.dart:82: * Te path separator used by the operating system to
separate
On 2017/03/20 07:42:30, jensj wrote:
> "The"?

Done.

https://codereview.chromium.org/2751913006/diff/1/sdk/lib/io/platform.dart#ne...
sdk/lib/io/platform.dart:101: * version of Linux that identifies itself by a
different name, e.g., Android.
On 2017/03/17 15:52:37, floitsch wrote:
> don't use "e.g."

Done.

https://codereview.chromium.org/2751913006/diff/1/sdk/lib/io/platform.dart#ne...
sdk/lib/io/platform.dart:106: * Whether the operating system is a version of
[macOS](https://en.wikipedia.org/wiki/MacOS).
Turns out that it works if you break the line before the "[".

https://codereview.chromium.org/2751913006/diff/1/sdk/lib/io/platform.dart#ne...
sdk/lib/io/platform.dart:154: * The path is the literal path used to run the
script. This
On 2017/03/17 15:52:37, floitsch wrote:
> The literal path used to run the script.

Done.

Powered by Google App Engine
This is Rietveld 408576698