| 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 import 'implementation/apiimpl.dart'; | 8 import 'src/apiimpl.dart'; |
| 9 | 9 |
| 10 // Unless explicitly allowed, passing [:null:] for any argument to the | 10 // Unless explicitly allowed, passing [:null:] for any argument to the |
| 11 // methods of library will result in an Error being thrown. | 11 // methods of library will result in an Error being thrown. |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * Returns a future that completes to the source corresponding to [uri]. | 14 * Returns a future that completes to the source corresponding to [uri]. |
| 15 * If an exception occurs, the future completes with this exception. | 15 * If an exception occurs, the future completes with this exception. |
| 16 * | 16 * |
| 17 * The source can be represented either as a [:List<int>:] of UTF-8 bytes or as | 17 * The source can be represented either as a [:List<int>:] of UTF-8 bytes or as |
| 18 * a [String]. | 18 * a [String]. |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 final String name; | 178 final String name; |
| 179 | 179 |
| 180 /** | 180 /** |
| 181 * This constructor is not private to support user-defined | 181 * This constructor is not private to support user-defined |
| 182 * diagnostic kinds. | 182 * diagnostic kinds. |
| 183 */ | 183 */ |
| 184 const Diagnostic(this.ordinal, this.name); | 184 const Diagnostic(this.ordinal, this.name); |
| 185 | 185 |
| 186 String toString() => name; | 186 String toString() => name; |
| 187 } | 187 } |
| OLD | NEW |