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

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

Issue 11090016: Change core lib, dart2js, and more for new optional parameters syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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) 2012, the Dart project authors. Please see the AUTHORS file 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 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 abstract class DiagnosticListener { 5 abstract class DiagnosticListener {
6 // TODO(karlklose): replace cancel with better error reporting mechanism. 6 // TODO(karlklose): replace cancel with better error reporting mechanism.
7 void cancel([String reason, node, token, instruction, element]); 7 void cancel(String reason, {node, token, instruction, element});
8 // TODO(karlklose): rename log to something like reportInfo. 8 // TODO(karlklose): rename log to something like reportInfo.
9 void log(message); 9 void log(message);
10 // TODO(karlklose): add reportWarning and reportError to this interface. 10 // TODO(karlklose): add reportWarning and reportError to this interface.
11 11
12 void internalErrorOnElement(Element element, String message); 12 void internalErrorOnElement(Element element, String message);
13 void internalError(String message, 13 void internalError(String message,
14 [Node node, Token token, HInstruction instruction, 14 [Node node, Token token, HInstruction instruction,
15 Element element]); 15 Element element]);
16 16
17 SourceSpan spanFromNode(Node node, [Uri uri]); 17 SourceSpan spanFromNode(Node node, [Uri uri]);
18 18
19 void reportMessage(SourceSpan span, Diagnostic message, api.Diagnostic kind); 19 void reportMessage(SourceSpan span, Diagnostic message, api.Diagnostic kind);
20 } 20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698