OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 // VM implementation of Uri. | 5 // VM implementation of Uri. |
6 patch class Uri { | 6 patch class Uri { |
7 static final bool _isWindowsCached = _isWindowsPlatform; | 7 static final bool _isWindowsCached = _isWindowsPlatform; |
8 | 8 |
| 9 /* patch */ static bool get _isWindows => _isWindowsCached; |
| 10 |
| 11 /* patch */ static Uri get base => new Uri.file(_currentDirectory() + "/"); |
| 12 |
9 static bool get _isWindowsPlatform native "Uri_isWindowsPlatform"; | 13 static bool get _isWindowsPlatform native "Uri_isWindowsPlatform"; |
10 | 14 static _currentDirectory() native "Uri_currentDirectory"; |
11 /* patch */ static bool get _isWindows => _isWindowsCached; | |
12 } | 15 } |
OLD | NEW |