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

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

Issue 208423012: Add helpers library to dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1467 const MessageKind( 1467 const MessageKind(
1468 "Argument for 'JS_INTERCEPTOR_CONSTANT' must be a type constant."); 1468 "Argument for 'JS_INTERCEPTOR_CONSTANT' must be a type constant.");
1469 1469
1470 static const MessageKind EXPECTED_IDENTIFIER_NOT_RESERVED_WORD = 1470 static const MessageKind EXPECTED_IDENTIFIER_NOT_RESERVED_WORD =
1471 const MessageKind( 1471 const MessageKind(
1472 "'#{keyword}' is a reserved word and can't be used here.", 1472 "'#{keyword}' is a reserved word and can't be used here.",
1473 howToFix: "Try using a different name.", 1473 howToFix: "Try using a different name.",
1474 examples: const ["do() {} main() {}"]); 1474 examples: const ["do() {} main() {}"]);
1475 1475
1476 static const MessageKind UNUSED_METHOD = const MessageKind( 1476 static const MessageKind UNUSED_METHOD = const MessageKind(
1477 "The method '#{method_name}' is never called.", 1477 "The method '#{name}' is never called.",
1478 howToFix: "Consider deleting it.", 1478 howToFix: "Consider deleting it.",
1479 examples: const ["deadCode() {} main() {}"]); 1479 examples: const ["deadCode() {} main() {}"]);
1480 1480
1481 static const MessageKind UNUSED_CLASS = const MessageKind(
1482 "The class '#{name}' is never used.",
1483 howToFix: "Consider deleting it.",
1484 examples: const ["class DeadCode {} main() {}"]);
1485
1486 static const MessageKind UNUSED_TYPEDEF = const MessageKind(
1487 "The typedef '#{name}' is never used.",
1488 howToFix: "Consider deleting it.",
1489 examples: const ["typedef DeadCode(); main() {}"]);
1490
1481 static const MessageKind ABSTRACT_METHOD = const MessageKind( 1491 static const MessageKind ABSTRACT_METHOD = const MessageKind(
1482 "The method '#{name}' has no implementation in " 1492 "The method '#{name}' has no implementation in "
1483 "class '#{class}'.", 1493 "class '#{class}'.",
1484 howToFix: "Try adding a body to '#{name}' or declaring " 1494 howToFix: "Try adding a body to '#{name}' or declaring "
1485 "'#{class}' to be 'abstract'.", 1495 "'#{class}' to be 'abstract'.",
1486 examples: const [""" 1496 examples: const ["""
1487 class Class { 1497 class Class {
1488 method(); 1498 method();
1489 } 1499 }
1490 main() => new Class(); 1500 main() => new Class();
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 return computeMessage(); 1933 return computeMessage();
1924 } 1934 }
1925 1935
1926 bool operator==(other) { 1936 bool operator==(other) {
1927 if (other is !Message) return false; 1937 if (other is !Message) return false;
1928 return (kind == other.kind) && (toString() == other.toString()); 1938 return (kind == other.kind) && (toString() == other.toString());
1929 } 1939 }
1930 1940
1931 int get hashCode => throw new UnsupportedError('Message.hashCode'); 1941 int get hashCode => throw new UnsupportedError('Message.hashCode');
1932 } 1942 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698