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'; |
11 import 'package:compiler/src/elements/elements.dart'; | 11 import 'package:compiler/src/elements/elements.dart'; |
| 12 import 'options_helper.dart'; |
12 | 13 |
13 abstract class DiagnosticReporterWrapper extends DiagnosticReporter { | 14 abstract class DiagnosticReporterWrapper extends DiagnosticReporter { |
14 DiagnosticReporter get reporter; | 15 DiagnosticReporter get reporter; |
15 | 16 |
16 @override | 17 @override |
17 DiagnosticMessage createMessage( | 18 DiagnosticMessage createMessage( |
18 Spannable spannable, | 19 Spannable spannable, |
19 MessageKind messageKind, | 20 MessageKind messageKind, |
20 [Map arguments = const {}]) { | 21 [Map arguments = const {}]) { |
21 return reporter.createMessage(spannable, messageKind, arguments); | 22 return reporter.createMessage(spannable, messageKind, arguments); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 @override | 67 @override |
67 SourceSpan spanFromSpannable(Spannable node) { | 68 SourceSpan spanFromSpannable(Spannable node) { |
68 return reporter.spanFromSpannable(node); | 69 return reporter.spanFromSpannable(node); |
69 } | 70 } |
70 | 71 |
71 @override | 72 @override |
72 withCurrentElement(Element element, f()) { | 73 withCurrentElement(Element element, f()) { |
73 return reporter.withCurrentElement(element, f); | 74 return reporter.withCurrentElement(element, f); |
74 } | 75 } |
75 } | 76 } |
OLD | NEW |