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

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

Issue 2699073003: Support `void` as generic argument.
Patch Set: Shuffle things around to have a better `voidRti` locality. Created 3 years, 7 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 /** 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 static const Keyword THROW = const Keyword("throw"); 278 static const Keyword THROW = const Keyword("throw");
279 279
280 static const Keyword TRUE = const Keyword("true"); 280 static const Keyword TRUE = const Keyword("true");
281 281
282 static const Keyword TRY = const Keyword("try"); 282 static const Keyword TRY = const Keyword("try");
283 283
284 static const Keyword TYPEDEF = const Keyword("typedef", isBuiltIn: true); 284 static const Keyword TYPEDEF = const Keyword("typedef", isBuiltIn: true);
285 285
286 static const Keyword VAR = const Keyword("var"); 286 static const Keyword VAR = const Keyword("var");
287 287
288 static const Keyword VOID = const Keyword("void"); 288 static const Keyword VOID = const Keyword("void", isBuiltIn: true);
289 289
290 static const Keyword WHILE = const Keyword("while"); 290 static const Keyword WHILE = const Keyword("while");
291 291
292 static const Keyword WITH = const Keyword("with"); 292 static const Keyword WITH = const Keyword("with");
293 293
294 static const Keyword YIELD = const Keyword("yield", isPseudo: true); 294 static const Keyword YIELD = const Keyword("yield", isPseudo: true);
295 295
296 static const List<Keyword> values = const <Keyword>[ 296 static const List<Keyword> values = const <Keyword>[
297 ABSTRACT, 297 ABSTRACT,
298 AS, 298 AS,
(...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1555 1555
1556 void set precedingComments(CommentToken comment) { 1556 void set precedingComments(CommentToken comment) {
1557 _precedingComment = comment; 1557 _precedingComment = comment;
1558 _setCommentParent(_precedingComment); 1558 _setCommentParent(_precedingComment);
1559 } 1559 }
1560 1560
1561 @override 1561 @override
1562 Token copy() => 1562 Token copy() =>
1563 new TokenWithComment(type, offset, copyComments(precedingComments)); 1563 new TokenWithComment(type, offset, copyComments(precedingComments));
1564 } 1564 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/parser.dart ('k') | sdk/lib/_internal/js_runtime/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698