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

Unified Diff: pkg/compiler/lib/src/diagnostic_listener.dart

Issue 1286143003: Move diagnostic_listener.dart and messages.dart to the diagnostics folder (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/deferred_load.dart ('k') | pkg/compiler/lib/src/diagnostics/diagnostic_listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/diagnostic_listener.dart
diff --git a/pkg/compiler/lib/src/diagnostic_listener.dart b/pkg/compiler/lib/src/diagnostic_listener.dart
deleted file mode 100644
index cdcef75fb0eb3d83d3e034e91efff69c31ed2bc1..0000000000000000000000000000000000000000
--- a/pkg/compiler/lib/src/diagnostic_listener.dart
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2012, 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.
-
-library dart2js.diagnostic_listener;
-
-import 'diagnostics/source_span.dart' show
- SourceSpan;
-import 'diagnostics/spannable.dart' show
- Spannable;
-import 'elements/elements.dart' show
- Element;
-import 'messages.dart';
-
-abstract class DiagnosticListener {
- // TODO(karlklose): rename log to something like reportInfo.
- void log(message);
-
- void internalError(Spannable spannable, message);
-
- SourceSpan spanFromSpannable(Spannable node);
-
- void reportError(Spannable node, MessageKind errorCode,
- [Map arguments = const {}]);
-
- void reportWarning(Spannable node, MessageKind errorCode,
- [Map arguments = const {}]);
-
- void reportHint(Spannable node, MessageKind errorCode,
- [Map arguments = const {}]);
-
- void reportInfo(Spannable node, MessageKind errorCode,
- [Map arguments = const {}]);
-
- // TODO(ahe): We should not expose this here. Perhaps a
- // [SourceSpan] should implement [Spannable], and we should have a
- // way to construct a [SourceSpan] from a [Spannable] and an
- // [Element].
- withCurrentElement(Element element, f());
-}
« no previous file with comments | « pkg/compiler/lib/src/deferred_load.dart ('k') | pkg/compiler/lib/src/diagnostics/diagnostic_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698