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

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

Issue 2750863002: Complain about built-in identifiers. (Closed)
Patch Set: Address comments. 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
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 AsciiControlCharacter, 9 AsciiControlCharacter,
10 BuiltInIdentifierAsType,
11 BuiltInIdentifierInDeclaration,
10 EmptyNamedParameterList, 12 EmptyNamedParameterList,
11 EmptyOptionalParameterList, 13 EmptyOptionalParameterList,
12 Encoding, 14 Encoding,
13 ExpectedBlockToSkip, 15 ExpectedBlockToSkip,
14 ExpectedBody, 16 ExpectedBody,
15 ExpectedButGot, 17 ExpectedButGot,
16 ExpectedClassBody, 18 ExpectedClassBody,
17 19
18 /// This error code can be used to support non-compliant (with respect to 20 /// This error code can be used to support non-compliant (with respect to
19 /// Dart Language Specification) Dart VM native clauses. See 21 /// Dart Language Specification) Dart VM native clauses. See
(...skipping 21 matching lines...) Expand all
41 StackOverflow, 43 StackOverflow,
42 UnexpectedDollarInString, 44 UnexpectedDollarInString,
43 UnexpectedToken, 45 UnexpectedToken,
44 UnmatchedToken, 46 UnmatchedToken,
45 UnsupportedPrefixPlus, 47 UnsupportedPrefixPlus,
46 UnterminatedComment, 48 UnterminatedComment,
47 UnterminatedString, 49 UnterminatedString,
48 UnterminatedToken, 50 UnterminatedToken,
49 Unspecified, 51 Unspecified,
50 } 52 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/parser/element_listener.dart ('k') | pkg/front_end/lib/src/fasta/parser/identifier_context.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698