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

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

Issue 11829020: Report errors on repeated interfaces. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 part of dart2js; 5 part of dart2js;
6 6
7 class MessageKind { 7 class MessageKind {
8 final String template; 8 final String template;
9 const MessageKind(this.template); 9 const MessageKind(this.template);
10 10
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 static const INTERFACE_TYPE_EXPECTED = const MessageKind( 194 static const INTERFACE_TYPE_EXPECTED = const MessageKind(
195 "interface type expected"); 195 "interface type expected");
196 196
197 static const CANNOT_EXTEND = const MessageKind( 197 static const CANNOT_EXTEND = const MessageKind(
198 "#{1} cannot be extended"); 198 "#{1} cannot be extended");
199 199
200 static const CANNOT_IMPLEMENT = const MessageKind( 200 static const CANNOT_IMPLEMENT = const MessageKind(
201 "#{1} cannot be implemented"); 201 "#{1} cannot be implemented");
202 202
203 static const DUPLICATE_EXTENDS_IMPLEMENTS = const MessageKind(
ahe 2013/01/09 13:15:31 Would these errors be easier to understand if we r
Johnni Winther 2013/01/10 06:55:13 Done.
204 "#{1} can not be both extended and implemented.");
205
206 static const DUPLICATE_IMPLEMENTS = const MessageKind(
207 "#{1} must not occur more than once in the implements clause.");
208
203 static const ILLEGAL_SUPER_SEND = const MessageKind( 209 static const ILLEGAL_SUPER_SEND = const MessageKind(
204 "#{1} cannot be called on super"); 210 "#{1} cannot be called on super");
205 211
206 static const ADDITIONAL_TYPE_ARGUMENT = const MessageKind( 212 static const ADDITIONAL_TYPE_ARGUMENT = const MessageKind(
207 "additional type argument"); 213 "additional type argument");
208 214
209 static const MISSING_TYPE_ARGUMENT = const MessageKind( 215 static const MISSING_TYPE_ARGUMENT = const MessageKind(
210 "missing type argument"); 216 "missing type argument");
211 217
212 // TODO(johnniwinther): Use ADDITIONAL_TYPE_ARGUMENT or MISSING_TYPE_ARGUMENT 218 // TODO(johnniwinther): Use ADDITIONAL_TYPE_ARGUMENT or MISSING_TYPE_ARGUMENT
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 448
443 class CompileTimeConstantError extends Diagnostic { 449 class CompileTimeConstantError extends Diagnostic {
444 CompileTimeConstantError(MessageKind kind, List arguments) 450 CompileTimeConstantError(MessageKind kind, List arguments)
445 : super(kind, arguments); 451 : super(kind, arguments);
446 } 452 }
447 453
448 class CompilationError extends Diagnostic { 454 class CompilationError extends Diagnostic {
449 CompilationError(MessageKind kind, List arguments) 455 CompilationError(MessageKind kind, List arguments)
450 : super(kind, arguments); 456 : super(kind, arguments);
451 } 457 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698