| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a | 
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. | 
| 4 | 4 | 
| 5 part of dart.io; | 5 part of dart.io; | 
| 6 | 6 | 
| 7 /** | 7 /** | 
| 8  * Information about the environment in which the current program is running. | 8  * Information about the environment in which the current program is running. | 
| 9  * | 9  * | 
| 10  * Platform provides information such as the operating system, | 10  * Platform provides information such as the operating system, | 
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 93    * Get the local hostname for the system. | 93    * Get the local hostname for the system. | 
| 94    */ | 94    */ | 
| 95   static String get localHostname => _localHostname; | 95   static String get localHostname => _localHostname; | 
| 96 | 96 | 
| 97   /** | 97   /** | 
| 98    * Returns true if the operating system is Linux. | 98    * Returns true if the operating system is Linux. | 
| 99    */ | 99    */ | 
| 100   static final bool isLinux = (_operatingSystem == "linux"); | 100   static final bool isLinux = (_operatingSystem == "linux"); | 
| 101 | 101 | 
| 102   /** | 102   /** | 
| 103    * Returns true if the operating system is Mac OS. | 103    * Returns true if the operating system is OS X. | 
| 104    */ | 104    */ | 
| 105   static final bool isMacOS = (_operatingSystem == "macos"); | 105   static final bool isMacOS = (_operatingSystem == "macos"); | 
| 106 | 106 | 
| 107   /** | 107   /** | 
| 108    * Returns true if the operating system is Windows. | 108    * Returns true if the operating system is Windows. | 
| 109    */ | 109    */ | 
| 110   static final bool isWindows = (_operatingSystem == "windows"); | 110   static final bool isWindows = (_operatingSystem == "windows"); | 
| 111 | 111 | 
| 112   /** | 112   /** | 
| 113    * Returns true if the operating system is Android. | 113    * Returns true if the operating system is Android. | 
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 169    * | 169    * | 
| 170    * If there is no --package-root flag, then the empty string is returned. | 170    * If there is no --package-root flag, then the empty string is returned. | 
| 171    */ | 171    */ | 
| 172   static String get packageRoot => _Platform.packageRoot; | 172   static String get packageRoot => _Platform.packageRoot; | 
| 173 | 173 | 
| 174   /** | 174   /** | 
| 175    * Returns the version of the current Dart runtime. | 175    * Returns the version of the current Dart runtime. | 
| 176    */ | 176    */ | 
| 177   static String get version => _version; | 177   static String get version => _version; | 
| 178 } | 178 } | 
| OLD | NEW | 
|---|