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

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: Rebased 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(
204 "Error: #{1} can not be both extended and implemented.");
205
206 static const DUPLICATE_IMPLEMENTS = const MessageKind(
207 "Error: #{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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 466
461 class CompileTimeConstantError extends Diagnostic { 467 class CompileTimeConstantError extends Diagnostic {
462 CompileTimeConstantError(MessageKind kind, List arguments) 468 CompileTimeConstantError(MessageKind kind, List arguments)
463 : super(kind, arguments); 469 : super(kind, arguments);
464 } 470 }
465 471
466 class CompilationError extends Diagnostic { 472 class CompilationError extends Diagnostic {
467 CompilationError(MessageKind kind, List arguments) 473 CompilationError(MessageKind kind, List arguments)
468 : super(kind, arguments); 474 : super(kind, arguments);
469 } 475 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/resolution/members.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698