| 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:uri'; | 8 import 'dart:uri'; |
| 8 import 'implementation/apiimpl.dart'; | 9 import 'implementation/apiimpl.dart'; |
| 9 | 10 |
| 10 // Unless explicitly allowed, passing [:null:] for any argument to the | 11 // Unless explicitly allowed, passing [:null:] for any argument to the |
| 11 // methods of library will result in an Error being thrown. | 12 // methods of library will result in an Error being thrown. |
| 12 | 13 |
| 13 /** | 14 /** |
| 14 * Returns a future that completes to the source corresponding to | 15 * Returns a future that completes to the source corresponding to |
| 15 * [uri]. If an exception occurs, the future completes with this | 16 * [uri]. If an exception occurs, the future completes with this |
| 16 * exception. | 17 * exception. |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 final String name; | 118 final String name; |
| 118 | 119 |
| 119 /** | 120 /** |
| 120 * This constructor is not private to support user-defined | 121 * This constructor is not private to support user-defined |
| 121 * diagnostic kinds. | 122 * diagnostic kinds. |
| 122 */ | 123 */ |
| 123 const Diagnostic(this.ordinal, this.name); | 124 const Diagnostic(this.ordinal, this.name); |
| 124 | 125 |
| 125 String toString() => name; | 126 String toString() => name; |
| 126 } | 127 } |
| OLD | NEW |