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

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

Issue 206193002: Remove cancel and make crash exit with code 253. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 9 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 const DONT_KNOW_HOW_TO_FIX = ""; 7 const DONT_KNOW_HOW_TO_FIX = "";
8 8
9 /** 9 /**
10 * The messages in this file should meet the following guide lines: 10 * The messages in this file should meet the following guide lines:
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 """]); 796 """]);
797 797
798 static const MessageKind DUPLICATE_EXTENDS_IMPLEMENTS = const MessageKind( 798 static const MessageKind DUPLICATE_EXTENDS_IMPLEMENTS = const MessageKind(
799 "'#{type}' can not be both extended and implemented."); 799 "'#{type}' can not be both extended and implemented.");
800 800
801 static const MessageKind DUPLICATE_IMPLEMENTS = const MessageKind( 801 static const MessageKind DUPLICATE_IMPLEMENTS = const MessageKind(
802 "'#{type}' must not occur more than once " 802 "'#{type}' must not occur more than once "
803 "in the implements clause."); 803 "in the implements clause.");
804 804
805 static const MessageKind MULTI_INHERITANCE = const MessageKind( 805 static const MessageKind MULTI_INHERITANCE = const MessageKind(
806 "Inheritance of the same class with different type " 806 "Dart2js does not currently support inheritance of the same class with "
807 "arguments is not supported: Both #{firstType} and #{secondType} are " 807 "different type arguments: Both #{firstType} and #{secondType} are "
808 "supertypes of #{thisType}."); 808 "supertypes of #{thisType}.");
809 809
810 static const MessageKind ILLEGAL_SUPER_SEND = const MessageKind( 810 static const MessageKind ILLEGAL_SUPER_SEND = const MessageKind(
811 "'#{name}' cannot be called on super."); 811 "'#{name}' cannot be called on super.");
812 812
813 static const MessageKind NO_SUCH_SUPER_MEMBER = const MessageKind( 813 static const MessageKind NO_SUCH_SUPER_MEMBER = const MessageKind(
814 "Cannot resolve '#{memberName}' in a superclass of '#{className}'."); 814 "Cannot resolve '#{memberName}' in a superclass of '#{className}'.");
815 815
816 static const MessageKind ADDITIONAL_TYPE_ARGUMENT = const MessageKind( 816 static const MessageKind ADDITIONAL_TYPE_ARGUMENT = const MessageKind(
817 "Additional type argument."); 817 "Additional type argument.");
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 "'_'."); 1218 "'_'.");
1219 1219
1220 static const MessageKind PRIVATE_NAMED_PARAMETER = const MessageKind( 1220 static const MessageKind PRIVATE_NAMED_PARAMETER = const MessageKind(
1221 "Named optional parameter can't have a library private name.", 1221 "Named optional parameter can't have a library private name.",
1222 howToFix: "Try removing the '_' or making the parameter positional or " 1222 howToFix: "Try removing the '_' or making the parameter positional or "
1223 "required.", 1223 "required.",
1224 examples: const ["""foo({int _p}) {} main() => foo();"""] 1224 examples: const ["""foo({int _p}) {} main() => foo();"""]
1225 ); 1225 );
1226 1226
1227 static const MessageKind UNSUPPORTED_LITERAL_SYMBOL = const MessageKind( 1227 static const MessageKind UNSUPPORTED_LITERAL_SYMBOL = const MessageKind(
1228 "Symbol literal '##{value}' is currently unsupported."); 1228 "Symbol literal '##{value}' is currently unsupported by dart2js.");
1229 1229
1230 static const MessageKind INVALID_SYMBOL = const MessageKind(''' 1230 static const MessageKind INVALID_SYMBOL = const MessageKind('''
1231 '#{value}' is not a valid Symbol name because is not: 1231 '#{value}' is not a valid Symbol name because is not:
1232 * an empty String, 1232 * an empty String,
1233 * a user defined operator, 1233 * a user defined operator,
1234 * a qualified non-private identifier optionally followed by '=', or 1234 * a qualified non-private identifier optionally followed by '=', or
1235 * a qualified non-private identifier followed by '.' and a user-defined ''' 1235 * a qualified non-private identifier followed by '.' and a user-defined '''
1236 "operator."); 1236 "operator.");
1237 1237
1238 static const MessageKind AMBIGUOUS_REEXPORT = const MessageKind( 1238 static const MessageKind AMBIGUOUS_REEXPORT = const MessageKind(
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 return computeMessage(); 1923 return computeMessage();
1924 } 1924 }
1925 1925
1926 bool operator==(other) { 1926 bool operator==(other) {
1927 if (other is !Message) return false; 1927 if (other is !Message) return false;
1928 return (kind == other.kind) && (toString() == other.toString()); 1928 return (kind == other.kind) && (toString() == other.toString());
1929 } 1929 }
1930 1930
1931 int get hashCode => throw new UnsupportedError('Message.hashCode'); 1931 int get hashCode => throw new UnsupportedError('Message.hashCode');
1932 } 1932 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/util/util.dart ('k') | sdk/lib/_internal/compiler/implementation/world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698