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 import "dart:collection" show HashMap; | 5 import "dart:collection" show HashMap; |
6 import "dart:_internal"; | 6 import "dart:_internal" hide Symbol; |
7 | 7 |
8 @patch class ReceivePort { | 8 @patch class ReceivePort { |
9 @patch factory ReceivePort() = _ReceivePortImpl; | 9 @patch factory ReceivePort() = _ReceivePortImpl; |
10 | 10 |
11 @patch factory ReceivePort.fromRawReceivePort(RawReceivePort rawPort) = | 11 @patch factory ReceivePort.fromRawReceivePort(RawReceivePort rawPort) = |
12 _ReceivePortImpl.fromRawReceivePort; | 12 _ReceivePortImpl.fromRawReceivePort; |
13 } | 13 } |
14 | 14 |
15 @patch class Capability { | 15 @patch class Capability { |
16 @patch factory Capability() = _CapabilityImpl; | 16 @patch factory Capability() = _CapabilityImpl; |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 try { | 578 try { |
579 return Uri.parse(_getCurrentRootUriStr()); | 579 return Uri.parse(_getCurrentRootUriStr()); |
580 } catch (e, s) { | 580 } catch (e, s) { |
581 return null; | 581 return null; |
582 } | 582 } |
583 } | 583 } |
584 | 584 |
585 static String _getCurrentRootUriStr() | 585 static String _getCurrentRootUriStr() |
586 native "Isolate_getCurrentRootUriStr"; | 586 native "Isolate_getCurrentRootUriStr"; |
587 } | 587 } |
OLD | NEW |