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

Unified Diff: pkg/front_end/lib/src/fasta/fasta_codes_generated.dart

Issue 2996163002: support class native clause (Closed)
Patch Set: add new fasta native clause error code Created 3 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: 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 7227a48f0edb78c8729d6c090f6a0facaf8c58bb..4e5648571408615e13efa8f9811505c1e924298d 100644
--- a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
+++ b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
@@ -1912,6 +1912,19 @@ const MessageCode messageNamedFunctionExpression = const MessageCode(
dart2jsCode: "*ignored*",
message: r"""A function expression can't have a name.""");
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Code<Null> codeNativeClauseShouldBeAnnotation =
+ messageNativeClauseShouldBeAnnotation;
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const MessageCode messageNativeClauseShouldBeAnnotation = const MessageCode(
+ "NativeClauseShouldBeAnnotation",
+ analyzerCode: "NATIVE_CLAUSE_SHOULD_BE_ANNOTATION",
+ dart2jsCode: "*fatal*",
+ message: r"""Native clause in this form is deprecated.""",
+ tip:
+ r"""Try removing this native clause and adding @native() or @native('some-text-here') before the declaration.""");
+
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<
Message Function(Token token)> templateNoFormals = const Template<

Powered by Google App Engine
This is Rietveld 408576698