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"; |
Ivan Posva
2013/09/17 21:28:04
Why does this have to be a native method? Can't th
Søren Gjesse
2013/09/25 09:17:08
Done.
| |
11 /* patch */ static bool get _isWindows => _isWindowsCached; | |
12 } | 15 } |
OLD | NEW |