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

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

Issue 2486923007: Create pkg/front_end/src/base and begin populating with general use classes. (Closed)
Patch Set: Fix formatting Created 4 years, 1 month 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/front_end/lib/src/scanner/syntactic_entity.dart ('k') | no next file » | 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
10 import 'dart:collection'; 9 import 'dart:collection';
11 10
11 import 'package:front_end/src/base/syntactic_entity.dart';
12 import 'package:front_end/src/scanner/string_utilities.dart'; 12 import 'package:front_end/src/scanner/string_utilities.dart';
13 import 'package:front_end/src/scanner/syntactic_entity.dart';
14 13
15 /** 14 /**
16 * The opening half of a grouping pair of tokens. This is used for curly 15 * The opening half of a grouping pair of tokens. This is used for curly
17 * brackets ('{'), parentheses ('('), and square brackets ('['). 16 * brackets ('{'), parentheses ('('), and square brackets ('[').
18 */ 17 */
19 class BeginToken extends SimpleToken { 18 class BeginToken extends SimpleToken {
20 /** 19 /**
21 * The token that corresponds to this token. 20 * The token that corresponds to this token.
22 */ 21 */
23 Token endToken; 22 Token endToken;
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 */ 1284 */
1286 class _EndOfFileTokenType extends TokenType { 1285 class _EndOfFileTokenType extends TokenType {
1287 /** 1286 /**
1288 * Initialize a newly created token. 1287 * Initialize a newly created token.
1289 */ 1288 */
1290 const _EndOfFileTokenType() : super._('EOF', TokenClass.NO_CLASS, ''); 1289 const _EndOfFileTokenType() : super._('EOF', TokenClass.NO_CLASS, '');
1291 1290
1292 @override 1291 @override
1293 String toString() => '-eof-'; 1292 String toString() => '-eof-';
1294 } 1293 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/scanner/syntactic_entity.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698