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

Side by Side Diff: pkg/analyzer/lib/src/dart/ast/token.dart

Issue 2794653002: fasta tokens implement analyzer token API (Closed)
Patch Set: merge Created 3 years, 8 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/analyzer/lib/src/dart/scanner/scanner.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 analyzer.src.dart.ast.token; 5 library analyzer.src.dart.ast.token;
6 6
7 import 'package:front_end/src/scanner/token.dart';
8
9 export 'package:front_end/src/scanner/token.dart' 7 export 'package:front_end/src/scanner/token.dart'
10 show 8 show
11 BeginToken, 9 BeginToken,
12 BeginTokenWithComment, 10 BeginTokenWithComment,
13 CommentToken, 11 CommentToken,
14 DocumentationCommentToken, 12 DocumentationCommentToken,
15 KeywordToken, 13 KeywordToken,
16 KeywordTokenWithComment, 14 KeywordTokenWithComment,
17 SimpleToken, 15 SimpleToken,
18 StringToken, 16 StringToken,
19 StringTokenWithComment, 17 StringTokenWithComment,
18 SyntheticKeywordToken,
19 SyntheticStringToken,
20 TokenClass, 20 TokenClass,
21 TokenWithComment; 21 TokenWithComment;
22
23 /**
24 * A token whose value is independent of it's type.
25 */
26 class SyntheticStringToken extends StringToken {
27 /**
28 * Initialize a newly created token to represent a token of the given [type]
29 * with the given [value] at the given [offset].
30 */
31 SyntheticStringToken(TokenType type, String value, int offset)
32 : super(type, value, offset);
33
34 @override
35 bool get isSynthetic => true;
36 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/scanner/scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698