| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 fasta.loader; | 5 library fasta.loader; |
| 6 | 6 |
| 7 import 'dart:async' show | 7 import 'dart:async' show |
| 8 Future; | 8 Future; |
| 9 | 9 |
| 10 import 'dart:collection' show | 10 import 'dart:collection' show |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 break; | 65 break; |
| 66 | 66 |
| 67 default: | 67 default: |
| 68 fileUri = uri; | 68 fileUri = uri; |
| 69 break; | 69 break; |
| 70 } | 70 } |
| 71 } | 71 } |
| 72 LibraryBuilder library = target.createLibraryBuilder(uri, fileUri); | 72 LibraryBuilder library = target.createLibraryBuilder(uri, fileUri); |
| 73 if (uri.scheme == "dart" && uri.path == "core") { | 73 if (uri.scheme == "dart" && uri.path == "core") { |
| 74 coreLibrary = library; | 74 coreLibrary = library; |
| 75 target.loadExtraRequiredLibraries(this); |
| 75 } | 76 } |
| 76 first ??= library; | 77 first ??= library; |
| 77 if (library.loader == this) { | 78 if (library.loader == this) { |
| 78 unparsedLibraries.addLast(library); | 79 unparsedLibraries.addLast(library); |
| 79 } | 80 } |
| 80 return library; | 81 return library; |
| 81 }); | 82 }); |
| 82 return builder; | 83 return builder; |
| 83 } | 84 } |
| 84 | 85 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 } | 151 } |
| 151 | 152 |
| 152 Builder getCompileTimeError() => target.getCompileTimeError(this); | 153 Builder getCompileTimeError() => target.getCompileTimeError(this); |
| 153 | 154 |
| 154 Builder getNativeAnnotation() => target.getNativeAnnotation(this); | 155 Builder getNativeAnnotation() => target.getNativeAnnotation(this); |
| 155 } | 156 } |
| 156 | 157 |
| 157 String format(double d, int fractionDigits, int width) { | 158 String format(double d, int fractionDigits, int width) { |
| 158 return d.toStringAsFixed(fractionDigits).padLeft(width); | 159 return d.toStringAsFixed(fractionDigits).padLeft(width); |
| 159 } | 160 } |
| OLD | NEW |