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

Unified Diff: pkg/analyzer_experimental/lib/src/error_formatter.dart

Issue 14998006: Add some user-friendly utility functions to pkg/analyzer_experimental. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer_experimental/lib/src/error_formatter.dart
diff --git a/pkg/analyzer_experimental/lib/error_formatter.dart b/pkg/analyzer_experimental/lib/src/error_formatter.dart
similarity index 87%
rename from pkg/analyzer_experimental/lib/error_formatter.dart
rename to pkg/analyzer_experimental/lib/src/error_formatter.dart
index 9aafb9fb8a79cc69088d27667cfa38980d689f49..cf9aa70cc48f0b5e8d3bdba4f7daed4b2730443e 100644
--- a/pkg/analyzer_experimental/lib/error_formatter.dart
+++ b/pkg/analyzer_experimental/lib/src/error_formatter.dart
@@ -1,14 +1,29 @@
-part of analyzer;
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
scheglov 2013/05/09 01:26:46 Missing library directive?
+import 'dart:async';
+import 'dart:io';
+
+import 'generated/java_io.dart';
+import 'generated/engine.dart';
+import 'generated/error.dart';
+import 'generated/source_io.dart';
+import 'generated/sdk.dart';
+import 'generated/sdk_io.dart';
+import 'generated/ast.dart';
+import 'generated/element.dart';
+import '../options.dart';
/**
* Helper for formatting [AnalysisError]s.
* The two format options are a user consumable format and a machine consumable format.
*/
-class _ErrorFormatter {
+class ErrorFormatter {
StringSink out;
CommandLineOptions options;
- _ErrorFormatter(this.out, this.options);
+ ErrorFormatter(this.out, this.options);
void startAnalysis() {
if (!options.machineFormat) {

Powered by Google App Engine
This is Rietveld 408576698