Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 import 'package:front_end/compilation_error.dart'; | 1 import 'package:front_end/compilation_error.dart'; |
| 2 | 2 |
| 3 import 'package:source_span/source_span.dart' show SourceSpan; | 3 import 'package:source_span/source_span.dart' show SourceSpan; |
| 4 | 4 |
| 5 /// An error that only contains a message and no error location. | 5 /// An error that only contains a message and no error location. |
|
ahe
2017/07/05 13:29:40
I would assume this should still have an error cod
Siggi Cherem (dart-lang)
2017/07/05 18:42:11
Good point - for now added a TODO and will follow
| |
| 6 class SimpleError implements CompilationError { | 6 class SimpleError implements CompilationError { |
| 7 String get correction => null; | 7 String get correction => null; |
| 8 SourceSpan get span => null; | 8 SourceSpan get span => null; |
| 9 final String message; | 9 final String message; |
| 10 SimpleError(this.message); | 10 SimpleError(this.message); |
| 11 | |
| 12 String toString() => "FrontEnd Error: $message"; | |
|
ahe
2017/07/05 13:29:40
I'm not sure how the user experience is improved b
Siggi Cherem (dart-lang)
2017/07/05 18:42:11
Done.
| |
| 11 } | 13 } |
| OLD | NEW |