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

Unified Diff: pkg/analyzer/lib/src/dart/ast/token.dart

Issue 2794653002: fasta tokens implement analyzer token API (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/dart/ast/token.dart
diff --git a/pkg/analyzer/lib/src/dart/ast/token.dart b/pkg/analyzer/lib/src/dart/ast/token.dart
index ee5df9f01e4e131a9e72562d12477739600762c0..d0770072a63153e65658acd7a47607f2408c9c25 100644
--- a/pkg/analyzer/lib/src/dart/ast/token.dart
+++ b/pkg/analyzer/lib/src/dart/ast/token.dart
@@ -4,8 +4,6 @@
library analyzer.src.dart.ast.token;
-import 'package:front_end/src/scanner/token.dart';
-
export 'package:front_end/src/scanner/token.dart'
show
BeginToken,
@@ -17,20 +15,7 @@ export 'package:front_end/src/scanner/token.dart'
SimpleToken,
StringToken,
StringTokenWithComment,
+ SyntheticKeywordToken,
+ SyntheticStringToken,
TokenClass,
TokenWithComment;
-
-/**
- * A token whose value is independent of it's type.
- */
-class SyntheticStringToken extends StringToken {
- /**
- * Initialize a newly created token to represent a token of the given [type]
- * with the given [value] at the given [offset].
- */
- SyntheticStringToken(TokenType type, String value, int offset)
- : super(type, value, offset);
-
- @override
- bool get isSynthetic => true;
-}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/scanner/scanner.dart » ('j') | pkg/analyzer/lib/src/dart/scanner/scanner.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698