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

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

Issue 11014010: Made assert a keyword. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed grammar. 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/universe/universe.dart ('k') | tests/co19/co19-dart2dart.status » ('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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 "Optional parameters of origin and patch method '#{1}' must " 296 "Optional parameters of origin and patch method '#{1}' must "
297 "both be either named or positional."); 297 "both be either named or positional.");
298 298
299 static const PATCH_PARAMETER_MISMATCH = const MessageKind( 299 static const PATCH_PARAMETER_MISMATCH = const MessageKind(
300 "Patch method parameter '#{3}' doesn't match '#{2}' on origin method " 300 "Patch method parameter '#{3}' doesn't match '#{2}' on origin method "
301 "#{1}."); 301 "#{1}.");
302 302
303 static const TOP_LEVEL_VARIABLE_DECLARED_STATIC = const MessageKind( 303 static const TOP_LEVEL_VARIABLE_DECLARED_STATIC = const MessageKind(
304 "Top-level variable cannot be declared static."); 304 "Top-level variable cannot be declared static.");
305 305
306 static const WRONG_NUMBER_OF_ARGUMENTS_FOR_ASSERT = const MessageKind(
307 "Wrong number of arguments to assert. Should be 1, but given #{1}.");
308
309 static const ASSERT_IS_GIVEN_NAMED_ARGUMENTS = const MessageKind(
310 "assert takes no named arguments, but given #{1}.");
311
312
306 static const COMPILER_CRASHED = const MessageKind( 313 static const COMPILER_CRASHED = const MessageKind(
307 "Error: The compiler crashed when compiling this element."); 314 "Error: The compiler crashed when compiling this element.");
308 315
309 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' 316 static const PLEASE_REPORT_THE_CRASH = const MessageKind('''
310 The compiler is broken. 317 The compiler is broken.
311 318
312 When compiling the above element, the compiler crashed. It is not 319 When compiling the above element, the compiler crashed. It is not
313 possible to tell if this is caused by a problem in your program or 320 possible to tell if this is caused by a problem in your program or
314 not. Regardless, the compiler should not crash. 321 not. Regardless, the compiler should not crash.
315 322
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 401
395 class CompileTimeConstantError extends Diagnostic { 402 class CompileTimeConstantError extends Diagnostic {
396 CompileTimeConstantError(MessageKind kind, List arguments) 403 CompileTimeConstantError(MessageKind kind, List arguments)
397 : super(kind, arguments); 404 : super(kind, arguments);
398 } 405 }
399 406
400 class CompilationError extends Diagnostic { 407 class CompilationError extends Diagnostic {
401 CompilationError(MessageKind kind, List arguments) 408 CompilationError(MessageKind kind, List arguments)
402 : super(kind, arguments); 409 : super(kind, arguments);
403 } 410 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/universe/universe.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698