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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library fasta.parser.error_kind; 5 library fasta.parser.error_kind;
6 6
7 /// Kinds of error codes.
7 enum ErrorKind { 8 enum ErrorKind {
8 AsciiControlCharacter, 9 AsciiControlCharacter,
9 EmptyNamedParameterList, 10 EmptyNamedParameterList,
10 EmptyOptionalParameterList, 11 EmptyOptionalParameterList,
11 Encoding, 12 Encoding,
12 ExpectedBlockToSkip, 13 ExpectedBlockToSkip,
13 ExpectedBody, 14 ExpectedBody,
14 ExpectedButGot, 15 ExpectedButGot,
15 ExpectedClassBody, 16 ExpectedClassBody,
17
18 /// This error code can be used to support non-compliant (with respect to
19 /// Dart Language Specification) Dart VM native clauses. See
20 /// [dart_vm_native.dart].
16 ExpectedClassBodyToSkip, 21 ExpectedClassBodyToSkip,
22
17 ExpectedDeclaration, 23 ExpectedDeclaration,
18 ExpectedExpression, 24 ExpectedExpression,
19 ExpectedFunctionBody, 25 ExpectedFunctionBody,
20 ExpectedHexDigit, 26 ExpectedHexDigit,
21 ExpectedIdentifier, 27 ExpectedIdentifier,
22 ExpectedOpenParens, 28 ExpectedOpenParens,
23 ExpectedString, 29 ExpectedString,
24 ExpectedType, 30 ExpectedType,
25 ExtraneousModifier, 31 ExtraneousModifier,
26 ExtraneousModifierReplace, 32 ExtraneousModifierReplace,
27 InvalidAwaitFor, 33 InvalidAwaitFor,
28 InvalidSyncModifier, 34 InvalidSyncModifier,
29 InvalidVoid, 35 InvalidVoid,
30 MissingExponent, 36 MissingExponent,
31 NonAsciiIdentifier, 37 NonAsciiIdentifier,
32 NonAsciiWhitespace, 38 NonAsciiWhitespace,
33 PositionalParameterWithEquals, 39 PositionalParameterWithEquals,
34 RequiredParameterWithDefault, 40 RequiredParameterWithDefault,
35 StackOverflow, 41 StackOverflow,
36 UnexpectedDollarInString, 42 UnexpectedDollarInString,
37 UnexpectedToken, 43 UnexpectedToken,
38 UnmatchedToken, 44 UnmatchedToken,
39 UnsupportedPrefixPlus, 45 UnsupportedPrefixPlus,
40 UnterminatedComment, 46 UnterminatedComment,
41 UnterminatedString, 47 UnterminatedString,
42 UnterminatedToken, 48 UnterminatedToken,
43 49
44 Unspecified, 50 Unspecified,
45 } 51 }
OLDNEW
« 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