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

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

Issue 11052012: Patch signatures checked in resolver. (Closed) Base URL: https://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) 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 INVALID_SOURCE_FILE_LOCATION = const MessageKind(''' 259 static const INVALID_SOURCE_FILE_LOCATION = const MessageKind('''
260 Invalid offset (#{1}) in source map. 260 Invalid offset (#{1}) in source map.
261 File: #{2} 261 File: #{2}
262 Length: #{3}'''); 262 Length: #{3}''');
263 263
264 static const PATCH_RETURN_TYPE_MISMATCH = const MessageKind(
265 "Patch return type #{3} doesn't match #{2} on origin method #{1}.");
266
267 static const PATCH_REQUIRED_PARAMETER_COUNT_MISMATCH = const MessageKind(
268 "Required parameter count of patch method (#{3}) on origin method #{1}.");
Lasse Reichstein Nielsen 2012/10/04 07:51:21 Message doesn't say what the problem is. Seems od
Johnni Winther 2012/10/04 10:23:29 Done.
269
270 static const PATCH_OPTIONAL_PARAMETER_COUNT_MISMATCH = const MessageKind(
271 "Optional parameter count of patch method (#{3}) on origin method #{1}.");
Lasse Reichstein Nielsen 2012/10/04 07:51:21 Doesn't say what the problem is. I need to know wh
Johnni Winther 2012/10/04 10:23:29 Done.
272
273 static const PATCH_PARAMETER_MISMATCH = const MessageKind(
274 "Patch parameter '#{3}' doesn't match '#{2}' on origin method #{1}.");
275
264 static const COMPILER_CRASHED = const MessageKind( 276 static const COMPILER_CRASHED = const MessageKind(
265 "Error: The compiler crashed when compiling this element."); 277 "Error: The compiler crashed when compiling this element.");
266 278
267 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' 279 static const PLEASE_REPORT_THE_CRASH = const MessageKind('''
268 The compiler is broken. 280 The compiler is broken.
269 281
270 When compiling the above element, the compiler crashed. It is not 282 When compiling the above element, the compiler crashed. It is not
271 possible to tell if this is caused by a problem in your program or 283 possible to tell if this is caused by a problem in your program or
272 not. Regardless, the compiler should not crash. 284 not. Regardless, the compiler should not crash.
273 285
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 363
352 class CompileTimeConstantError extends Diagnostic { 364 class CompileTimeConstantError extends Diagnostic {
353 CompileTimeConstantError(MessageKind kind, List arguments) 365 CompileTimeConstantError(MessageKind kind, List arguments)
354 : super(kind, arguments); 366 : super(kind, arguments);
355 } 367 }
356 368
357 class CompilationError extends Diagnostic { 369 class CompilationError extends Diagnostic {
358 CompilationError(MessageKind kind, List arguments) 370 CompilationError(MessageKind kind, List arguments)
359 : super(kind, arguments); 371 : super(kind, arguments);
360 } 372 }
OLDNEW
« lib/compiler/implementation/resolver.dart ('K') | « lib/compiler/implementation/resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698