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

Side by Side Diff: pkg/analyzer_experimental/lib/src/error_formatter.dart

Issue 22542003: analyzer_exp fixes (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 error_formatter; 5 library error_formatter;
6 6
7 import 'dart:async';
8 import 'dart:io';
9
10 import 'generated/java_io.dart';
11 import 'generated/engine.dart'; 7 import 'generated/engine.dart';
12 import 'generated/error.dart'; 8 import 'generated/error.dart';
13 import 'generated/source_io.dart'; 9 import 'generated/source_io.dart';
14 import 'generated/sdk.dart';
15 import 'generated/sdk_io.dart';
16 import 'generated/ast.dart';
17 import 'generated/element.dart';
18 import '../options.dart'; 10 import '../options.dart';
19 11
20 /** 12 /**
21 * Helper for formatting [AnalysisError]s. 13 * Helper for formatting [AnalysisError]s.
22 * The two format options are a user consumable format and a machine consumable format. 14 * The two format options are a user consumable format and a machine consumable format.
23 */ 15 */
24 class ErrorFormatter { 16 class ErrorFormatter {
25 StringSink out; 17 StringSink out;
26 CommandLineOptions options; 18 CommandLineOptions options;
27 19
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 130 }
139 131
140 static String pluralize(String word, int count) { 132 static String pluralize(String word, int count) {
141 if (count == 1) { 133 if (count == 1) {
142 return word; 134 return word;
143 } else { 135 } else {
144 return word + "s"; 136 return word + "s";
145 } 137 }
146 } 138 }
147 } 139 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698