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

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

Issue 2765253002: Report error on only-try block. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/parser/parser.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /// Kinds of error codes.
8 enum ErrorKind { 8 enum ErrorKind {
9 AbstractNotSync, 9 AbstractNotSync,
10 AsciiControlCharacter, 10 AsciiControlCharacter,
11 AsyncAsIdentifier, 11 AsyncAsIdentifier,
12 AwaitAsIdentifier, 12 AwaitAsIdentifier,
13 AwaitForNotAsync,
13 AwaitNotAsync, 14 AwaitNotAsync,
14 BuiltInIdentifierAsType, 15 BuiltInIdentifierAsType,
15 BuiltInIdentifierInDeclaration, 16 BuiltInIdentifierInDeclaration,
16 EmptyNamedParameterList, 17 EmptyNamedParameterList,
17 EmptyOptionalParameterList, 18 EmptyOptionalParameterList,
18 Encoding, 19 Encoding,
19 ExpectedBlockToSkip, 20 ExpectedBlockToSkip,
20 ExpectedBody, 21 ExpectedBody,
21 ExpectedButGot, 22 ExpectedButGot,
22 ExpectedClassBody, 23 ExpectedClassBody,
23 24
24 /// This error code can be used to support non-compliant (with respect to 25 /// This error code can be used to support non-compliant (with respect to
25 /// Dart Language Specification) Dart VM native clauses. See 26 /// Dart Language Specification) Dart VM native clauses. See
26 /// [dart_vm_native.dart]. 27 /// [dart_vm_native.dart].
27 ExpectedClassBodyToSkip, 28 ExpectedClassBodyToSkip,
28 AwaitForNotAsync,
29 ExpectedDeclaration, 29 ExpectedDeclaration,
30 ExpectedExpression, 30 ExpectedExpression,
31 ExpectedFunctionBody, 31 ExpectedFunctionBody,
32 ExpectedHexDigit, 32 ExpectedHexDigit,
33 ExpectedIdentifier, 33 ExpectedIdentifier,
34 ExpectedOpenParens, 34 ExpectedOpenParens,
35 ExpectedString, 35 ExpectedString,
36 ExpectedType, 36 ExpectedType,
37 ExtraneousModifier, 37 ExtraneousModifier,
38 ExtraneousModifierReplace, 38 ExtraneousModifierReplace,
39 FactoryNotSync, 39 FactoryNotSync,
40 GeneratorReturnsValue, 40 GeneratorReturnsValue,
41 InvalidAwaitFor, 41 InvalidAwaitFor,
42 InvalidInlineFunctionType, 42 InvalidInlineFunctionType,
43 InvalidSyncModifier, 43 InvalidSyncModifier,
44 InvalidVoid, 44 InvalidVoid,
45 MissingExponent, 45 MissingExponent,
46 NonAsciiIdentifier, 46 NonAsciiIdentifier,
47 NonAsciiWhitespace, 47 NonAsciiWhitespace,
48 OnlyTry,
48 PositionalParameterWithEquals, 49 PositionalParameterWithEquals,
49 RequiredParameterWithDefault, 50 RequiredParameterWithDefault,
50 SetterNotSync, 51 SetterNotSync,
51 StackOverflow, 52 StackOverflow,
52 UnexpectedDollarInString, 53 UnexpectedDollarInString,
53 UnexpectedToken, 54 UnexpectedToken,
54 UnmatchedToken, 55 UnmatchedToken,
55 UnsupportedPrefixPlus, 56 UnsupportedPrefixPlus,
56 UnterminatedComment, 57 UnterminatedComment,
57 UnterminatedString, 58 UnterminatedString,
58 UnterminatedToken, 59 UnterminatedToken,
59 YieldAsIdentifier, 60 YieldAsIdentifier,
60 YieldNotGenerator, 61 YieldNotGenerator,
61 Unspecified, 62 Unspecified,
62 } 63 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/parser/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698