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

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

Issue 48323003: Implement fromEnvironment on bool, int, String in dart2js. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 967
968 static const MessageKind VOID_NOT_ALLOWED = const MessageKind( 968 static const MessageKind VOID_NOT_ALLOWED = const MessageKind(
969 "Error: Type 'void' can't be used here because it isn't a return type.", 969 "Error: Type 'void' can't be used here because it isn't a return type.",
970 howToFix: "Try removing 'void' keyword or replace it with 'var', 'final'," 970 howToFix: "Try removing 'void' keyword or replace it with 'var', 'final',"
971 " or a type.", 971 " or a type.",
972 examples: const [ 972 examples: const [
973 "void x; main() {}", 973 "void x; main() {}",
974 "foo(void x) {} main() { foo(null); }", 974 "foo(void x) {} main() { foo(null); }",
975 ]); 975 ]);
976 976
977 static const MessageKind NULL_NOT_ALLOWED = const MessageKind(
978 "Error: `null` can't be used here.");
979
977 static const MessageKind BEFORE_TOP_LEVEL = const MessageKind( 980 static const MessageKind BEFORE_TOP_LEVEL = const MessageKind(
978 "Error: Part header must come before top-level definitions."); 981 "Error: Part header must come before top-level definitions.");
979 982
980 static const MessageKind LIBRARY_NAME_MISMATCH = const MessageKind( 983 static const MessageKind LIBRARY_NAME_MISMATCH = const MessageKind(
981 "Warning: Expected part of library name '#{libraryName}'."); 984 "Warning: Expected part of library name '#{libraryName}'.");
982 985
983 static const MessageKind MISSING_PART_OF_TAG = const MessageKind( 986 static const MessageKind MISSING_PART_OF_TAG = const MessageKind(
984 "Error: This file has no part-of tag, but it is being used as a part."); 987 "Error: This file has no part-of tag, but it is being used as a part.");
985 988
986 static const MessageKind DUPLICATED_PART_OF = const MessageKind( 989 static const MessageKind DUPLICATED_PART_OF = const MessageKind(
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
1555 1558
1556 class CompileTimeConstantError extends Diagnostic { 1559 class CompileTimeConstantError extends Diagnostic {
1557 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) 1560 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse)
1558 : super(kind, arguments, terse); 1561 : super(kind, arguments, terse);
1559 } 1562 }
1560 1563
1561 class CompilationError extends Diagnostic { 1564 class CompilationError extends Diagnostic {
1562 CompilationError(MessageKind kind, Map arguments, bool terse) 1565 CompilationError(MessageKind kind, Map arguments, bool terse)
1563 : super(kind, arguments, terse); 1566 : super(kind, arguments, terse);
1564 } 1567 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698