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

Side by Side Diff: pkg/front_end/lib/src/scanner/token.dart

Issue 2639883005: Add parser support for covariant parameters (Closed)
Patch Set: Created 3 years, 11 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 | « pkg/analyzer/test/generated/parser_test.dart ('k') | tests/language/language_analyzer2.status » ('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 /** 5 /**
6 * Defines the tokens that are produced by the scanner, used by the parser, and 6 * Defines the tokens that are produced by the scanner, used by the parser, and
7 * referenced from the [AST structure](ast.dart). 7 * referenced from the [AST structure](ast.dart).
8 */ 8 */
9 import 'dart:collection'; 9 import 'dart:collection';
10 10
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 static const Keyword CASE = const Keyword._('CASE', "case"); 159 static const Keyword CASE = const Keyword._('CASE', "case");
160 160
161 static const Keyword CATCH = const Keyword._('CATCH', "catch"); 161 static const Keyword CATCH = const Keyword._('CATCH', "catch");
162 162
163 static const Keyword CLASS = const Keyword._('CLASS', "class"); 163 static const Keyword CLASS = const Keyword._('CLASS', "class");
164 164
165 static const Keyword CONST = const Keyword._('CONST', "const"); 165 static const Keyword CONST = const Keyword._('CONST', "const");
166 166
167 static const Keyword CONTINUE = const Keyword._('CONTINUE', "continue"); 167 static const Keyword CONTINUE = const Keyword._('CONTINUE', "continue");
168 168
169 static const Keyword COVARIANT =
170 const Keyword._('COVARIANT', "covariant", true);
171
169 static const Keyword DEFAULT = const Keyword._('DEFAULT', "default"); 172 static const Keyword DEFAULT = const Keyword._('DEFAULT', "default");
170 173
171 static const Keyword DEFERRED = const Keyword._('DEFERRED', "deferred", true); 174 static const Keyword DEFERRED = const Keyword._('DEFERRED', "deferred", true);
172 175
173 static const Keyword DO = const Keyword._('DO', "do"); 176 static const Keyword DO = const Keyword._('DO', "do");
174 177
175 static const Keyword DYNAMIC = const Keyword._('DYNAMIC', "dynamic", true); 178 static const Keyword DYNAMIC = const Keyword._('DYNAMIC', "dynamic", true);
176 179
177 static const Keyword ELSE = const Keyword._('ELSE', "else"); 180 static const Keyword ELSE = const Keyword._('ELSE', "else");
178 181
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 static const List<Keyword> values = const <Keyword>[ 253 static const List<Keyword> values = const <Keyword>[
251 ABSTRACT, 254 ABSTRACT,
252 AS, 255 AS,
253 ASSERT, 256 ASSERT,
254 BREAK, 257 BREAK,
255 CASE, 258 CASE,
256 CATCH, 259 CATCH,
257 CLASS, 260 CLASS,
258 CONST, 261 CONST,
259 CONTINUE, 262 CONTINUE,
263 COVARIANT,
260 DEFAULT, 264 DEFAULT,
261 DEFERRED, 265 DEFERRED,
262 DO, 266 DO,
263 DYNAMIC, 267 DYNAMIC,
264 ELSE, 268 ELSE,
265 ENUM, 269 ENUM,
266 EXPORT, 270 EXPORT,
267 EXTENDS, 271 EXTENDS,
268 EXTERNAL, 272 EXTERNAL,
269 FACTORY, 273 FACTORY,
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 */ 1288 */
1285 class _EndOfFileTokenType extends TokenType { 1289 class _EndOfFileTokenType extends TokenType {
1286 /** 1290 /**
1287 * Initialize a newly created token. 1291 * Initialize a newly created token.
1288 */ 1292 */
1289 const _EndOfFileTokenType() : super._('EOF', TokenClass.NO_CLASS, ''); 1293 const _EndOfFileTokenType() : super._('EOF', TokenClass.NO_CLASS, '');
1290 1294
1291 @override 1295 @override
1292 String toString() => '-eof-'; 1296 String toString() => '-eof-';
1293 } 1297 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/parser_test.dart ('k') | tests/language/language_analyzer2.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698