| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 List<InputError> errors = <InputError>[]; | 143 List<InputError> errors = <InputError>[]; |
| 144 for (LibraryBuilder library in builders.values) { | 144 for (LibraryBuilder library in builders.values) { |
| 145 if (library.loader == this) { | 145 if (library.loader == this) { |
| 146 errors.addAll(library.compileTimeErrors); | 146 errors.addAll(library.compileTimeErrors); |
| 147 } | 147 } |
| 148 } | 148 } |
| 149 return errors; | 149 return errors; |
| 150 } | 150 } |
| 151 | 151 |
| 152 Builder getCompileTimeError() => target.getCompileTimeError(this); | 152 Builder getCompileTimeError() => target.getCompileTimeError(this); |
| 153 |
| 154 Builder getNativeAnnotation() => target.getNativeAnnotation(this); |
| 153 } | 155 } |
| 154 | 156 |
| 155 String format(double d, int fractionDigits, int width) { | 157 String format(double d, int fractionDigits, int width) { |
| 156 return d.toStringAsFixed(fractionDigits).padLeft(width); | 158 return d.toStringAsFixed(fractionDigits).padLeft(width); |
| 157 } | 159 } |
| OLD | NEW |