Index: pkg/front_end/lib/src/fasta/fasta_codes_generated.dart |
diff --git a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart |
index 0bb65f1539c424d0678345ce502ba9b6a421c8f3..cd5d26b6e8e3585c6af2667f9dbd4f3720ef33fe 100644 |
--- a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart |
+++ b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart |
@@ -181,6 +181,37 @@ Message _withArgumentsBuiltInIdentifierInDeclaration(Token token) { |
arguments: {'token': token}); |
} |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+const Template<Message Function(String string)> templateCannotReadPackagesFile = |
+ const Template<Message Function(String string)>( |
+ messageTemplate: r"""Unable to read '.packages' file: |
+ #string.""", withArguments: _withArgumentsCannotReadPackagesFile); |
+ |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+const Code<Message Function(String string)> codeCannotReadPackagesFile = |
+ const Code<Message Function(String string)>( |
+ "CannotReadPackagesFile", |
+ templateCannotReadPackagesFile, |
+); |
+ |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+Message _withArgumentsCannotReadPackagesFile(String string) { |
+ return new Message(codeCannotReadPackagesFile, |
+ message: """Unable to read '.packages' file: |
+ $string.""", arguments: {'string': string}); |
+} |
+ |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+const Code<Null> codeCantInferPackagesFromManyInputs = |
+ messageCantInferPackagesFromManyInputs; |
+ |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+const MessageCode messageCantInferPackagesFromManyInputs = const MessageCode( |
+ "CantInferPackagesFromManyInputs", |
+ message: |
+ r"""Cannot infer a .packages file when compiling multiple inputs.""", |
+ tip: r"""Try specifying the file explicitly with the --packages option."""); |
+ |
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
const Code<Null> codeCatchSyntax = messageCatchSyntax; |
@@ -1283,6 +1314,26 @@ Message _withArgumentsImportHidesImport(String name, Uri uri_, Uri uri2_) { |
arguments: {'name': name, 'uri': uri_, 'uri2': uri2_}); |
} |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+const Template<Message Function(String string)> templateInputFileNotFound = |
+ const Template<Message Function(String string)>( |
+ messageTemplate: r"""Input file not found: #string.""", |
+ withArguments: _withArgumentsInputFileNotFound); |
+ |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+const Code<Message Function(String string)> codeInputFileNotFound = |
+ const Code<Message Function(String string)>( |
+ "InputFileNotFound", |
+ templateInputFileNotFound, |
+); |
+ |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+Message _withArgumentsInputFileNotFound(String string) { |
+ return new Message(codeInputFileNotFound, |
+ message: """Input file not found: $string.""", |
+ arguments: {'string': string}); |
+} |
+ |
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
const Code<Null> codeInternalProblemAlreadyInitialized = |
messageInternalProblemAlreadyInitialized; |
@@ -1579,6 +1630,28 @@ const MessageCode messageInvalidInlineFunctionType = const MessageCode( |
tip: |
r"""Try changing the inline function type (as in 'int f()') to a prefixed function type using the `Function` keyword (as in 'int Function() f')."""); |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+const Template<Message Function(Uri uri_, String string)> |
+ templateInvalidPackageUri = |
+ const Template<Message Function(Uri uri_, String string)>( |
+ messageTemplate: r"""Invalid package Uri '#uri': |
+ #string.""", withArguments: _withArgumentsInvalidPackageUri); |
+ |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+const Code<Message Function(Uri uri_, String string)> codeInvalidPackageUri = |
+ const Code<Message Function(Uri uri_, String string)>( |
+ "InvalidPackageUri", |
+ templateInvalidPackageUri, |
+); |
+ |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+Message _withArgumentsInvalidPackageUri(Uri uri_, String string) { |
+ String uri = relativizeUri(uri_); |
+ return new Message(codeInvalidPackageUri, |
+ message: """Invalid package Uri '$uri': |
+ $string.""", arguments: {'uri': uri_, 'string': string}); |
+} |
+ |
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
const Code<Null> codeInvalidSyncModifier = messageInvalidSyncModifier; |
@@ -1707,24 +1780,11 @@ const MessageCode messageMissingExponent = const MessageCode("MissingExponent", |
r"""Make sure there is an exponent, and remove any whitespace before it."""); |
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
-const Template<Message Function(String string)> templateMissingInputFile = |
- const Template<Message Function(String string)>( |
- messageTemplate: r"""Input file not found: #string.""", |
- withArguments: _withArgumentsMissingInputFile); |
- |
-// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
-const Code<Message Function(String string)> codeMissingInputFile = |
- const Code<Message Function(String string)>( |
- "MissingInputFile", |
- templateMissingInputFile, |
-); |
+const Code<Null> codeMissingInput = messageMissingInput; |
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
-Message _withArgumentsMissingInputFile(String string) { |
- return new Message(codeMissingInputFile, |
- message: """Input file not found: $string.""", |
- arguments: {'string': string}); |
-} |
+const MessageCode messageMissingInput = const MessageCode("MissingInput", |
+ message: r"""No input file provided to the compiler."""); |
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
const Code<Null> codeMissingMain = messageMissingMain; |
@@ -1759,46 +1819,6 @@ Message _withArgumentsMissingPartOf(Uri uri_) { |
arguments: {'uri': uri_}); |
} |
-// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
-const Template<Message Function(String string)> templateMissingSdkRoot = |
- const Template<Message Function(String string)>( |
- messageTemplate: r"""SDK root directory not found: #string.""", |
- withArguments: _withArgumentsMissingSdkRoot); |
- |
-// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
-const Code<Message Function(String string)> codeMissingSdkRoot = |
- const Code<Message Function(String string)>( |
- "MissingSdkRoot", |
- templateMissingSdkRoot, |
-); |
- |
-// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
-Message _withArgumentsMissingSdkRoot(String string) { |
- return new Message(codeMissingSdkRoot, |
- message: """SDK root directory not found: $string.""", |
- arguments: {'string': string}); |
-} |
- |
-// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
-const Template<Message Function(String string)> templateMissingSdkSummary = |
- const Template<Message Function(String string)>( |
- messageTemplate: r"""SDK summary not found: #string.""", |
- withArguments: _withArgumentsMissingSdkSummary); |
- |
-// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
-const Code<Message Function(String string)> codeMissingSdkSummary = |
- const Code<Message Function(String string)>( |
- "MissingSdkSummary", |
- templateMissingSdkSummary, |
-); |
- |
-// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
-Message _withArgumentsMissingSdkSummary(String string) { |
- return new Message(codeMissingSdkSummary, |
- message: """SDK summary not found: $string.""", |
- arguments: {'string': string}); |
-} |
- |
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
const Code<Null> codeNamedFunctionExpression = messageNamedFunctionExpression; |
@@ -2111,6 +2131,29 @@ Message _withArgumentsOverrideTypeVariablesMismatch(String name, String name2) { |
arguments: {'name': name, 'name2': name2}); |
} |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+const Template< |
+ Message Function(String name, Uri uri_)> templatePackageNotFound = |
+ const Template<Message Function(String name, Uri uri_)>( |
+ messageTemplate: |
+ r"""Could not resolve the package '#name' in '#uri'.""", |
+ withArguments: _withArgumentsPackageNotFound); |
+ |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+const Code<Message Function(String name, Uri uri_)> codePackageNotFound = |
+ const Code<Message Function(String name, Uri uri_)>( |
+ "PackageNotFound", |
+ templatePackageNotFound, |
+); |
+ |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+Message _withArgumentsPackageNotFound(String name, Uri uri_) { |
+ String uri = relativizeUri(uri_); |
+ return new Message(codePackageNotFound, |
+ message: """Could not resolve the package '$name' in '$uri'.""", |
+ arguments: {'name': name, 'uri': uri_}); |
+} |
+ |
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
const Template< |
Message Function( |
@@ -2325,6 +2368,46 @@ const MessageCode messageReturnTypeFunctionExpression = const MessageCode( |
dart2jsCode: "*ignored*", |
message: r"""A function expression can't have a return type."""); |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+const Template<Message Function(String string)> templateSdkRootNotFound = |
+ const Template<Message Function(String string)>( |
+ messageTemplate: r"""SDK root directory not found: #string.""", |
+ withArguments: _withArgumentsSdkRootNotFound); |
+ |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+const Code<Message Function(String string)> codeSdkRootNotFound = |
+ const Code<Message Function(String string)>( |
+ "SdkRootNotFound", |
+ templateSdkRootNotFound, |
+); |
+ |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+Message _withArgumentsSdkRootNotFound(String string) { |
+ return new Message(codeSdkRootNotFound, |
+ message: """SDK root directory not found: $string.""", |
+ arguments: {'string': string}); |
+} |
+ |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+const Template<Message Function(String string)> templateSdkSummaryNotFound = |
+ const Template<Message Function(String string)>( |
+ messageTemplate: r"""SDK summary not found: #string.""", |
+ withArguments: _withArgumentsSdkSummaryNotFound); |
+ |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+const Code<Message Function(String string)> codeSdkSummaryNotFound = |
+ const Code<Message Function(String string)>( |
+ "SdkSummaryNotFound", |
+ templateSdkSummaryNotFound, |
+); |
+ |
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
+Message _withArgumentsSdkSummaryNotFound(String string) { |
+ return new Message(codeSdkSummaryNotFound, |
+ message: """SDK summary not found: $string.""", |
+ arguments: {'string': string}); |
+} |
+ |
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
const Template<Message Function(String name)> templateSetterNotFound = |
const Template<Message Function(String name)>( |