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

Unified Diff: pkg/front_end/lib/src/fasta/parser/error_kind.dart

Issue 2676813002: Add helper methods for skipping Dart VM native bodies. (Closed)
Patch Set: Update documentation. 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
Index: pkg/front_end/lib/src/fasta/parser/error_kind.dart
diff --git a/pkg/front_end/lib/src/fasta/parser/error_kind.dart b/pkg/front_end/lib/src/fasta/parser/error_kind.dart
index d832df12d45fc3288673aa278a41746ef65be31b..6ee9eb87650dfe1ec72943ffa9c45a5ab94009a3 100644
--- a/pkg/front_end/lib/src/fasta/parser/error_kind.dart
+++ b/pkg/front_end/lib/src/fasta/parser/error_kind.dart
@@ -4,6 +4,7 @@
library fasta.parser.error_kind;
+/// Kinds of error codes.
enum ErrorKind {
AsciiControlCharacter,
EmptyNamedParameterList,
@@ -13,7 +14,12 @@ enum ErrorKind {
ExpectedBody,
ExpectedButGot,
ExpectedClassBody,
+
+ /// This error code can be used to support non-compliant (with respect to
+ /// Dart Language Specification) Dart VM native clauses. See
+ /// [dart_vm_native.dart].
ExpectedClassBodyToSkip,
+
ExpectedDeclaration,
ExpectedExpression,
ExpectedFunctionBody,
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/dart_vm_native.dart ('k') | pkg/front_end/lib/src/fasta/parser/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698