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

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

Issue 26651006: Switch dart2js 'typedef name = mixinApplication' to 'class name = mixinApplication'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 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 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 "Error: '+' is not a prefix operator. ", 1024 "Error: '+' is not a prefix operator. ",
1025 howToFix: "Try removing '+'.", 1025 howToFix: "Try removing '+'.",
1026 examples: const [ 1026 examples: const [
1027 "main() => +2; // No longer a valid way to write '2'" 1027 "main() => +2; // No longer a valid way to write '2'"
1028 ]); 1028 ]);
1029 1029
1030 static const MessageKind UNSUPPORTED_THROW_WITHOUT_EXP = const MessageKind( 1030 static const MessageKind UNSUPPORTED_THROW_WITHOUT_EXP = const MessageKind(
1031 "Error: No expression after 'throw'. " 1031 "Error: No expression after 'throw'. "
1032 "Did you mean 'rethrow'?"); 1032 "Did you mean 'rethrow'?");
1033 1033
1034 static const MessageKind DEPRECATED_TYPEDEF_MIXIN_SYNTAX = const MessageKind(
1035 "Warning: 'typedef' keyword in mixin applications "
1036 "was deprecated, replaced with 'class'.",
ahe 2013/10/10 11:30:15 I think this would be enough: "Warning: 'typedef'
aam-me 2013/10/11 03:02:06 Done.
1037 howToFix: "Try replacing 'typedef' with 'class'.");
ahe 2013/10/10 11:30:15 Can you add an example as well?
aam-me 2013/10/11 03:02:06 Done. Very cool message_kind_test.dart test. But
1038
1034 static const MessageKind MIRRORS_EXPECTED_STRING = const MessageKind( 1039 static const MessageKind MIRRORS_EXPECTED_STRING = const MessageKind(
1035 "Hint: Can't use '#{name}' here because it's an instance of '#{type}' " 1040 "Hint: Can't use '#{name}' here because it's an instance of '#{type}' "
1036 "and a 'String' value is expected.", 1041 "and a 'String' value is expected.",
1037 howToFix: "Did you forget to add quotes?", 1042 howToFix: "Did you forget to add quotes?",
1038 examples: const [ 1043 examples: const [
1039 """ 1044 """
1040 // 'Foo' is a type literal, not a string. 1045 // 'Foo' is a type literal, not a string.
1041 @MirrorsUsed(symbols: const [Foo]) 1046 @MirrorsUsed(symbols: const [Foo])
1042 import 'dart:mirrors'; 1047 import 'dart:mirrors';
1043 1048
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1404 1409
1405 class CompileTimeConstantError extends Diagnostic { 1410 class CompileTimeConstantError extends Diagnostic {
1406 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) 1411 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse)
1407 : super(kind, arguments, terse); 1412 : super(kind, arguments, terse);
1408 } 1413 }
1409 1414
1410 class CompilationError extends Diagnostic { 1415 class CompilationError extends Diagnostic {
1411 CompilationError(MessageKind kind, Map arguments, bool terse) 1416 CompilationError(MessageKind kind, Map arguments, bool terse)
1412 : super(kind, arguments, terse); 1417 : super(kind, arguments, terse);
1413 } 1418 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698