| 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 library dart2js.compiler_base; | 5 library dart2js.compiler_base; |
| 6 | 6 |
| 7 import 'dart:async' show | 7 import 'dart:async' show |
| 8 EventSink, | 8 EventSink, |
| 9 Future; | 9 Future; |
| 10 | 10 |
| (...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1492 * [:null:] if [resolvedUri] is loaded as the main library. The | 1492 * [:null:] if [resolvedUri] is loaded as the main library. The |
| 1493 * [importingLibrary] is used to grant access to internal libraries from | 1493 * [importingLibrary] is used to grant access to internal libraries from |
| 1494 * platform libraries and patch libraries. | 1494 * platform libraries and patch libraries. |
| 1495 * | 1495 * |
| 1496 * If the [resolvedUri] is not accessible from [importingLibrary], this method | 1496 * If the [resolvedUri] is not accessible from [importingLibrary], this method |
| 1497 * is responsible for reporting errors. | 1497 * is responsible for reporting errors. |
| 1498 * | 1498 * |
| 1499 * See [LibraryLoader] for terminology on URIs. | 1499 * See [LibraryLoader] for terminology on URIs. |
| 1500 */ | 1500 */ |
| 1501 Uri translateResolvedUri(LibraryElement importingLibrary, | 1501 Uri translateResolvedUri(LibraryElement importingLibrary, |
| 1502 Uri resolvedUri, Node node) { | 1502 Uri resolvedUri, Spannable spannable) { |
| 1503 unimplemented(importingLibrary, 'Compiler.translateResolvedUri'); | 1503 unimplemented(importingLibrary, 'Compiler.translateResolvedUri'); |
| 1504 return null; | 1504 return null; |
| 1505 } | 1505 } |
| 1506 | 1506 |
| 1507 /** | 1507 /** |
| 1508 * Reads the script specified by the [readableUri]. | 1508 * Reads the script specified by the [readableUri]. |
| 1509 * | 1509 * |
| 1510 * See [LibraryLoader] for terminology on URIs. | 1510 * See [LibraryLoader] for terminology on URIs. |
| 1511 */ | 1511 */ |
| 1512 Future<Script> readScript(Spannable node, Uri readableUri) { | 1512 Future<Script> readScript(Spannable node, Uri readableUri) { |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1792 | 1792 |
| 1793 @override | 1793 @override |
| 1794 InterfaceType streamType([DartType elementType]) { | 1794 InterfaceType streamType([DartType elementType]) { |
| 1795 InterfaceType type = streamClass.computeType(compiler); | 1795 InterfaceType type = streamClass.computeType(compiler); |
| 1796 if (elementType == null) { | 1796 if (elementType == null) { |
| 1797 return streamClass.rawType; | 1797 return streamClass.rawType; |
| 1798 } | 1798 } |
| 1799 return type.createInstantiation([elementType]); | 1799 return type.createInstantiation([elementType]); |
| 1800 } | 1800 } |
| 1801 } | 1801 } |
| OLD | NEW |