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

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

Issue 10905305: Patch refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 8 years, 3 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 class MessageKind { 5 class MessageKind {
6 final String template; 6 final String template;
7 const MessageKind(this.template); 7 const MessageKind(this.template);
8 8
9 static const GENERIC = const MessageKind('#{1}'); 9 static const GENERIC = const MessageKind('#{1}');
10 10
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 249
250 static const CANNOT_RESOLVE_GETTER = const MessageKind( 250 static const CANNOT_RESOLVE_GETTER = const MessageKind(
251 'cannot resolve getter.'); 251 'cannot resolve getter.');
252 252
253 static const CANNOT_RESOLVE_SETTER = const MessageKind( 253 static const CANNOT_RESOLVE_SETTER = const MessageKind(
254 'cannot resolve setter.'); 254 'cannot resolve setter.');
255 255
256 static const VOID_NOT_ALLOWED = const MessageKind( 256 static const VOID_NOT_ALLOWED = const MessageKind(
257 'type void is only allowed in a return type.'); 257 'type void is only allowed in a return type.');
258 258
259 static const PATCH_RETURN_TYPE_MISMATCH = const MessageKind(
260 "Patch return type #{3} doesn't match #{2} on origin method #{1}.");
261
262 static const PATCH_REQUIRED_PARAMETER_COUNT_MISMATCH = const MessageKind(
263 "Required parameter count of patch method (#{3}) on origin method #{1}.");
264
265 static const PATCH_OPTIONAL_PARAMETER_COUNT_MISMATCH = const MessageKind(
266 "Optional parameter count of patch method (#{3}) on origin method #{1}.");
267
268 static const PATCH_PARAMETER_MISMATCH = const MessageKind(
269 "Patch parameter '#{3}' doesn't match '#{2}' on origin method #{1}.");
270
271
259 static const COMPILER_CRASHED = const MessageKind( 272 static const COMPILER_CRASHED = const MessageKind(
260 "Error: The compiler crashed when compiling this element."); 273 "Error: The compiler crashed when compiling this element.");
261 274
262 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' 275 static const PLEASE_REPORT_THE_CRASH = const MessageKind('''
263 The compiler is broken. 276 The compiler is broken.
264 277
265 When compiling the above element, the compiler crashed. It is not 278 When compiling the above element, the compiler crashed. It is not
266 possible to tell if this is caused by a problem in your program or 279 possible to tell if this is caused by a problem in your program or
267 not. Regardless, the compiler should not crash. 280 not. Regardless, the compiler should not crash.
268 281
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 359
347 class CompileTimeConstantError extends Diagnostic { 360 class CompileTimeConstantError extends Diagnostic {
348 CompileTimeConstantError(MessageKind kind, List arguments) 361 CompileTimeConstantError(MessageKind kind, List arguments)
349 : super(kind, arguments); 362 : super(kind, arguments);
350 } 363 }
351 364
352 class CompilationError extends Diagnostic { 365 class CompilationError extends Diagnostic {
353 CompilationError(MessageKind kind, List arguments) 366 CompilationError(MessageKind kind, List arguments)
354 : super(kind, arguments); 367 : super(kind, arguments);
355 } 368 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698