Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: tests/compiler/dart2js/diagnostic_reporter_helper.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 import 'options_helper.dart';
13 13
14 abstract class DiagnosticReporterWrapper extends DiagnosticReporter { 14 abstract class DiagnosticReporterWrapper extends DiagnosticReporter {
15 DiagnosticReporter get reporter; 15 DiagnosticReporter get reporter;
16 16
17 @override 17 @override
18 DiagnosticMessage createMessage( 18 DiagnosticMessage createMessage(Spannable spannable, MessageKind messageKind,
19 Spannable spannable,
20 MessageKind messageKind,
21 [Map arguments = const {}]) { 19 [Map arguments = const {}]) {
22 return reporter.createMessage(spannable, messageKind, arguments); 20 return reporter.createMessage(spannable, messageKind, arguments);
23 } 21 }
24 22
25 @override 23 @override
26 internalError(Spannable spannable, message) { 24 internalError(Spannable spannable, message) {
27 return reporter.internalError(spannable, message); 25 return reporter.internalError(spannable, message);
28 } 26 }
29 27
30 @override 28 @override
31 void log(message) { 29 void log(message) {
32 return reporter.log(message); 30 return reporter.log(message);
33 } 31 }
34 32
35 @override 33 @override
36 DiagnosticOptions get options => reporter.options; 34 DiagnosticOptions get options => reporter.options;
37 35
38 @override 36 @override
39 void reportError( 37 void reportError(DiagnosticMessage message,
40 DiagnosticMessage message, 38 [List<DiagnosticMessage> infos = const <DiagnosticMessage>[]]) {
41 [List<DiagnosticMessage> infos = const <DiagnosticMessage> []]) {
42 reporter.reportError(message, infos); 39 reporter.reportError(message, infos);
43 } 40 }
44 41
45 @override 42 @override
46 void reportHint( 43 void reportHint(DiagnosticMessage message,
47 DiagnosticMessage message, 44 [List<DiagnosticMessage> infos = const <DiagnosticMessage>[]]) {
48 [List<DiagnosticMessage> infos = const <DiagnosticMessage> []]) {
49 reporter.reportHint(message, infos); 45 reporter.reportHint(message, infos);
50 } 46 }
51 47
52 @override 48 @override
53 void reportInfo( 49 void reportInfo(Spannable node, MessageKind errorCode,
54 Spannable node,
55 MessageKind errorCode,
56 [Map arguments = const {}]) { 50 [Map arguments = const {}]) {
57 reporter.reportInfo(node, errorCode, arguments); 51 reporter.reportInfo(node, errorCode, arguments);
58 } 52 }
59 53
60 @override 54 @override
61 void reportWarning( 55 void reportWarning(DiagnosticMessage message,
62 DiagnosticMessage message, 56 [List<DiagnosticMessage> infos = const <DiagnosticMessage>[]]) {
63 [List<DiagnosticMessage> infos = const <DiagnosticMessage> []]) {
64 reporter.reportWarning(message, infos); 57 reporter.reportWarning(message, infos);
65 } 58 }
66 59
67 @override 60 @override
68 SourceSpan spanFromSpannable(Spannable node) { 61 SourceSpan spanFromSpannable(Spannable node) {
69 return reporter.spanFromSpannable(node); 62 return reporter.spanFromSpannable(node);
70 } 63 }
71 64
72 @override 65 @override
73 withCurrentElement(Element element, f()) { 66 withCurrentElement(Element element, f()) {
74 return reporter.withCurrentElement(element, f); 67 return reporter.withCurrentElement(element, f);
75 } 68 }
76 69
77 @override 70 @override
78 bool get hasReportedError => reporter.hasReportedError; 71 bool get hasReportedError => reporter.hasReportedError;
79 } 72 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/diagnostic_helper.dart ('k') | tests/compiler/dart2js/dictionary_types_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698