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

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

Issue 21540002: Remove support for remaining deprecated features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 4 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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * The messages in this file should meet the following guide lines: 8 * The messages in this file should meet the following guide lines:
9 * 9 *
10 * 1. The message should start with exactly one of "Error", "Internal error", 10 * 1. The message should start with exactly one of "Error", "Internal error",
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 461
462 static const MessageKind TERNARY_OPERATOR_BAD_ARITY = const MessageKind( 462 static const MessageKind TERNARY_OPERATOR_BAD_ARITY = const MessageKind(
463 'Error: Operator "#{operatorName}" must have exactly 2 parameters.'); 463 'Error: Operator "#{operatorName}" must have exactly 2 parameters.');
464 464
465 static const MessageKind OPERATOR_OPTIONAL_PARAMETERS = const MessageKind( 465 static const MessageKind OPERATOR_OPTIONAL_PARAMETERS = const MessageKind(
466 'Error: Operator "#{operatorName}" cannot have optional parameters.'); 466 'Error: Operator "#{operatorName}" cannot have optional parameters.');
467 467
468 static const MessageKind OPERATOR_NAMED_PARAMETERS = const MessageKind( 468 static const MessageKind OPERATOR_NAMED_PARAMETERS = const MessageKind(
469 'Error: Operator "#{operatorName}" cannot have named parameters.'); 469 'Error: Operator "#{operatorName}" cannot have named parameters.');
470 470
471 // TODO(ahe): This message is hard to localize. This is acceptable,
472 // as it will be removed when we ship Dart version 1.0.
473 static const MessageKind DEPRECATED_FEATURE_WARNING = const MessageKind(
474 'Warning: Deprecated language feature, #{featureName}, '
475 'will be removed in a future Dart milestone.');
476
477 // TODO(ahe): This message is hard to localize. This is acceptable,
478 // as it will be removed when we ship Dart version 1.0.
479 static const MessageKind DEPRECATED_FEATURE_ERROR = const MessageKind(
480 'Error: #{featureName} are not legal '
481 'due to option --reject-deprecated-language-features.');
482
483 static const MessageKind CONSTRUCTOR_WITH_RETURN_TYPE = const MessageKind( 471 static const MessageKind CONSTRUCTOR_WITH_RETURN_TYPE = const MessageKind(
484 'Error: Cannot have return type for constructor.'); 472 'Error: Cannot have return type for constructor.');
485 473
486 static const MessageKind ILLEGAL_FINAL_METHOD_MODIFIER = const MessageKind( 474 static const MessageKind ILLEGAL_FINAL_METHOD_MODIFIER = const MessageKind(
487 'Error: Cannot have final modifier on method.'); 475 'Error: Cannot have final modifier on method.');
488 476
489 static const MessageKind ILLEGAL_CONSTRUCTOR_MODIFIERS = const MessageKind( 477 static const MessageKind ILLEGAL_CONSTRUCTOR_MODIFIERS = const MessageKind(
490 'Error: Illegal constructor modifiers: "#{modifiers}".'); 478 'Error: Illegal constructor modifiers: "#{modifiers}".');
491 479
492 static const MessageKind ILLEGAL_MIXIN_APPLICATION_MODIFIERS = 480 static const MessageKind ILLEGAL_MIXIN_APPLICATION_MODIFIERS =
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 static const MessageKind IMPORTED_HERE = const MessageKind( 597 static const MessageKind IMPORTED_HERE = const MessageKind(
610 'Info: "#{element}" is imported here.'); 598 'Info: "#{element}" is imported here.');
611 599
612 static const MessageKind OVERRIDE_EQUALS_NOT_HASH_CODE = const MessageKind( 600 static const MessageKind OVERRIDE_EQUALS_NOT_HASH_CODE = const MessageKind(
613 'Hint: The class "#{class}" overrides "operator==", ' 601 'Hint: The class "#{class}" overrides "operator==", '
614 'but not "get hashCode".'); 602 'but not "get hashCode".');
615 603
616 static const MessageKind PACKAGE_ROOT_NOT_SET = const MessageKind( 604 static const MessageKind PACKAGE_ROOT_NOT_SET = const MessageKind(
617 'Error: Cannot resolve "#{uri}". Package root has not been set.'); 605 'Error: Cannot resolve "#{uri}". Package root has not been set.');
618 606
607 static const MessageKind UNSUPPORTED_EQ_EQ_EQ = const MessageKind(
608 'Error: "===" is not an operator. '
609 'Did you mean "#{lhs} == #{rhs}" or "identical(#{lhs}, #{rhs})"?');
610
611 static const MessageKind UNSUPPORTED_BANG_EQ_EQ = const MessageKind(
612 'Error: "!==" is not an operator. '
613 'Did you mean "#{lhs} != #{rhs}" or "!identical(#{lhs}, #{rhs})"?');
614
615 static const MessageKind UNSUPPORTED_THROW_WITHOUT_EXP = const MessageKind(
616 'Error: No expression after "throw". '
617 'Did you mean "rethrow"?');
618
619 static const MessageKind COMPILER_CRASHED = const MessageKind( 619 static const MessageKind COMPILER_CRASHED = const MessageKind(
620 'Error: The compiler crashed when compiling this element.'); 620 'Error: The compiler crashed when compiling this element.');
621 621
622 static const MessageKind PLEASE_REPORT_THE_CRASH = const MessageKind(''' 622 static const MessageKind PLEASE_REPORT_THE_CRASH = const MessageKind('''
623 The compiler is broken. 623 The compiler is broken.
624 624
625 When compiling the above element, the compiler crashed. It is not 625 When compiling the above element, the compiler crashed. It is not
626 possible to tell if this is caused by a problem in your program or 626 possible to tell if this is caused by a problem in your program or
627 not. Regardless, the compiler should not crash. 627 not. Regardless, the compiler should not crash.
628 628
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 812
813 class CompileTimeConstantError extends Diagnostic { 813 class CompileTimeConstantError extends Diagnostic {
814 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) 814 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}])
815 : super(kind, arguments); 815 : super(kind, arguments);
816 } 816 }
817 817
818 class CompilationError extends Diagnostic { 818 class CompilationError extends Diagnostic {
819 CompilationError(MessageKind kind, [Map arguments = const {}]) 819 CompilationError(MessageKind kind, [Map arguments = const {}])
820 : super(kind, arguments); 820 : super(kind, arguments);
821 } 821 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/scanner/listener.dart ('k') | tests/compiler/dart2js/deprecated_features_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698