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

Unified Diff: lib/src/style.dart

Issue 1064273002: pkg/path: Add type annotations to top-level and static fields. (Closed) Base URL: https://github.com/dart-lang/path.git@master
Patch Set: version nits Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/path.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/style.dart
diff --git a/lib/src/style.dart b/lib/src/style.dart
index a94ec68ca8abf194221df4abce2d93c3774269f3..e0e0e01b5e18ca40a9ad5f9a81491d4e695818aa 100644
--- a/lib/src/style.dart
+++ b/lib/src/style.dart
@@ -13,14 +13,14 @@ import 'style/windows.dart';
abstract class Style {
/// POSIX-style paths use "/" (forward slash) as separators. Absolute paths
/// start with "/". Used by UNIX, Linux, Mac OS X, and others.
- static final posix = new PosixStyle();
+ static final Style posix = new PosixStyle();
/// Windows paths use "\" (backslash) as separators. Absolute paths start with
/// a drive letter followed by a colon (example, "C:") or two backslashes
/// ("\\") for UNC paths.
// TODO(rnystrom): The UNC root prefix should include the drive name too, not
// just the "\\".
- static final windows = new WindowsStyle();
+ static final Style windows = new WindowsStyle();
/// URLs aren't filesystem paths, but they're supported to make it easier to
/// manipulate URL paths in the browser.
@@ -28,13 +28,13 @@ abstract class Style {
/// URLs use "/" (forward slash) as separators. Absolute paths either start
/// with a protocol and optional hostname (e.g. `http://dartlang.org`,
/// `file://`) or with "/".
- static final url = new UrlStyle();
+ static final Style url = new UrlStyle();
/// The style of the host platform.
///
/// When running on the command line, this will be [windows] or [posix] based
/// on the host operating system. On a browser, this will be [url].
- static final platform = _getPlatformStyle();
+ static final Style platform = _getPlatformStyle();
/// Gets the type of the host platform.
static Style _getPlatformStyle() {
« no previous file with comments | « lib/path.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698