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

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: Check moved. 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
« no previous file with comments | « lib/compiler/implementation/resolver.dart ('k') | tests/compiler/dart2js/patch_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 'cannot resolve setter.'); 257 'cannot resolve setter.');
258 258
259 static const VOID_NOT_ALLOWED = const MessageKind( 259 static const VOID_NOT_ALLOWED = const MessageKind(
260 'type void is only allowed in a return type.'); 260 'type void is only allowed in a return type.');
261 261
262 static const INVALID_SOURCE_FILE_LOCATION = const MessageKind(''' 262 static const INVALID_SOURCE_FILE_LOCATION = const MessageKind('''
263 Invalid offset (#{1}) in source map. 263 Invalid offset (#{1}) in source map.
264 File: #{2} 264 File: #{2}
265 Length: #{3}'''); 265 Length: #{3}''');
266 266
267 static const PATCH_RETURN_TYPE_MISMATCH = const MessageKind(
268 "Patch return type '#{3}' doesn't match '#{2}' on origin method '#{1}'.");
269
270 static const PATCH_REQUIRED_PARAMETER_COUNT_MISMATCH = const MessageKind(
271 "Required parameter count of patch method (#{3}) doesn't match parameter "
272 "count on origin method '#{1}' (#{2}).");
273
274 static const PATCH_OPTIONAL_PARAMETER_COUNT_MISMATCH = const MessageKind(
275 "Optional parameter count of patch method (#{3}) doesn't match parameter "
276 "count on origin method '#{1}' (#{2}).");
277
278 static const PATCH_OPTIONAL_PARAMETER_NAMED_MISMATCH = const MessageKind(
279 "Optional parameters of origin and patch method '#{1}' must "
280 "both be either named or positional.");
281
282 static const PATCH_PARAMETER_MISMATCH = const MessageKind(
283 "Patch method parameter '#{3}' doesn't match '#{2}' on origin method "
284 "#{1}.");
285
267 static const COMPILER_CRASHED = const MessageKind( 286 static const COMPILER_CRASHED = const MessageKind(
268 "Error: The compiler crashed when compiling this element."); 287 "Error: The compiler crashed when compiling this element.");
269 288
270 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' 289 static const PLEASE_REPORT_THE_CRASH = const MessageKind('''
271 The compiler is broken. 290 The compiler is broken.
272 291
273 When compiling the above element, the compiler crashed. It is not 292 When compiling the above element, the compiler crashed. It is not
274 possible to tell if this is caused by a problem in your program or 293 possible to tell if this is caused by a problem in your program or
275 not. Regardless, the compiler should not crash. 294 not. Regardless, the compiler should not crash.
276 295
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 374
356 class CompileTimeConstantError extends Diagnostic { 375 class CompileTimeConstantError extends Diagnostic {
357 CompileTimeConstantError(MessageKind kind, List arguments) 376 CompileTimeConstantError(MessageKind kind, List arguments)
358 : super(kind, arguments); 377 : super(kind, arguments);
359 } 378 }
360 379
361 class CompilationError extends Diagnostic { 380 class CompilationError extends Diagnostic {
362 CompilationError(MessageKind kind, List arguments) 381 CompilationError(MessageKind kind, List arguments)
363 : super(kind, arguments); 382 : super(kind, arguments);
364 } 383 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/resolver.dart ('k') | tests/compiler/dart2js/patch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698