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

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

Issue 1693083004: Move scanner out of generated and clean up imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: clean up Created 4 years, 10 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
« no previous file with comments | « pkg/analyzer/lib/dart/ast/ast.dart ('k') | pkg/analyzer/lib/src/dart/ast/ast.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/dart/ast/token.dart
diff --git a/pkg/analyzer/lib/dart/ast/token.dart b/pkg/analyzer/lib/dart/ast/token.dart
index cbc8ae241d3872021e1d243f6f8d30bdd169b28c..6560a8e547e7c94d597789b8c52dfb59c68d6c44 100644
--- a/pkg/analyzer/lib/dart/ast/token.dart
+++ b/pkg/analyzer/lib/dart/ast/token.dart
@@ -367,10 +367,12 @@ abstract class Token {
/**
* The types of tokens that can be returned by the scanner.
+ *
+ * Clients may not extend, implement or mix-in this class.
*/
class TokenType {
/**
- * The type of the token that marks the end of the input.
+ * The type of the token that marks the start or end of the input.
*/
static const TokenType EOF = const _EndOfFileTokenType();
@@ -598,6 +600,10 @@ class TokenType {
*/
final String lexeme;
+ /**
+ * Initialize a newly created token type to have the given [name],
+ * [_tokenClass] and [lexeme].
+ */
const TokenType._(this.name,
[this._tokenClass = TokenClass.NO_CLASS, this.lexeme = null]);
« no previous file with comments | « pkg/analyzer/lib/dart/ast/ast.dart ('k') | pkg/analyzer/lib/src/dart/ast/ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698