| 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 compiler; | 5 library compiler; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 |
| 8 import 'package:package_config/packages.dart'; | 9 import 'package:package_config/packages.dart'; |
| 10 |
| 9 import 'compiler_new.dart' as new_api; | 11 import 'compiler_new.dart' as new_api; |
| 12 import 'src/old_to_new_api.dart'; |
| 10 import 'src/options.dart' show CompilerOptions; | 13 import 'src/options.dart' show CompilerOptions; |
| 11 import 'src/old_to_new_api.dart'; | |
| 12 | 14 |
| 13 // Unless explicitly allowed, passing [:null:] for any argument to the | 15 // Unless explicitly allowed, passing [:null:] for any argument to the |
| 14 // methods of library will result in an Error being thrown. | 16 // methods of library will result in an Error being thrown. |
| 15 | 17 |
| 16 /** | 18 /** |
| 17 * Returns a future that completes to the source corresponding to [uri]. | 19 * Returns a future that completes to the source corresponding to [uri]. |
| 18 * If an exception occurs, the future completes with this exception. | 20 * If an exception occurs, the future completes with this exception. |
| 19 * | 21 * |
| 20 * The source can be represented either as a [:List<int>:] of UTF-8 bytes or as | 22 * The source can be represented either as a [:List<int>:] of UTF-8 bytes or as |
| 21 * a [String]. | 23 * a [String]. |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 final String name; | 200 final String name; |
| 199 | 201 |
| 200 /** | 202 /** |
| 201 * This constructor is not private to support user-defined | 203 * This constructor is not private to support user-defined |
| 202 * diagnostic kinds. | 204 * diagnostic kinds. |
| 203 */ | 205 */ |
| 204 const Diagnostic(this.ordinal, this.name); | 206 const Diagnostic(this.ordinal, this.name); |
| 205 | 207 |
| 206 String toString() => name; | 208 String toString() => name; |
| 207 } | 209 } |
| OLD | NEW |