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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart

Issue 694353007: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
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.
4
5 part of dart2js;
6
7 abstract class DiagnosticListener {
8 // TODO(karlklose): rename log to something like reportInfo.
9 void log(message);
10
11 void internalError(Spannable spannable, message);
12
13 SourceSpan spanFromSpannable(Spannable node);
14
15 /// Reports an error and terminates computation immediately.
16 void reportFatalError(Spannable node, MessageKind errorCode,
17 [Map arguments = const {}]);
18
19 void reportError(Spannable node, MessageKind errorCode,
20 [Map arguments = const {}]);
21
22 void reportWarning(Spannable node, MessageKind errorCode,
23 [Map arguments = const {}]);
24
25 void reportHint(Spannable node, MessageKind errorCode,
26 [Map arguments = const {}]);
27
28 void reportInfo(Spannable node, MessageKind errorCode,
29 [Map arguments = const {}]);
30
31 // TODO(ahe): We should not expose this here. Perhaps a
32 // [SourceSpan] should implement [Spannable], and we should have a
33 // way to construct a [SourceSpan] from a [Spannable] and an
34 // [Element].
35 withCurrentElement(Element element, f());
36 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/deferred_load.dart ('k') | sdk/lib/_internal/compiler/implementation/dump_info.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698