Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 /// Defines the API for the front end to communicate information about | |
| 6 /// compilation errors to clients. | |
| 7 library front_end.compilation_error; | |
| 8 | |
| 9 import 'package:source_span/source_span.dart' show FileSpan; | |
| 10 | |
| 11 /// A single error that occurred during compilation, and information about where | |
| 12 /// it occurred. | |
| 13 /// | |
| 14 /// TODO(paulberry): add a reference to the analyzer error code. | |
| 15 /// | |
| 16 /// TODO(paulberry): add a correction message, once most analyzer errors have | |
| 17 /// one. | |
| 18 abstract class CompilationError { | |
| 19 /// A text description of the compile error. | |
| 20 String get message; | |
| 21 | |
| 22 /// The source location where the error occurred. | |
| 23 FileSpan get location; | |
|
Siggi Cherem (dart-lang)
2016/10/17 16:27:29
consider switching to just use the interface (Sour
Paul Berry
2016/10/17 17:04:27
Done.
| |
| 24 } | |
| OLD | NEW |