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

Unified Diff: pkg/front_end/messages.yaml

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/messages.yaml
diff --git a/pkg/front_end/messages.yaml b/pkg/front_end/messages.yaml
index d1c4ac3ba1fac907536c6cce2490aebb735baecf..e9348b080286b7217563fb462db1151e04540c90 100644
--- a/pkg/front_end/messages.yaml
+++ b/pkg/front_end/messages.yaml
@@ -580,6 +580,12 @@ NamedFunctionExpression:
template: "A function expression can't have a name."
dart2jsCode: "*ignored*"
+NativeClauseShouldBeAnnotation:
+ template: "Native clause in this form is deprecated."
+ tip: "Try removing this native clause and adding @native() or @native('some-text-here') before the declaration."
ahe 2017/08/21 12:04:11 'some-text-here' -> 'native name'.
danrubel 2017/08/22 01:35:28 Fixed.
+ analyzerCode: NATIVE_CLAUSE_SHOULD_BE_ANNOTATION
+ dart2jsCode: "*fatal*"
+
ReturnTypeFunctionExpression:
template: "A function expression can't have a return type."
dart2jsCode: "*ignored*"

Powered by Google App Engine
This is Rietveld 408576698