OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 dart2js.diagnostic_reporter.helper; | 5 library dart2js.diagnostic_reporter.helper; |
6 | 6 |
7 import 'package:compiler/src/diagnostics/diagnostic_listener.dart'; | 7 import 'package:compiler/src/diagnostics/diagnostic_listener.dart'; |
8 import 'package:compiler/src/diagnostics/messages.dart'; | 8 import 'package:compiler/src/diagnostics/messages.dart'; |
9 import 'package:compiler/src/diagnostics/spannable.dart'; | 9 import 'package:compiler/src/diagnostics/spannable.dart'; |
10 import 'package:compiler/src/diagnostics/source_span.dart'; | 10 import 'package:compiler/src/diagnostics/source_span.dart'; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 @override | 67 @override |
68 SourceSpan spanFromSpannable(Spannable node) { | 68 SourceSpan spanFromSpannable(Spannable node) { |
69 return reporter.spanFromSpannable(node); | 69 return reporter.spanFromSpannable(node); |
70 } | 70 } |
71 | 71 |
72 @override | 72 @override |
73 withCurrentElement(Element element, f()) { | 73 withCurrentElement(Element element, f()) { |
74 return reporter.withCurrentElement(element, f); | 74 return reporter.withCurrentElement(element, f); |
75 } | 75 } |
| 76 |
| 77 @override |
| 78 bool get hasReportedError => reporter.hasReportedError; |
76 } | 79 } |
OLD | NEW |