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

Unified Diff: sdk/lib/_internal/compiler/implementation/warnings.dart

Issue 21544003: Handle missing imports/exports/parts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add example to warning. Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/warnings.dart
diff --git a/sdk/lib/_internal/compiler/implementation/warnings.dart b/sdk/lib/_internal/compiler/implementation/warnings.dart
index 803d5a94e8eab247ccd147ea669a5fc0d887d953..7edacfa713aa3903416944abe9d4c2f40b38376e 100644
--- a/sdk/lib/_internal/compiler/implementation/warnings.dart
+++ b/sdk/lib/_internal/compiler/implementation/warnings.dart
@@ -631,6 +631,16 @@ Error: "#{value}" is not a valid Symbol name because is not:
static const MessageKind PACKAGE_ROOT_NOT_SET = const MessageKind(
'Error: Cannot resolve "#{uri}". Package root has not been set.');
+ static const MessageKind INTERNAL_LIBRARY_FROM = const MessageKind(
ahe 2013/08/20 10:18:16 Could you add an example for this as well?
+ 'Error: Internal library "#{resolvedUri}" is not accessible from '
+ '"#{importingUri}".');
+
+ static const MessageKind INTERNAL_LIBRARY = const MessageKind(
+ 'Error: Internal library "#{resolvedUri}" is not accessible.');
ahe 2013/08/20 10:18:16 Ditto.
+
+ static const MessageKind LIBRARY_NOT_FOUND = const MessageKind(
+ 'Error: Library not found "#{resolvedUri}".');
ahe 2013/08/20 10:18:16 Ditto.
+
static const MessageKind UNSUPPORTED_EQ_EQ_EQ = const MessageKind(
'Error: "===" is not an operator. '
'Did you mean "#{lhs} == #{rhs}" or "identical(#{lhs}, #{rhs})"?');
@@ -742,6 +752,16 @@ import 'dart:mirrors';
main() {}
"""]);
+ static const MessageKind READ_SCRIPT_ERROR = const MessageKind(
+ "Error: Can't read '#{uri}' (#{exception}).",
ahe 2013/08/20 10:18:16 howToFix?
+ examples: const [
+ """
+// 'foo.dart' does not exist.
+import 'foo.dart';
+
+main() {}
+"""]);
+
static const MessageKind COMPILER_CRASHED = const MessageKind(
'Error: The compiler crashed when compiling this element.');
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/source_file_provider.dart ('k') | tests/compiler/dart2js/import_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698