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

Unified Diff: pkg/compiler/lib/src/diagnostics/messages.dart

Issue 2710973002: Revert "Add support for the new function-type syntax." (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « .packages ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/diagnostics/messages.dart
diff --git a/pkg/compiler/lib/src/diagnostics/messages.dart b/pkg/compiler/lib/src/diagnostics/messages.dart
index 751ffe73f3af36d6ee4fcae4281157b17cee748e..d9785c64cca93be434ed7b0bd0a89e4293362269 100644
--- a/pkg/compiler/lib/src/diagnostics/messages.dart
+++ b/pkg/compiler/lib/src/diagnostics/messages.dart
@@ -275,7 +275,6 @@ enum MessageKind {
INVALID_RECEIVER_IN_INITIALIZER,
INVALID_SOURCE_FILE_LOCATION,
INVALID_SYMBOL,
- INVALID_INLINE_FUNCTION_TYPE,
INVALID_SYNC_MODIFIER,
INVALID_TYPE_VARIABLE_BOUND,
INVALID_UNNAMED_CONSTRUCTOR_NAME,
@@ -3320,16 +3319,6 @@ Please include the following information:
" require a preamble file located in:\n"
" <sdk>/lib/_internal/js_runtime/lib/preambles."),
- MessageKind.INVALID_INLINE_FUNCTION_TYPE: const MessageTemplate(
- MessageKind.INVALID_INLINE_FUNCTION_TYPE,
- "Invalid inline function type.",
- howToFix: "Try changing the inline function type (as in 'int f()') to"
- " a prefixed function type using the `Function` keyword (as in "
- "'int Function() f').",
- examples:
- const ["typedef F = Function(int f(String x)); main() { F f; }"],
- ),
-
MessageKind.INVALID_SYNC_MODIFIER: const MessageTemplate(
MessageKind.INVALID_SYNC_MODIFIER, "Invalid modifier 'sync'.",
howToFix: "Try replacing 'sync' with 'sync*'.",
« no previous file with comments | « .packages ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698