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

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

Issue 11412245: MalformedType used for all invalid type annotations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Bug fixes Created 8 years 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 static const ILLEGAL_SUPER_SEND = const MessageKind( 199 static const ILLEGAL_SUPER_SEND = const MessageKind(
200 "#{1} cannot be called on super"); 200 "#{1} cannot be called on super");
201 201
202 static const ADDITIONAL_TYPE_ARGUMENT = const MessageKind( 202 static const ADDITIONAL_TYPE_ARGUMENT = const MessageKind(
203 "additional type argument"); 203 "additional type argument");
204 204
205 static const MISSING_TYPE_ARGUMENT = const MessageKind( 205 static const MISSING_TYPE_ARGUMENT = const MessageKind(
206 "missing type argument"); 206 "missing type argument");
207 207
208 static const TYPE_ARGUMENT_COUNT_MISMATCH = const MessageKind(
209 "incorrect number of type arguments on #{1}");
ahe 2012/12/03 12:32:01 Eventually, I'd like to split this into two messag
Johnni Winther 2012/12/04 10:07:17 Added a TODO.
210
208 static const MISSING_ARGUMENTS_TO_ASSERT = const MessageKind( 211 static const MISSING_ARGUMENTS_TO_ASSERT = const MessageKind(
209 "missing arguments to assert"); 212 "missing arguments to assert");
210 213
211 static const GETTER_MISMATCH = const MessageKind( 214 static const GETTER_MISMATCH = const MessageKind(
212 "Error: setter disagrees on: #{1}."); 215 "Error: setter disagrees on: #{1}.");
213 216
214 static const SETTER_MISMATCH = const MessageKind( 217 static const SETTER_MISMATCH = const MessageKind(
215 "Error: getter disagrees on: #{1}."); 218 "Error: getter disagrees on: #{1}.");
216 219
217 static const NO_STATIC_OVERRIDE = const MessageKind( 220 static const NO_STATIC_OVERRIDE = const MessageKind(
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 422
420 class CompileTimeConstantError extends Diagnostic { 423 class CompileTimeConstantError extends Diagnostic {
421 CompileTimeConstantError(MessageKind kind, List arguments) 424 CompileTimeConstantError(MessageKind kind, List arguments)
422 : super(kind, arguments); 425 : super(kind, arguments);
423 } 426 }
424 427
425 class CompilationError extends Diagnostic { 428 class CompilationError extends Diagnostic {
426 CompilationError(MessageKind kind, List arguments) 429 CompilationError(MessageKind kind, List arguments)
427 : super(kind, arguments); 430 : super(kind, arguments);
428 } 431 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698