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

Side by Side Diff: dart/pkg/compiler/lib/src/warnings.dart

Issue 841653004: Recover from read errors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r42871 Created 5 years, 11 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 = "Computer says no!"; 7 const DONT_KNOW_HOW_TO_FIX = "Computer says no!";
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 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1508 // Don't know how to fix since the underlying error is unknown. 1508 // Don't know how to fix since the underlying error is unknown.
1509 howToFix: DONT_KNOW_HOW_TO_FIX, 1509 howToFix: DONT_KNOW_HOW_TO_FIX,
1510 examples: const [ 1510 examples: const [
1511 """ 1511 """
1512 // 'foo.dart' does not exist. 1512 // 'foo.dart' does not exist.
1513 import 'foo.dart'; 1513 import 'foo.dart';
1514 1514
1515 main() {} 1515 main() {}
1516 """]); 1516 """]);
1517 1517
1518 static const MessageKind READ_SELF_ERROR = const MessageKind(
1519 "#{exception}",
1520 // Don't know how to fix since the underlying error is unknown.
1521 howToFix: DONT_KNOW_HOW_TO_FIX);
1522
1518 static const MessageKind EXTRANEOUS_MODIFIER = const MessageKind( 1523 static const MessageKind EXTRANEOUS_MODIFIER = const MessageKind(
1519 "Can't have modifier '#{modifier}' here.", 1524 "Can't have modifier '#{modifier}' here.",
1520 howToFix: "Try removing '#{modifier}'.", 1525 howToFix: "Try removing '#{modifier}'.",
1521 examples: const [ 1526 examples: const [
1522 "var String foo; main(){}", 1527 "var String foo; main(){}",
1523 // "var get foo; main(){}", 1528 // "var get foo; main(){}",
1524 "var set foo; main(){}", 1529 "var set foo; main(){}",
1525 "var final foo; main(){}", 1530 "var final foo; main(){}",
1526 "var var foo; main(){}", 1531 "var var foo; main(){}",
1527 "var const foo; main(){}", 1532 "var const foo; main(){}",
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
2450 static String convertToString(value) { 2455 static String convertToString(value) {
2451 if (value is ErrorToken) { 2456 if (value is ErrorToken) {
2452 // Shouldn't happen. 2457 // Shouldn't happen.
2453 return value.assertionMessage; 2458 return value.assertionMessage;
2454 } else if (value is Token) { 2459 } else if (value is Token) {
2455 value = value.value; 2460 value = value.value;
2456 } 2461 }
2457 return '$value'; 2462 return '$value';
2458 } 2463 }
2459 } 2464 }
OLDNEW
« no previous file with comments | « dart/pkg/compiler/lib/src/source_file_provider.dart ('k') | dart/tests/compiler/dart2js/import_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698